Documentation ¶
Index ¶
- func AppendSignerIfNeed(signers []types.Signer, controller string, msg *types.MsgUpdateDidPayload) []types.Signer
- func FindPublicKey(signer types.Signer, id string) (ed25519.PublicKey, error)
- func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod
- func GetDidIDBytes(id string) []byte
- func NewMsgServer(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func NewQueryServer(keeper Keeper) types.QueryServer
- func VerifyIdentitySignature(signer types.Signer, signatures []*types.SignInfo, signingInput []byte) (bool, error)
- type Keeper
- func (k Keeper) AppendDid(ctx sdk.Context, did types.Did, metadata *types.Metadata) (*string, error)
- 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) GetDidPrefix(ctx sdk.Context) 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, did types.Did, metadata *types.Metadata) error
- func (k Keeper) SetDidCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetDidNamespace(ctx sdk.Context, namespace string)
- func (k *Keeper) ValidateController(ctx *sdk.Context, id string, controller string) error
- func (k *Keeper) VerifySignature(ctx *sdk.Context, msg types.IdentityMsg, signers []types.Signer, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSignerIfNeed ¶ added in v0.2.7
func FindPublicKey ¶ added in v0.2.7
func FindVerificationMethod ¶
func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod
func GetDidIDBytes ¶
GetDidIDBytes returns the byte representation of the ID
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.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AppendDid ¶
func (k Keeper) AppendDid(ctx sdk.Context, did types.Did, metadata *types.Metadata) (*string, error)
AppendDid appends a did in the store with a new id and updates the count
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
func (Keeper) GetDidCount ¶
GetDidCount get the total number of did
func (Keeper) GetDidNamespace ¶
GetDidNamespace get the total number of did
func (Keeper) SetDidCount ¶
SetDidCount set the total number of did
func (Keeper) SetDidNamespace ¶
SetDidNamespace set did namespace
func (*Keeper) ValidateController ¶ added in v0.2.7
Click to show internal directories.
Click to hide internal directories.