Hash() computes, sets, and returns the BlockHash
()
| 199 | |
| 200 | // Hash() computes, sets, and returns the BlockHash |
| 201 | func (x *Block) Hash() ([]byte, ErrorI) { return x.BlockHeader.SetHash() } |
| 202 | |
| 203 | // BytesToBlockHash() converts block bytes into a block hash |
| 204 | func (x *Block) BytesToBlockHash(blockBytes []byte) (hash []byte, err ErrorI) { |