corda / net.corda.testing.core / singleIdentity

singleIdentity

fun NodeInfo.singleIdentity(): Party

Extract a single identity from the node info. Throws an error if the node has multiple identities.