TransactionSignature.<init> - corda

corda / net.corda.core.crypto / TransactionSignature / <init>

# <init>

`TransactionSignature(bytes: ByteArray, by: PublicKey, signatureMetadata: SignatureMetadata)`

Construct a TransactionSignature with partialMerkleTree set to null. This is the recommended constructor when signing over a single transaction.

`TransactionSignature(bytes: ByteArray, by: PublicKey, signatureMetadata: SignatureMetadata, partialMerkleTree: PartialMerkleTree?)`

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 (or block of transactions) signatures.