MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / PackAsGenesis

Method PackAsGenesis

types/block.go:109–111  ·  view source on GitHub ↗

PackAsGenesis generates the hash of the genesis block.

()

Source from the content-addressed store, hash-verified

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

Callers 2

generateGenesisBlockMethod · 0.80
CreateRandomBlockFunction · 0.80

Calls 1

ComputeHashMethod · 0.80

Tested by

no test coverage detected