Documentation ¶
Index ¶
- Variables
- func NewAccount(name string, handlerMap *signing.HandlerMap) accountstd.AccountCreatorFunc
- type Account
- func (a Account) Authenticate(ctx context.Context, msg *aa_interface_v1.MsgAuthenticate) (*aa_interface_v1.MsgAuthenticateResponse, error)
- func (a Account) Init(ctx context.Context, msg *v1.MsgInit) (*v1.MsgInitResponse, error)
- func (a Account) QuerySequence(ctx context.Context, _ *v1.QuerySequence) (*v1.QuerySequenceResponse, error)
- func (a Account) RegisterExecuteHandlers(builder *accountstd.ExecuteBuilder)
- func (a Account) RegisterInitHandler(builder *accountstd.InitBuilder)
- func (a Account) RegisterQueryHandlers(builder *accountstd.QueryBuilder)
- func (a Account) SwapPubKey(ctx context.Context, msg *v1.MsgSwapPubKey) (*v1.MsgSwapPubKeyResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PubKeyPrefix = collections.NewPrefix(0) SequencePrefix = collections.NewPrefix(1) )
Functions ¶
func NewAccount ¶
func NewAccount(name string, handlerMap *signing.HandlerMap) accountstd.AccountCreatorFunc
Types ¶
type Account ¶
type Account struct { PubKey collections.Item[secp256k1.PubKey] Sequence collections.Sequence // contains filtered or unexported fields }
Account implements a base account.
func (Account) Authenticate ¶
func (a Account) Authenticate(ctx context.Context, msg *aa_interface_v1.MsgAuthenticate) (*aa_interface_v1.MsgAuthenticateResponse, error)
Authenticate implements the authentication flow of an abstracted base account.
func (Account) Init ¶
func (Account) QuerySequence ¶
func (a Account) QuerySequence(ctx context.Context, _ *v1.QuerySequence) (*v1.QuerySequenceResponse, error)
func (Account) RegisterExecuteHandlers ¶
func (a Account) RegisterExecuteHandlers(builder *accountstd.ExecuteBuilder)
func (Account) RegisterInitHandler ¶
func (a Account) RegisterInitHandler(builder *accountstd.InitBuilder)
func (Account) RegisterQueryHandlers ¶
func (a Account) RegisterQueryHandlers(builder *accountstd.QueryBuilder)
func (Account) SwapPubKey ¶
func (a Account) SwapPubKey(ctx context.Context, msg *v1.MsgSwapPubKey) (*v1.MsgSwapPubKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.