How to verify a signature from the command line
Verify validity of a signature based on provided message and public key of the signature creator.
1flow signatures verify <message> <signature> <public key>
1> flow signatures verify2'The quick brown fox jumps over the lazy dog'3b1c9eff5d829fdeaf2dad6308fc8033e3b8875bc185ef804ce5d0d980545ef5be0f98b47afc979d12272d257ce13c4b490e431bfcada485cb1d2e3f209be8d0740xc92a7c72a78f8f046a79f8a5fe1ef72424258a55eb869f13e6133301d64ad025d3362d5df9e7c82289637af1431042c4025d241fd430242368ce662d3963698756Valid true7Message The quick brown fox jumps over the lazy dog8Signature b1c9eff5d829fdeaf2...7ce13c4b490eada485cb1d2e3f209be8d079Public Key c92a7c72a78...1431042c4025d241fd430242368ce662d3963698710Hash Algorithm SHA3_25611Signature Algorithm ECDSA_P256
- Name:
message
Message data used for creating the signature.
- Name:
signature
Message signature that will be verified.
- Name:
public key
Public key of the private key used for creating the signature.
- Flag:
--sig-algo
- Valid inputs:
"ECDSA_P256", "ECDSA_secp256k1"
Specify the ECDSA signature algorithm of the key pair used for signing.
Flow supports the secp256k1 and P-256 curves.
- Flag:
--hash-algo
- Valid inputs:
"SHA2_256", "SHA3_256"
- Default:
"SHA3_256"
Specify the hash algorithm of the key pair used for signing.
- Flag:
--filter
- Short Flag:
-x
- Valid inputs: case-sensitive name of the result property.
Specify any property name from the result you want to return as the only value.
- Flag:
--output
- Short Flag:
-o
- Valid inputs:
json
,inline
Specify in which format you want to display the result.
- Flag:
--save
- Short Flag:
-s
- Valid inputs: valid filename
Specify the filename where you want the result to be saved.
- Flag:
--log
- Short Flag:
-l
- Valid inputs:
none
,error
,debug
- Default:
info
Specify the log level. Control how much output you want to see while command execution.
- Flag:
--skip-version-check
- Default:
false
Skip version check during start up to speed up process for slow connections.