bufrr / znet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

znet

ZNet is a p2p relay network with verifiable VLC (virtual logic clock) causal order. This system is currently in poc stage.

Install

build from source

git clone https://github.com/bufrr/znet.git
cd znet
make

./build/znet -h

Run node with create mode: go run main.go --id Hello0 --domain 127.0.0.1

Run node with join mode: go run main.go --remote tcp://127.0.0.1:33333 --id Hello0 --p2p 33334 --ws 23334

How to test

go run examples/bin/basic.go

Benchmark

cd example
go test -bench='^\QBenchmarkStartCluster\E$'

About


Languages

Language:Go 98.1%Language:Shell 1.7%Language:Makefile 0.2%