Documentation
¶
Index ¶
- func GetNymIDBytes(id uint64) []byte
- func GetNymIDFromBytes(bz []byte) uint64
- func NewMsgSercheqdpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) AppendNym(ctx sdk.Context, creator string, alias string, verkey string, did string, ...) uint64
- func (k Keeper) GetAllNym(ctx sdk.Context) (list []types.Nym)
- func (k Keeper) GetNym(ctx sdk.Context, id uint64) types.Nym
- func (k Keeper) GetNymCount(ctx sdk.Context) uint64
- func (k Keeper) GetNymOwner(ctx sdk.Context, id uint64) string
- func (k Keeper) HasNym(ctx sdk.Context, id uint64) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Nym(c context.Context, req *types.QueryGetNymRequest) (*types.QueryGetNymResponse, error)
- func (k Keeper) NymAll(c context.Context, req *types.QueryAllNymRequest) (*types.QueryAllNymResponse, error)
- func (k Keeper) RemoveNym(ctx sdk.Context, id uint64)
- func (k Keeper) SetNym(ctx sdk.Context, nym types.Nym)
- func (k Keeper) SetNymCount(ctx sdk.Context, count uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNymIDBytes ¶ added in v0.1.19
GetNymIDBytes returns the byte representation of the ID
func GetNymIDFromBytes ¶ added in v0.1.19
GetNymIDFromBytes returns ID in uint64 format from a byte array
func NewMsgSercheqdpl ¶ added in v0.1.19
NewMsgSercheqdpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AppendNym ¶ added in v0.1.19
func (k Keeper) AppendNym( ctx sdk.Context, creator string, alias string, verkey string, did string, role string, ) uint64
AppendNym appends a nym in the store with a new id and update the count
func (Keeper) GetNymCount ¶ added in v0.1.19
GetNymCount get the total number of nym
func (Keeper) GetNymOwner ¶ added in v0.1.19
GetNymOwner returns the creator of the nym
func (Keeper) Nym ¶ added in v0.1.19
func (k Keeper) Nym(c context.Context, req *types.QueryGetNymRequest) (*types.QueryGetNymResponse, error)
func (Keeper) NymAll ¶ added in v0.1.19
func (k Keeper) NymAll(c context.Context, req *types.QueryAllNymRequest) (*types.QueryAllNymResponse, error)
Click to show internal directories.
Click to hide internal directories.