An implementation of Naivecoin in Rust
- Things should be simple
- It should perform as well as possible without making things complicated
- Should be able to accomplish basic tasks, cryptocurrencies are expected to do
# run these command on different terminal emulators
cargo run # it runs with the default configuration
KEY_LOC=node/wallet2/private_key.pem HTTP_PORT=8001 P2P_PORT=5001 INITIAL="0.0.0.0:5000" cargo run
curl localhost:8000/blocks
curl -X POST localhost:8000/mineBlock
curl --data '{"address":"ADDRESS_OF_THE_SECOND_PEER", "amount":DESIRED_AMOUNT}' localhost:8000/mineTransaction
curl --data '{"address":"ADDRESS_OF_THE_SECOND_PEER", "amount":DESIRED_AMOUNT}' localhost:8000/sendTransaction
# then mine a block so it gets added to the blockchain
curl -X POST localhost:8000/mineBlock
curl localhost:8001/balance
# the balance should be DESIRED_AMOUNT
- Add UI for viewing and interacting with the blockchain
- Check security