bloomfilter
— A NEO specific bloomfilter implementation¶
While ready to install 3rd party bloom filter implementations exist on PyPi, they unfortunately do not comply with the NEO implementation.
Bloomfilter’s can be broadcasted over the network and thus there is a need to have identical results.
-
class
neo3.core.cryptography.bloomfilter.
BloomFilter
(m, k, ntweak, elements=None)¶ Bases:
object
BloomFilter implementation conforming to NEO’s implementation. # noqa
- Parameters
-
add
(element)¶ Add an element to the filter.