corda / net.corda.core.node.services / KeyManagementService / freshKey

freshKey

@Suspendable abstract fun freshKey(): PublicKey

Generates a new random KeyPair and adds it to the internal key storage. Returns the public part of the pair.

@Suspendable abstract fun freshKey(externalId: UUID): PublicKey

Generates a new random KeyPair and adds it to the internal key storage. Associates the public key to an external ID. Returns the public key part of the pair.