Open andrewkmin opened 1 year ago
While we're at it, I wonder if it might be worthwhile supporting changes to these defaults (which would be particularly relevant to the --keys-folder
flag)
And making sure that pk create
works
./turnkey pk create --address-format ADDRESS_FORMAT_ETHEREUM --curve CURVE_SECP256K1 --name queueing-key --keys-folder="/Users/andrew/.config/turnkey/keys" --key-name queueing
{
"error": "failed to create API client: failed to load API key: failed to read from \"/Users/andrew/Library/Application Support/turnkey/keys/queueing.private\": open /Users/andrew/Library/Application Support/turnkey/keys/queueing.private: no such file or directory"
}
Private key generation via cli is quite verbose:
We should consider making
--address-format
and--curve
optional, with defaults set toADDRESS_FORMAT_ETHEREUM
andCURVE_SECP256K1
respectively.Furthermore, we could probably flesh out the flags: