function isCanonicalPubKey(buffer) {
  return types.isPoint(buffer);
}
Checks if the provided buffer is a canonical public key.

@param buffer - The buffer to check, expected to be a Uint8Array.
@returns A boolean indicating whether the buffer is a canonical public key.