corda / net.corda.core.transactions / ContractUpgradeFilteredTransaction

ContractUpgradeFilteredTransaction

data class ContractUpgradeFilteredTransaction : CoreTransaction

A filtered version of the ContractUpgradeWireTransaction. In comparison with a regular 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.

Types

FilteredComponent

Contains the serialized component and the associated nonce for computing the transaction id.

class FilteredComponent

Constructors

<init>

Old version of ContractUpgradeFilteredTransaction constructor for ABI compatibility.

ContractUpgradeFilteredTransaction(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>)

A filtered version of the ContractUpgradeWireTransaction. In comparison with a regular 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(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>, digestService: DigestService)

Properties

digestService

val digestService: DigestService

hiddenComponents

Hashes of the transaction components that are not revealed in this transaction. Required for computing the transaction id.

val hiddenComponents: Map<Int, SecureHash>

id

val id: SecureHash

inputs

The inputs of this transaction, containing state references only.

val inputs: List<StateRef>

networkParametersHash

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.

val networkParametersHash: SecureHash?

notary

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.

val notary: Party

outputs

Ordered list of states defined by this transaction, along with the associated notaries.

val outputs: List<TransactionState<ContractState>>

references

The reference inputs of this transaction, containing the state references only.

val references: List<StateRef>

visibleComponents

Transaction components that are exposed.

val visibleComponents: Map<Int, FilteredComponent>

Functions

copy

Old version of ContractUpgradeFilteredTransaction.copy for ABI compatibility.

fun copy(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>): ContractUpgradeFilteredTransaction