class TransactionSignature : DigitalSignature
A wrapper over the signature output accompanied by signer's public key and signature metadata. This is similar to DigitalSignature.WithKey, but targeted to DLT transaction signatures.
TransactionSignature(bytes: ByteArray, by: PublicKey, signatureMetadata: SignatureMetadata)
A wrapper over the signature output accompanied by signer's public key and signature metadata. This is similar to DigitalSignature.WithKey, but targeted to DLT transaction signatures. |
val by: PublicKey |
|
val signatureMetadata: SignatureMetadata |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun isValid(txId: SecureHash): Boolean
Utility to simplify the act of verifying a signature. In comparison to verify doesn't throw an exception, making it more suitable where a boolean is required, but normally you should use the function which throws, as it avoids the risk of failing to test the result. |
|
fun verify(txId: SecureHash): Boolean
Function to verify a SignableData object's signature. Note that SignableData contains the id of the transaction and extra metadata, such as DLT's platform version. |
fun <T : Any> ByteSequence.deserialize(serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): T
Convenience extension method for deserializing a ByteSequence, utilising the defaults. |
|
fun OpaqueBytes.sha256(): SHA256
Compute the SHA-256 hash for the contents of the OpaqueBytes. |