Skip to main content

Function: parsePrivateKey()

parsePrivateKey(value): KeyObject

Accepts an Ed25519 private key as a PEM string (PKCS#8) and returns a normalized KeyObject.

Parameters​

value​

string

Returns​

KeyObject