摘要: block/ block.go package blockchain import ( "bytes" "crypto/sha256" "encoding/gob" "log" ) type Block struct { Hash []byte Transactions []*Transaction 阅读全文
posted @ 2024-08-17 14:32 apeNote 阅读(23) 评论(0) 推荐(0) 编辑
摘要: part1: transaction.go package blockchain import ( "bytes" "crypto/sha256" "encoding/gob" "encoding/hex" "fmt" "log" ) type Transaction struct { ID []b 阅读全文
posted @ 2024-08-17 12:50 apeNote 阅读(26) 评论(0) 推荐(0) 编辑