forked from cerc-io/laconicd-deprecated
crypto: add keyring supported algorithms (#439)
* add keyring supported algorithms * lint * minor updates * use eth_secp256k1 as the default signing algo * add flag * derivation func * refactor * rename keys amino registration * fix keys * address comments from review
This commit is contained in:
@@ -47,7 +47,7 @@ ethermintd start
|
||||
To run a node with the same key every time: replace `ethermintcli keys add $KEY` in `./init.sh` with:
|
||||
|
||||
```bash
|
||||
echo "your mnemonic here" | ethermintcli keys add $KEY --recover
|
||||
echo "your mnemonic here" | ethermintcli keys add $KEY --recover --algo "eth_secp256k1"
|
||||
```
|
||||
|
||||
::: tip Ethermint currently only supports 24 word mnemonics.
|
||||
@@ -56,7 +56,7 @@ echo "your mnemonic here" | ethermintcli keys add $KEY --recover
|
||||
You can generate a new key/mnemonic with:
|
||||
|
||||
```bash
|
||||
ethermintcli keys add $KEY
|
||||
ethermintcli keys add $KEY --algo "eth_secp256k1"
|
||||
```
|
||||
|
||||
To export your ethermint key as an ethereum private key (for use with Metamask for example):
|
||||
|
||||
@@ -57,7 +57,7 @@ minimum-gas-prices = ""
|
||||
|
||||
```bash
|
||||
# Create a key to hold your account
|
||||
ethermintcli keys add $KEY
|
||||
ethermintcli keys add $KEY --algo "eth_secp256k1"
|
||||
|
||||
# Add that key into the genesis.app_state.accounts array in the genesis file
|
||||
# NOTE: this command lets you set the number of coins. Make sure this account has some coins
|
||||
@@ -268,7 +268,7 @@ Now that accounts exists, you may create new accounts and send those accounts
|
||||
funds!
|
||||
|
||||
::: tip
|
||||
**Note**: Each node's seed is located at `./build/nodeN/ethermintcli/key_seed.json` and can be restored to the CLI using the `ethermintcli keys add --restore` command
|
||||
**Note**: Each node's seed is located at `./build/nodeN/ethermintcli/key_seed.json` and can be restored to the CLI using the `ethermintcli keys add --restore --algo "eth_secp256k1"` command
|
||||
:::
|
||||
|
||||
### Special Binaries
|
||||
|
||||
Reference in New Issue
Block a user