ante

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 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 {
	IsKeyshareTx(tx sdk.Tx) bool
	GetKeyShareInfo(tx sdk.Tx) (*types.AggregatedKeyShare, error)
}

KeyShareLane is an interface that defines the methods required to interact with the Keyshare lane.

type Mempool

type Mempool interface {
	Contains(tx sdk.Tx) (bool, error)
	Remove(tx sdk.Tx) error
}

Mempool is an interface that defines the methods required to interact with the application-side mempool.

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, mempool Mempool) 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