【文件属性】:
文件名称:bloq:Golang中的区块链实现
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-08 16:55:25
Go
布洛克
Bloq是用Go编写的区块链框架。 很大程度上是出于我自己的理解,可能不用于生产。
用
区块链
您使用“生成块”作为构造函数的参数创建一个新的区块链。 然后,加载.env配置文件,并启动您选择的服务器(您可以启动不同类型的服务器,只需确保将它们配置在不同的端口上即可):
bloq := blockchain . New (blockchain. Block {
Index : 0 ,
Timestamp : time . Now (). String (),
Hash : "" ,
PrevHash : "" ,
Data : [] byte ( `{ "hello": "world" }` ),
})
err := godotenv . Load ()
if err != nil {
log . Fa
【文件预览】:
bloq-master
----pkg()
--------blockchain()
----internal()
--------api()
----.env(28B)
----main.go(533B)
----README.md(1KB)