Skip to content

ndr-brt/piccol-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piccol chain

Based on

Prerequisites

You need:

  • jdk 11
  • maven
  • docker
  • docker compose

Run it!

Execute
mvn clean package && docker-compose up

Than you can communicate with nodes on these url:

Put those urls in you browser to show node's data.

Api

Guestlist

  • POST /nodes join the net, body contains the hostname
  • GET /nodes retrieve the nodes' hostnames

Node

  • POST /transactions create a transaction, body contains the json representation
  • GET /mine mine a block
  • GET /blocks retrieve the blockchain
  • POST /addPeer make the peer extabilish a websocket connection. body contains the hostname

About

A small blockchain implementation in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published