in a very noob way, i used flask to build API and bootstrap to makeup a (so called) frontend and ajax to handle requests in general it was all for training .
ChizCoin consists of 2 main parts :
- ChizCoin Node: Node's features: - Several Nodes can connect together and resolve chain conflicts between each other - (Simple) Proof of Work algorithm - RSA ecryption in transactions - Beautiful main page :") tss - Dashboard for miners
- ChizCoin Client: Client's features: - Public/Private key encryption is used in wallet generation - again , RSA encryption in generation transaction.
- The main source is Blockchain Python tutorial
- The second and very useful source is Jadi's blockchain tutorial playlist on Youtube
- The RSA encryption and generating wallet in details can be found in this awsome notebook
requirements can be found in requirement.txt file and can be installed using
pip3 install -r requirements.txt
go to the blockchain_node
folder and run :
python blockchain.py [-p port]
default port for node is 5000
but you can set different port number , for example python blockchain.py -p 5050
runs the node on porn number 5050
.
you can access Chiz Node by going to localhost:5000
(or port number instead of 5000
)
go to blockchain_client
folder and run
python blockchain_client [-p port]
default port for client is 8080
but you can set different port number.
you can access Chiz Client by going to localhost:8080
(or port number instead of 8080
)
Here's a thing