Class: PrivateKey

PrivateKey(privateKey)

Represents a private key.

Constructor

new PrivateKey(privateKey)

Creates a private key from bytes or a hex string.
Parameters:
Name Type Description
privateKey Uint8Array | string Input string or byte array.
Source:

Methods

(static) random() → {PrivateKey}

Creates a random private key.
Source:
Returns:
Random private key.
Type
PrivateKey