Documentation
¶
Index ¶
- type InclusionProof
- type MMR
- func (mmr *MMR) AddLeaf(leaf []byte) crypto.Hash
- func (mmr *MMR) GenerateInclusionProof(leafIndex uint64) (*InclusionProof, error)
- func (mmr *MMR) LeafIndex(leaf []byte) (uint64, error)
- func (mmr *MMR) NumLeaves() uint64
- func (mmr *MMR) NumPeaks() uint64
- func (mmr *MMR) Restore(snapshot Snapshot) error
- func (mmr *MMR) Root() crypto.Hash
- func (mmr *MMR) Size() uint64
- func (mmr *MMR) Snapshot() Snapshot
- func (mmr *MMR) VerifyInclusionProof(proof *InclusionProof) bool
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InclusionProof ¶
type MMR ¶
type MMR struct {
// contains filtered or unexported fields
}
func NewMMRFromSnapshot ¶
func (*MMR) GenerateInclusionProof ¶
func (mmr *MMR) GenerateInclusionProof(leafIndex uint64) (*InclusionProof, error)
func (*MMR) VerifyInclusionProof ¶
func (mmr *MMR) VerifyInclusionProof(proof *InclusionProof) bool
Click to show internal directories.
Click to hide internal directories.