IdentityService.partyFromKey - corda

corda / net.corda.core.node.services / IdentityService / partyFromKey

# partyFromKey

`abstract fun partyFromKey(key: PublicKey): Party?`

Converts an owning PublicKey to the X500Name extended Party object if the Party has been previously registered with the IdentityService either as a well known network map identity, or as a part of flows creating and exchanging the identity.

### Parameters

`key` - The owning PublicKey of the Party.

Return
Returns a Party with a matching owningKey if known, else returns null.