摘要:
block/ block.go package blockchain import ( "bytes" "crypto/sha256" "encoding/gob" "log" ) type Block struct { Hash []byte Transactions []*Transaction 阅读全文
摘要:
part1: transaction.go package blockchain import ( "bytes" "crypto/sha256" "encoding/gob" "encoding/hex" "fmt" "log" ) type Transaction struct { ID []b 阅读全文