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: 10 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 MsgServer interface for the provided Keeper.


type Keeper

type Keeper struct {
	// contains filtered or unexported fields

Keeper holds the application data

func NewKeeper

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

NewKeeper create a new instance of a Keeper

func (Keeper) Get

func (q 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 (q Keeper) GetAll(ctx sdk.Context, prefix []byte) sdk.Iterator

GetAll values from with a prefix from the store

func (Keeper) GetAllVerifiableCredentials

func (q Keeper) GetAllVerifiableCredentials(ctx sdk.Context) []types.VerifiableCredential

func (Keeper) GetAllVerifiableCredentialsWithCondition

func (q Keeper) GetAllVerifiableCredentialsWithCondition(
	ctx sdk.Context,
	key []byte,
	vcSelector func(votes types.VerifiableCredential) bool,
) (vcs []types.VerifiableCredential)

func (Keeper) GetVerifiableCredential

func (q Keeper) GetVerifiableCredential(ctx sdk.Context, key []byte) (types.VerifiableCredential, bool)

func (Keeper) Logger

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

func (Keeper) MarshalVerifiableCredential

func (q Keeper) MarshalVerifiableCredential(value interface{}) []byte

func (Keeper) Set

func (q 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) SetVerifiableCredential

func (q Keeper) SetVerifiableCredential(ctx sdk.Context, key []byte, vc types.VerifiableCredential)

func (Keeper) UnmarshalVerifiableCredential

func (q Keeper) UnmarshalVerifiableCredential(value []byte) (interface{}, bool)

func (Keeper) ValidateVerifiableCredential

ValidateVerifiableCredential queries verifiable credentials info with a public key a check validity

func (Keeper) VerifiableCredential

VerifiableCredential queries verifiable credentials info for given verifiable credentials id

func (Keeper) VerifiableCredentials

VerifiableCredentials implements the VerifiableCredentials gRPC method

type MarshalFn

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

MarshalFn is a generic function to marshal interfaces

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