-
Notifications
You must be signed in to change notification settings - Fork 598
feat: npk_m_hash in all notes + key rotation test
#6405
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
Merged
Merged
Changes from all commits
Commits
Show all changes
190 commits
Select commit
Hold shift + click to select a range
3acc686
Initial
1f53bd5
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
177445f
fix
fdbb60a
good
2d3a95f
asdf
58f9650
working tests
42a9c35
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
f82d1c8
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
ea93350
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
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
211a060
yarn format
29bfb80
fix
7d1620d
change some stuff
f0ece69
fix
0461006
fix
e4f6d15
asdf
f9a844b
fix
0e0b63e
fix
7572be2
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 9051c8e
format
6e3509a
test
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
48b0626
initial
0ca8578
Addressing comments
c852740
Apply suggestions from code review
sklppy88 3b9e7ba
Merge branch 'master' into ek/feat/constrain-keys-are-fresh-lib
sklppy88 b76ab1a
fix
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-…
59a4c18
format
dd9ae57
test
32598c9
remove
0f0df81
another
7534a16
Merge remote-tracking branch 'origin/ek/feat/add-nullifying-public-ke…
cf27fc9
Add support for both
194df19
Address comments
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
209fe0c
Merge branch 'ek/feat/constrain-keys-are-fresh-lib' into ek/feat/add-…
94db9f5
Okay
0c7dc94
Merge branch 'ek/feat/constrain-keys-are-fresh-lib' into ek/feat/add-…
6f0d457
fix
1cae18c
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
2f19996
fix
fffee53
fmt
167603b
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
4416ccb
fix
5d1b800
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 c4a745f
Fix
3c89a06
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 d69e112
fix
b954ecc
format
577b69c
one
11b4848
fix
435c9fd
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 a74311b
Fix
1d9964a
comments
5fa644d
format
227378c
testkeystore
ccbb5c9
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 f5659f5
format
c8901ff
Adding comments
ec75986
comments
4bfaefa
why
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
7fd8b1d
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
b9733a0
Fix
9a3829c
fix
40ce5c6
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 b432ad2
Fix naming
f734d3f
address comments
bd7db1e
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 04f058f
fix
76850bd
fix
4f86276
fix
e47580f
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 b85388d
fix formatting
b4d24e1
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 29f4225
nargo fmt
af0ffd7
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 05f8fef
Fix
f8f27a7
fix
ded1ee3
format
2f76913
migration notes
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
9fae196
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
e9f2326
Adapting
97a6c5a
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
fe73adb
fix
eb53c44
fix
b6b6969
Fixes
8ecec72
fix
730c842
Changes
1deda94
asfd
851c53e
asdf
5cee1ce
Fixes
a2eed7c
fix
1d52a38
format
6798917
fix
0a523d4
fix
06c4cc2
fix
a765ec7
asdf
5c63480
fix
993e33d
fix
31ec469
Refactors
a1f3f9b
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 f418d3e
fix comments
4511907
asdf
e9a1007
fmt
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
6439607
Initial
44f8bf4
test
4aedd6a
Merge branch 'ek/feat/add-nullifying-public-key-to-token-note' into e…
sklppy88 e6425cf
Fix
28e5f1f
asdf
5a41082
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
3ef4856
Initial
3287585
fixing
dc1476a
format
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
79a5951
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 d3fd00d
format
c8885c7
Some comments
a3e0af3
Pass noir tests
af8a7e9
Fix
31092e5
Merge branch 'ek/feat/allow-nullifying-notes-with-different-npk-m-has…
sklppy88 23b721c
fix
53c72e1
fmt
f014dde
Addressing comments
84e53c3
Addressing comments
fee5a59
Apply suggestions from Jan
sklppy88 9563d94
Merge branch 'master' into ek/feat/add-nullifying-public-key-to-token…
sklppy88 071e7c4
format
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…
7fb8670
Working
348b371
renaming
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
9c91b24
fix snapshots
0d72bf4
yarn test
657d5cf
Addressing comments
5e5214b
format
d061a9c
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
c126db8
Addressing comments
0cd9d67
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 ef9ed1f
Addressing feedback
b182eab
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 bd788a0
comments
3e95366
fix
064bec3
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 0cfb14e
address comments
870e03c
comments
f4dc806
comment
e4866eb
Comments
d97c21e
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 3bdc063
comment
10e0f78
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 7d8864e
Addressing comments
b805a8d
format
a65be02
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 0294174
fix/ format
2d2455e
Addressing comments
5fb3e19
Merge branch 'master' into ek/feat/add-npk-m-hash-to-all-tokens
sklppy88 efc5428
Impl hash on Point
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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, | ||
|
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 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 hidden or 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 hidden or 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 hidden or 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.
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