• 2024-08-07实现区块链golang(一)
    golangpackagemainimport("bytes""crypto/sha256""fmt")typeBlockChainstruct{blocks[]*Block}typeBlockstruct{Hash[]byteData[]bytePrevHash[]byte}func(b*Block)De