Unit 3: Hash Functions, Cryptography, and Digital Signatures in Blockchain
Unit 3: Hash Functions, Cryptography, and Digital Signatures in Blockchain 1. Hash Function in Blockchain A hash function is a cryptographic algorithm that converts any input data into a fixed-size, unique string of characters (a hash value ). In blockchain, hash functions are crucial for: · Immutability: Each block includes the hash of the previous block, creating an unbreakable chain. Any alteration to an old block's data changes its hash, invalidating the subsequent block and making tampering easily detectable. · Data Integrity: Hashes act as a "digital fingerprint." If the hash of data matches a known hash, the data is confirmed to be unaltered. · Mining (Proof of Work): Miners in PoW blockchains compute hashes to find a specific output, securing the network and adding new blocks. · ...