fromHex
@opcat-labs/scrypt-ts-opcat v1.0.4
@opcat-labs/scrypt-ts-opcat / PrivateKey / fromHex
Function: fromHex()
fromHex(
hex,network):PrivateKey
Defined in: node_modules/@opcat-labs/opcat/types/privatekey.d.cts:129
Creates a PrivateKey instance from a hexadecimal string.
Parameters
hex
string
The hexadecimal string representation of the private key.
network
Network
The network associated with the private key.
Returns
A PrivateKey instance.