lib

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: AGPL-3.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAuthenticationRequest

func GenerateAuthenticationRequest(
	ctx sdk.Context,
	cdc codec.Codec,
	ak authante.AccountKeeper,
	sigModeHandler *txsigning.HandlerMap,
	account sdk.AccAddress,
	feePayer sdk.AccAddress,
	feeGranter sdk.AccAddress,
	fee sdk.Coins,
	msg sdk.Msg,
	tx sdk.Tx,
	msgIndex int,
	simulate bool,
) (types.AuthenticationRequest, error)

GenerateAuthenticationRequest creates an AuthenticationRequest for the transaction.

func GetAuthenticatorExtension

func GetAuthenticatorExtension(exts []*codectypes.Any, cdc codec.BinaryCodec) types.AuthenticatorTxOptions

GetAuthenticatorExtension unpacks the extension for the transaction.

func GetSignerAndSignatures

func GetSignerAndSignatures(tx sdk.Tx) (signers []sdk.AccAddress, signatures []signing.SignatureV2, err error)

GetSignerAndSignatures gets an array of signer and an array of signatures from the transaction checks they're the same length and returns both.

A signer can only have one signature, so if it appears in multiple messages, the signatures must be the same, and it will only be returned once by this function. This is to mimic the way the classic sdk authentication works, and we will probably want to change this in the future

func HasSelectedAuthenticatorTxExtensionSpecified

func HasSelectedAuthenticatorTxExtensionSpecified(
	tx sdk.Tx,
	cdc codec.BinaryCodec,
) (bool, types.AuthenticatorTxOptions)

HasSelectedAuthenticatorTxExtensionSpecified checks to see if the transaction has the correct extension, it returns false if we continue to the authenticator flow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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