Documentation ¶
Index ¶
- func ExecuteOnDidWithRelationships(ctx sdk.Context, k *Keeper, constraints VerificationRelationships, ...) (err error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Delete(ctx sdk.Context, key []byte, prefix []byte)
- func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (k Keeper) GetAll(ctx sdk.Context, prefix []byte) sdk.Iterator
- func (k Keeper) GetAllDidDocuments(ctx sdk.Context) []types.IidDocument
- func (k Keeper) GetAllDidDocumentsWithCondition(ctx sdk.Context, key []byte, didSelector func(did types.IidDocument) bool) (didDocs []types.IidDocument)
- func (k Keeper) GetDidDocument(ctx sdk.Context, key []byte) (types.IidDocument, bool)
- func (k Keeper) GetDidDocumentsByPubKey(ctx sdk.Context, pubkey cryptotypes.PubKey) (dids []types.IidDocument)
- func (k Keeper) GetDidMetadata(ctx sdk.Context, key []byte) (types.IidMetadata, bool)
- func (k Keeper) IidDocument(c context.Context, req *types.QueryIidDocumentRequest) (*types.QueryIidDocumentResponse, error)
- func (k Keeper) IidDocuments(c context.Context, req *types.QueryIidDocumentsRequest) (*types.QueryIidDocumentsResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Marshal(value interface{}) (bytes []byte)
- func (k Keeper) MetaData(c context.Context, req *types.QueryIidMetaDataRequest) (*types.QueryIidMetaDataResponse, error)
- func (k Keeper) ResolveDid(ctx sdk.Context, did types.DID) (doc types.IidDocument, meta types.IidMetadata, err error)
- func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{}, marshal MarshalFn)
- func (k Keeper) SetDidDocument(ctx sdk.Context, key []byte, document types.IidDocument)
- func (k Keeper) SetDidMetadata(ctx sdk.Context, key []byte, meta types.IidMetadata)
- func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool
- func (k Keeper) UnmarshalDidDocument(value []byte) (interface{}, bool)
- func (k Keeper) UnmarshalDidMetadata(value []byte) (interface{}, bool)
- type MarshalFn
- type UnmarshalFn
- type VerificationRelationships
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteOnDidWithRelationships ¶
func ExecuteOnDidWithRelationships(ctx sdk.Context, k *Keeper, constraints VerificationRelationships, did, signer string, update func(document *types.IidDocument) error) (err error)
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the identity MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) Get ¶
func (k Keeper) Get( ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn, ) (i interface{}, found bool)
Get gets an item from the store by bytes
func (Keeper) GetAllDidDocuments ¶
func (k Keeper) GetAllDidDocuments(ctx sdk.Context) []types.IidDocument
GetAllDidDocuments returns all the DidDocuments
func (Keeper) GetAllDidDocumentsWithCondition ¶
func (k Keeper) GetAllDidDocumentsWithCondition( ctx sdk.Context, key []byte, didSelector func(did types.IidDocument) bool, ) (didDocs []types.IidDocument)
GetAllDidDocumentsWithCondition retrieve a list of did document by some arbitrary criteria. The selector filter has access to both the did and its metadata
func (Keeper) GetDidDocument ¶
func (Keeper) GetDidDocumentsByPubKey ¶
func (k Keeper) GetDidDocumentsByPubKey(ctx sdk.Context, pubkey cryptotypes.PubKey) (dids []types.IidDocument)
GetDidDocumentsByPubKey retrieve a did document using a pubkey associated to the DID TODO: this function is used only in the issuer module ante handler !
func (Keeper) GetDidMetadata ¶
func (Keeper) IidDocument ¶
func (k Keeper) IidDocument( c context.Context, req *types.QueryIidDocumentRequest, ) (*types.QueryIidDocumentResponse, error)
DidDocument implements the DidDocument gRPC method
func (Keeper) IidDocuments ¶
func (k Keeper) IidDocuments( c context.Context, req *types.QueryIidDocumentsRequest, ) (*types.QueryIidDocumentsResponse, error)
DidDocuments implements the DidDocuments gRPC method
func (Keeper) MetaData ¶
func (k Keeper) MetaData( c context.Context, req *types.QueryIidMetaDataRequest, ) (*types.QueryIidMetaDataResponse, error)
func (Keeper) ResolveDid ¶
func (k Keeper) ResolveDid(ctx sdk.Context, did types.DID) (doc types.IidDocument, meta types.IidMetadata, err error)
ResolveDid returning the did document and associated metadata
func (Keeper) SetDidDocument ¶
func (Keeper) SetDidMetadata ¶
func (Keeper) Unmarshal ¶
func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool
Unmarshal unmarshal a byte slice to a struct, return false in case of errors
func (Keeper) UnmarshalDidDocument ¶
UnmarshalDidDocument unmarshall a did document= and check if it is empty ad DID document is empty if contains no context
func (Keeper) UnmarshalDidMetadata ¶
type MarshalFn ¶
type MarshalFn func(value interface{}) []byte
MarshalFn is a generic function to marshal bytes
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes
type VerificationRelationships ¶
type VerificationRelationships []string
VerificationRelationships for did document manipulation