corda / net.corda.core.identity / AnonymousParty

AnonymousParty

class AnonymousParty : AbstractParty

The AnonymousParty class contains enough information to uniquely identify a Party while excluding private information such as name. It is intended to represent a party on the distributed ledger.

Constructors

<init>

AnonymousParty(owningKey: PublicKey)

The AnonymousParty class contains enough information to uniquely identify a Party while excluding private information such as name. It is intended to represent a party on the distributed ledger.

Inherited Properties

owningKey

val owningKey: PublicKey

Functions

nameOrNull

fun nameOrNull(): CordaX500Name?

ref

fun ref(bytes: OpaqueBytes): PartyAndReference

Build a reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal ledger.

toString

fun toString(): String

Inherited Functions

equals

open fun equals(other: Any?): Boolean

Anonymised parties do not include any detail apart from owning key, so equality is dependent solely on the key

hashCode

open fun hashCode(): Int

ref

fun ref(vararg bytes: Byte): PartyAndReference

Build a reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal ledger.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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