Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyProof ¶
Types ¶
type MerkleTree ¶
type MerkleTree struct { Leaves []*leaf Size int }
func CreateMerkleTree ¶
func CreateMerkleTree(hashes [][]byte) *MerkleTree
func (*MerkleTree) GenerateProof ¶
func (m *MerkleTree) GenerateProof(i int) []*node
func (*MerkleTree) Root ¶
func (m *MerkleTree) Root() []byte
Click to show internal directories.
Click to hide internal directories.