Mesh CLI has a key sign tool, which you can use to sign and verify various curves supported by mesh-specifications. This should only be used for local development. Never share private keys anywhere.
mesh-cli key:gen --curve-type secp256k1
Curve Type options are specified by mesh-specifications
mesh-cli key:sign --configuration-file config.json
A sample config file is located here
Required fields includes
pub_key
private_key
signing_payload
mesh-cli key:verify --configuration-file verify.json
A sample config file is located here
Required fields includes
pub_key
signing_payload
signature
account_identifier
field insigning_payload
field should've a dummy address for providing valid payload.