Static
computeStatic
fromCreate a new PrivateKey object from a bigint secret.
The secret bigint
A new PrivateKey object
Static
isChecks if the private key is valid.
The private key bytes
True if the private key is valid, false otherwise
Static
randomStatic method to generate random private key bytes.
Uint8Array of 32 random bytes.
Static
toConvert a private key bytes to a bigint secret.
The private key secret.
The private key secret as private key bytes.
Static
toConvert a PrivateKey or PrivateKeyBytes to a KeyPair.
The KeyPair object containing the public and private keys
Static
toConvert a bigint secret to private key bytes.
The private key bytes
The private key bytes as a bigint secret
Utility class for creating and working with PrivateKey objects. PrivateKeyUtils