data class SignedTransaction : NamedByHashContainer for a WireTransaction and attached signatures.
| <init> |
SignedTransaction(txBits: SerializedBytes<WireTransaction>, sigs: List<WithKey>)Container for a WireTransaction and attached signatures. |
| id |
val id: SecureHashA transaction ID is the hash of the WireTransaction. Thus adding or removing a signature does not change it. |
| sigs |
val sigs: List<WithKey> |
| tx |
val tx: WireTransactionLazily calculated access to the deserialised/hashed transaction data. |
| txBits |
val txBits: SerializedBytes<WireTransaction> |
| getMissingSignatures |
fun getMissingSignatures(): Set<PublicKey>Returns the set of missing signatures - a signature must be present for every command pub key and the Notary (if it is specified) |
| plus |
operator fun plus(sig: WithKey): SignedTransactionAlias for withAdditionalSignature to let you use Kotlin operator overloading. |
| verify |
fun verify(throwIfSignaturesAreMissing: Boolean = true): Set<PublicKey>Verify the signatures, deserialise the wire transaction and then check that the set of signatures found contains the set of pubkeys in the commands. If any signatures are missing, either throws an exception (by default) or returns the list of keys that have missing signatures, depending on the parameter. |
| verifySignatures |
fun verifySignatures(): UnitVerifies the given signatures against the serialized transaction data. Does NOT deserialise or check the contents to ensure there are no missing signatures: use verify() to do that. This weaker version can be useful for checking a partially signed transaction being prepared by multiple co-operating parties. |
| withAdditionalSignature |
fun withAdditionalSignature(sig: WithKey): SignedTransactionReturns the same transaction but with an additional (unchecked) signature |
| verifyToLedgerTransaction |
fun SignedTransaction.verifyToLedgerTransaction(identityService: IdentityService, attachmentStorage: AttachmentStorage): LedgerTransactionCalls verify to check all required signatures are present, and then uses the passed IdentityService to call WireTransaction.toLedgerTransaction to look up well known identities from pubkeys. |