Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
745bc29 to
ac2a7bf
Compare
ee33e77 to
a576c5c
Compare
a576c5c to
326a25f
Compare
0da23a5 to
4b1c2cf
Compare
326a25f to
a758ed1
Compare
4b1c2cf to
0da23a5
Compare
a758ed1 to
bf802de
Compare
bf802de to
15b4247
Compare
| pub struct IndexedTaggingSecret { | ||
| app_tagging_secret: Field, | ||
| index: u32, | ||
| } | ||
|
|
There was a problem hiding this comment.
Why was this a proto struct?
There was a problem hiding this comment.
It was introduced in this PR by Grego. I don't really know but I guess it was because we have the TS counterpart and we wanted to have a matching struct in Noir.
| return toForeignCallResult(witness.toNoirRepresentation()); | ||
| } | ||
|
|
||
| async utilityGetIndexedTaggingSecretAsSender(foreignSender: ForeignCallSingle, foreignRecipient: ForeignCallSingle) { |
There was a problem hiding this comment.
Huh, rpc translator does not handle privateIncrementAppTaggingSecretIndexAsSender, so you were not forced to update to privateGetNextAppTagAsSender. I thought the class had been setup with zod to typecheck that all are handled, but it seems I was wrong.
Could you add the oracle, and maybe take a quick look to see if you can get the zod thing working? i.e. that when a txe session dispatches to the rpc translator we know that a) the fn is one of the allowed ones, and b) that all allowed fns are handled
There was a problem hiding this comment.
Added the missing method in 171b7ba and will try to figure out the zod thing in a separate PR.
3788ddb to
309fc54
Compare
In this PR I merge `getIndexedTaggingSecretAsSender` and `incrementAppTaggingSecretIndexAsSender` and `get_app_tag_as_sender` into single `get_next_app_tag(sender, recipient)`. This results in the app tag being computed in TS and not in Noir. The motivation for this is that to improve robustness of tagging as described in [this post](https://forum.aztec.network/t/on-note-discovery-and-index-coordination/7165) we need to associate a given index with tx hash and this is the first step in that direction. ### Note for reviewer This is a breaking change because it changes oracles but I don't think a dev would ever call these oracles directly so I didn't bother with writing migration notes. If the reviewer thinks it should be done then LMK and I can add it. Co-authored-by: Jan Beneš <janbenes1234@gmail.com>
171b7ba to
dfe7b5c
Compare

In this PR I merge
getIndexedTaggingSecretAsSenderandincrementAppTaggingSecretIndexAsSenderandget_app_tag_as_senderinto singleget_next_app_tag(sender, recipient). This results in the app tag being computed in TS and not in Noir.The motivation for this is that to improve robustness of tagging as described in this post we need to associate a given index with tx hash and this is the first step in that direction.
Note for reviewer
This is a breaking change because it changes oracles but I don't think a dev would ever call these oracles directly so I didn't bother with writing migration notes. If the reviewer thinks it should be done then LMK and I can add it.