-
Notifications
You must be signed in to change notification settings - Fork 292
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
feat: npk_m_hash
in all notes + key rotation test
#6405
Merged
Merged
Changes from 188 commits
Commits
Show all changes
190 commits
Select commit
Hold shift + click to select a range
3acc686
Initial
sklppy88 1f53bd5
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 177445f
fix
sklppy88 fdbb60a
good
sklppy88 2d3a95f
asdf
sklppy88 58f9650
working tests
sklppy88 42a9c35
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 f82d1c8
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 ea93350
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 781bbe3
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 3201fd4
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 1b13804
cleanup
sklppy88 211a060
yarn format
sklppy88 29bfb80
fix
sklppy88 7d1620d
change some stuff
sklppy88 f0ece69
fix
sklppy88 0461006
fix
sklppy88 e4f6d15
asdf
sklppy88 f9a844b
fix
sklppy88 0e0b63e
fix
sklppy88 7572be2
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 9051c8e
format
sklppy88 6e3509a
test
sklppy88 6fbd1d9
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 711afac
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 7f5dbfc
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 afdd9df
initial
sklppy88 48b0626
initial
sklppy88 0ca8578
Addressing comments
sklppy88 c852740
Apply suggestions from code review
sklppy88 3b9e7ba
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 b76ab1a
fix
sklppy88 7eb2366
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 e2a479a
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 ede83f4
Merge branch 'ek/feat/constrain-keys-are-fresh-lib' into ek/feat/add-…
sklppy88 59a4c18
format
sklppy88 dd9ae57
test
sklppy88 32598c9
remove
sklppy88 0f0df81
another
sklppy88 7534a16
Merge remote-tracking branch 'origin/ek/feat/add-nullifying-public-ke…
sklppy88 cf27fc9
Add support for both
sklppy88 194df19
Address comments
sklppy88 938761a
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 0baf281
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 a85f513
fix
sklppy88 209fe0c
Merge branch 'ek/feat/constrain-keys-are-fresh-lib' into ek/feat/add-…
sklppy88 94db9f5
Okay
sklppy88 0c7dc94
Merge branch 'ek/feat/constrain-keys-are-fresh-lib' into ek/feat/add-…
sklppy88 6f0d457
fix
sklppy88 1cae18c
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 2f19996
fix
sklppy88 fffee53
fmt
sklppy88 167603b
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 4416ccb
fix
sklppy88 5d1b800
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 c4a745f
Fix
sklppy88 3c89a06
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 d69e112
fix
sklppy88 b954ecc
format
sklppy88 577b69c
one
sklppy88 11b4848
fix
sklppy88 435c9fd
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 a74311b
Fix
sklppy88 1d9964a
comments
sklppy88 5fa644d
format
sklppy88 227378c
testkeystore
sklppy88 ccbb5c9
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 f5659f5
format
sklppy88 c8901ff
Adding comments
sklppy88 ec75986
comments
sklppy88 4bfaefa
why
sklppy88 4604a29
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 53a443b
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 d9704ab
fix
sklppy88 7fd8b1d
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 b9733a0
Fix
sklppy88 9a3829c
fix
sklppy88 40ce5c6
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 b432ad2
Fix naming
sklppy88 f734d3f
address comments
sklppy88 bd7db1e
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 04f058f
fix
sklppy88 76850bd
fix
sklppy88 4f86276
fix
sklppy88 e47580f
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 b85388d
fix formatting
sklppy88 b4d24e1
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 29f4225
nargo fmt
sklppy88 af0ffd7
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 05f8fef
Fix
sklppy88 f8f27a7
fix
sklppy88 ded1ee3
format
sklppy88 2f76913
migration notes
sklppy88 bfe3f87
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 1ce4d63
Update migration_notes.md
sklppy88 3e6ec6f
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 2bd798e
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 ba7aa67
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 906e105
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 113b1e9
fmt
sklppy88 9fae196
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 e9f2326
Adapting
sklppy88 97a6c5a
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 fe73adb
fix
sklppy88 eb53c44
fix
sklppy88 b6b6969
Fixes
sklppy88 8ecec72
fix
sklppy88 730c842
Changes
sklppy88 1deda94
asfd
sklppy88 851c53e
asdf
sklppy88 5cee1ce
Fixes
sklppy88 a2eed7c
fix
sklppy88 1d52a38
format
sklppy88 6798917
fix
sklppy88 0a523d4
fix
sklppy88 06c4cc2
fix
sklppy88 a765ec7
asdf
sklppy88 5c63480
fix
sklppy88 993e33d
fix
sklppy88 31ec469
Refactors
sklppy88 a1f3f9b
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 f418d3e
fix comments
sklppy88 4511907
asdf
sklppy88 e9a1007
fmt
sklppy88 2478e6e
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 5ca32e2
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 34b8aa1
bump timeouts
sklppy88 6439607
Initial
sklppy88 44f8bf4
test
sklppy88 4aedd6a
Merge branch 'ek/feat/add-nullifying-public-key-to-token-note' into e…
sklppy88 e6425cf
Fix
sklppy88 28e5f1f
asdf
sklppy88 5a41082
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 3ef4856
Initial
sklppy88 3287585
fixing
sklppy88 dc1476a
format
sklppy88 18e050c
Merge branch 'ek/feat/add-nullifying-public-key-to-token-note' into e…
sklppy88 7c525ed
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 95906c4
format
sklppy88 79a5951
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 d3fd00d
format
sklppy88 c8885c7
Some comments
sklppy88 a3e0af3
Pass noir tests
sklppy88 af8a7e9
Fix
sklppy88 31092e5
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 23b721c
fix
sklppy88 53c72e1
fmt
sklppy88 f014dde
Addressing comments
sklppy88 84e53c3
Addressing comments
sklppy88 fee5a59
Apply suggestions from Jan
sklppy88 9563d94
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 071e7c4
format
sklppy88 3420a2f
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 4ea8ea7
Merge branch 'ek/feat/add-nullifying-public-key-to-token-note' into e…
sklppy88 930ced2
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 7fb8670
Working
sklppy88 348b371
renaming
sklppy88 7ae168a
Merge branch 'master' into ek/feat/allow-nullifying-notes-with-differ…
sklppy88 076fc10
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 cb3d183
Merge branch 'ek/feat/key-rotation-end-to-end-example' into ek/feat/a…
sklppy88 7cffd0f
fixing conflicts / formatting
sklppy88 9c91b24
fix snapshots
sklppy88 0d72bf4
yarn test
sklppy88 657d5cf
Addressing comments
sklppy88 5e5214b
format
sklppy88 d061a9c
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 c126db8
Addressing comments
sklppy88 0cd9d67
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 ef9ed1f
Addressing feedback
sklppy88 b182eab
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 bd788a0
comments
sklppy88 3e95366
fix
sklppy88 064bec3
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 0cfb14e
address comments
sklppy88 870e03c
comments
sklppy88 f4dc806
comment
sklppy88 e4866eb
Comments
sklppy88 d97c21e
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 3bdc063
comment
sklppy88 10e0f78
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 7d8864e
Addressing comments
sklppy88 b805a8d
format
sklppy88 a65be02
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 0294174
fix/ format
sklppy88 2d2455e
Addressing comments
sklppy88 5fb3e19
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 efc5428
Impl hash on Point
sklppy88 6989d9f
key store refactor
benesjan 9680858
reworked key rotation test
benesjan c26064c
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
benesjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
use dep::protocol_types::grumpkin_point::GrumpkinPoint; | ||
use crate::context::{PrivateContext, PublicContext}; | ||
use crate::note::{ | ||
note_header::NoteHeader, note_interface::NoteInterface, | ||
|
@@ -9,7 +10,8 @@ pub fn create_note<Note, N>( | |
context: &mut PrivateContext, | ||
storage_slot: Field, | ||
note: &mut Note, | ||
broadcast: bool | ||
broadcast: bool, | ||
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 think we should get rid of the bool. To follow the spec idea that it is always emitting, but that can be addressed in #6440. |
||
ivpk_m: GrumpkinPoint | ||
) where Note: NoteInterface<N> { | ||
let contract_address = (*context).this_address(); | ||
|
||
|
@@ -36,7 +38,7 @@ pub fn create_note<Note, N>( | |
context.push_new_note_hash(inner_note_hash); | ||
|
||
if broadcast { | ||
Note::broadcast(*note, context, storage_slot); | ||
Note::broadcast(*note, context, storage_slot, ivpk_m); | ||
} | ||
} | ||
|
||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been moved here from oracle