v0.2.0 Latest Latest

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


This section is empty.


func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler ...

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the identity MsgServer interface for the provided Keeper.


type Keeper

type Keeper struct {
	// contains filtered or unexported fields

func NewKeeper

func NewKeeper(cdc codec.Marshaler, storeKey, memKey sdk.StoreKey) *Keeper

func (Keeper) Delete

func (k Keeper) Delete(
	ctx sdk.Context,
	key []byte,
	prefix []byte,

Delete - deletes a value form the store

func (Keeper) Get

func (k Keeper) Get(
	ctx sdk.Context,
	key []byte,
	prefix []byte,
	unmarshal UnmarshalFn,
) (i interface{}, found bool)

Get gets an item from the store by bytes

func (Keeper) GetAll

func (k Keeper) GetAll(
	ctx sdk.Context,
	prefix []byte,
) sdk.Iterator

GetAll values from with a prefix from the store

func (Keeper) GetAllIdentifiers

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

func (Keeper) GetAllIdentifiersWithCondition

func (k Keeper) GetAllIdentifiersWithCondition(
	ctx sdk.Context,
	key []byte,
	identifierSelector func(identifiers types.DidDocument) bool,
) (identifiers []types.DidDocument)

func (Keeper) GetIdentifier

func (k Keeper) GetIdentifier(ctx sdk.Context, key []byte) (types.DidDocument, bool)

func (Keeper) Identifier

Identifier implements the Identifier gRPC method

func (Keeper) Identifiers

Identifiers implements the Identifiers gRPC method

func (Keeper) Logger

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

func (Keeper) MarshalIdentifier

func (k Keeper) MarshalIdentifier(value interface{}) []byte

func (Keeper) Set

func (k Keeper) Set(ctx sdk.Context,
	key []byte,
	prefix []byte,
	i interface{},
	marshal MarshalFn,

Set sets a value in the db with a prefixed key

func (Keeper) SetIdentifier

func (k Keeper) SetIdentifier(ctx sdk.Context, key []byte, document types.DidDocument)

func (Keeper) UnmarshalIdentifier

func (k Keeper) UnmarshalIdentifier(value []byte) (interface{}, bool)

type MarshalFn

type MarshalFn func(value interface{}) []byte

MarshalFn is a generic function to marshal bytes

type UnmarshalFn

type UnmarshalFn func(value []byte) (interface{}, bool)

UnmarshalFn is a generic function to unmarshal bytes

Jump to

Keyboard shortcuts

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