-
Notifications
You must be signed in to change notification settings - Fork 607
feat(aztec-nr): wire constrained message delivery #23866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: merge-train/fairies-v5
Are you sure you want to change the base?
Changes from all commits
c552943
000162b
36681e6
0271756
98b556a
5699c52
389493b
c334adc
cd2fbea
33a3b65
18a8df5
b258ccd
153b84a
a851c53
170f8b9
e371203
9d61ebb
df8704e
09bae38
614e435
65ac26d
72009eb
dbf792b
6919a75
58343a9
dbc04f4
0eb6e78
91b3840
af18bc5
fd84572
48aa220
bcf9c76
25b6540
2f8cf57
446957f
417482d
ba1be2d
3d10cae
26aae03
0834425
00cc819
bed55f4
fbadea0
d7065a9
a66cedd
54520c9
4c13ccb
7628eab
fd07996
375800b
08c35b0
269fb80
99b0a9c
32cdf5d
20ae9f6
f6b9c71
05ffc5a
45a9a9d
b6eb170
f73130b
41411a4
73b3c40
56d84b2
833f58e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,8 +19,7 @@ use super::tag_secret_derivation::TagSecretDerivation; | |
| /// ## Construction | ||
| /// | ||
| /// The fields are private and there is no public constructor: a `MessageDelivery` can only be produced by a | ||
| /// [`MessageDeliveryBuilder`] that enforces valid configurations, so invalid field combinations cannot be | ||
| /// represented to the consumer. | ||
| /// [`MessageDeliveryBuilder`]. The delivery APIs validate the built configuration before consuming it. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know that we are currently allowing to create "invalid" states, but that is only temporary (for a few PRs), right? The end state will only allow devs to build valid states, right?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that will be the end state. |
||
| pub struct MessageDelivery { | ||
| mode: DeliveryMode, | ||
| tag_secret_derivation: TagSecretDerivation, | ||
|
|
@@ -144,10 +143,6 @@ impl MessageDelivery { | |
|
|
||
| /// Delivers the message on-chain, guaranteeing the recipient will receive the correct content. | ||
| /// | ||
| /// >**WARNING**: this delivery mode is [currently NOT fully | ||
| /// constrained](https://github.com/AztecProtocol/aztec-packages/issues/14565). The log's tag is unconstrained, | ||
| /// meaning a malicious sender could manipulate it to prevent the recipient from finding the message. | ||
| /// | ||
| /// ## Use Cases | ||
| /// | ||
| /// This delivery method is suitable for all use cases, since it always works as expected. It is however the most | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.