Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) DeleteAccount(accDid string) error
- func (k Keeper) FetchCredential(keyDid string) (servicetypes.Credential, error)
- func (k Keeper) GetAccount(accDid string) (types.Account, error)
- func (k Keeper) GetKeyshare(keyDid string) (types.KeyShare, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) InsertAccount(acc types.Account) error
- func (k Keeper) InsertKeyshare(ks types.KeyShare) error
- 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.InboxMessage, error)
- func (k Keeper) ResolveAccountFromKeyshares(keyshares []string, coinType crypto.CoinType) (types.Account, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) StoreCredential(cred servicetypes.Credential) error
- func (k Keeper) WriteInbox(toDid string, msg *types.InboxMessage) error
Constants ¶
This section is empty.
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) DeleteAccount ¶
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 ¶
The function retrieves an account from a key store table using the account's DID and returns it as a model.
func (Keeper) GetKeyshare ¶
The function retrieves a keyshare from a vault based on a given key DID.
func (Keeper) InsertAccount ¶
The function inserts an account and its associated key shares into a vault.
func (Keeper) InsertKeyshare ¶
The function inserts a keyshare into a table and returns an error if there is one.
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.InboxMessage, error)
ReadInbox reads the inbox for the account
func (Keeper) ResolveAccountFromKeyshares ¶
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