Function isCanonicalPubKey

  • 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.