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) DidDoc(c context.Context, req *types.QueryGetDidDocRequest) (*types.QueryGetDidDocResponse, error)
- func (k Keeper) GetAllDidDocs(ctx *sdk.Context) (list []types.DidDocWithMetadata)
- func (k Keeper) GetDidDoc(ctx *sdk.Context, id string) (types.DidDocWithMetadata, error)
- func (k Keeper) GetDidDocCount(ctx *sdk.Context) uint64
- func (k Keeper) GetDidNamespace(ctx *sdk.Context) string
- func (k Keeper) HasDidDoc(ctx *sdk.Context, id string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetDidDoc(ctx *sdk.Context, value *types.DidDocWithMetadata) error
- func (k Keeper) SetDidDocCount(ctx *sdk.Context, count uint64)
- func (k Keeper) SetDidNamespace(ctx *sdk.Context, namespace string)
- 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 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) *Keeper
func (Keeper) DidDoc ¶
func (k Keeper) DidDoc(c context.Context, req *types.QueryGetDidDocRequest) (*types.QueryGetDidDocResponse, error)
func (Keeper) GetAllDidDocs ¶
func (k Keeper) GetAllDidDocs(ctx *sdk.Context) (list []types.DidDocWithMetadata)
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) GetDidNamespace ¶
GetDidNamespace get did namespace
func (Keeper) SetDidDoc ¶
SetDid set a specific did in the store. Updates DID counter if the DID is new.
func (Keeper) SetDidDocCount ¶
SetDidCount set the total number of did
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
}