Documentation ¶
Index ¶
- Constants
- Variables
- func DIDDocumentKey(did types.DID) []byte
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
- func NewHandler(keeper Keeper) sdk.Handler
- func NewQuerier(keeper Keeper) sdk.Querier
- func ValidateGenesis(data GenesisState) error
- type GenesisDIDDocumentKey
- type GenesisState
- type Keeper
- type MsgCreateDID
- type MsgDeactivateDID
- type MsgUpdateDID
- type QueryDIDParams
Constants ¶
View Source
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute )
View Source
const (
QueryDID = "did"
)
Variables ¶
View Source
var ( KeyDelimiter = []byte{0x00} DIDDocumentKeyPrefix = []byte{0x11} // {Prefix}{DID} )
View Source
var (
RegisterCodec = types.RegisterCodec
)
Functions ¶
func DIDDocumentKey ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
func NewHandler ¶
NewHandler returns a handler for "did" type messages
func NewQuerier ¶
NewQuerier is the module level router for state queries
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type GenesisDIDDocumentKey ¶
func (GenesisDIDDocumentKey) Marshal ¶
func (k GenesisDIDDocumentKey) Marshal() string
func (*GenesisDIDDocumentKey) Unmarshal ¶
func (k *GenesisDIDDocumentKey) Unmarshal(key string) error
type GenesisState ¶
type GenesisState struct {
Documents map[string]types.DIDDocumentWithSeq
}
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
type Keeper ¶
type Keeper interface { Codec() *codec.Codec SetDIDDocument(ctx sdk.Context, did types.DID, doc types.DIDDocumentWithSeq) GetDIDDocument(ctx sdk.Context, did types.DID) types.DIDDocumentWithSeq ListDIDs(ctx sdk.Context) []types.DID }
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
type MsgCreateDID ¶
type MsgCreateDID = types.MsgCreateDID
type MsgDeactivateDID ¶
type MsgDeactivateDID = types.MsgDeactivateDID
type MsgUpdateDID ¶
type MsgUpdateDID = types.MsgUpdateDID
type QueryDIDParams ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.