@ethereumjs/util / isValidPublic
isValidPublic(
publicKey
,sanitize
):boolean
Defined in: packages/util/src/account.ts:507
Checks if the public key satisfies the rules of the curve secp256k1 and the requirements of Ethereum.
Uint8Array
The two points of an uncompressed key, unless sanitize is enabled
boolean
= false
Accept public keys in other formats
boolean