Documentation ¶
Index ¶
- func NewHandler(k Keeper) sdk.Handler
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (q Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (q Keeper) GetAll(ctx sdk.Context, prefix []byte) sdk.Iterator
- func (q Keeper) GetAllVerifiableCredentials(ctx sdk.Context) []types.VerifiableCredential
- func (q Keeper) GetAllVerifiableCredentialsWithCondition(ctx sdk.Context, key []byte, ...) (vcs []types.VerifiableCredential)
- func (q Keeper) GetVerifiableCredential(ctx sdk.Context, key []byte) (types.VerifiableCredential, bool)
- func (q Keeper) Logger(ctx sdk.Context) log.Logger
- func (q Keeper) MarshalVerifiableCredential(value interface{}) []byte
- func (q Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{}, marshal MarshalFn)
- func (q Keeper) SetVerifiableCredential(ctx sdk.Context, key []byte, vc types.VerifiableCredential)
- func (q Keeper) UnmarshalVerifiableCredential(value []byte) (interface{}, bool)
- func (q Keeper) ValidateVerifiableCredential(c context.Context, req *types.QueryValidateVerifiableCredentialRequest) (*types.QueryValidateVerifiableCredentialResponse, error)
- func (q Keeper) VerifiableCredential(c context.Context, req *types.QueryVerifiableCredentialRequest) (*types.QueryVerifiableCredentialResponse, error)
- func (q Keeper) VerifiableCredentials(c context.Context, req *types.QueryVerifiableCredentialsRequest) (*types.QueryVerifiableCredentialsResponse, error)
- type MarshalFn
- type UnmarshalFn
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
}
Keeper holds the application data
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) 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 (Keeper) MarshalVerifiableCredential ¶
func (Keeper) SetVerifiableCredential ¶
func (Keeper) UnmarshalVerifiableCredential ¶
func (Keeper) ValidateVerifiableCredential ¶
func (q Keeper) ValidateVerifiableCredential( c context.Context, req *types.QueryValidateVerifiableCredentialRequest, ) (*types.QueryValidateVerifiableCredentialResponse, error)
ValidateVerifiableCredential queries verifiable credentials info with a public key a check validity
func (Keeper) VerifiableCredential ¶
func (q Keeper) VerifiableCredential( c context.Context, req *types.QueryVerifiableCredentialRequest, ) (*types.QueryVerifiableCredentialResponse, error)
VerifiableCredential queries verifiable credentials info for given verifiable credentials id
func (Keeper) VerifiableCredentials ¶
func (q Keeper) VerifiableCredentials( c context.Context, req *types.QueryVerifiableCredentialsRequest, ) (*types.QueryVerifiableCredentialsResponse, error)
VerifiableCredentials implements the VerifiableCredentials gRPC method
type MarshalFn ¶
type MarshalFn func(value interface{}) []byte
MarshalFn is a generic function to marshal interfaces
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes
Click to show internal directories.
Click to hide internal directories.