Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

account subcommand for cli to manage keystore#42

Merged
noot merged 8 commits intomasterfrom
noot/accounts
Dec 13, 2019
Merged

account subcommand for cli to manage keystore#42
noot merged 8 commits intomasterfrom
noot/accounts

Conversation

@noot
Copy link
Copy Markdown
Contributor

@noot noot commented Dec 12, 2019

adds account subcommand with generate, list, and import functionality. saves keys by default in ./keys/keystore. currently, only creates secp256k1 keys and saves them in an encrypted file.

try it out:

make build
cmd/chainbridge/bridge account --generate
cmd/chainbridge/bridge account --list

Comment on lines +20 to +24
type EncryptedKeystore struct {
Type string
PublicKey string
Ciphertext []byte
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add corresponding json tags (lower camel case)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

@noot noot merged commit 6d97eaa into master Dec 13, 2019
@noot noot deleted the noot/accounts branch December 13, 2019 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants