Function assertCompactFixedHexBlobBuffer

Asserts that the provided buffer is of a specific length and does not contain leading zeros.

  • Parameters

    • buffer: Uint8Array

      The buffer to validate.

    • context: string

      Descriptive context for error messages, usually representing the caller's identity.

    • bytes: number

      The expected maximum number of bytes that the buffer can contain.

    Returns void