ante

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyIidControllersAgainstSignature

func VerifyIidControllersAgainstSignature(tx signing.SigVerifiableTx, ctx sdk.Context, iidKeeper iidkeeper.Keeper) error

VerifyIidControllersAgainstSignature verifies that the controllers of the IID for all IidTxMsgs in the SigVerifiableTx are authorized to control the IID

Types

type IidResolutionDecorator

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

func NewIidResolutionDecorator

func NewIidResolutionDecorator(iidKeeper iidkeeper.Keeper) IidResolutionDecorator

func (IidResolutionDecorator) AnteHandle

func (dec IidResolutionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)

type IidTxMsg

type IidTxMsg interface {
	GetIidController() iidtypes.DIDFragment
}

IidTxMsg is an interface that is implemented by all the messages that can be used to control or authorize an IID

func GetIidTxs

func GetIidTxs(tx signing.SigVerifiableTx) []IidTxMsg

GetIidTxs returns all the IidTxMsgs from a SigVerifiableTx and ignore any messages that are not IidTxMsgs

Jump to

Keyboard shortcuts

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