Documentation ¶
Index ¶
- Constants
- func DuplicateSignatures(signatures []*types.SignInfo, didToDuplicate string, newDid string) []*types.SignInfo
- func FindDidDoc(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, ...) (res types.DidDocWithMetadata, found bool, err error)
- func FindVerificationMethod(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, ...) (res types.VerificationMethod, found bool, err error)
- func GetSignerDIDsForDIDCreation(did types.DidDoc) []string
- func GetSignerDIDsForDIDUpdate(existingDidDoc types.DidDoc, updatedDidDoc types.DidDoc) []string
- func GetSignerIDForErrorMessage(signerID string, existingVersionID string, updatedVersionID string) interface{}
- func MustFindDidDoc(k *Keeper, ctx *sdk.Context, ...) (res types.DidDocWithMetadata, err error)
- func MustFindVerificationMethod(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, ...) (res types.VerificationMethod, err error)
- func NewHandler(k Keeper) sdk.Handler
- func NewMsgServer(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func NewQueryServer(keeper Keeper) types.QueryServer
- func VerifyAllSignersHaveAllValidSignatures(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, ...) error
- func VerifyAllSignersHaveAtLeastOneValidSignature(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, ...) error
- func VerifySignature(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, ...) error
- type Keeper
- func (k Keeper) AddNewDidDocVersion(ctx *sdk.Context, didDoc *types.DidDocWithMetadata) error
- func (k Keeper) AllDidDocVersionsMetadata(c context.Context, req *types.QueryGetAllDidDocVersionsMetadataRequest) (*types.QueryAllDidDocVersionsMetadataResponse, error)
- func (k Keeper) DidDoc(c context.Context, req *types.QueryGetDidDocRequest) (*types.QueryDidDocResponse, error)
- func (k Keeper) DidDocVersion(c context.Context, req *types.QueryGetDidDocVersionRequest) (*types.QueryDidDocVersionResponse, error)
- func (k Keeper) GetAllDidDocVersions(ctx *sdk.Context, did string) ([]*types.Metadata, error)
- func (k Keeper) GetAllDidDocs(ctx *sdk.Context) ([]*types.DidDocVersionSet, error)
- func (k Keeper) GetDidDocCount(ctx *sdk.Context) uint64
- func (k Keeper) GetDidDocVersion(ctx *sdk.Context, id, version string) (types.DidDocWithMetadata, error)
- func (k Keeper) GetDidNamespace(ctx *sdk.Context) string
- func (k Keeper) GetLatestDidDoc(ctx *sdk.Context, did string) (types.DidDocWithMetadata, error)
- func (k Keeper) GetLatestDidDocVersion(ctx *sdk.Context, id string) (string, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.FeeParams)
- func (k Keeper) HasDidDoc(ctx *sdk.Context, id string) bool
- func (k Keeper) HasDidDocVersion(ctx *sdk.Context, id, version string) bool
- func (k Keeper) HasLatestDidDocVersion(ctx *sdk.Context, id string) bool
- func (k Keeper) IterateAllDidDocVersions(ctx *sdk.Context, ...)
- func (k Keeper) IterateDidDocVersions(ctx *sdk.Context, did string, ...)
- func (k Keeper) IterateDids(ctx *sdk.Context, callback func(did string) (continue_ bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetDidDocCount(ctx *sdk.Context, count uint64)
- func (k Keeper) SetDidDocVersion(ctx *sdk.Context, value *types.DidDocWithMetadata, override bool) error
- func (k Keeper) SetDidNamespace(ctx *sdk.Context, namespace string)
- func (k Keeper) SetLatestDidDocVersion(ctx *sdk.Context, did, version string) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.FeeParams)
- type MsgServer
- func (k MsgServer) CreateDidDoc(goCtx context.Context, msg *types.MsgCreateDidDoc) (*types.MsgCreateDidDocResponse, error)
- func (k MsgServer) DeactivateDidDoc(goCtx context.Context, msg *types.MsgDeactivateDidDoc) (*types.MsgDeactivateDidDocResponse, error)
- func (k MsgServer) UpdateDidDoc(goCtx context.Context, msg *types.MsgUpdateDidDoc) (*types.MsgUpdateDidDocResponse, error)
- type QueryServer
Constants ¶
const UpdatedPostfix string = "-updated"
Variables ¶
This section is empty.
Functions ¶
func DuplicateSignatures ¶
func FindDidDoc ¶
func FindVerificationMethod ¶
func GetSignerIDForErrorMessage ¶ added in v1.1.0
func MustFindDidDoc ¶
func MustFindDidDoc(k *Keeper, ctx *sdk.Context, inMemoryDIDDocs map[string]types.DidDocWithMetadata, did string) (res types.DidDocWithMetadata, err error)
func MustFindVerificationMethod ¶
func MustFindVerificationMethod(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, didURL string) (res types.VerificationMethod, err error)
func NewHandler ¶
func NewMsgServer ¶
NewMsgServer returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
func NewQueryServer ¶
func NewQueryServer(keeper Keeper) types.QueryServer
NewQueryServer returns an implementation of the MsgServer interface for the provided Keeper.
func VerifyAllSignersHaveAtLeastOneValidSignature ¶
func VerifyAllSignersHaveAtLeastOneValidSignature(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.DidDocWithMetadata, message []byte, signers []string, signatures []*types.SignInfo, didToBeUpdated string, updatedDID string, ) error
VerifyAllSignersHaveAtLeastOneValidSignature verifies that all signers have at least one valid signature. Omit didToBeUpdated and updatedDID if not updating a DID. Otherwise those values will be used to better format error messages.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, paramSpace types.ParamSubspace) *Keeper
func (Keeper) AddNewDidDocVersion ¶
func (Keeper) AllDidDocVersionsMetadata ¶
func (k Keeper) AllDidDocVersionsMetadata(c context.Context, req *types.QueryGetAllDidDocVersionsMetadataRequest) (*types.QueryAllDidDocVersionsMetadataResponse, error)
func (Keeper) DidDoc ¶
func (k Keeper) DidDoc(c context.Context, req *types.QueryGetDidDocRequest) (*types.QueryDidDocResponse, error)
func (Keeper) DidDocVersion ¶
func (k Keeper) DidDocVersion(c context.Context, req *types.QueryGetDidDocVersionRequest) (*types.QueryDidDocVersionResponse, error)
func (Keeper) GetAllDidDocVersions ¶
func (Keeper) GetAllDidDocs ¶
GetAllDidDocs returns all did Loads all DIDs in memory. Use only for genesis export.
func (Keeper) GetDidDocCount ¶
GetDidCount get the total number of did
func (Keeper) GetDidDocVersion ¶
func (k Keeper) GetDidDocVersion(ctx *sdk.Context, id, version string) (types.DidDocWithMetadata, error)
GetDid returns a did from its id
func (Keeper) GetDidNamespace ¶
GetDidNamespace get did namespace
func (Keeper) GetLatestDidDoc ¶
func (Keeper) GetLatestDidDocVersion ¶
GetDidDocLatestVersion returns the latest version id value for a diddoc
func (Keeper) HasDidDocVersion ¶
func (Keeper) HasLatestDidDocVersion ¶
func (Keeper) IterateAllDidDocVersions ¶
func (Keeper) IterateDidDocVersions ¶
func (Keeper) IterateDids ¶
func (Keeper) SetDidDocCount ¶
SetDidCount set the total number of did
func (Keeper) SetDidDocVersion ¶
func (k Keeper) SetDidDocVersion(ctx *sdk.Context, value *types.DidDocWithMetadata, override bool) error
SetDid set a specific did in the store. Updates DID counter if the DID is new.
func (Keeper) SetDidNamespace ¶
SetDidNamespace set did namespace
func (Keeper) SetLatestDidDocVersion ¶
SetDidDocLatestVersion sets the latest version id value for a diddoc
type MsgServer ¶
type MsgServer struct {
Keeper
}
func (MsgServer) CreateDidDoc ¶
func (k MsgServer) CreateDidDoc(goCtx context.Context, msg *types.MsgCreateDidDoc) (*types.MsgCreateDidDocResponse, error)
func (MsgServer) DeactivateDidDoc ¶
func (k MsgServer) DeactivateDidDoc(goCtx context.Context, msg *types.MsgDeactivateDidDoc) (*types.MsgDeactivateDidDocResponse, error)
func (MsgServer) UpdateDidDoc ¶
func (k MsgServer) UpdateDidDoc(goCtx context.Context, msg *types.MsgUpdateDidDoc) (*types.MsgUpdateDidDocResponse, error)
type QueryServer ¶
type QueryServer struct {
Keeper
}
Source Files ¶
- handler.go
- keeper.go
- keeper_config.go
- keeper_diddoc.go
- msg_server.go
- msg_server_create_diddoc.go
- msg_server_deactivate_diddoc.go
- msg_server_update_diddoc.go
- params.go
- querier.go
- querier_all_diddoc_versions_metadata.go
- querier_diddoc.go
- querier_diddoc_version.go
- query_server.go
- query_server_all_diddoc_versions_metadata.go
- query_server_diddoc.go
- query_server_diddoc_version.go