func (m *CPPMerkleTree) AddLeafHash(hash []byte) uint64 {
	return uint64(C.AddLeafHash(m.peer, C.BYTE_SLICE(&hash)))
}
// AddLeafHash adds a leaf hash directly to the tree. Returns the position of
// the leaf in the tree.
func (m *CPPMerkleTree) AddLeafHash(hash []byte) uint64 {
	return uint64(C.AddLeafHash(m.peer, unsafe.Pointer(&hash[0]), C.size_t(len(hash))))
}