bloom-sol 0.0.3

Counting bloom filter, aimed for solana
Documentation
1
2
3
4
5
6
7
8
9
10
/// A simple Counting Bloom Filter implementation in Rust.
///
/// This allows for insertion, deletion, and membership queries with possible false positives.
/// Counters are u32 to handle multiple insertions of the same item.
pub struct CountingBloomFilter {
    pub boolean_counting: bool,
    pub size: usize,
    pub num_hashes: usize,
    pub counters: Vec<u8>,
}