proof

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheReceipt = make(map[string][]*types.Receipt) // key -> chainId_blockHeight
)

Functions

func DeriveTire added in v1.2.0

func DeriveTire(rs DerivableList, tr *trie.Trie) *trie.Trie

func Get

func Get(receipts DerivableList, txIndex uint) ([][]byte, error)

Types

type Data added in v1.2.0

type Data struct {
	BlockNum     *big.Int
	ReceiptProof ReceiptProof
}

type DerivableList

type DerivableList interface {
	Len() int
	EncodeIndex(int, *bytes.Buffer)
}

type ReceiptProof added in v1.2.0

type ReceiptProof struct {
	TxReceipt mapprotocol.TxReceipt
	KeyIndex  []byte
	Proof     [][]byte
}

type ReceiptRLP added in v1.2.0

type ReceiptRLP struct {
	PostStateOrStatus []byte
	CumulativeGasUsed uint64
	Bloom             types.Bloom
	Logs              []*types.Log
}

Jump to

Keyboard shortcuts

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