Creates an instance of PrivateKey.
The cryptographic algorithm.
The associated public key.
The private key implementation.
Private algThe cryptographic algorithm used for the key.
Private privThe internal private key implementation.
Private pubThe public key associated with this private key.
Static fromCreates a private key from a hexadecimal string.
A promise resolving to a PrivateKey instance.
The hexadecimal string of the private key.
The cryptographic algorithm to use.
Static fromCreates a private key from a PEM-encoded string.
A promise resolving to a PrivateKey instance.
The PEM-encoded string.
The cryptographic algorithm to use.
Static generateGenerates a new private key with the specified algorithm.
A promise resolving to a new PrivateKey instance.
The cryptographic algorithm to use.
Generated using TypeDoc
Represents a private key with associated public key and cryptographic algorithm. Provides methods for signing messages, exporting to PEM, and generating public keys.