class AnonymousParty : Destination, 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.
Anonymous parties can be used to communicate using the FlowLogic.initiateFlow method. Message routing is simply routing to the well-known Party the anonymous party belongs to. This mechanism assumes the party initiating the communication knows who the anonymous party is.
<init> |
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. AnonymousParty(owningKey: PublicKey) |
nameOrNull |
fun nameOrNull(): CordaX500Name? |
ref |
Build a reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal ledger. fun ref(bytes: OpaqueBytes): PartyAndReference |
toString |
fun toString(): String |
create |
Factory method to be used in preference to the constructor. fun create(owningKey: PublicKey): AnonymousParty |