corda / net.corda.core.node / ServiceHub / addSignature

addSignature

open fun addSignature(signedTransaction: SignedTransaction, publicKey: PublicKey): SignedTransaction

Helper method to append an additional signature to an existing (partially) SignedTransaction.

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.

Return
A new SignedTransaction with the addition of the new signature.

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.

Parameters

signedTransaction - The SignedTransaction to which the signature will be added.

Return
A new SignedTransaction with the addition of the new signature.