mmr

package
v3.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MMR

type MMR struct {
	// contains filtered or unexported fields
}

MMR exposes methods for retrieval of MMR data

func NewMMR

func NewMMR(c client.Client) *MMR

NewMMR creates a new MMR struct

func (*MMR) GenerateProof

func (c *MMR) GenerateProof(leafIndex uint64, blockHash types.Hash) (types.GenerateMMRProofResponse, error)

GenerateProof retrieves a MMR proof and leaf for the specified leave index, at the given blockHash (useful to query a proof at an earlier block, likely with antoher MMR root)

func (*MMR) GenerateProofLatest

func (c *MMR) GenerateProofLatest(leafIndex uint64) (types.GenerateMMRProofResponse, error)

GenerateProofLatest retrieves the latest MMR proof and leaf for the specified leave index

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL