Open alfiedotwtf opened 1 month ago
We already support .env
file, so you can use it to pass keypair.
But to make it work properly, I think we need to teach binary to work with 12 word mnemonic phrase via the CLI as well.
How about adding new args?
Honestly, overloading the --keypair
is also, already, confusing to me. Or at least unexpected. So I'd prefer something like --secret-key
--secret-key-path
and --secret-phrase-path
.
But @xgreenx makes a good point as well.
This has tripped me up before, and now someone on the forum has hit the same user error:
https://forum.fuel.network/t/error-running-a-fuel-core-test-node-on-an-arm64-board/6735
The
--keypair
command line argument currently accepts either:For usability, I think
--keypair
should accept 3 type of values:On this, I have never actually gotten
--keypair <filename>
to work. Even when using the fixture from https://github.com/FuelLabs/fuel-vm/blob/master/fuel-crypto/src/tests/mnemonic.rs:While here, I think two tests (using https://docs.rs/rexpect/latest/rexpect/) should be added:
--keypair <filename-containing-secret-passphrase>
works--keypair <filename-containing-secret-key>
works