Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias SetProof

    The proof of a dataset: the number of rows and the sum of every row's hash modulo 2^256, as 64 lowercase hex digits. A sum does not depend on order, so a patch moves it by the hashes of the rows it replaces and adds, and neither side reads the whole collection to check a sync. It detects corruption, a missed apply and a half-applied patch. It is not a defence against a malicious server, which can send rows and a digest that agree.

    type SetProof = {
        count: number;
        digest: string;
        kind: "set";
    }
    Index
    count: number

    number of rows in the collection

    digest: string

    sum of the row hashes modulo 2^256, 64 hex digits

    kind: "set"