Documentation
¶
Index ¶
- Variables
- func NewAccount(name string, handlerMap *signing.HandlerMap, options ...Option) accountstd.AccountCreatorFunc
- type Account
- func (a Account) AuthRetroCompatibility(ctx context.Context, _ *authtypes.QueryLegacyAccount) (*authtypes.QueryLegacyAccountResponse, error)
- 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) QueryPubKey(ctx context.Context, _ *v1.QueryPubKey) (*v1.QueryPubKeyResponse, 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)
- type Option
- type PubKey
- type PubKeyG
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PubKeyPrefix = collections.NewPrefix(0) PubKeyTypePrefix = collections.NewPrefix(1) SequencePrefix = collections.NewPrefix(2) )
Functions ¶
func NewAccount ¶
func NewAccount(name string, handlerMap *signing.HandlerMap, options ...Option) accountstd.AccountCreatorFunc
Types ¶
type Account ¶
type Account struct {
PubKey collections.Item[[]byte]
PubKeyType collections.Item[string]
Sequence collections.Sequence
// contains filtered or unexported fields
}
Account implements a base account.
func (Account) AuthRetroCompatibility ¶
func (a Account) AuthRetroCompatibility(ctx context.Context, _ *authtypes.QueryLegacyAccount) (*authtypes.QueryLegacyAccountResponse, error)
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) QueryPubKey ¶
func (a Account) QueryPubKey(ctx context.Context, _ *v1.QueryPubKey) (*v1.QueryPubKeyResponse, error)
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)
type Option ¶
type Option func(a *Account)
func WithPubKey ¶
func WithSecp256K1PubKey ¶
func WithSecp256K1PubKey() Option
func (Option) IsManyPerContainerType ¶
func (Option) IsManyPerContainerType()
Click to show internal directories.
Click to hide internal directories.