keeper

package
v0.0.0-...-325c2d7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 11 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.

Types

type Keeper

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

Keeper is the type for module properties

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,

) *Keeper

NewKeeper creates new keeper object

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (*Keeper) GetPublicKeys

func (k *Keeper) GetPublicKeys(ctx sdk.Context) (keys types.PublicKeys, found bool)

GetPublicKeys is the helper functions for this keeper to query the list of public keys.

func (Keeper) Logger

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

Logger returns the logger object of this module

func (Keeper) Params

Params returns the params of the module

func (Keeper) PubKeys

PubKeys returns list of the public keys

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetPublicKeys

func (k Keeper) SetPublicKeys(ctx sdk.Context, ks types.PublicKeys)

SetPublicKeys sets the list of keys, overwrite the old values.

func (Keeper) VerifyTicket

func (k Keeper) VerifyTicket(goCtx context.Context, ticket string) error

VerifyTicket validates a ticket. For JWT see https://datatracker.ietf.org/doc/html/rfc7519 * exp is required.

func (Keeper) VerifyTicketUnmarshal

func (k Keeper) VerifyTicketUnmarshal(goCtx context.Context, ticketStr string, clm interface{}) error

VerifyTicketUnmarshal verifies the ticket first, then if the token was verified, it unmarshal the data of ticket into clm.

Jump to

Keyboard shortcuts

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