Schnorr signature tool

The schnorr signature tool can perform the following actions:

  • generate a private key
  • sign a message with a private key
  • extract the public key from a private key

Generating a private key

schnorr gen-key > 'private_key.txt'

Signing a message with a private key

From file:

schnorr sign --key 'private_key.txt' --message 'message.txt'

From stdin:

schnorr sign --key 'private_key.txt' --message -

The JSON output can be used as witness data if you want to pass the signature to a circuit.

Extracting the public key

schnorr pub-key < 'private_key.txt' > 'public_key.txt'