|
|
|
@ -51,23 +51,10 @@
|
|
|
|
|
```
|
|
|
|
|
* If the `~/vaults/` repository already exists, ensure it doesn't have any changes that haven't been committed, then remove it using `sudo rm -rf ~/vaults` before re-running the previous step
|
|
|
|
|
|
|
|
|
|
1. Ensure `keyfork` is available on the system:
|
|
|
|
|
|
|
|
|
|
* Follow steps from [installation guide](https://git.distrust.co/public/keyfork#install)
|
|
|
|
|
|
|
|
|
|
1. Ensure `icepick` is available on system
|
|
|
|
|
|
|
|
|
|
* Follow steps from [installation guide](TODO)
|
|
|
|
|
|
|
|
|
|
1. Set unsafe `keyfork` usage variable:
|
|
|
|
|
```
|
|
|
|
|
$ export INSECURE_HARDWARE_ALLOWED=1
|
|
|
|
|
```
|
|
|
|
|
* [Bug: user shouldn't have to set this insecure config. Issue #34 fixes this.](https://git.distrust.co/public/icepick/issues/34)
|
|
|
|
|
1. Generate throwaway mnemonic to generate address which will be used for funding the creation of nonce account:
|
|
|
|
|
```
|
|
|
|
|
$ keyfork mnemonic generate | KEYFORK_PROMPT_TYPE=headless keyfork recover mnemonic --daemon
|
|
|
|
|
```
|
|
|
|
|
1. Change directory into the desired \<namespace>/\<coin> directory:
|
|
|
|
|
```
|
|
|
|
|
$ cd ~/vaults/<namespace>/<coin>
|
|
|
|
@ -82,14 +69,14 @@
|
|
|
|
|
```
|
|
|
|
|
1. Use `icepick` to generate nonce account:
|
|
|
|
|
|
|
|
|
|
* The following command will need to be updated to use the appropriate \<cluster>, which can be `devnet`, `testnet` or `mainnet-beta`
|
|
|
|
|
* If using a non-`mainnet-beta` cluster, be sure to provide the `--cluster` argument
|
|
|
|
|
|
|
|
|
|
* Set `icepick` config file:
|
|
|
|
|
```
|
|
|
|
|
$ export ICEPICK_CONFIG_FILE=<path_to_icepick_repositry>/icepick.toml`
|
|
|
|
|
```
|
|
|
|
|
```
|
|
|
|
|
$ icepick workflow sol generate-nonce-account --authorization-address "$(cat $account_id.txt)" --input-file $account_id.json > $account_id-na.json
|
|
|
|
|
$ icepick workflow sol generate-nonce-account --input-file $account_id.json > $account_id-na.json
|
|
|
|
|
```
|
|
|
|
|
* Repeat command if returned message is "The transaction was possibly not received by the cluster."
|
|
|
|
|
|
|
|
|
|