Bloom filter functions as used by Bitcoin's BIP37