do Sign
Generic way to sign ByteArray data with a PrivateKey. Strategy on on identifying the actual signing scheme is based on the PrivateKey type, but if the schemeCodeName is known, then better use doSign(signatureScheme: String, privateKey: PrivateKey, clearData: ByteArray).
Return
the digital signature (in ByteArray) on the input message.
Parameters
the signer's PrivateKey.
the data/message to be signed in ByteArray form (usually the Merkle root).
Throws
if the signature scheme is not supported for this private key.
if the private key is invalid.
if signing is not possible due to malformed data or private key.
Generic way to sign ByteArray data with a PrivateKey and a known schemeCodeName String.
Return
the digital signature (in ByteArray) on the input message.
Parameters
a signature scheme's code name (e.g. ECDSA_SECP256K1_SHA256).
the signer's PrivateKey.
the data/message to be signed in ByteArray form (usually the Merkle root).
Throws
if the signature scheme is not supported.
if the private key is invalid.
if signing is not possible due to malformed data or private key.
Generic way to sign ByteArray data with a PrivateKey and a known Signature.
Return
the digital signature (in ByteArray) on the input message.
Parameters
a SignatureScheme object, retrieved from supported signature schemes, see Crypto.
the signer's PrivateKey.
the data/message to be signed in ByteArray form (usually the Merkle root).
Throws
if the signature scheme is not supported for this private key.
if the private key is invalid.
if signing is not possible due to malformed data or private key.
Generic way to sign SignableData objects with a PrivateKey. SignableData is a wrapper over the transaction's id (Merkle root) in order to attach extra information, such as a timestamp or partial and blind signature indicators.
Return
a TransactionSignature object than contains the output of a successful signing, signer's public key and the signature metadata.
Parameters
the signer's KeyPair.
a SignableData object that adds extra information to a transaction.
Throws
if the signature scheme is not supported for this private key.
if the private key is invalid.
if signing is not possible due to malformed data or private key.