@websign/sdk - v0.1.0
    Preparing search index...

    Interface FakeRequest

    A request the page made, as the fake saw it: assert on these in your tests.

    expect(fake.requests.at(-1)).toMatchObject({ type: "sign", hash: "SHA-256" });
    
    interface FakeRequest {
        type: "status" | "certificates" | "sign";
        hash?: HashAlgorithm;
        algorithms?: readonly SignatureAlgorithm[];
        certificate?: string;
        digest?: Uint8Array<ArrayBuffer>;
        cancelled?: boolean;
    }
    Index
    type: "status" | "certificates" | "sign"

    sign: the hash asked for.

    algorithms?: readonly SignatureAlgorithm[]

    The algorithms the page accepted, when it restricted them.

    certificate?: string

    sign: the preselected certificate's fingerprint.

    digest?: Uint8Array<ArrayBuffer>

    sign: the digest that was signed, once signed.

    cancelled?: boolean

    The page cancelled it (AbortSignal, or prepare threw).