Skip to main content

isValidSerialized

scrypt-ts-opcat v1.0.1


scrypt-ts-opcat / HDPrivateKey / isValidSerialized

Function: isValidSerialized()

isValidSerialized(data, network): boolean

Defined in: node_modules/@opcat-labs/opcat/types/hdprivatekey.d.cts:167

Verifies that a given serialized private key in base58 with checksum format is valid.

Parameters

data

the serialized private key

string | Buffer

network

any

optional, if present, checks that the network provided matches the network serialized.

Returns

boolean