The trias-lab/iri repository is the main StreamNet reference implementation, for the design details, please see yellow paper [StreamNet]. The original iri reference could be found at [iri].
-* License: GPLv3
The preferred option is that you compile yourself. The second option is that you utilize the provided jar, which is released whenever there is a new update here: Github Releases.
Make sure to have Maven and Java 8 installed on your computer.
git clone https://github.com/triasteam/StreamNet.git
cd StreamNet/scripts/examples/one_node/
./conflux_dag.sh
cd ../../front_end/server
./run_go.sh
Make sure to have docker-ce 18+ installed on your computer.
cd StreamNet/scripts/examples
./run_docker.sh
AddNode
curl -X POST \
http://address:8000/AddNode \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d "{\"Attester\":\"<NODE1>\",\"Attestee\":\"<NODE2>\",\"Score\":<SCORE>}"
其中NODE1和NODE2为两个节点,Node1为Node2投了几分,SCORE为分数值
eg:curl -s -X POST http://127.0.0.1:8000/AddNode -H 'Content-Type:application/json' -H 'cache-control: no-cache' -d "{\"Attester\":\"192.168.130.1\",\"Attestee\":\"192.168.130.2\",\"Score\":1}"
QueryNode
curl -X POST \
http://address:8000/QueryNode \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d "{\"period\":<PERIOD>,\"numRank\":<MAX_NUMBER>}"
其中period和numrank的意思是找到第几阶段的排名前多少位
eg:curl -s -X POST http://127.0.0.1:8000/QueryNodes -H 'Content-Type:application/json' -H 'cache-control: no-cache' -d "{\"period\":1,\"numRank\":100}"
Please refer [Cluster deployment] for details of how to deploy multiple nodes.
Please refer [Frontend deployment] for details of how to deploy the frontend
Please refer [Portainer deployment] for details of how to leverage the portainer to manage containers
Zhaoming Yin, Junqing Wang, Yahui Wang, Haifeng Li, Huafeng Li