Projects
View on GitHub
sunysen/naivechain
About
a blockchain implementation in 200 lines of code.
Business & FinanceMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalnaivechain
Naivechain - a blockchain implementation in 200 lines of code.
Quick start
git clone https://github.com/sunysen/naivechain.git
cd naivechain
mvn clean install
java -jar naivechain.jar 8080 7001
java -jar naivechain.jar 8081 7002 ws://localhost:7001
HTTP API
query blocks
curl http://localhost:8080/blocksmine block
curl --data "data=Some data to the first block" http://localhost:8080/mineBlockadd peer
curl --data "peer=ws://localhost:7001" http://localhost:8080/addPeerquery peers
curl http://localhost:8080/peers
Explore related projects
Loading…