-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Convert Ledger secp256k1 privkey to proto.Message #7872
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bac6879
Generate cached pub key
amaury1093 87bc583
Remove LedgerPrivKey
amaury1093 afc212e
Fix package name
amaury1093 37d1c25
Fix proto lint
amaury1093 03e8f4d
Remove amino from ledger
amaury1093 9160670
Fix tests
amaury1093 0054b5e
Merge branch 'master' into am-7357-ledgerprivkey
amaury1093 13e0c17
Add back ExamplePrintRegisteredTypes
amaury1093 8c69484
Merge branch 'am-7357-ledgerprivkey' of ssh://github.com/cosmos/cosmo…
amaury1093 a503648
Merge master
amaury1093 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 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 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,18 @@ | ||
package codec | ||
|
||
import "os" | ||
|
||
// nolint: govet | ||
func ExamplePrintRegisteredTypes() { | ||
amino.PrintTypes(os.Stdout) | ||
// Output: | ||
// | Type | Name | Prefix | Length | Notes | | ||
// | ---- | ---- | ------ | ----- | ------ | | ||
// | PubKey | tendermint/PubKeySr25519 | 0x0DFB1005 | variable | | | ||
// | PubKey | tendermint/PubKeyEd25519 | 0x1624DE64 | variable | | | ||
// | PubKey | tendermint/PubKeySecp256k1 | 0xEB5AE987 | variable | | | ||
// | LegacyAminoPubKey | tendermint/PubKeyMultisigThreshold | 0x22C1F7E2 | variable | | | ||
// | PrivKey | tendermint/PrivKeySr25519 | 0x2F82D78B | variable | | | ||
// | PrivKey | tendermint/PrivKeyEd25519 | 0xA3288910 | variable | | | ||
// | PrivKey | tendermint/PrivKeySecp256k1 | 0xE1B0F79B | variable | | | ||
} |
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.
Please note that I explicitly removed amino support for PrivKeyLedgerSecp256k1. I cannot see where it's needed, but if it's needed, I can add it back (in the same way we do for other pubkeys).