package
0.0.0-20190512144547-bd70fc9e237a
Repository: https://github.com/azd1997/golang-mimblewimble-try.git
Documentation: pkg.go.dev

# Functions

将命令(字节数组)转为字符串并输出*/.
关闭数据库*/.
将命令(字符串)转为字节数组*/.
从request信息中抽取前12字节作为命令*/.
将数据进行编码得到字节数组*/.
处理请求节点信息地址*/刚上线的节点A向某一节点B请求周遭所有已知节点信息, 随后B返回他指知道的节点,A调用这个方法更新本地维护的已知节点集合随后向已知节点请求区块信息.
处理接收到区块时.
处理连接,对请求做出处理*/.
处理获取全部区块(哈希)存证请求.
处理获取数据请求.
处理节点接收到来自其他节点的存证,存证有区块存证和交易存证两种.
处理收到一笔交易信息.
接收到Version请求时.
挖矿,将本地交易打包发布*/.
检查某节点是否在已知节点集合中*/.
向已知节点集和中的所有节点发送GetBlocks的请求*/.
No description provided by the author
向某地址发送区块*/.
No description provided by the author
No description provided by the author
发送获取数据的请求*/.
向某节点发送存证*/.
向某一地址发送交易数据*/.
向某一地址发送版本信息*/.
开启服务器,监听请求并跳转至处理连接方法*/.

# Variables

No description provided by the author

# Structs

维护本地存储的网络节点集合.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Version主要用来处理最长合法链问题.