Tiny Congress Frontend
    Preparing search index...

    Interface for the crypto module functions exposed by WASM

    interface CryptoModule {
        decode_base64url: (encoded: string) => Uint8Array;
        derive_kid: (publicKey: Uint8Array) => string;
        encode_base64url: (bytes: Uint8Array) => string;
    }
    Index

    Properties

    decode_base64url: (encoded: string) => Uint8Array

    Decode a base64url string to bytes

    derive_kid: (publicKey: Uint8Array) => string

    Derive a Key ID from a public key: base64url(SHA-256(pubkey)[0:16])

    encode_base64url: (bytes: Uint8Array) => string

    Encode bytes as base64url (RFC 4648) without padding