-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable consumption of unauthenticated notes (#417)
* derive Debug for `CommittedNote` * feat: enable consumption of notes without proof * fix: fetch both expected and processing notes for commitment check now that a not can go to `Processing` status either from `Expected` or `Committed` it can happen that a note that got committed was actually in Processing state instead of from Expected only. * fix: reorder db updates we reorder the db updates so we first set the committed notes and afterwards we set the consumed notes. This way, if during a single sync state a note gets both committed and consumed we can update all the data while ending up in the `NoteStatus::Consumed` state. * add auto generated files after rebase * address review comments * feat: insert unauthenticated input note instead of assuming it exists in the store * fix: fix compilation error from integration tests * feat: add basic integration test * fix: mentioning expected note consumption in docs * fix typo * feat: add validation so authenticated notes can't be consumed without a proof * update CHANGELOG * fix: fix wasm compilation adding missing maybe_await! * tests: fix * chore: Lints * Alphabetize errors * refactor: add methods to retrieve the authenticated and unauthenticated input notes from the transaction request * refactor: rename error variant * test: Fix original test * chore: Lints * Merge resolution * Fix comments --------- Co-authored-by: tomyrd <[email protected]> Co-authored-by: Ignacio Amigo <[email protected]>
- Loading branch information
1 parent
be5af12
commit 3441e19
Showing
13 changed files
with
268 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.