zkt24/z2/backend/core/block.go
2024-04-25 13:51:47 +02:00

13 lines
190 B
Go

package core
type Block struct {
Hash string
Nonce int
Length int
PreviousHash string
}
func (b Block) Serialize() ([]byte, error) {
return []byte(b.Hash), nil
}