Documentation ¶
Index ¶
- Constants
- func DuplicateSignatures(signatures []*types.SignInfo, didToDuplicate string, newDid string) []*types.SignInfo
- func FindDid(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, ...) (res types.StateValue, found bool, err error)
- func FindVerificationMethod(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, ...) (res types.VerificationMethod, found bool, err error)
- func GetDidIDBytes(id string) []byte
- func GetSignerDIDsForDIDCreation(did types.Did) []string
- func GetSignerDIDsForDIDUpdate(existingDid types.Did, updatedDid types.Did) []string
- func GetSignerIdForErrorMessage(signerId string, existingVersionId string, updatedVersionId string) interface{}
- func MustFindDid(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, ...) (res types.StateValue, err error)
- func MustFindVerificationMethod(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, ...) (res types.VerificationMethod, err error)
- 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.StateValue, ...) error
- func VerifyAllSignersHaveAtLeastOneValidSignature(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, ...) error
- func VerifySignature(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, ...) error
- type Keeper
- func (k Keeper) DeleteFromState(ctx *sdk.Context, stateKey string)
- func (k Keeper) Did(c context.Context, req *types.QueryGetDidRequest) (*types.QueryGetDidResponse, error)
- func (k Keeper) GetAllDid(ctx *sdk.Context) (list []types.StateValue)
- func (k Keeper) GetDid(ctx *sdk.Context, id string) (types.StateValue, error)
- func (k Keeper) GetDidCount(ctx *sdk.Context) uint64
- func (k Keeper) GetDidNamespace(ctx *sdk.Context) string
- func (k Keeper) GetFromState(ctx *sdk.Context, stateKey string) string
- func (k Keeper) HasDid(ctx *sdk.Context, id string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetDid(ctx *sdk.Context, stateValue *types.StateValue) error
- func (k Keeper) SetDidCount(ctx *sdk.Context, count uint64)
- func (k Keeper) SetDidNamespace(ctx *sdk.Context, namespace string)
- func (k Keeper) SetToState(ctx *sdk.Context, stateKey string, stateValue []byte)
Constants ¶
const UpdatedPostfix string = "-updated"
Variables ¶
This section is empty.
Functions ¶
func DuplicateSignatures ¶
func FindVerificationMethod ¶
func GetDidIDBytes ¶
GetDidIDBytes returns the byte representation of the ID
func MustFindDid ¶
func MustFindDid(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, did string) (res types.StateValue, err error)
func MustFindVerificationMethod ¶
func MustFindVerificationMethod(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, didUrl string) (res types.VerificationMethod, err error)
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 VerifyAllSignersHaveAllValidSignatures ¶ added in v0.6.0
func VerifyAllSignersHaveAtLeastOneValidSignature ¶ added in v0.6.0
func VerifyAllSignersHaveAtLeastOneValidSignature(k *Keeper, ctx *sdk.Context, inMemoryDIDs map[string]types.StateValue, 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 (Keeper) DeleteFromState ¶ added in v0.6.0
DeleteFromState - remove value from State by key
func (Keeper) Did ¶
func (k Keeper) Did(c context.Context, req *types.QueryGetDidRequest) (*types.QueryGetDidResponse, error)
func (Keeper) GetAllDid ¶
func (k Keeper) GetAllDid(ctx *sdk.Context) (list []types.StateValue)
GetAllDid returns all did Loads all DIDs in memory. Use only for genesis export.
func (Keeper) GetDidCount ¶
GetDidCount get the total number of did
func (Keeper) GetDidNamespace ¶
GetDidNamespace get did namespace
func (Keeper) GetFromState ¶
GetFromState - get State value
func (Keeper) SetDid ¶
SetDid set a specific did in the store. Updates DID counter if the DID is new.
func (Keeper) SetDidCount ¶
SetDidCount set the total number of did
func (Keeper) SetDidNamespace ¶
SetDidNamespace set did namespace