Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetBlockchainAddressFromStore(ctx *sdk.Context, blockchainAccountId string) []byte
- func (k Keeper) GetChainNamespace(ctx *sdk.Context) string
- func (k Keeper) GetCredentialStatusCount(ctx sdk.Context) uint64
- func (k Keeper) GetCredentialStatusFromState(ctx *sdk.Context, id string) (*types.Credential, error)
- func (k Keeper) GetDidCount(ctx sdk.Context) uint64
- func (k Keeper) GetDidDocumentState(ctx *sdk.Context, id string) (*types.DidDocumentState, error)
- func (k Keeper) GetSchemaCount(ctx sdk.Context) uint64
- func (k Keeper) GetSchemaFromStore(ctx sdk.Context, querySchemaId string) []*types.Schema
- 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) 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) QueryDidDocument(goCtx context.Context, req *types.QueryDidDocumentRequest) (*types.QueryDidDocumentResponse, error)
- func (k Keeper) QueryDidDocuments(goCtx context.Context, req *types.QueryDidDocumentsRequest) (*types.QueryDidDocumentsResponse, error)
- func (k Keeper) QuerySchema(goCtx context.Context, req *types.QuerySchemaRequest) (*types.QuerySchemaResponse, error)
- func (k Keeper) QuerySchemas(goCtx context.Context, req *types.QuerySchemasRequest) (*types.QuerySchemasResponse, error)
- func (k Keeper) RegisterCredentialStatusInState(ctx sdk.Context, cred *types.Credential) uint64
- func (k Keeper) RegisterDidDocumentInStore(ctx sdk.Context, didDoc *types.DidDocumentState) uint64
- func (k Keeper) RegisterSchemaInStore(ctx sdk.Context, schema types.Schema) uint64
- func (k Keeper) RemoveBlockchainAddressInStore(ctx *sdk.Context, blockchainAccountId string)
- func (k Keeper) SetBlockchainAddressInStore(ctx *sdk.Context, blockchainAccountId string, didId string)
- func (k Keeper) SetChainNamespace(ctx *sdk.Context, namespace string)
- func (k Keeper) SetCredentialStatusCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetCredentialStatusToExpired(ctx sdk.Context) error
- func (k Keeper) SetDidCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetSchemaCount(ctx sdk.Context, count uint64)
- func (k Keeper) UpdateDidDocumentInStore(ctx sdk.Context, didDoc types.DidDocumentState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
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) GetBlockchainAddressFromStore ¶ added in v0.1.8
Get the BlockchainAccountId from Store
func (Keeper) GetChainNamespace ¶ added in v0.0.7
Get the Chain namespace
func (Keeper) GetCredentialStatusCount ¶ added in v0.1.7
func (Keeper) GetCredentialStatusFromState ¶ added in v0.1.7
func (Keeper) GetDidCount ¶
Get the count of registered Did Documents
func (Keeper) GetDidDocumentState ¶ added in v0.1.6
Retrieves the DID from the store
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) 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) QueryDidDocument ¶ added in v0.1.0
func (k Keeper) QueryDidDocument(goCtx context.Context, req *types.QueryDidDocumentRequest) (*types.QueryDidDocumentResponse, error)
Ref: https://w3c-ccg.github.io/did-resolution/#resolving-algorithm
func (Keeper) QueryDidDocuments ¶ added in v0.1.0
func (k Keeper) QueryDidDocuments(goCtx context.Context, req *types.QueryDidDocumentsRequest) (*types.QueryDidDocumentsResponse, error)
func (Keeper) QuerySchema ¶ added in v0.1.0
func (k Keeper) QuerySchema(goCtx context.Context, req *types.QuerySchemaRequest) (*types.QuerySchemaResponse, error)
func (Keeper) QuerySchemas ¶ added in v0.1.0
func (k Keeper) QuerySchemas(goCtx context.Context, req *types.QuerySchemasRequest) (*types.QuerySchemasResponse, error)
func (Keeper) RegisterCredentialStatusInState ¶ added in v0.1.7
func (Keeper) RegisterDidDocumentInStore ¶ added in v0.1.6
Creates record for a new DID Document
func (Keeper) RegisterSchemaInStore ¶ added in v0.1.6
func (Keeper) RemoveBlockchainAddressInStore ¶ added in v0.1.8
Remove the BlockchainAccountId from Store
func (Keeper) SetBlockchainAddressInStore ¶ added in v0.1.8
func (k Keeper) SetBlockchainAddressInStore(ctx *sdk.Context, blockchainAccountId string, didId string)
Set the BlockchainAccountId in Store
func (Keeper) SetChainNamespace ¶ added in v0.0.7
Set the Chain namespace
func (Keeper) SetCredentialStatusCount ¶ added in v0.1.7
func (Keeper) SetCredentialStatusToExpired ¶ added in v0.0.6
Invoked during BeginBlock, it checks the block time against credential expiration date. If the expiration date is past current block time, the status of the credential(s) are set to `Expired`.
func (Keeper) SetDidCount ¶
Sets the Did Document Count
func (Keeper) UpdateDidDocumentInStore ¶ added in v0.1.0
Updates an existing Did document present in the store