Constructor
new PrivateKey(privateKey)
- Description:
Creates a private key from bytes or a hex string.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
privateKey |
Uint8Array | string | Input string or byte array. |
Classes
Members
NAME :string
- Description:
Byte array name (required because
constructor.name
is dropped during minification).
- Source:
Byte array name (required because constructor.name
is dropped during minification).
Type:
- string
SIZE :number
- Description:
Byte size of raw private key.
- Source:
Byte size of raw private key.
Type:
- number
Methods
(static) random() → {PrivateKey}
- Description:
Creates a random private key.
- Source:
Returns:
Random private key.
- Type
- PrivateKey