add Signature
open fun addSignature(signedTransaction: SignedTransaction, publicKey: PublicKey): SignedTransaction
Helper method to append an additional signature to an existing (partially) SignedTransaction.
Return
A new SignedTransaction with the addition of the new signature.
Parameters
signed Transaction
The SignedTransaction to which the signature will be added.
public Key
The PublicKey matching to a signing java.security.PrivateKey hosted in the node. If the PublicKey is actually a net.corda.core.crypto.CompositeKey the first leaf key found locally will be used for signing.
Helper method to append an additional signature for an existing (partially) SignedTransaction using the default identity signing key of the node.
Return
A new SignedTransaction with the addition of the new signature.
Parameters
signed Transaction
The SignedTransaction to which the signature will be added.