lacewing - v2.0.1
    Preparing search index...

    Type Alias LacewingKey<Alg>

    A key bound to exactly one algorithm at import time. The algorithm travels in the type parameter, so a LacewingKey<"ES256"> cannot be passed where a LacewingKey<"HS256"> is expected.

    type LacewingKey<Alg extends string = string> = {
        __brand: "LacewingKey";
        algorithm: Alg & ValidAlg;
        key: unknown;
        keyType: "public" | "private" | "secret";
    }

    Type Parameters

    • Alg extends string = string
    Index
    __brand: "LacewingKey"
    algorithm: Alg & ValidAlg
    key: unknown

    The underlying CryptoKey / raw secret. Internal - do not touch.

    keyType: "public" | "private" | "secret"