This repository is for the task submission of KBS.
made by: Nakshatra (22CE30021)
In this project I have tried to replicate a basic blockchain system where users can create transactions and it will also show their balance in the account after each transaction.
checklists (things I accomplished) :
- Design the Blockchain Structure ( created classes for Block, Blockchain, Transactions and a hashing algorithm)
- Implement Block Creation and Chain Validation (Creating and validating each block that will be added in the blockchain)
- Implement Basic Consensus Algorithm (I have created functions to mine blocks and also give rewards miners)
- Transaction Management (Signing each transaction and having a basic info on who is doing transaction to whom and keeping its record).
The first error occured at the I tried to implement a key based system where users can do transactions using their personal keys (i.e they can only do transactions using their key and someone else's. otherwise it will throw an error. To implement this specific functions, I found a Youtube tutorial after which I used the elliptic library for JS. This is the part which has caused issue in the code. after importing the library and changing the code to adjust it. It has created issues. so signing transactions is not implemented correctly.
The Final Code has errors and is not running properly.Due to the errors in the main code I was not able to design any dront end input/output based system.