Class NotaryChangeWireTransaction
-
- All Implemented Interfaces:
-
net.corda.core.contracts.NamedByHash
public final class NotaryChangeWireTransaction extends CoreTransaction
A special transaction for changing the notary of a state. It only needs specifying the state(s) as input(s), old and new notaries. Output states can be computed by applying the notary modification to corresponding inputs on the fly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
NotaryChangeWireTransaction.Component
-
Field Summary
Fields Modifier and Type Field Description private final List<StateRef>
inputs
private final List<StateRef>
references
private final Party
notary
private final Party
newNotary
private final SecureHash
networkParametersHash
private final List<TransactionState<ContractState>>
outputs
private final SecureHash
id
private final List<OpaqueBytes>
serializedComponents
private final DigestService
digestService
private final List<ContractState>
outputStates
-
Constructor Summary
Constructors Constructor Description NotaryChangeWireTransaction(List<OpaqueBytes> serializedComponents)
Old version of NotaryChangeWireTransaction constructor for ABI compatibility. NotaryChangeWireTransaction(List<StateRef> inputs, Party notary, Party newNotary)
NotaryChangeWireTransaction(List<OpaqueBytes> serializedComponents, DigestService digestService)
-
Method Summary
Modifier and Type Method Description List<StateRef>
getInputs()
The inputs of this transaction, containing state references only. List<StateRef>
getReferences()
The reference inputs of this transaction, containing the state references only. Party
getNotary()
If present, the notary for this transaction. final Party
getNewNotary()
Identity of the notary service to reassign the states to. SecureHash
getNetworkParametersHash()
Hash of the network parameters that were in force when the transaction was notarised. List<TransactionState<ContractState>>
getOutputs()
Ordered list of states defined by this transaction, along with the associated notaries. SecureHash
getId()
A privacy salt is not really required in this case, because we already used nonces in normal transactions and thus input state refs will always be unique. final List<OpaqueBytes>
getSerializedComponents()
Contains all of the transaction components in serialized form. final DigestService
getDigestService()
final NotaryChangeWireTransaction
copy(List<OpaqueBytes> serializedComponents)
Old version of NotaryChangeWireTransaction.copy for ABI compatibility. final NotaryChangeLedgerTransaction
resolve(ServicesForResolution services, List<TransactionSignature> sigs)
Resolves input states and network parameters and builds a NotaryChangeLedgerTransaction. final NotaryChangeLedgerTransaction
resolve(ServiceHub services, List<TransactionSignature> sigs)
Resolves input states and builds a NotaryChangeLedgerTransaction. -
Methods inherited from class net.corda.core.transactions.BaseTransaction
filterOutRefs, filterOutRefs, filterOutputs, filterOutputs, findOutRef, findOutRef, findOutput, findOutput, getOutput, getOutputStates, outRef, outRef, outRefsOfType, outRefsOfType, outputsOfType, outputsOfType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NotaryChangeWireTransaction
NotaryChangeWireTransaction(List<OpaqueBytes> serializedComponents)
Old version of NotaryChangeWireTransaction constructor for ABI compatibility.
-
NotaryChangeWireTransaction
NotaryChangeWireTransaction(List<StateRef> inputs, Party notary, Party newNotary)
-
NotaryChangeWireTransaction
NotaryChangeWireTransaction(List<OpaqueBytes> serializedComponents, DigestService digestService)
-
-
Method Detail
-
getInputs
List<StateRef> getInputs()
The inputs of this transaction, containing state references only.
-
getReferences
List<StateRef> getReferences()
The reference inputs of this transaction, containing the state references only.
-
getNotary
Party getNotary()
If present, the notary for this transaction. If absent then the transaction is not notarised at all. This is intended for issuance/genesis transactions that don't consume any other states and thus can't double spend anything.
-
getNewNotary
final Party getNewNotary()
Identity of the notary service to reassign the states to.
-
getNetworkParametersHash
SecureHash getNetworkParametersHash()
Hash of the network parameters that were in force when the transaction was notarised. Null means, that the transaction was created on older version of Corda (before 4), resolution will default to initial parameters.
-
getOutputs
List<TransactionState<ContractState>> getOutputs()
Ordered list of states defined by this transaction, along with the associated notaries.
-
getId
SecureHash getId()
A privacy salt is not really required in this case, because we already used nonces in normal transactions and thus input state refs will always be unique. Also, filtering doesn't apply on this type of transactions.
-
getSerializedComponents
final List<OpaqueBytes> getSerializedComponents()
Contains all of the transaction components in serialized form. This is used for calculating the transaction id in a deterministic fashion, since re-serializing properties may result in a different byte sequence depending on the serialization context.
-
getDigestService
final DigestService getDigestService()
-
copy
final NotaryChangeWireTransaction copy(List<OpaqueBytes> serializedComponents)
Old version of NotaryChangeWireTransaction.copy for ABI compatibility.
-
resolve
final NotaryChangeLedgerTransaction resolve(ServicesForResolution services, List<TransactionSignature> sigs)
Resolves input states and network parameters and builds a NotaryChangeLedgerTransaction.
-
resolve
final NotaryChangeLedgerTransaction resolve(ServiceHub services, List<TransactionSignature> sigs)
Resolves input states and builds a NotaryChangeLedgerTransaction.
-
-
-
-