isValid
scrypt-ts-opcat / PrivateKey / isValid
Function: isValid()
isValid(
data
,network
?):boolean
Defined in: node_modules/@opcat-labs/opcat/types/privatekey.d.cts:165
Check if the parameters are valid
Parameters
data
string
The encoded data in various formats
network?
any
Either "livenet" or "testnet"
Returns
boolean
If the private key is would be valid