Hash Pointers
Hash Pointers
Cryptocurrencies
Cryptographic Hash Functions, Hash Pointers and Data Structures, Digital Signatures, Public Keys as Identities, A
Simple Cryptocurrency.
Hash Pointer - DS
Hash Pointer - DS
• A hash pointer is simply a pointer to where some information is stored together with a cryptographic hash of
the information.
• Whereas a regular pointer gives you a way to retrieve the information, a hash pointer also gives you a way to
verify that the information hasn’t changed.
Hash pointer. A hash pointer is a pointer to where data is stored together with a cryptographic hash of the
value of that data at some fixed point in time.
• Block chain. A block chain is a linked list that is built with hash pointers instead of pointers.
• Merkle tree. In a Merkle tree, data blocks are grouped in pairs and the hash of each of these blocks is stored
in a parent node. The parent nodes are in turn grouped in pairs and their hashes stored one level up the
tree. This continues all the way up the tree until we reach the root node.
• Proof of membership. Another nice feature of Merkle trees is that, unlike the block chain that we built
before, it allows a concise proof of membership. Say that someone wants to prove that a certain data block
is a member of the Merkle Tree. As usual, we remember just the root. Then they need to show us this data
block, and the blocks on the path from the data block to the root. We can ignore the rest of the tree, as the
blocks on this path are enough to allow us to verify the hashes all the way up to the root of the tree.
Thank You