oasisprotocol / cli

Official CLI for the Oasis Network.
Apache License 2.0
12 stars 1 forks source link

`wallet import`: Check whether Ed25519 keypair is valid #219

Open matevz opened 3 months ago

matevz commented 3 months ago

The oasis web wallet checks whether the public key corresponds to the secret key when importing the 64- byte Ed25519 keypair (https://github.com/oasisprotocol/oasis-wallet-web/pull/1007).

The CLI should do the same.

OPTIONALLY: Support importing the 32-byte secret key only and print a warning that this is very unsafe.