Skip to main content

isCanonicalPubKey

reddcoinjs-lib v7.0.1-rdd.1Docs


reddcoinjs-lib v7.0.1-rdd.1 / script / isCanonicalPubKey

Function: isCanonicalPubKey()

isCanonicalPubKey(buffer): boolean

Checks if the provided buffer is a canonical public key.

Parameters

buffer: Uint8Array

The buffer to check, expected to be a Uint8Array.

Returns

boolean

A boolean indicating whether the buffer is a canonical public key.

Defined in

ts_src/script.ts:297