blockchain:从乐趣开始的P2P区块链开发

时间:2021-04-16 13:09:18
【文件属性】:
文件名称:blockchain:从乐趣开始的P2P区块链开发
文件大小:23KB
文件格式:ZIP
更新时间:2021-04-16 13:09:18
golang blockchain p2p blockchain-technology p2p-network 仅限pmh /区块链 可能效率低下的区块链 正在进行中多次磋商如果您有任何改进,想法或问题,请使用“选项卡。 块状结构 每个块Head , Body和Tail 。 头:座头 这是有关该块的信息所在的位置。 它总共包含75 Bytes 。 type BlockHead struct { Index uint16 // 2 Bytes CreatedAt uint32 // 4 Bytes PrevHash [] byte // 64 Bytes limit Nonce uint32 // 4 Bytes Difficulty uint8 // 1 Byte } 身体:BlockBody 块数据被保存。 长度至少为1个字节,没有最大长度限制。 type BlockBody struct { Flag BodyFlags // 1 Byte M
【文件预览】:
blockchain-main
----go.mod(170B)
----main.go(2KB)
----utils()
--------utils.go(684B)
----.github()
--------FUNDING.yml(562B)
--------ISSUE_TEMPLATE()
--------workflows()
----go.sum(14KB)
----src()
--------io_test.go(526B)
--------peer.go(973B)
--------types.go(645B)
--------block_test.go(4KB)
--------chain_test.go(1KB)
--------io.go(1KB)
--------chain.go(2KB)
--------consts.go(244B)
--------block.go(3KB)
----LICENSE(1KB)
----README.md(4KB)
----SECURITY.md(520B)
----CODE_OF_CONDUCT.md(5KB)
----.gitignore(287B)

网友评论