Skip to main content

fromHex

scrypt-ts-opcat v1.0.1


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

PrivateKey

A PrivateKey instance.