From c49f1ec42303446d5b10931cd099368a5033ce15 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 19 Mar 2021 13:43:39 +0300 Subject: [PATCH] docs: Add wallet creation to faq Add instruction for New wallet creation using binary private key to /docs/faq. Signed-off-by: Pavel Karpy --- docs/faq.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 2b20164..63e30a4 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -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.