-
Notifications
You must be signed in to change notification settings - Fork 16
Salted nonces #131
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
Salted nonces #131
Changes from 17 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
498d999
versioned + salted nonces added
hlgltvnnk 080a077
nonce verifier added
hlgltvnnk 04567c2
salt management methods added
hlgltvnnk f29f537
tests updated
hlgltvnnk e9ce10e
valid salts format upd: all previous salts stored in map
hlgltvnnk 28a4618
nonce verifier removed, logic moved to state
hlgltvnnk 9a34e35
nonce tests updated + invalidate salt method added
hlgltvnnk 792717d
salt manager tests added
hlgltvnnk c5d43f1
fee manager tests added
hlgltvnnk 06d2459
state versioning added + clippy lints fixed
hlgltvnnk efae3c5
refactoring
hlgltvnnk ecac381
changelog added + minor fixes
hlgltvnnk a5c2d45
minor edit
hlgltvnnk 40a10ad
refactoring
hlgltvnnk 0728277
minor edits
hlgltvnnk b294c34
changes according to review
hlgltvnnk cf75a19
minor edit
hlgltvnnk dde795b
changes according to review #2
hlgltvnnk 8060aba
contract versioning addded
hlgltvnnk b7cee39
minor fixs + missing files
hlgltvnnk 7493e1e
naming upd + minor fixes
hlgltvnnk 3d200e5
state migration updated + refactored
hlgltvnnk 56da699
refactoring
hlgltvnnk 28d9174
changes according to review #3
hlgltvnnk 1ae5bcb
refactoring
hlgltvnnk 494abdf
salt derivation updated + naming upd
hlgltvnnk 2961a7e
minor updates
hlgltvnnk bb28ed3
MaybeVersionedNonce removed
hlgltvnnk 731224d
refactoring
hlgltvnnk e550ff1
missing file from prev commit
hlgltvnnk 3acfda8
minor edits
hlgltvnnk 5385e75
refactoring + garbage collector role added
hlgltvnnk 6087055
clean nonces made payable
hlgltvnnk 010f6ae
fix
hlgltvnnk f30b752
test fix
hlgltvnnk 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| ## [0.3.0] | ||
|
|
||
| ### Added | ||
| - 4 bytes salts added to state for security purposes | ||
| - SaltManager role to manage salts rotation functionality | ||
| - Expirable nonces: contain expiration deadline in nanoseconds | ||
| - Salted nonces: contain salt part as validity identifier | ||
| - Cleanup functionality for nonces to preserve storage: all expired nonces or nonces with invalid salt can be cleared. Legacy nonces can't be cleared before a complete prohibition on its usage. | ||
|
|
||
| ### Changed | ||
| - State versioning | ||
| - Nonce versioning | ||
| - Updated nonce format: The new version must contain the salt part + expiration date to determine if it is valid, but legacy nonces are still supported | ||
| - Optimized nonce storage by adding hashers into maps | ||
| - Intent simulation output returns all nonces committed by transaction | ||
|
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
Uh oh!
There was an error while loading. Please reload this page.