prove

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TxInclusionQueryPath = "txInclusionProof"

Variables

This section is empty.

Functions

func QueryTxInclusionProof

func QueryTxInclusionProof(_ sdk.Context, path []string, req abci.RequestQuery) ([]byte, error)

Querier defines the logic performed when the ABCI client using the Query method with the custom prove.QueryPath. The index of the transaction being proved must be appended to the path. The marshalled bytes of the transaction proof (tmproto.TxProof) are returned.

example path for proving the third transaction in that block: custom/txInclusionProof/3

func TxInclusion

func TxInclusion(codec rsmt2d.Codec, data types.Data, txIndex uint64) (types.TxProof, error)

TxInclusion uses the provided block data to progressively generate rows of a data square, and then using those shares to creates nmt inclusion proofs It is possible that a transaction spans more than one row. In that case, we have to return more than one proof.

Types

This section is empty.

Jump to

Keyboard shortcuts

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