github.com/harveynw/blokechain@v0.0.0-20221114193833-615a6ea7bba4/README.md (about)

     1  # Blokechain
     2  
     3  A from-scratch zero dependency* implementation of various parts of the Bitcoin protocol, using the original whitepaper and guides online. Goal is to have a fully functioning wallet and node some time in the futureā„¢. Purely educational and not to be trusted in prod.
     4  
     5  
     6  ## <b>internal/script</b>
     7  
     8  A fully functioning Bitcoin script interpreter. Can execute P2PK, P2PKH, P2MS, P2SH transactions and anything else allowed by the spec (https://en.bitcoin.it/wiki/Script), except for Locktime opcodes which are still TODO.
     9  
    10  ## <b>internal/cryptography</b>
    11  
    12  This implements secp256k1 ECDSA as well as handling signatures, keypairs and hashing. The clever stuff here is really a port of Andrej Karpathy's excellent blog post: [A from-scratch tour of Bitcoin in Python](http://karpathy.github.io/2021/06/21/blockchain/).
    13  
    14  Had to include the /x/crypto module* as RIPEMD160 is not in the stdlib.
    15  
    16   
    17  ## <b>internal/chain</b>
    18  
    19  These are data structures representing blocks, transactions and merkle trees used in the protocol.
    20  
    21  ## <b>internal/miner</b>
    22  
    23  Block mining functionality.
    24  
    25  ## <b>internal/wallet</b>
    26  
    27  Keypair management and serialisation.