Rosetta CLI has a key sign tool, which you can use to sign and verify various curves supported by rosetta-specifications. This should only be used for local development. Never share private keys anywhere.
rosetta-cli key:gen --curve-type secp256k1
Curve Type options are specified by rosetta-specifications
rosetta-cli key:sign --configuration-file config.json
A sample config file is located here
Required fields includes
pub_key
private_key
signing_payload
rosetta-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.