keeper

package
v0.6.26-beta.10 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func (k Keeper) DeleteAccount(accDid string) error

DeleteAccount deletes an account from the vault.

func (Keeper) FetchCredential

func (k Keeper) FetchCredential(keyDid string) (servicetypes.Credential, error)

FetchCredential retrieves a credential from the vault.

func (Keeper) GetAccount

func (k Keeper) GetAccount(accDid string) (types.Account, error)

The function retrieves an account from a key store table using the account's DID and returns it as a model.

func (Keeper) GetKeyshare

func (k Keeper) GetKeyshare(keyDid string) (types.KeyShare, error)

The function retrieves a keyshare from a vault based on a given key DID.

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) InsertAccount

func (k Keeper) InsertAccount(acc types.Account) error

The function inserts an account and its associated key shares into a vault.

func (Keeper) InsertKeyshare

func (k Keeper) InsertKeyshare(ks types.KeyShare) error

The function inserts a keyshare into a table and returns an error if there is one.

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.InboxMessage, error)

ReadInbox reads the inbox for the account

func (Keeper) ResolveAccountFromKeyshares

func (k Keeper) ResolveAccountFromKeyshares(keyshares []string, coinType crypto.CoinType) (types.Account, error)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) StoreCredential

func (k Keeper) StoreCredential(cred servicetypes.Credential) error

StoreCredential stores a credential in the vault.

func (Keeper) WriteInbox

func (k Keeper) WriteInbox(toDid string, msg *types.InboxMessage) 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