The tezos-client provides a sign method to sign a message in bytes using the private key and returns the signature.

Is there any method like verify which takes the message, the signature and the public key to verify that it is signed by the user who holds the private key?


You can find in this Repl how to check user signature in JavaScript:

I also added an example, just run it and you'll get the result.


  • Thanks, Daly it worked like a charm. Can you please also add a script to sign the message in Tezos? Apr 11 '20 at 14:47
  • 2
    @ShubhamChadokar, Here is the script to sign an operation on Tezos: repl.it/@DalyIng/signOperationTezos
    – Daly
    Apr 12 '20 at 16:49
  • Thank you @Daly for all your help. Apr 12 '20 at 17:27
check that <bytes> was signed by <key> to produce <signature> [-q --quiet]

Check the signature of a byte sequence as per Michelson instruction CHECK_SIGNATURE.

bytes: the signed data

key: existing public_key alias

signature: the signature to check

-q --quiet: Use only exit codes

  • I think this requires a Smart contract with Check_signature function. Is there anything available in tezos-client? Apr 7 '20 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.