Skip to content

neaos/HelloworldBlockchain

Repository files navigation

这是一个Helloworld级别的区块链系统,即一个简单的数字货币系统。

它包含了五个模块。
helloworld-blockchain-node:区块链节点,主要负责与其它节点沟通。启动区块链节点后,自动在整个区块链网络中寻找/发布:节点、区块、交易。
helloworld-blockchain-admin-node:区块链节点。启动区块链节点后,在浏览器输入 http://localhost:8555/ 进入区块链系统的控制面板,在控制面板即可从揽全局,并控制这个区块链系统。例如增删节点、提交交易至区块链网络等。
helloworld-blockchain-core:该模块是整个区块链系统的核心:实现了秘钥体系、挖矿、区块校验、同步其它节点的区块的逻辑。
helloworld-blockchain-dto:DTO包,该包中的类都是以字段最少为设计目标,用于在区块链网络中的不同节点传输区块数据。
helloworld-blockchain-model:区块链系统内部使用的model类,字段有冗余,但是用起来十分方便。

helloworld-blockchain-node模块的打包与发布 打包
cd helloworld-blockchain-node
mvn -Dmaven.test.skip=true clean package install spring-boot:repackage assembly:single
启动
cd target tar -zxvf helloworld-blockchain-node-*.tar.gz cd HelloworldBlockchainNode ./start.sh restart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published