Skip to main content

Function: derivePublicKeyPem()

derivePublicKeyPem(privateKey): string

Derives the matching public key (PEM) from an Ed25519 private key, so a user only configures one secret.

Parameters​

privateKey​

string | KeyObject

Returns​

string