-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(identity): implement protobuf encoding for all key types #3681
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
Closed
Closed
Changes from 20 commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
7d5e606
feat: make mdns::Event clone-able
drHuangMHT 05ce438
Merge branch 'libp2p:master' into master
a72e5e2
docs: filling CHANGELOG for PR 3606
drHuangMHT 09bef20
Merge branch 'master' of https://github.com/drHuangMHT/rust-libp2p
drHuangMHT 926c7ca
Update protocols/mdns/CHANGELOG.md
thomaseizinger 49d26c4
Update protocols/mdns/CHANGELOG.md
thomaseizinger 4a35406
Merge branch 'master' into master
mergify[bot] a8ff1eb
feat: change 'mdns::Event' to hold 'SmallVec'
drHuangMHT 4cec5fa
test: adapting test to 'mdns::Event' change
drHuangMHT a876f2f
Merge branch 'master' of https://github.com/drHuangMHT/rust-libp2p
drHuangMHT 18811d2
feat(mdns): change 'mdns::Event' to hold 'Vec'
drHuangMHT abdce7e
doc: add entry for #3621
drHuangMHT d5c246c
Update protocols/mdns/CHANGELOG.md
ed128a7
Merge branch 'master' of https://github.com/drHuangMHT/rust-libp2p
drHuangMHT 0d06f4c
Merge branch 'master' of https://github.com/drHuangMHT/rust-libp2p
drHuangMHT 9d45cf3
Remove conflict marker to resolve conflicts
drHuangMHT 947b368
add 'try' to method returning 'Result'
drHuangMHT e3e6355
implement protobuf encoding for RSA keys
drHuangMHT b91bcc7
fix: change 'encode_unsupported' to 'missing_feature' for branch lead…
drHuangMHT 959b90f
fix: wrongly configured feature attributes when encoding to protobuf
drHuangMHT 20134d1
fix: clippy and fmt
drHuangMHT d833904
doc: documentation for changed methods
drHuangMHT 0896a61
feat: enforce naming rules
drHuangMHT 593272c
Merge branch 'master' into identity-keypair
thomaseizinger f559cfe
hide 'proto::KeyType'
drHuangMHT 672b9b9
make 'to_protobuf_encoding' for 'Keypair' infallible
drHuangMHT 33c9b9b
make 'to_protobuf_encoding' for 'PublicKey' infallible
drHuangMHT f4a764d
revert renamed method and deprecate instead
drHuangMHT 8b8bfc5
split 'rsa::Keypair::try_decode' into two separate method
drHuangMHT 921fc4a
introduce 'ConversionError' for associated 'Error' type in 'TryInto'
drHuangMHT b555d7f
add 'try' prefix to 'into_[keytype]' for 'libp2p_identity::Keypair'
drHuangMHT d65ce3e
revert renaming of method in 'libp2p_identity::Keypair'
drHuangMHT c587b73
recommend key promotion for deprecated methods in 'libp2p_identity::K…
drHuangMHT 2a77a26
revert renaming of method in 'libp2p_identity::secp256k1'
drHuangMHT 7d0ceaa
renaming 'ConversionError' to 'OtherVariantError'
drHuangMHT c846a3d
revert wrongly renamed 'secp256k1::SecretKey::from_der'
drHuangMHT a3eae1c
formatting
drHuangMHT 3adb27f
revert removal of methods in 'libp2p_identity::PublicKey' and rename …
drHuangMHT 43a33ce
clippy
drHuangMHT 9ae47cf
remove unnecessary libp2p_identity::PublicKey::try_to_protobuf_encoding
drHuangMHT b25a446
revert rename of 'libp2p_identity::PublicKey::from_protobuf_encoding'
drHuangMHT d936772
improve deprecation messages
drHuangMHT 284736c
delegate deprecated methods to suggested ones
drHuangMHT 2f02c04
enforce 'decode' rule for protobuf encoding
drHuangMHT b0a33fd
formatting
drHuangMHT cb40674
remove support for DER-encoded RSA key
drHuangMHT 0321368
syncing 'keypair_dummy.rs' with 'keypair.rs'
drHuangMHT 667fa77
remove unnecessary 'Error' trait impl for 'OtherVariantError'
drHuangMHT c97d661
revert renaming of 'into' methods on 'Keypair' and deprecate instead
drHuangMHT a04b17f
prepare keys for testing
drHuangMHT 92f6914
Add roundtrip tests
thomaseizinger a3285d7
Undo mdns changes
thomaseizinger 3762a20
Merge branch 'master' into identity-keypair
thomaseizinger 896117c
Merge branch 'master' into identity-keypair
thomaseizinger f5cf834
Fix cargo.lock
thomaseizinger 74e7cf3
repetitive 'encoding' method naming removed
drHuangMHT 4285bda
use '.ok()' combinator to replace 'match' expression
drHuangMHT 73d9e55
put link to libp2p spec in 'encode_protobuf' documentation
drHuangMHT 6120997
remove roundtrip test for 'ecdsa::Keypair'
drHuangMHT 785ca7c
remove 'Eq' impl for 'ecdsa::Keypair' and 'ecdsa::SecretKey'
drHuangMHT faa4d42
correct diff for 'ecdsa::from_bytes'
drHuangMHT 9914eab
deprecation note correction for 'Keypair::rsa_from_pkcs8'
drHuangMHT 1090f14
remove feature cfg for KeyType
drHuangMHT 278f19e
add feature cfg to branches in 'TryInto' impl of 'Keypair'
drHuangMHT 4b103bb
add feature cfg to branches in 'TryInto' impl of 'PublicKey'
drHuangMHT bd0284b
fix missing target exclusion on 'Keypair::into_rsa'
drHuangMHT bbf59d8
formatting
drHuangMHT 1a442fa
remove duplicate 'to_protobuf_encoding' in 'keypair_dummy.rs'
drHuangMHT 676b7e6
revert removal of 'into' implementation on 'PublicKey' and deprecate …
drHuangMHT 85f3871
Merge branch 'libp2p:master' into identity-keypair
b83422c
Merge 'libp2p/master' into identity-keypair
drHuangMHT ffacd94
clippy fix
drHuangMHT 6c8b5c7
refactor 'match' expression to '?' operator
drHuangMHT c231e1d
rename test keys
drHuangMHT 4ecffb3
revert 'try_decode_x509' signature change
drHuangMHT c958c04
revert 'to_protobuf_encoding' signature change
drHuangMHT 7c992fd
Merge remote-tracking branch 'upstream/master' into identity-keypair
drHuangMHT b613d1c
implement encoding to pkcs#8 for ecdsa keys
drHuangMHT 24a5a86
formatting
drHuangMHT 5e776b5
resolve conflict with upstream
drHuangMHT aeea24b
remove 'deprecation since'
drHuangMHT 54e2fad
replace 'unwrap' with 'expect'
drHuangMHT 2d244c7
remove redundant 'Deprecated,' message
drHuangMHT 2c188ca
rename 'to_raw_bytes' to 'encode_pkcs8_der'
drHuangMHT ba9f4ed
fix uncaught deprecated method
drHuangMHT 1b11e4a
downgrade 'p256' and remove 'ecdsa'
drHuangMHT 3a330ac
Merge branch 'master' into identity-keypair
thomaseizinger 01b4fd6
Undo ecdsa changes
thomaseizinger 46700cf
Minimize diff
thomaseizinger ce9ba0d
Merge branch 'identity-keypair' of https://github.com/drHuangMHT/rust…
drHuangMHT 7662073
lock file update
drHuangMHT e4b6ec7
fix: wrong dependency 'p256' version
drHuangMHT 75ee978
delete unused test keys
drHuangMHT fd7a660
revert RSA changes
drHuangMHT 96ab553
Merge branch 'master' into identity-keypair
drHuangMHT b23e111
remove feature flag on 'decoding_unsupported'
drHuangMHT 4d7b516
fix: duplicated outdated test
drHuangMHT 11748b5
upstream sync
drHuangMHT cffd763
Merge branch 'master' into identity-keypair
drHuangMHT 07df6dc
fix errors introduced by merging manually
drHuangMHT 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
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.