PackAsGenesis generates the hash of the genesis block.
()
| 107 | |
| 108 | // PackAsGenesis generates the hash of the genesis block. |
| 109 | func (b *Block) PackAsGenesis() (err error) { |
| 110 | return b.SignedHeader.ComputeHash() |
| 111 | } |
| 112 | |
| 113 | // Verify verifies the merkle root and header signature of the block. |
| 114 | func (b *Block) Verify() (err error) { |
no test coverage detected