MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / mergeHash

Function mergeHash

merkle/merkletrie_test.go:47–50  ·  view source on GitHub ↗
(h0 *hash.Hash, h1 *hash.Hash)

Source from the content-addressed store, hash-verified

45}
46
47func mergeHash(h0 *hash.Hash, h1 *hash.Hash) *hash.Hash {
48 h := hash.THashH(append(h0[:], h1[:]...))
49 return &h
50}
51
52// nextPowerOfTwo and BuildMerkleTreeStore is copy from github.com/btcsuite/btcd/blockchain/merkle.go
53// nextPowerOfTwo returns the next highest power of two from a given number if

Callers 2

TestMergeTwoHashFunction · 0.85
buildMerkleTreeStoreFunction · 0.85

Calls 1

THashHFunction · 0.92

Tested by

no test coverage detected