Projetos
Ver no GitHub
sunysen/naivechain
Sobre
a blockchain implementation in 200 lines of code.
Negócios e finançasCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
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 projetos relacionados
Carregando…