com.r3corda.core.contracts / OwnableState

OwnableState

interface OwnableState : ContractState

A contract state that can have a single owner.



Properties

owner abstract val owner: PublicKey

There must be a MoveCommand signed by this key to claim the amount

Inherited Properties

contract abstract val contract: Contract

An instance of the contract class that will verify this state.

participants abstract val participants: List<PublicKey>

A participant is any party that is able to consume this state in a valid transaction.

Functions

withNewOwner abstract fun withNewOwner(newOwner: PublicKey): <ERROR CLASS><CommandData, OwnableState>

Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone

Extension Functions

hash fun ContractState.hash(): SecureHash

Returns the SHA-256 hash of the serialised contents of this state (not cached)

Inheritors

FungibleAssetState interface FungibleAssetState<T, I> : OwnableState

Common elements of cash contract states.

SingleOwnerState data class SingleOwnerState : OwnableState, State
State data class State : OwnableState