net.corda.core.node / ServiceHub / legalIdentityKey

# legalIdentityKey

`open val legalIdentityKey: KeyPair`

Helper property to shorten code for fetching the Nodes KeyPair associated with the public legalIdentity Party from the key management service. Typical use is during signing in flows and for unit test signing.

TODO: legalIdentity can now be composed of multiple keys, should we return a list of keyPairs here? Right now the logic assumes the legal identity has a composite key with only one node