keeper

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) identity.MsgServer

NewMsgServerImpl returns an implementation of the module MsgServer interface.

func NewQueryServerImpl added in v0.8.10

func NewQueryServerImpl(k Keeper) identity.QueryServer

NewQueryServerImpl returns an implementation of the module QueryServer.

Types

type Keeper

type Keeper struct {

	// state management
	Schema  collections.Schema
	Params  collections.Item[identity.Params]
	Counter collections.Map[string, uint64]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, addressCodec address.Codec, storeService storetypes.KVStoreService,
	bk identity.BankKeeper,
	authority string,
) Keeper

NewKeeper creates a new Keeper instance

func (Keeper) DeriveAccount added in v0.8.10

func (k Keeper) DeriveAccount(ctx context.Context, id string) error

DeriveAccount uses MPC to generate a new Account for an Identity.

func (*Keeper) ExportGenesis added in v0.8.10

func (k *Keeper) ExportGenesis(ctx context.Context) (*identity.GenesisState, error)

ExportGenesis exports the module state to a genesis state.

func (Keeper) GenerateIdentity added in v0.8.10

func (k Keeper) GenerateIdentity(ctx context.Context) error

GenerateIdentity generates a new Identity.

func (Keeper) GetAuthority added in v0.8.10

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (*Keeper) InitGenesis added in v0.8.10

func (k *Keeper) InitGenesis(ctx context.Context, data *identity.GenesisState) error

InitGenesis initializes the module state from a genesis state.

func (Keeper) LinkCredential added in v0.8.10

func (k Keeper) LinkCredential(ctx context.Context, identityID string) error

LinkCredential links a Credential to a Persona.

func (Keeper) LinkPersona added in v0.8.10

func (k Keeper) LinkPersona(ctx context.Context, identityID string) error

LinkPersona links a Persona to an Account and Identity.

func (Keeper) RevokeAccount added in v0.8.10

func (k Keeper) RevokeAccount(ctx context.Context, identityID string) error

RevokeAccount revokes an Account.

func (Keeper) RevokeIdentity added in v0.8.10

func (k Keeper) RevokeIdentity(ctx context.Context, identityID string) error

RevokeIdentity revokes an Identity.

func (Keeper) SignWithAccount added in v0.8.10

func (k Keeper) SignWithAccount(ctx context.Context, identityID string) error

SignWithAccount signs a message with an Account.

func (Keeper) UnlinkCredential added in v0.8.10

func (k Keeper) UnlinkCredential(ctx context.Context, identityID string) error

UnlinkCredential unlinks a Credential from a Persona.

func (Keeper) UnlinkPersona added in v0.8.10

func (k Keeper) UnlinkPersona(ctx context.Context, identityID string) error

UnlinkPersona unlinks a Persona from an Account and Identity.

func (Keeper) VerifyAccountSignature added in v0.8.10

func (k Keeper) VerifyAccountSignature(ctx context.Context, identityID string) error

VerifyAccountSignature verifies a signature with an Account.

type Migrator added in v0.8.10

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

Migrator is a struct for handling in-place state migrations.

func NewMigrator added in v0.8.10

func NewMigrator(k Keeper) Migrator

NewMigrator returns Migrator instance for the state migration.

Jump to

Keyboard shortcuts

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