Blockchain technology is not merely a data structure; it is a mathematical construct built on three pillars of cryptography: collision-resistant hashing, structured data integrity via Merkle Trees, and asymmetric digital signatures.
A Merkle Tree (or binary hash tree) allows for efficient and secure verification of large data structures. In a blockchain, it is used to summarize all transactions in a block into a single Merkle Root.
Consider a block with four transactions: T_1, T_2, T_3, T_4.
[ Merkle Root ]
/ \
[H12] [H34]
/ \ / \
[H1] [H2] [H3] [H4]
| | | |
[T1] [T2] [T3] [T4]
Engineering Utility: To proveT_3is in the block, a node only needsH_4andH_{12}(the "Merkle Path"). Verification complexity isO(\log n), enabling "SPV" (Simplified Payment Verification) nodes.
The security of the chain depends on the Collision Resistance of the hash function (typically SHA-256).
A hash functionHis collision-resistant if it is computationally infeasible to find two distinct inputsxandysuch thatH(x) = H(y).
The Elliptic Curve Digital Signature Algorithm (ECDSA) enables users to prove ownership of an address (identity) without a central certificate authority.
Blockchain systems (like Bitcoin and Ethereum) use the secp256k1 curve, defined by the equation:
Why it enables Decentralized Identity: The "Discrete Log Problem" on elliptic curves ensures that whileKis easily computed fromk, it is impossible to derivekfromK. This creates a mathematical proof of "intent" that is verifiable by any node in the network using only the public information, eliminating the need for a central identity server.