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.6k
Introduce sign_with method in keystore
#4925
Merged
Merged
Changes from 44 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
ad44d72
Add KEY_KIND_ID to the public trait
rakanalh 3199d1e
Use `sign_with` as implemented in BareCryptoStore
rakanalh 25f4a5c
Implement `sign_with` in sc_keystore
rakanalh 8cc6dfd
Fix inconsistencies, use *_KIND_ID in sp_core testing
rakanalh 4895e80
Rename KeyKindId to CryptoTypeId
rakanalh 42f426d
Remove pair-returning functions from BareCryptoStore trait
rakanalh 35555ff
Define CryptoTypeId in app-crypto macros
rakanalh d7623c7
Add functions to get keys supported by keystore
rakanalh 01af73e
Fix sign_with signature to include CryptoTypePublicPair
rakanalh 97775db
Add `sign_with_any` and `sign_with_all`
rakanalh 1ee13ac
Use keystore.sign_with in auth_discovery
rakanalh ccec7f5
Rename get_supported_keys -> supported_keys
rakanalh 5f59041
Added headers to function docstrings
rakanalh b588f7f
Use chain instead of extending a temp vector
rakanalh 94e45a9
Fixed some code formatting
rakanalh e19ecf6
Restrict size of CryptoTypeId
rakanalh 12836f4
Implement sign_with in the trait itself
rakanalh d6082cc
Remove whitespace
rakanalh ef029eb
Use key_type also as a CryptoTypeId in app_crypto macros
rakanalh c9680e3
Rename `get_keys` to `keys` in BareCryptoStore
rakanalh 9dd7929
Remove usage of key_pair funcs in tests
rakanalh 4d0b81b
Adjust docstring for *_CYPTO_ID constants
rakanalh 0956ef7
Fix failures
rakanalh 02f7099
Simplify mapping on keys
rakanalh 79290de
Remove one let
rakanalh 1ff324b
Merge remote-tracking branch 'upstream/master' into sign_with
rakanalh 6a06530
Fixed typo
rakanalh 6c37161
PR feedback
rakanalh ea81fba
remove whitespace
rakanalh 118a53c
Zip keys and signatures
rakanalh eaa1c80
Use into_iter & remove cloned
rakanalh bf42dec
Pass index to MissingSignature
rakanalh 17dd9a2
Use typed errors instead of strings for BareCryptoStore
rakanalh 25c9bdd
Implement Debug for trait error
rakanalh b6de5e6
Use hashsets for better performance for supported_keys
rakanalh 6cad7b9
Make sure keys are inserted into the keystore
rakanalh 87e13fa
Make sign_with_all return type consistent with `sign_with`
rakanalh a7bfe13
Rename Error to BareCryptoStoreError
rakanalh 7d38383
Rename CRYPT_TYPE_ID -> CRYPTO_ID
rakanalh 321f16c
Remove unnecessary CRYPTO_ID declaration in Public trait
rakanalh 69f474e
Convert pub key to CryptoTypePublicPair
rakanalh 164d16b
Fix use
rakanalh c120f12
Fix code style
rakanalh fe8cf28
Implement From on CryptoTypePublicPair in app_crypto macros
rakanalh 19c7499
Change CryptoTypePublicPair to a struct
rakanalh 499c1bb
Implement Display on CryptoTypePublicPair
rakanalh b42af41
Pass CryptoTypePublicPair to MissingSignature error
rakanalh fc40b1e
Adjust docs according to function signature
rakanalh bca2c90
Unify keys implementation
rakanalh 79b7e23
Fix RPC author tests
rakanalh 31ae7ce
Fix stackoverflow
rakanalh 6696aa0
Merge remote-tracking branch 'upstream/master' into sign_with
rakanalh 5de1d04
Tabify spaces
rakanalh 47f6c08
Pass KeyTypeId to error for easier debugging
rakanalh 1674645
Fix asserts
rakanalh 94651fa
Use ToHex to format public key
rakanalh c71646a
Use constants from sp_core
rakanalh 46d6f23
Rename testing KeyTypeId constants
rakanalh f4d231e
Merge remote-tracking branch 'upstream/master' into sign_with
rakanalh bc0880b
Please compiler
rakanalh c8b721c
Restore KeyTypeId names
rakanalh fbfd23b
Use BareCryptoStoreError instead of String
rakanalh cac19ad
Document return value
rakanalh d5f4c4b
Fix borrow check
rakanalh c007d13
Convert to hashset internally
rakanalh 9874c96
WIP - iter_keys
rakanalh f6be826
Return raw_public_keys
rakanalh 0c012e7
Address PR feedback
rakanalh 145d876
Merge remote-tracking branch 'upstream/master' into sign_with
rakanalh 9e80c07
Address PR Feedback
rakanalh 7b92399
Fix hexdisplay import error
rakanalh 7908f71
Update primitives/core/src/traits.rs
bkchr 5f9ad09
Merge remote-tracking branch 'upstream/master' into sign_with2
rakanalh 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
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.
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.