簡單區塊鏈實現

實現思路: 代碼  block.goapp package main import ( "time" "bytes" "crypto/sha256" ) type Block struct { //版本 Version int64 //前區塊的哈希值 PrevBlockHash []byte //當前區塊的哈希值,爲了簡化代碼 Hash []byte //梅克爾根 Mer
相關文章
相關標籤/搜索