A simple blockchain implementation for learning purpose. Proof of work (PoW) is used as a decentralized consensus mechanism.
Nestjs, TypeScript, Websockets
Network layer is able to connect and listen peers. After successfully connected to peers, syncs the chain. Network layer broadcasts transaction or a newly mined block to other connected peers.
Generate key-pairs, sign and verify data.
Blockchain layer is provide confidence in the accuracy of chain. Creates a first block which is called as Genesis Block. Validate and replace chain. Mine block and adjust difficulty
Create a wallet, sign or verify data. Create a new transaction with wallet key-pair.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod