mpt

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MptHeader

type MptHeader struct {
	Prefix  byte
	Nibbles []byte
}

func (*MptHeader) IsLeaf

func (mh *MptHeader) IsLeaf() bool
type MptLink struct {
	Hash []byte
	// contains filtered or unexported fields
}

type MptNode

type MptNode struct {
	Header *MptHeader
	Link   []*MptLink
	Data   []byte
}

refer service/txresult/receiptlist.go:59 receiptList.GetProof(n int) ([][]byte, error) refer common/trie/ompt/mpt.go:263 mpt.GetProof(k []byte) [][]byte

func (*MptNode) RLPDecodeSelf

func (n *MptNode) RLPDecodeSelf(d codec.Decoder) error

func (*MptNode) RLPEncodeSelf

func (n *MptNode) RLPEncodeSelf(e codec.Encoder) error

type MptProof

type MptProof struct {
	Nodes  []MptNode
	Hashes [][]byte
}

func NewMptProof

func NewMptProof(bl [][]byte) (*MptProof, error)

func (*MptProof) Leaf

func (mp *MptProof) Leaf() *MptNode

Jump to

Keyboard shortcuts

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