fromRandom
scrypt-ts-opcat / PrivateKey / fromRandom
Function: fromRandom()
fromRandom(
network
?):PrivateKey
Defined in: node_modules/@opcat-labs/opcat/types/privatekey.d.cts:149
Instantiate a PrivateKey from random bytes
Parameters
network?
any
Either "livenet" or "testnet"
Returns
A new valid instance of PrivateKey