Bitcoin Internals: How Blocks use Merkle Trees in JavaScript
HTML-код
- Опубликовано: 16 окт 2024
- In this video I take a look into how Bitcoin internally uses Merkle trees to generate it's block Merkle roots. We delve into how this is computed and why it is so important to validate the state of transactions. We then move on to create a simple script in JavaScript that computes the Merkle root of a given block's transactions, and verifies this with the value stored within the block.
Discussed in the video:
www.bitcoinboo...
bitcointalk.or...
bitcoin.stacke...
The source-code for this video can be found here:
gist.github.co...
It's ok, but what is "JSB" and where did "r" and "d" come from, and somehow turn into "root" and "txs"?
Awesome work! Thank you, this was exactly what I was looking for.
Glad it has helped :)
Wow!, thanks a lot!
That really cures the impostor syndrome, how did you learn this? Please continue :)
how did you become such a FP god??
would've been nicer without the code golf.
Nah, that really cures the impostor syndrome