Documentation
¶
Index ¶
- func GenerateAuthenticationRequest(ctx sdk.Context, cdc codec.Codec, ak authante.AccountKeeper, ...) (types.AuthenticationRequest, error)
- func GetAuthenticatorExtension(exts []*codectypes.Any, cdc codec.BinaryCodec) types.AuthenticatorTxOptions
- func GetSignerAndSignatures(tx sdk.Tx) (signers []sdk.AccAddress, signatures []signing.SignatureV2, err error)
- func HasSelectedAuthenticatorTxExtensionSpecified(tx sdk.Tx, cdc codec.BinaryCodec) (bool, types.AuthenticatorTxOptions)
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.