addSignature

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

signedTransaction

The SignedTransaction to which the signature will be added.

publicKey

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.


open fun addSignature(signedTransaction: SignedTransaction): SignedTransaction

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

signedTransaction

The SignedTransaction to which the signature will be added.