From 028e7ea938cc7feb9fd1ecf768bfb655eaf4ff9b Mon Sep 17 00:00:00 2001 From: Yksirod <103229163+taramakage@users.noreply.github.com> Date: Mon, 17 Apr 2023 15:25:34 +0800 Subject: [PATCH] docs: supplement export/import evm prikey (#2838) Co-authored-by: Dreamer <745124335@qq.com> --- docs/get-started/evm-contract.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/get-started/evm-contract.md b/docs/get-started/evm-contract.md index f28c3a5ca..3bf23524d 100644 --- a/docs/get-started/evm-contract.md +++ b/docs/get-started/evm-contract.md @@ -14,7 +14,9 @@ Since it is the most widely used smart contract programming language in Blockcha ## Prepare Account for EVM -You might already have an EVM account and hold its mnemonic phrase, but in IRISHub, EVM accounts are displayed with the iaa prefix. You can view it with the following command: +You might already have an EVM account and hold its mnemonic phrase, but in IRISHub, EVM accounts are displayed with the `iaa` prefix. + +### Generate or Recover EVM account in IRIShub ```bash iris keys add --algo eth_secp256k1 @@ -23,6 +25,23 @@ iris keys add --algo eth_secp256k1 iris keys add --algo eth_secp256k1 --recover ``` +### Import/Export EVM private key + +You can import the private key of an EVM account to generate an iaa account on IRISHub with the following command: + +```bash +iris keys unsafe-import-eth-key +``` + +Conversely, you can export the EVM private key of an iaa account using the following command: + +```bash +iris keys unsafe-export-eth-key +``` + +### Exchange ERIS in IRISHub + + IRISHub uses `eris` as the EVM token, which is pegged 1:1 with `iris`. You can exchange them using the following command: ```bash