public class ContractUpgradeFilteredTransaction extends CoreTransaction
A filtered version of the class ContractUpgradeWireTransaction
. In comparison with a regular class FilteredTransaction
, there
is no flexibility on what parts of the transaction to reveal – the inputs, notary and network parameters hash fields are always visible and the
rest of the transaction is always hidden. Its only purpose is to hide transaction data when using a non-validating notary.
Modifier and Type | Class and Description |
---|---|
static class |
ContractUpgradeFilteredTransaction.FilteredComponent
Contains the serialized component and the associated nonce for computing the transaction id.
|
Constructor and Description |
---|
ContractUpgradeFilteredTransaction(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents,
java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents,
DigestService digestService)
A filtered version of the
class ContractUpgradeWireTransaction . In comparison with a regular class FilteredTransaction , there
is no flexibility on what parts of the transaction to reveal – the inputs, notary and network parameters hash fields are always visible and the
rest of the transaction is always hidden. Its only purpose is to hide transaction data when using a non-validating notary. |
ContractUpgradeFilteredTransaction(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents,
java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents)
Old version of
class ContractUpgradeFilteredTransaction constructor for ABI compatibility. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> |
component1()
Transaction components that are exposed.
|
java.util.Map<java.lang.Integer,net.corda.core.crypto.SecureHash> |
component2()
Hashes of the transaction components that are not revealed in this transaction.
|
DigestService |
component3() |
ContractUpgradeFilteredTransaction |
copy(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents,
java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents)
Old version of
ContractUpgradeFilteredTransaction.copy for ABI compatibility. |
ContractUpgradeFilteredTransaction |
copy(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents,
java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents,
DigestService digestService)
A filtered version of the
class ContractUpgradeWireTransaction . In comparison with a regular class FilteredTransaction , there
is no flexibility on what parts of the transaction to reveal – the inputs, notary and network parameters hash fields are always visible and the
rest of the transaction is always hidden. Its only purpose is to hide transaction data when using a non-validating notary. |
boolean |
equals(java.lang.Object p) |
DigestService |
getDigestService() |
java.util.Map<java.lang.Integer,net.corda.core.crypto.SecureHash> |
getHiddenComponents()
Hashes of the transaction components that are not revealed in this transaction.
|
SecureHash |
getId() |
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 |
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()
Ordered list of states defined by this transaction, along with the associated notaries.
|
java.util.List<net.corda.core.contracts.StateRef> |
getReferences()
The reference inputs of this transaction, containing the state references only.
|
java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> |
getVisibleComponents()
Transaction components that are exposed.
|
int |
hashCode() |
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 ContractUpgradeFilteredTransaction(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents, java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents, DigestService digestService)
A filtered version of the class ContractUpgradeWireTransaction
. In comparison with a regular class FilteredTransaction
, there
is no flexibility on what parts of the transaction to reveal – the inputs, notary and network parameters hash fields are always visible and the
rest of the transaction is always hidden. Its only purpose is to hide transaction data when using a non-validating notary.
visibleComponents
- Transaction components that are exposed.hiddenComponents
- Hashes of the transaction components that are not revealed in this transaction.Required for computing the transaction id.class ContractUpgradeWireTransaction
,
class FilteredTransaction
public ContractUpgradeFilteredTransaction(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents, java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents)
Old version of class ContractUpgradeFilteredTransaction
constructor for ABI compatibility.
class ContractUpgradeFilteredTransaction
public ContractUpgradeFilteredTransaction copy(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents, java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents)
Old version of ContractUpgradeFilteredTransaction.copy
for ABI compatibility.
ContractUpgradeFilteredTransaction.copy
public java.util.List<net.corda.core.contracts.StateRef> getInputs()
The inputs of this transaction, containing 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 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 SecureHash getId()
public java.util.List<net.corda.core.contracts.TransactionState> getOutputs()
Ordered list of states defined by this transaction, along with the associated notaries.
public java.util.List<net.corda.core.contracts.StateRef> getReferences()
The reference inputs of this transaction, containing the state references only.
public java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> getVisibleComponents()
Transaction components that are exposed.
public java.util.Map<java.lang.Integer,net.corda.core.crypto.SecureHash> getHiddenComponents()
Hashes of the transaction components that are not revealed in this transaction.
Required for computing the transaction id.
public DigestService getDigestService()
public java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> component1()
Transaction components that are exposed.
public java.util.Map<java.lang.Integer,net.corda.core.crypto.SecureHash> component2()
Hashes of the transaction components that are not revealed in this transaction.
Required for computing the transaction id.
public DigestService component3()
public ContractUpgradeFilteredTransaction copy(java.util.Map<java.lang.Integer,net.corda.core.transactions.ContractUpgradeFilteredTransaction.FilteredComponent> visibleComponents, java.util.Map<java.lang.Integer,? extends net.corda.core.crypto.SecureHash> hiddenComponents, DigestService digestService)
A filtered version of the class ContractUpgradeWireTransaction
. In comparison with a regular class FilteredTransaction
, there
is no flexibility on what parts of the transaction to reveal – the inputs, notary and network parameters hash fields are always visible and the
rest of the transaction is always hidden. Its only purpose is to hide transaction data when using a non-validating notary.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)