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