a method that returns a securely-random 32-byte Uint8Array
Securely generate a 32-byte, cryptographically random seed (Uint8Array) for use in Hierarchical Deterministic (HD) Key derivation (see deriveHdPrivateNodeFromSeed).
To generate a single Secp256k1 private key, use generatePrivateKey.
Generated using TypeDoc
Securely generate a valid Secp256k1 private key.
By default, this function uses
crypto.getRandomValues
to produce sufficiently-random key material, but another source of randomness may also be provided.To generate an HD Key, use generateHdPrivateKey.