keeper

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func VerifyIdentitySignature

func VerifyIdentitySignature(signer types.Signer, signatures []*types.SignInfo, signingInput []byte) (bool, error)

Verify signatures against signer's public keys If atleast one of the signatures is valid, return true

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 (k Keeper) AppendSchema(ctx sdk.Context, schema types.Schema) uint64

func (Keeper) CreateDidDocumentInStore added in v0.1.0

func (k Keeper) CreateDidDocumentInStore(ctx sdk.Context, didDoc *types.DidDocumentState) uint64

Creates record for a new DID Document

func (Keeper) GetChainNamespace added in v0.0.7

func (k Keeper) GetChainNamespace(ctx *sdk.Context) string

Get the Chain namespace

func (Keeper) GetCredential added in v0.0.6

func (k Keeper) GetCredential(ctx *sdk.Context, id string) (*types.Credential, error)

func (Keeper) GetCredentialCount added in v0.0.6

func (k Keeper) GetCredentialCount(ctx sdk.Context) uint64

func (Keeper) GetDid

func (k Keeper) GetDid(ctx *sdk.Context, id string) (*types.DidDocumentState, error)

Retrieves the DID from the store

func (Keeper) GetDidCount

func (k Keeper) GetDidCount(ctx sdk.Context) uint64

Get the count of registered Did Documents

func (Keeper) GetSchemaCount

func (k Keeper) GetSchemaCount(ctx sdk.Context) uint64

func (Keeper) GetSchemaFromStore added in v0.0.5

func (k Keeper) GetSchemaFromStore(ctx sdk.Context, querySchemaId string) []*types.Schema

Get the schema from store

func (Keeper) HasCredential added in v0.0.6

func (k Keeper) HasCredential(ctx sdk.Context, id string) bool

Check whether the given Cred is already present in the store

func (Keeper) HasDid

func (k Keeper) HasDid(ctx sdk.Context, id string) bool

Check whether the Did document exist in the store

func (Keeper) HasSchema

func (k Keeper) HasSchema(ctx sdk.Context, id string) bool

Check whether the given Schema already exists in the store

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) QueryCredential added in v0.0.6

func (Keeper) QueryCredentials added in v0.0.6

func (Keeper) QueryDidDocuments added in v0.1.0

func (Keeper) QuerySchema added in v0.1.0

func (Keeper) QuerySchemas added in v0.1.0

func (Keeper) RegisterCred added in v0.0.6

func (k Keeper) RegisterCred(ctx sdk.Context, cred *types.Credential) uint64

func (Keeper) SetChainNamespace added in v0.0.7

func (k Keeper) SetChainNamespace(ctx *sdk.Context, namespace string)

Set the Chain namespace

func (Keeper) SetCredentialCount added in v0.0.6

func (k Keeper) SetCredentialCount(ctx sdk.Context, count uint64)

func (Keeper) SetCredentialStatusToExpired added in v0.0.6

func (k Keeper) SetCredentialStatusToExpired(ctx sdk.Context) error

func (Keeper) SetDidCount

func (k Keeper) SetDidCount(ctx sdk.Context, count uint64)

Sets the Did Document Count

func (Keeper) SetSchemaCount

func (k Keeper) SetSchemaCount(ctx sdk.Context, count uint64)

func (Keeper) UpdateDidDocumentInStore added in v0.1.0

func (k Keeper) UpdateDidDocumentInStore(ctx sdk.Context, didDoc types.DidDocumentState) error

Updates an existing Did document present in the store

func (*Keeper) VerifyDidSignature added in v0.1.3

func (k *Keeper) VerifyDidSignature(ctx *sdk.Context, msg *types.Did, signers []types.Signer, signatures []*types.SignInfo) error

func (*Keeper) VerifyDocumentSignature added in v0.1.3

func (k *Keeper) VerifyDocumentSignature(ctx *sdk.Context, msg types.IdentityMsg, didDoc *types.Did, signatures []*types.SignInfo) error

Verify Signature for Credential Schema and Credential Status Documents

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL