Skip to content

Commit

Permalink
feat: sync tagged logs (#9595)
Browse files Browse the repository at this point in the history
Closes: AztecProtocol/aztec-packages#9380

Implements the logic to sync tagged note logs from the node, taking into
account the indices of "last seen" ones.

Unfortunately, the approach of modularizing it as oracles and putting
the logic in the contract itself was met with limitations in noir
(namely, nested slices) and even the code is ready and close to becoming
separate oracles, it cannot be done (yet! or at least without major
caveats and performance implications)
  • Loading branch information
Thunkar authored and AztecBot committed Nov 1, 2024
1 parent 55c2d9a commit 0be4fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aztec/src/oracle/notes.nr
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ pub unconstrained fn get_app_tagging_secrets_for_senders(
let results = get_app_tagging_secrets_for_senders_oracle(recipient);
let mut indexed_tagging_secrets = &[];
for i in 0..results.len() {
if i % 2 != 0 {
if i % 3 != 0 {
continue;
}
indexed_tagging_secrets = indexed_tagging_secrets.push_back(
IndexedTaggingSecret::deserialize([results[i], results[i + 1]]),
IndexedTaggingSecret::deserialize([results[i], results[i + 1], results[i + 2]]),
);
}
indexed_tagging_secrets
Expand Down

0 comments on commit 0be4fae

Please sign in to comment.