Skip to main content

Module bloom

Module bloom 

Source
Expand description

Bloom filter compatibility exports.

Runtime-agnostic bloom logic lives under proto::bloom; this module keeps the existing public crate::bloom path stable.

Structs§

BloomFilter
A Bloom filter for probabilistic set membership.
BloomState
State for managing Bloom filter announcements.

Enums§

BloomError
Errors related to Bloom filter operations.

Constants§

DEFAULT_FILTER_SIZE_BITS
Default filter size in bits (1KB = 8,192 bits).
DEFAULT_FILTER_SIZE_BYTES
Default filter size in bytes (1KB).
DEFAULT_HASH_COUNT
Default number of hash functions.
SIZE_CLASS_BYTES
Filter sizes by size_class: bytes = 512 << size_class
V1_SIZE_CLASS
Size class for v1 protocol (1 KB filters).