zkt24/z2/backend/core/block.go

13 lines
190 B
Go
Raw Permalink Normal View History

2024-04-25 11:51:47 +00:00
package core
type Block struct {
Hash string
Nonce int
Length int
PreviousHash string
}
func (b Block) Serialize() ([]byte, error) {
return []byte(b.Hash), nil
}