{"repo":"shinbatsu/merkle-blockchain","free":true,"listed":false,"github":"https://github.com/shinbatsu/merkle-blockchain","clone":"git clone https://github.com/shinbatsu/merkle-blockchain.git","description":"This project demonstrates the core building blocks of blockchain technology via Merkle trees","language":"Haskell","stars":19,"topics":["blockchain","hashing","merkle-tree"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Merkle Blockchain A minimal blockchain and Merkle tree implementation in Haskell. This project demonstrates the core building blocks of blockchain technology, including: - Merkle tree construction and visualization - Merkle proofs and proof verification - Block mining and chain validation - Transaction handling and receipts - Simple proof-of-work simulation - Functional and type-safe design using Haskell This is an educational project intended to illustrate how blockchains work under the hood. Project Structure File Description ------------------- ----------------------------------------------------------------------------- Hashable32.hs Hash type ( Word32 ) and Hashable class with combinators for hashing. Utils.hs Helper utilities for working with Maybe , Either , and lists. Blockchain.hs Core blockchain logic: blocks, transactions, mining, chain validation. MerkleTree.hs Merkle tree construction, proof generation, and proof verification. Doctests.hs Tests and usage examples with doctest . Getting Started 1. Install GHC and Cabal 2. Clone the repository 3. Run GHCi Load the blockchain module in GHCi: Algorithm 1. Transactions are hashed and assembled into a Merkle tree. 2. The Merkle root is stored in each block. 3. Blocks are linked together via their parent hash. 4. Proof-of-work ensures block integrity. 5. Merkle proofs allow lightweight transaction verification. How to use this thing 1. Define addresses and transactions 2. Mine a block 3. Validate the chain 4. Generate t","default_branch":null,"files":null,"tree":[],"storefront":"/r/shinbatsu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shinbatsu/merkle-blockchain/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}