Javascript implementation of the Ethereum bloom filter
npm install eth-bloomfilter
const EBF = require('eth-bloomfilter')
const filter = new EBF()
filter.add(Buffer.from('hi'))
filter.has(Buffer.from('hi'))
filter = new EBF()Make a new bloom filter.
filter.bufferThe underlying 256 byte buffer containing the filter
filter.add(buf)Add a buffer to the filter
bool = filter.has(buf)Check if a buffer is in the filter
MIT