This repository was archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Ethermint key generation #78
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
615dcfe
WIP setting up Ethereum key CLI commands
austinabell ca0e587
Functional key gen and showing Ethereum address
austinabell 752834f
Cleaned up changes
austinabell 97d0259
WIP setting up Ethereum key CLI commands
austinabell 288ae3e
Functional key gen and showing Ethereum address
austinabell e5211ad
Cleaned up changes
austinabell 2b0a8b4
Merge branch 'austin/emintkeys' of github.com:ChainSafe/ethermint int…
austinabell 102a218
Changed address to cosmos specific address
austinabell 7e156d7
Remove default bech32 prefixes and add basic add command test
austinabell 7e809a9
Changed Private key type to slice of bytes for compatibility and stor…
austinabell 1cfde94
switch back to using cosmos crypto Keybase interfaces
austinabell 5eada04
Changed key output to ethereum addressing instead of bitcoin and key …
austinabell b857feb
Updated show command and added test
austinabell 77a9c8f
Remove prefix requirement for showing keys and added existing keys co…
austinabell f2ce82c
Removed unnecessary duplicate code
austinabell 5d9b7bd
Readd prefixes for accounts temporarily
austinabell 80893be
Fix linting issue
austinabell 32f27f4
Remove TODO for setting PK to specific length of bytes (all functions…
austinabell e6ac4f9
Cleaned up descriptions to remove multi-sigs
austinabell 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| package keys | ||
|
|
||
| import ( | ||
| cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino" | ||
|
|
||
| "github.com/cosmos/cosmos-sdk/codec" | ||
| "github.com/cosmos/cosmos-sdk/crypto/keys/hd" | ||
| emintCrypto "github.com/cosmos/ethermint/crypto" | ||
| cosmosKeys "github.com/cosmos/cosmos-sdk/crypto/keys" | ||
| ) | ||
|
|
||
| var cdc *codec.Codec | ||
|
|
||
| func init() { | ||
| cdc = codec.New() | ||
| cryptoAmino.RegisterAmino(cdc) | ||
| cdc.RegisterInterface((*cosmosKeys.Info)(nil), nil) | ||
| emintCrypto.RegisterCodec(cdc) | ||
| cdc.RegisterConcrete(hd.BIP44Params{}, "crypto/keys/hd/BIP44Params", nil) | ||
| cdc.RegisterConcrete(localInfo{}, "crypto/keys/localInfo", nil) | ||
| cdc.RegisterConcrete(ledgerInfo{}, "crypto/keys/ledgerInfo", nil) | ||
| cdc.RegisterConcrete(offlineInfo{}, "crypto/keys/offlineInfo", nil) | ||
| // cdc.RegisterConcrete(multiInfo{}, "crypto/keys/multiInfo", nil) | ||
GregTheGreek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cdc.Seal() | ||
| } | ||
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.