do Verify
Utility to simplify the act of verifying a digital signature. It returns true if it succeeds, but it always throws an exception if verification fails.
Return
true if verification passes or throws an exception if verification fails.
Parameters
a signature scheme's code name (e.g. ECDSA_SECP256K1_SHA256).
the signer's PublicKey.
the signatureData on a message.
the clear data/message that was signed (usually the Merkle root).
Throws
if the key is invalid.
if this signatureData object is not initialized properly, the passed-in signatureData is improperly encoded or of the wrong type, if this signatureData scheme is unable to process the input data provided, if the verification is not possible.
if the signature scheme is not supported or if any of the clear or signature data is empty.
Utility to simplify the act of verifying a digital signature by identifying the signature scheme used from the input public key's type. It returns true if it succeeds, but it always throws an exception if verification fails. Strategy on identifying the actual signing scheme is based on the PublicKey type, but if the schemeCodeName is known, then better use doVerify(schemeCodeName: String, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray).
Return
true if verification passes or throws an exception if verification fails.
Parameters
the signer's PublicKey.
the signatureData on a message.
the clear data/message that was signed (usually the Merkle root).
Throws
if the key is invalid.
if this signatureData object is not initialized properly, the passed-in signatureData is improperly encoded or of the wrong type, if this signatureData scheme is unable to process the input data provided, if the verification is not possible.
if the signature scheme is not supported or if any of the clear or signature data is empty.
Method to verify a digital signature. It returns true if it succeeds, but it always throws an exception if verification fails.
Return
true if verification passes or throws an exception if verification fails.
Parameters
a SignatureScheme object, retrieved from supported signature schemes, see Crypto.
the signer's PublicKey.
the signatureData on a message.
the clear data/message that was signed (usually the Merkle root).
Throws
if the key is invalid.
if this signatureData object is not initialized properly, the passed-in signatureData is improperly encoded or of the wrong type, if this signatureData scheme is unable to process the input data provided, if the verification is not possible.
if the signature scheme is not supported or if any of the clear or signature data is empty.
Utility to simplify the act of verifying a TransactionSignature. It returns true if it succeeds, but it always throws an exception if verification fails.
Return
true if verification passes or throw exception if verification fails.
Parameters
transaction's id.
the signature on the transaction.
Throws
if the key is invalid.
if this signatureData object is not initialized properly, the passed-in signatureData is improperly encoded or of the wrong type, if this signatureData scheme is unable to process the input data provided, if the verification is not possible.
if the signature scheme is not supported or if any of the clear or signature data is empty.