Interface UtxoSignedTransaction
-
- All Implemented Interfaces:
-
net.corda.v5.ledger.common.transaction.TransactionWithMetadata
@DoNotImplement() public interface UtxoSignedTransaction implements TransactionWithMetadata
Defines a signed UTXO transaction.
Comparing with UtxoLedgerTransaction:
- It does not have access to the deserialized details.
- It has direct access to the signatures.
- It does not require a serializer.
UtxoSignedTransaction wraps the wire representation of the transaction. It contains one or more signatures, each one for a public key (including composite keys) that is mentioned inside a transaction state.
UtxoSignedTransaction is frequently passed around the network and stored. The identity of a transaction is the hash of Merkle root of the wrapped wire representation, therefore if you are storing data keyed by wire representations hash, be aware that multiple different UtxoSignedTransactions may map to the same key, and they could be different in important ways, like validity!
The signatures on a UtxoSignedTransaction might be invalid or missing: the type does not imply validity. A transaction ID should be the hash of the wrapped wire representation's Merkle tree root, therefore adding or removing a signature does not change it.
-
-
Method Summary
Modifier and Type Method Description abstract List<DigitalSignatureAndMetadata>
getSignatures()
Gets the DigitalSignatureAndMetadata signatures that have been applied to the current transaction. abstract List<StateRef>
getInputStateRefs()
Gets the StateRef instances of the inputs for the current transaction. abstract List<StateRef>
getReferenceStateRefs()
Gets the StateRef instances of the reference inputs for the current transaction. abstract List<StateAndRef<out Object>>
getOutputStateAndRefs()
Gets the StateAndRef instances of the outputs for the current transaction. abstract MemberX500Name
getNotaryName()
Gets the notary service MemberX500Name used for notarizing the current transaction. abstract PublicKey
getNotaryKey()
Gets the notary service PublicKey used for notarizing the current transaction. abstract TimeWindow
getTimeWindow()
Gets the validity TimeWindow for notarizing and finalizing the current transaction. abstract List<Command>
getCommands()
Gets the Command instances for the current transaction. abstract List<PublicKey>
getSignatories()
Gets the PublicKey instances for the signatories of the current transaction. abstract UtxoLedgerTransaction
toLedgerTransaction()
Converts the current UtxoSignedTransaction into a UtxoLedgerTransaction. -
-
Method Detail
-
getSignatures
@NotNull() abstract List<DigitalSignatureAndMetadata> getSignatures()
Gets the DigitalSignatureAndMetadata signatures that have been applied to the current transaction.
-
getInputStateRefs
@NotNull() abstract List<StateRef> getInputStateRefs()
Gets the StateRef instances of the inputs for the current transaction.
-
getReferenceStateRefs
@NotNull() abstract List<StateRef> getReferenceStateRefs()
Gets the StateRef instances of the reference inputs for the current transaction.
-
getOutputStateAndRefs
@NotNull() abstract List<StateAndRef<out Object>> getOutputStateAndRefs()
Gets the StateAndRef instances of the outputs for the current transaction.
-
getNotaryName
@NotNull() abstract MemberX500Name getNotaryName()
Gets the notary service MemberX500Name used for notarizing the current transaction.
-
getNotaryKey
@NotNull() abstract PublicKey getNotaryKey()
Gets the notary service PublicKey used for notarizing the current transaction.
-
getTimeWindow
@NotNull() abstract TimeWindow getTimeWindow()
Gets the validity TimeWindow for notarizing and finalizing the current transaction.
-
getCommands
@NotNull() abstract List<Command> getCommands()
Gets the Command instances for the current transaction.
-
getSignatories
@NotNull() abstract List<PublicKey> getSignatories()
Gets the PublicKey instances for the signatories of the current transaction.
-
toLedgerTransaction
@NotNull()@Suspendable() abstract UtxoLedgerTransaction toLedgerTransaction()
Converts the current UtxoSignedTransaction into a UtxoLedgerTransaction.
-
-
-
-