interface Parameters {
    decodeContent: (payload: Uint8Array<ArrayBufferLike>) => Data[];
    encodeContent: (
        pubs: readonly Data[],
        maxSize: number,
    ) => [wire: Uint8Array<ArrayBufferLike>, count: number];
    hashPub: (pub: Data) => number;
    iblt: IBLT.Parameters;
    ibltCompression: Compression;
}

Hierarchy

  • Parameters
    • Parameters

Properties

decodeContent: (payload: Uint8Array<ArrayBufferLike>) => Data[]

Decode Content from buffer.

encodeContent: (
    pubs: readonly Data[],
    maxSize: number,
) => [wire: Uint8Array<ArrayBufferLike>, count: number]

Encode Content to buffer.

hashPub: (pub: Data) => number

Compute the hash of a publication.

ibltCompression: Compression

Compression method for IBLT in name component.