//hashmerklebranches takes two hashes .treated as the left and right tress
//nodes. and return the hash of their concreation. this is a helper function
//used to aid in the generation of a merkle tree.
hashmerklebranches takes two hashes .treated as the left and right tress
nodes. and return the hash of their concreation. this is a helper function
used to aid in the generation of a merkle tree.
// hashmerklebranches takes two hashes . treated as the left and right tress // nodes . and return the hash of their concreation . this is a helper function // used to aid in the generation of a merkle tree .
func HashMerkleBranches(left *chainhash.Hash, right *chainhash.Hash) *chainhash.Hash {
	var hash [chainhash.HashSize * 2]byte
	copy(hash[:chainhash.HashSize], left[:])
	copy(hash[chainhash.HashSize:], right[:])
	newHash := chainhash.DoubleHashH(hash[:])
	return &newHash
}
func HashMerkleBranches ( left * chainhash . Hash , right * chainhash . Hash ) * chainhash . Hash { var hash [ chainhash . HashSize * 2 ] byte copy ( hash [ : chainhash . HashSize ] , left [ : ] ) copy ( hash [ chainhash . HashSize : ] , right [ : ] ) newHash := chainhash . DoubleHashH ( hash [ : ] ) return & newHash }
hashmerklebranches takes two hashes .treated as the left and right tress
nodes.
hashmerklebranches takes two hashes . treated as the left and right tress nodes .
//concatenate the left and right nodes.