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

class FilteredComponent

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

Constructors

<init>

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.

Properties

hiddenComponents

val hiddenComponents: Map<Int, SecureHash>

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

id

val id: SecureHash

inputs

val inputs: List<StateRef>

The inputs of this transaction, containing state references only.

networkParametersHash

val networkParametersHash: SecureHash?

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.

notary

val notary: Party

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.

outputs

val outputs: List<TransactionState<ContractState>>

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

references

val references: List<StateRef>

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

visibleComponents

val visibleComponents: Map<Int, FilteredComponent>

Transaction components that are exposed.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.