@me2em/pact
    Preparing search index...

    Function b64urlEncode

    • Unpadded base64url of bytes (RFC 4648 §5, canonical).

      Parameters

      • bytes: Uint8Array

        The bytes to encode.

      Returns string

      The unpadded base64url string (32 B → 43 chars).

      const ph = b64urlEncode(crypto.sha256(tbsBytes(event)));