public class TransactionSignature extends DigitalSignature
A wrapper around a digital signature accompanied with metadata, see MetaData.Full and class DigitalSignature
.
The signature protocol works as follows: s = sign(MetaData.hashBytes).
class DigitalSignature
DigitalSignature.WithKey
OpaqueBytes.Companion
Companion
Constructor and Description |
---|
TransactionSignature(byte[] signatureData,
MetaData metaData)
A wrapper around a digital signature accompanied with metadata, see MetaData.Full and
class DigitalSignature .
The signature protocol works as follows: s = sign(MetaData.hashBytes). |
Modifier and Type | Method and Description |
---|---|
MetaData |
getMetaData() |
byte[] |
getSignatureData() |
boolean |
verify()
Function to auto-verify a
class MetaData object's signature.
Note that class MetaData contains both public key and merkle root of the transaction. |
getBytes, getOffset, getSize, of
public TransactionSignature(byte[] signatureData, MetaData metaData)
A wrapper around a digital signature accompanied with metadata, see MetaData.Full and class DigitalSignature
.
The signature protocol works as follows: s = sign(MetaData.hashBytes).
class DigitalSignature
public boolean verify()
Function to auto-verify a class MetaData
object's signature.
Note that class MetaData
contains both public key and merkle root of the transaction.
class MetaData
,
class MetaData
public byte[] getSignatureData()
public MetaData getMetaData()