keeper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 22 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.

func RegisterInvariants

func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	paramSpace paramtypes.Subspace,
	authority string,
) Keeper

func (Keeper) ApplyDidDocumentUpdates

func (k Keeper) ApplyDidDocumentUpdates(ctx sdk.Context, updates *types.UpdateDidDocumentRequest) error

ApplyDidDocumentUpdates handles the update of basic fields in a DID Document.

func (Keeper) GetAllDidDocument

func (k Keeper) GetAllDidDocument(ctx sdk.Context) (list []types.DidDocument)

func (Keeper) GetAllDids

func (k Keeper) GetAllDids(ctx sdk.Context) ([]string, error)

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetDidStatus

func (k Keeper) GetDidStatus(ctx sdk.Context, did string) types.DidStatus

func (Keeper) GetParams

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

GetParams fetches the current params from the store.

func (Keeper) HasDidDocument

func (k Keeper) HasDidDocument(ctx sdk.Context, did string) bool

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) ReadDidDocument

func (k Keeper) ReadDidDocument(ctx sdk.Context, did string) (types.DidDocument, error)

func (Keeper) SetParams

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

SetParams sets the params in the store.

func (Keeper) StoreDidDocument

func (k Keeper) StoreDidDocument(ctx sdk.Context, document types.DidDocument)

func (Keeper) VerifySignature

func (k Keeper) VerifySignature(msg codec.ProtoMarshaler, signature *types.Signature, verificationMethod *types.DidVerificationMethod) error

type MsgServer

type MsgServer struct {
	Keeper
}

func (MsgServer) CreateDidDocument

func (MsgServer) UpdateDidDocument

func (MsgServer) UpdateParams

Jump to

Keyboard shortcuts

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