ante

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 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 KeyShareLane

type KeyShareLane interface {
	GetKeyShareInfo(tx sdk.Tx) (*peptypes.AggregatedKeyShare, error)
}

KeyshareLane is an interface that defines the methods required to interact with the keyshare lane.

type PEPDecorator

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

PEPDecorator is an AnteDecorator that validates the KeyShare transactions.

func NewPepDecorator

func NewPepDecorator(pk keeper.Keeper, txEncoder sdk.TxEncoder, lane KeyShareLane) PEPDecorator

func (PEPDecorator) AnteHandle

func (pd PEPDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle validates that the keyshare is valid if one exists.

Jump to

Keyboard shortcuts

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