Documentation ¶
Index ¶
- func AppendSignerIfNeed(signers []types.Signer, controller string, msg *types.Did) []types.Signer
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func VerifyCredentialProofDates(credProof *types.CredentialProof, credRegistration bool) error
- func VerifyCredentialStatusDates(issuanceDate time.Time, expirationDate time.Time) error
- func VerifyDidDeactivate(metadata *types.Metadata, id string) error
- func VerifyIdentitySignature(signer types.Signer, signatures []*types.SignInfo, signingInput []byte) (bool, error)
- type Keeper
- func (k Keeper) AppendDID(ctx sdk.Context, didDoc *types.DidDocument) uint64
- func (k Keeper) AppendSchema(ctx sdk.Context, schema types.Schema) uint64
- func (k Keeper) DidParam(goCtx context.Context, req *types.QueryDidParamRequest) (*types.QueryDidParamResponse, error)
- func (k Keeper) GetChainNamespace(ctx *sdk.Context) string
- func (k Keeper) GetCredential(ctx *sdk.Context, id string) (*types.Credential, error)
- func (k Keeper) GetCredentialCount(ctx sdk.Context) uint64
- func (k Keeper) GetDid(ctx *sdk.Context, id string) (*types.DidDocument, error)
- func (k Keeper) GetDidCount(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSchema(goCtx context.Context, req *types.QueryGetSchemaRequest) (*types.QueryGetSchemaResponse, error)
- func (k Keeper) GetSchemaCount(ctx sdk.Context) uint64
- func (k Keeper) GetSchemaFromStore(ctx sdk.Context, schemaId string) (*types.Schema, error)
- func (k Keeper) HasCredential(ctx sdk.Context, id string) bool
- func (k Keeper) HasDid(ctx sdk.Context, id string) bool
- func (k Keeper) HasSchema(ctx sdk.Context, id string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) QueryCredential(goCtx context.Context, req *types.QueryCredentialRequest) (*types.QueryCredentialResponse, error)
- func (k Keeper) QueryCredentials(goCtx context.Context, req *types.QueryCredentialsRequest) (*types.QueryCredentialsResponse, error)
- func (k Keeper) RegisterCred(ctx sdk.Context, cred *types.Credential) uint64
- func (k Keeper) ResolveDid(goCtx context.Context, req *types.QueryGetDidDocByIdRequest) (*types.DidResolutionResponse, error)
- func (k Keeper) SchemaParam(goCtx context.Context, req *types.QuerySchemaParamRequest) (*types.QuerySchemaParamResponse, error)
- func (k Keeper) SetChainNamespace(ctx *sdk.Context, namespace string)
- func (k Keeper) SetCredentialCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetCredentialStatusToExpired(ctx sdk.Context) error
- func (k Keeper) SetDid(ctx sdk.Context, didDoc types.DidDocument) error
- func (k Keeper) SetDidCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetDidDeactivate(ctx sdk.Context, didDoc types.DidDocument, id string) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSchemaCount(ctx sdk.Context, count uint64)
- func (k *Keeper) ValidateController(ctx *sdk.Context, id string, controller string) error
- func (k *Keeper) VerifySchemaSignature(msg *types.SchemaDocument, didDoc *types.Did, signature string, ...) error
- func (k *Keeper) VerifySignature(ctx *sdk.Context, msg *types.Did, signers []types.Signer, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSignerIfNeed ¶ added in v0.0.2
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func VerifyCredentialProofDates ¶ added in v0.0.6
func VerifyCredentialProofDates(credProof *types.CredentialProof, credRegistration bool) error
func VerifyCredentialStatusDates ¶ added in v0.0.6
func VerifyDidDeactivate ¶ added in v0.0.3
Check the Deactivate status of DID
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) AppendSchema ¶
func (Keeper) DidParam ¶ added in v0.0.3
func (k Keeper) DidParam(goCtx context.Context, req *types.QueryDidParamRequest) (*types.QueryDidParamResponse, error)
func (Keeper) GetChainNamespace ¶ added in v0.0.7
Get the DID namespace
func (Keeper) GetCredential ¶ added in v0.0.6
func (Keeper) GetCredentialCount ¶ added in v0.0.6
func (Keeper) GetSchema ¶
func (k Keeper) GetSchema(goCtx context.Context, req *types.QueryGetSchemaRequest) (*types.QueryGetSchemaResponse, error)
func (Keeper) GetSchemaFromStore ¶ added in v0.0.5
Get the schema from store
func (Keeper) HasCredential ¶ added in v0.0.6
Check whether the given Cred is already present in the store
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) QueryCredential ¶ added in v0.0.6
func (k Keeper) QueryCredential(goCtx context.Context, req *types.QueryCredentialRequest) (*types.QueryCredentialResponse, error)
func (Keeper) QueryCredentials ¶ added in v0.0.6
func (k Keeper) QueryCredentials(goCtx context.Context, req *types.QueryCredentialsRequest) (*types.QueryCredentialsResponse, error)
func (Keeper) RegisterCred ¶ added in v0.0.6
func (Keeper) ResolveDid ¶ added in v0.0.3
func (k Keeper) ResolveDid(goCtx context.Context, req *types.QueryGetDidDocByIdRequest) (*types.DidResolutionResponse, error)
Ref: https://w3c-ccg.github.io/did-resolution/#resolving-algorithm
func (Keeper) SchemaParam ¶ added in v0.0.5
func (k Keeper) SchemaParam(goCtx context.Context, req *types.QuerySchemaParamRequest) (*types.QuerySchemaParamResponse, error)
func (Keeper) SetChainNamespace ¶ added in v0.0.7
Set the DID namespace
func (Keeper) SetCredentialCount ¶ added in v0.0.6
func (Keeper) SetCredentialStatusToExpired ¶ added in v0.0.6
func (Keeper) SetDidDeactivate ¶ added in v0.0.3
SetDid set a specific did in the store
func (*Keeper) ValidateController ¶ added in v0.0.2
func (*Keeper) VerifySchemaSignature ¶ added in v0.0.6
Source Files ¶
Click to show internal directories.
Click to hide internal directories.