Skip to main content

fromString

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / HDPublicKey / fromString

Function: fromString()

fromString(arg): HDPublicKey

Defined in: node_modules/@opcat-labs/opcat/types/hdpublickey.d.cts:187

Creates an HDPublicKey instance from a string representation.

Parameters

arg

string

The string to convert to an HDPublicKey.

Returns

HDPublicKey

A new HDPublicKey instance.

Throws

Throws if the input is not a valid string.