
SPV
Simple Payment Verification in Bitcoin is a very impressive algorithm, because any device can keep a full blockchain with a little size of the database.
So, how does Bitcoin do that thing?
Header Is Everything
In Bitcoin, the most important thing is header. In last blog, we learned that you can verify a block only use its header and you also can get a full chain with headers.
Merkle Tree Is The Key
Bitcoin use Merkle Tree to calculate the hash of transations inside the block and put it into the header to do the math. So if you verified the header, you also verified the transations. Therefore, you don’t need to worried about any double spend or something because all these will be verified by next blocks.
Now, you get a full verified chain and merkle trees in the block. The next thing you need is your transations and index of your transation. The benefit of merkle tree is you won’t need the whole data to verify one data. You just need to know yours any where it should be.
Benefit of SPV
- You have a full chain, so you don’t need to relay on any full node to complete verify.
- You don’t need all information. You can just get the information you need to verify transations, which save a lot of space.
- You can ask for information from any node you want and you don’t need to worry about being lied.




近期评论