热门

时间:2021-02-12 21:45:42
【文件属性】:
文件名称:热门
文件大小:94KB
文件格式:ZIP
更新时间:2021-02-12 21:45:42
Go 热门 relab/hotstuff是HotStuff协议的实现[1]。 它使用Gorums [2] RPC框架在副本之间发送消息。 运行示例 我们已经写坐落在一个示例客户端cmd/hotstuffclient ,位于一个例子服务器cmd/hotstuffserver 。 这些可以通过运行make来编译。 他们从工作目录中读取名为hotstuff.toml的配置文件。 在本地主机上运行的示例配置包含在项目的根目录中。 要为服务器生成公用密钥和专用密钥,请运行cmd/hotstuffkeygen/hotstuffkeygen -p 'r*' -n 4 --hosts 127.0.0.1 --tls keys 。 要启动四个服务器, scripts/run_servers.sh使用任何所需选项运行scripts/run_servers.sh 。 要启动客户端,请运行cmd/hotstuffcl
【文件预览】:
hotstuff-master
----block.go(2KB)
----Dockerfile(216B)
----.gitignore(500B)
----README.md(2KB)
----.github()
--------workflows()
----consensus()
--------chainedhotstuff()
----synchronizer()
--------synchronizer.go(2KB)
----.vscode()
--------launch.json(572B)
--------settings.json(39B)
----LICENSE(1KB)
----hotstuff.toml(687B)
----ansible.cfg(288B)
----hotstuff_test.go(3KB)
----go.mod(2KB)
----.golangci.yml(39B)
----genesis.go(240B)
----hotstuff.go(12KB)
----client()
--------client.pb.go(15KB)
--------client_gorums.pb.go(5KB)
--------client.proto(1KB)
----scripts()
--------run_servers.sh(1KB)
--------README.md(10B)
--------generate_config.sh(3KB)
--------google_cloud()
--------deploy.yml(2KB)
--------run.yml(2KB)
----config()
--------config.go(791B)
----backend()
--------gorums()
----internal()
--------testutil()
--------profiling()
--------mocks()
--------logging()
--------proto()
----go.sum(47KB)
----leaderrotation()
--------roundrobin.go(456B)
--------fixed.go(323B)
----Makefile(854B)
----blockchain()
--------blockchain.go(1KB)
----crypto()
--------keygen.go(5KB)
--------ecdsa()
----cmd()
--------hotstuffclient()
--------hotstuffserver()
--------hotstuffkeygen()
----tools.go(125B)

网友评论