keeper

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ChallengeLength = 32

ChallengeLength - Length of bytes to generate for a challenge.¡¡

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) ReadInbox

func (k Keeper) ReadInbox(accDid string) ([]*types.WalletMail, error)

ReadInbox reads the inbox for the account

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

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

Jump to

Keyboard shortcuts

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