public 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.
Constructor and Description |
---|
NotaryChangeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents,
DigestService digestService)
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.
|
NotaryChangeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents)
Old version of
class NotaryChangeWireTransaction constructor for ABI compatibility. |
NotaryChangeWireTransaction(java.util.List<net.corda.core.contracts.StateRef> inputs,
Party notary,
Party newNotary)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<net.corda.core.utilities.OpaqueBytes> |
component1()
Contains all of the transaction components in serialized form.
|
DigestService |
component2() |
NotaryChangeWireTransaction |
copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents)
Old version of
NotaryChangeWireTransaction.copy for ABI compatibility. |
NotaryChangeWireTransaction |
copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents,
DigestService digestService)
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.
|
boolean |
equals(java.lang.Object p) |
DigestService |
getDigestService() |
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.
|
java.util.List<net.corda.core.contracts.StateRef> |
getInputs()
The inputs of this transaction, containing state references only.
|
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.
|
Party |
getNewNotary()
Identity of the notary service to reassign the states to.
|
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.
|
java.util.List<net.corda.core.contracts.TransactionState> |
getOutputs()
This transaction does not contain any output states, outputs can be obtained by resolving a
class NotaryChangeLedgerTransaction and applying the notary modification to inputs. |
java.util.List<net.corda.core.contracts.StateRef> |
getReferences()
The reference inputs of this transaction, containing the state references only.
|
java.util.List<net.corda.core.utilities.OpaqueBytes> |
getSerializedComponents()
Contains all of the transaction components in serialized form.
|
int |
hashCode() |
NotaryChangeLedgerTransaction |
resolve(ServicesForResolution services,
java.util.List<net.corda.core.crypto.TransactionSignature> sigs)
Resolves input states and network parameters and builds a
class NotaryChangeLedgerTransaction . |
NotaryChangeLedgerTransaction |
resolve(ServiceHub services,
java.util.List<net.corda.core.crypto.TransactionSignature> sigs)
Resolves input states and builds a
class NotaryChangeLedgerTransaction . |
java.lang.String |
toString() |
getInputs, getNetworkParametersHash, getReferences
checkBaseInvariants, filterOutRefs, filterOutputs, findOutRef, findOutput, getInputs, getNotary, getOutput, getOutputStates, getOutputs, getReferences, outRef, outRef, outRefsOfType, outputsOfType, toString
getId
public NotaryChangeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents, DigestService digestService)
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.
serializedComponents
- Contains all of the transaction components in serialized form.This is used for calculating the transaction id in a deterministic fashion, since re-serializing propertiesmay result in a different byte sequence depending on the serialization context.public NotaryChangeWireTransaction(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents)
Old version of class NotaryChangeWireTransaction
constructor for ABI compatibility.
class NotaryChangeWireTransaction
public NotaryChangeWireTransaction copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents)
Old version of NotaryChangeWireTransaction.copy
for ABI compatibility.
NotaryChangeWireTransaction.copy
public java.util.List<net.corda.core.contracts.StateRef> getInputs()
The inputs of this transaction, containing state references only.
public java.util.List<net.corda.core.contracts.StateRef> getReferences()
The reference inputs of this transaction, containing the state references only.
public 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.
public Party getNewNotary()
Identity of the notary service to reassign the states to.
public 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.
public java.util.List<net.corda.core.contracts.TransactionState> getOutputs()
This transaction does not contain any output states, outputs can be obtained by resolving a
class NotaryChangeLedgerTransaction
and applying the notary modification to inputs.
class NotaryChangeLedgerTransaction
public 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.
public NotaryChangeLedgerTransaction resolve(ServicesForResolution services, java.util.List<net.corda.core.crypto.TransactionSignature> sigs)
Resolves input states and network parameters and builds a class NotaryChangeLedgerTransaction
.
class NotaryChangeLedgerTransaction
public NotaryChangeLedgerTransaction resolve(ServiceHub services, java.util.List<net.corda.core.crypto.TransactionSignature> sigs)
Resolves input states and builds a class NotaryChangeLedgerTransaction
.
class NotaryChangeLedgerTransaction
public java.util.List<net.corda.core.utilities.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 propertiesmay result in a different byte sequence depending on the serialization context.
public DigestService getDigestService()
public java.util.List<net.corda.core.utilities.OpaqueBytes> component1()
Contains all of the transaction components in serialized form.
This is used for calculating the transaction id in a deterministic fashion, since re-serializing propertiesmay result in a different byte sequence depending on the serialization context.
public DigestService component2()
public NotaryChangeWireTransaction copy(java.util.List<? extends net.corda.core.utilities.OpaqueBytes> serializedComponents, DigestService digestService)
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.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)