Algorithm parameters.

interface Parameters {
    bloom: Parameters;
    contentCompression: Compression;
    decodeBloom: ((Bloom: typeof BloomFilter, comps: readonly Component[]) => Promise<BloomFilter>);
    decodeState: ((payload: Uint8Array) => State);
    encodeBloom: ((bf: BloomFilter) => Component[]);
    encodeBloomLength: number;
    encodeState: ((state: State) => Uint8Array);
    iblt: IBLT.Parameters;
    ibltCompression: Compression;
    joinPrefixSeqNum: ((ps: PrefixSeqNum) => PrefixSeqNumEncoded);
    threshold: number;
    toBloomKey: ((prefix: Name) => string | Uint8Array);
}

Hierarchy

  • Parameters
  • Parameters
    • Parameters

Properties

bloom: Parameters
contentCompression: Compression

Compression method for State in segmented object.

decodeBloom: ((Bloom: typeof BloomFilter, comps: readonly Component[]) => Promise<BloomFilter>)

Decode a Bloom filter.

decodeState: ((payload: Uint8Array) => State)

Decode State from buffer (without decompression).

encodeBloom: ((bf: BloomFilter) => Component[])

Encode a Bloom filter.

encodeBloomLength: number

Number of name components in an encoded Bloom filter.

encodeState: ((state: State) => Uint8Array)

Encode State to buffer (without compression).

ibltCompression: Compression

Compression method for IBLT in name component.

joinPrefixSeqNum: ((ps: PrefixSeqNum) => PrefixSeqNumEncoded)

Encode prefix and sequence number to byte array.

threshold: number

If IBLT diff has at least this number of entries, respond with SyncData right away.

toBloomKey: ((prefix: Name) => string | Uint8Array)

Convert a name prefix to a Bloom filter key.