- Clone this project using terminal or zip it.
- Open folder containing this project and run terminal
- All users intially are provided with 50 tokens.
- All nodes in network are hard nodes i.e they will can make transaction as well as mine a block.
- Transaction fees rate is 5% will be dedcuted from your account and will be credited to miner account upon successful addition of block into network.
- For now upon addition of 2 transaction in transaction book, everyone starts mining.
- For transaction you need to have wallet i.e private and public key pair , to generated key pair run below command and enter your name ''' python3 generate_wallet.py '''
- Your key pairs are saved in your wallet with your name
- Now you have your key pair , then you are ready to make transaction in blockchain network 😄
- If network isn't created , then first run python3 client.py , add your port number and for first time connection(i.e for first node) enter -1.
- Above step creates blockchain network.
- Run ''' python3 client.py ''' , enter your port number.
- For getting connected to network enter port number of any node which is connected in network.
After getting connected to network you will be prompted with following options
- Create transaction
- Getting information of last block of network
- Getting list of available transaction
- Getting information about your wallet
- After pressing 1, you will be asked for your name to fetch your wallet credentials.(Enter same name which you have typed while wallet generation).
- Then you, will be asked for reciever's name, enter his/her name.
- After that you will be asked for transaction amount,
- If all entries are legitimate, then your transaction will be recored in transaction book of every miner.
- As soon as number of transactions are sufficient in transaction book , then upon successfull mining you will be notified accordingly.
- Hurray your transaction is successfully added in network now 😄