docs: Add wallet creation to faq

Add instruction for New wallet creation
using binary private key to /docs/faq.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
wallet-connect
Pavel Karpy 2021-03-19 13:43:39 +03:00 committed by Alex Vanin
parent ddcb711975
commit c49f1ec423
1 changed files with 25 additions and 0 deletions

View File

@ -37,6 +37,31 @@ $ xxd wallets/wallet.key
Later this functionality will be included in `neofs-cli` directly.
### How to create Neo wallet JSON file using a NeoFS key file?
You will need `neo-go` and `neofs-cli`.
1. Get the WIF format of the private key
```
$ neofs-cli util keyer -key ./services/ir/01.key | grep WIF | awk '{print $NF}' > temp_WIF
```
2. Init a new empty Neo wallet
```
$ neo-go wallet init -w my_new_wallet.json
```
3. Import WIF to the new wallet
```
$ neo-go wallet import -w my_new_wallet.json --wif $(cat temp_WIF) && rm temp_WIF
Enter the name of the account >
Enter passphrase >
Confirm passphrase >
```
### How to see what's inside running container if there's no shell?
You can run any program in container's namespace using `nsenter` utility.