This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Bandersnatch VRF #14412
Merged
Merged
Bandersnatch VRF #14412
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
8c39821
Introduce bandersnatch vrf
davxy a9446fd
Some documentation
davxy bb3e022
Fix tests
davxy bdd3df4
Fix docs refs
davxy e0e493a
Some more docs
davxy b665397
Comments about key derivation
davxy 1faf0e2
Make clippy happy
davxy 2a55c7d
Merge branch 'master' into bandersnatch-vrf
davxy 7812da8
Fix ring context enc/dec test
davxy dd53abc
Fix docs
davxy 03ca535
Switch to upstream ring-vrf
davxy afb84c5
Use sub-domains to construct VrfInput
davxy b4e0279
Bandersnatch VRF experimental feature
davxy 584e07e
Restore upstream dep
davxy 7791d66
Fix feature flags
davxy 13ad9ad
Merge branch 'master' into bandersnatch-vrf
davxy acaab76
Apply typo fix
davxy f22354d
Bump bandersnatch-vrfs
davxy 62d2ed4
Weiestrass form has been selected
davxy 759406e
Rename bandersnatch testing app crypto id
davxy 935b87b
Merge branch 'master' into bandersnatch-vrf
davxy 3ccdd86
Support for seed recovery
davxy e8a40ab
Clarified domain size <-> key size relationship
davxy b770f0d
Merge branch 'master' into bandersnatch-vrf
davxy 84ad4ae
cargo fmt
davxy 63aef58
Merge branch 'master' into bandersnatch-vrf
davxy ca11f8d
Trigger CI
davxy 9d279fa
Merge branch 'master' into bandersnatch-vrf
davxy b27c61f
Some required tweaks to crypto types
davxy a5e4cd4
Remove leftovers from Cargo.toml
davxy 7bf3c70
Remove some TODO notes
davxy efd39bd
Simplification of structs construction
davxy ad76f57
Merge branch 'master' into bandersnatch-vrf
davxy 062b13e
Merge branch 'master' into bandersnatch-vrf
davxy c562181
Trigger CI
davxy b1f6c58
Apply review suggestion
davxy 9342856
Docs typo
davxy 64ec625
Merge branch 'master' into bandersnatch-vrf
davxy ece4016
Fix keystore tests
davxy 3b553b6
Consistence
davxy c2b00b5
Add ref to git rependency
davxy b339b3a
Static check of MAX_VRF_IOS value
davxy 2b2676b
Clarify behavior for out of ring keys signatures
davxy 0739e0f
Add test for ring-vrf to the keystore
davxy a457359
Fix docs
davxy 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
Support for seed recovery
- Loading branch information
commit 3ccdd86a2973c5067b2e0c7ee4aab11b75eaff1b
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
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.
Maybe a silly question, but why is this argument ignored? Perhaps put a comment here and/or return an error if it is
Some?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.
Tools which uses the
InspectKeyCmdmay end up calling (after some hopping) the from_string_with_seed which in turn will callpair.derive(junctions, seed).With:
seedthe seed generated from the secret phrase according to bip39.Is left to the implementation what to do with the seed during the
derivewhich has been already used to generate the pair itself.The only implementation which uses it is
sr25519and frankly I don't know why it requires it.But I don't find it of any usage for bandersnatch as to derive a subkey we use the junctions.
Returning an error is not an option since is called in the same way for all the possible pairs