13 lines
190 B
Go
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
|
||
|
}
|