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

Function MergeTwoHash

merkle/merkletrie.go:80–83  ·  view source on GitHub ↗

MergeTwoHash computes the hash of the concatenate of two hash.

(l *hash.Hash, r *hash.Hash)

Source from the content-addressed store, hash-verified

78
79// MergeTwoHash computes the hash of the concatenate of two hash.
80func MergeTwoHash(l *hash.Hash, r *hash.Hash) *hash.Hash {
81 result := hash.THashH(append(append([]byte{}, (*l)[:]...), (*r)[:]...))
82 return &result
83}

Callers 2

TestMergeTwoHashFunction · 0.85
NewMerkleFunction · 0.85

Calls 1

THashHFunction · 0.92

Tested by 1

TestMergeTwoHashFunction · 0.68