Versions in this module Expand all Collapse all v1 v1.0.2 Apr 29, 2022 v1.0.0 Apr 29, 2022 Changes in this version + func VerifyBTCProof(proofSteps []ProofStep, targetHash []byte, merkleRoot []byte) bool + func VerifyProof(proofSteps []ProofStep, targetHash []byte, merkleRoot []byte) bool + type MerkleTree struct + Leaves []*Node + Nodes []*Node + Root []byte + func (mt *MerkleTree) AddLeaf(hash []byte) + func (mt *MerkleTree) AddLeaves(hashes [][]byte) + func (mt *MerkleTree) GetLeaf(index int) *Node + func (mt *MerkleTree) GetLeafCount() int + func (mt *MerkleTree) GetMerkleRoot() []byte + func (mt *MerkleTree) GetProof(index int) []ProofStep + func (mt *MerkleTree) MakeBTCTree() + func (mt *MerkleTree) MakeTree() + func (mt *MerkleTree) Reset() + type Node struct + Hash []byte + IsLeftNode bool + IsRoot bool + Parent *Node + Sibling *Node + type ProofStep struct + Left bool + Value []byte