/lightChain

This repo builds a light-weight blockchain (named lightChain) starting from scratch.

Primary LanguageGoGNU Lesser General Public License v3.0LGPL-3.0

lightChain

Several days ago, I learned the blockchain techniques from the online lectures Blockchain: techniques and applications, taught by Zhen Xiao from PKU. I was deeply attracted by the beauty of the underlying principles of the blockchain. To test the effect of learning, I build a light-weight blockchain (named lightChain) starting from scratch in this repo. When writing lightChain, I refer to several open-source projects such as the famous go-ethereum, the bitcoin/bitcoin , and several guidance-oriented blogs (see references).

In lightChain, we basically use PoW for the mining of new blocks. I may add the implementation of PoS and some other variants in the future. It depends. :-)

Steps Contents Progress
1 Add the blockchain cores
  • Add wallets ☑️
  • Implement the pseudo P2P network ☑️
  • Implement merkle tree ☑️
  • Update UTXO data structure ☑️
  • 2 Update the cli
  • Print lightChain ☑️
  • Print pointed transaction ☑️
  • List addresses ☑️
  • Reindex UTXO ☑️
  • 3 Publish the executable and docker image
  • Publish the executable ☑️
  • References