Skip to content
项目

关于

a blockchain implementation in 200 lines of code.

商业与金融

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

naivechain

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/blocks
    
  • mine block

    curl --data "data=Some data to the first block" http://localhost:8080/mineBlock
    
  • add peer

    curl --data "peer=ws://localhost:7001" http://localhost:8080/addPeer
    
  • query peers

    curl http://localhost:8080/peers
    

探索相关项目

加载中…