Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1008 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 1008 Bytes

Key Sign Tool

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.

Usage

Key Generate

mesh-cli key:gen --curve-type secp256k1

Curve Type options are specified by mesh-specifications

Sign

mesh-cli key:sign --configuration-file config.json

A sample config file is located here

Required fields includes

  • pub_key
  • private_key
  • signing_payload

Verify

mesh-cli key:verify --configuration-file verify.json

A sample config file is located here

Required fields includes

  • pub_key
  • signing_payload
  • signature

Troubleshoot

  • account_identifier field in signing_payload field should've a dummy address for providing valid payload.