Why BitCoin Uses BloomFilters?

By Bluehive | freethreads | 30 Mar 2020


Bitcoin uses a blockchain record of transactions among the participating nodes. Since the size of the record is huge, there is a thin participating node that is interested in a subset of the records.

But how to find the subset in the complete list of records. Bloom Filters help here. BF answers “does exist” query on a set.

> S = {A, C}

>Does A exist in a set S?
Yes (may not be true, so double-check with the DB or another mechanism)

>Does B exist in a set S?
No (definitely true)

Remember, Bloom Filter never returns False Positive answer.

How does it work?

So the thin nodes in a Blockchain share a BloomFilter of transactions with Full Nodes (ones that have a full copy of blockchain records). Full Node lookup its blockchain transaction records with the passed BloomFilter.

Each transaction is checked in the Bloom Filter. All positives are sent to the thin node. The thin node eliminates false positives.

Reference

How do you rate this article?

1



freethreads
freethreads

Notes on Distributed Systems, Containers, Kubernetes, Databases, Linux, Python, GoLang, C/C++

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.