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> |
| plus |
operator fun plus(sig: WithKey): SignedTransactionAlias for withAdditionalSignature to let you use Kotlin operator overloading. operator fun plus(sigList: Collection<WithKey>): SignedTransaction |
| verifySignatures |
fun verifySignatures(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 signers list. 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. |
| withAdditionalSignature |
fun withAdditionalSignature(sig: WithKey): SignedTransactionReturns the same transaction but with an additional (unchecked) signature |
| withAdditionalSignatures |
fun withAdditionalSignatures(sigList: Iterable<WithKey>): SignedTransaction |
| toLedgerTransaction |
fun SignedTransaction.toLedgerTransaction(services: ServiceHub): LedgerTransactionCalls verify to check all required signatures are present, and then calls WireTransaction.toLedgerTransaction with the passed in ServiceHub to resolve the dependencies, returning an unverified LedgerTransaction. |