Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAccount(accDid string) (types.KeyShareCollection, error)
- func (k Keeper) GetAccountInfo(accDid string) (*types.AccountInfo, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ReadInbox(accDid string) ([]*types.WalletMail, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) UnlockVault(ctx sdk.Context, didDocument *identitytypes.DIDDocument, ...) (types.KeyShareCollection, error)
- func (k Keeper) WriteInbox(toDid string, msg *types.WalletMail) error
Constants ¶
View Source
const ChallengeLength = 32
ChallengeLength - Length of bytes to generate for a challenge.¡¡
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) GetAccount ¶
func (k Keeper) GetAccount(accDid string) (types.KeyShareCollection, error)
The function retrieves an account from a key store table using the account's DID and returns it as a model.
func (Keeper) GetAccountInfo ¶ added in v0.6.28
func (k Keeper) GetAccountInfo(accDid string) (*types.AccountInfo, error)
GetAccountInfo returns the account info for the given account DID
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ReadInbox ¶
func (k Keeper) ReadInbox(accDid string) ([]*types.WalletMail, error)
ReadInbox reads the inbox for the account
func (Keeper) UnlockVault ¶ added in v0.6.28
func (k Keeper) UnlockVault(ctx sdk.Context, didDocument *identitytypes.DIDDocument, credential *servicetypes.WebauthnCredential) (types.KeyShareCollection, error)
UnlockVault uses the DIDDocument and webauthncredential to unlock the vault and provide access to the user's accounts.
func (Keeper) WriteInbox ¶
func (k Keeper) WriteInbox(toDid string, msg *types.WalletMail) error
WriteInbox writes a message to the inbox for the account
Click to show internal directories.
Click to hide internal directories.