Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AuthenticateUser(goCtx context.Context, req *types.AuthenticateUserRequest) (*types.AuthenticateUserResponse, error)
- func (k Keeper) GetAllServiceRecord(ctx sdk.Context) (list []types.ServiceRecord)
- func (k Keeper) GetAllServiceRelationships(ctx sdk.Context) (list []types.ServiceRelationship)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetServiceRecord(ctx sdk.Context, origin string) (val types.ServiceRecord, found bool)
- func (k Keeper) GetServiceRelationship(ctx sdk.Context, id string) (val types.ServiceRelationship, found bool)
- func (k Keeper) ListServiceRecords(goCtx context.Context, req *types.ListServiceRecordsRequest) (*types.ListServiceRecordsResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RegisterUser(goCtx context.Context, req *types.RegisterUserRequest) (*types.RegisterUserResponse, error)
- func (k Keeper) RemoveServiceRecord(ctx sdk.Context, Id string)
- func (k Keeper) RemoveServiceRelationship(ctx sdk.Context, id string)
- func (k Keeper) ServiceAssertion(goCtx context.Context, req *types.GetServiceAssertionRequest) (*types.GetServiceAssertionResponse, error)
- func (k Keeper) ServiceAttestation(goCtx context.Context, req *types.GetServiceAttestationRequest) (*types.GetServiceAttestationResponse, error)
- func (k Keeper) ServiceRecord(goCtx context.Context, req *types.QueryServiceRecordRequest) (*types.QueryServiceRecordResponse, error)
- func (k Keeper) ServiceRelationship(goCtx context.Context, req *types.QueryGetServiceRelationshipRequest) (*types.QueryGetServiceRelationshipResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetServiceRecord(ctx sdk.Context, serviceRecord types.ServiceRecord)
- func (k Keeper) SetServiceRelationship(ctx sdk.Context, serviceRelationships types.ServiceRelationship)
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 storetypes.StoreKey, ps paramtypes.Subspace, groupKeeper types.GroupKeeper, identityKeeper types.IdentityKeeper, vaultKeeper types.VaultKeeper, ) *Keeper
func (Keeper) AuthenticateUser ¶ added in v0.6.27
func (k Keeper) AuthenticateUser(goCtx context.Context, req *types.AuthenticateUserRequest) (*types.AuthenticateUserResponse, error)
The `AuthenticateUser` function is a method of the `Keeper` struct and is used to authenticate a user. It takes a context and an `AuthenticateUserRequest` as input and returns an `AuthenticateUserResponse` and an error. However, in the given code, the function is not implemented and returns an error message indicating that it is not implemented.
func (Keeper) GetAllServiceRecord ¶
func (k Keeper) GetAllServiceRecord(ctx sdk.Context) (list []types.ServiceRecord)
GetAllServiceRecord returns all serviceRecord
func (Keeper) GetAllServiceRelationships ¶ added in v0.6.26
func (k Keeper) GetAllServiceRelationships(ctx sdk.Context) (list []types.ServiceRelationship)
GetAllServiceRelationships returns all serviceRelationships
func (Keeper) GetServiceRecord ¶
func (k Keeper) GetServiceRecord( ctx sdk.Context, origin string, ) (val types.ServiceRecord, found bool)
GetServiceRecord returns a serviceRecord from its Id
func (Keeper) GetServiceRelationship ¶ added in v0.6.26
func (k Keeper) GetServiceRelationship(ctx sdk.Context, id string) (val types.ServiceRelationship, found bool)
GetServiceRelationships returns a serviceRelationships from its id
func (Keeper) ListServiceRecords ¶ added in v0.6.26
func (k Keeper) ListServiceRecords(goCtx context.Context, req *types.ListServiceRecordsRequest) (*types.ListServiceRecordsResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RegisterUser ¶ added in v0.6.27
func (k Keeper) RegisterUser(goCtx context.Context, req *types.RegisterUserRequest) (*types.RegisterUserResponse, error)
This function is a method of the `Keeper` struct and is used to register a new user identity. It takes a context and a `RegisterUserRequest` as input and returns a `RegisterUserResponse` and an error. The function first retrieves the service record associated with the request origin and checks if the desired alias is available. It then retrieves the claimable wallet associated with the request UCW ID and verifies the creation challenge using the service's `VerifyCreationChallenge` method. If the challenge is verified, the function assigns an identity to the user using the `AssignIdentity` method of the identity keeper and returns the assigned identity and its ID in the response. If any error occurs during the process, the function returns an error.
func (Keeper) RemoveServiceRecord ¶
RemoveServiceRecord removes a serviceRecord from the store
func (Keeper) RemoveServiceRelationship ¶ added in v0.6.26
RemoveServiceRelationships removes a serviceRelationships from the store
func (Keeper) ServiceAssertion ¶ added in v0.6.26
func (k Keeper) ServiceAssertion(goCtx context.Context, req *types.GetServiceAssertionRequest) (*types.GetServiceAssertionResponse, error)
func (Keeper) ServiceAttestation ¶ added in v0.6.27
func (k Keeper) ServiceAttestation(goCtx context.Context, req *types.GetServiceAttestationRequest) (*types.GetServiceAttestationResponse, error)
ServiceAttestion returns the attestion options for a given service record and desired Identity alias
func (Keeper) ServiceRecord ¶
func (k Keeper) ServiceRecord(goCtx context.Context, req *types.QueryServiceRecordRequest) (*types.QueryServiceRecordResponse, error)
func (Keeper) ServiceRelationship ¶ added in v0.6.26
func (k Keeper) ServiceRelationship(goCtx context.Context, req *types.QueryGetServiceRelationshipRequest) (*types.QueryGetServiceRelationshipResponse, error)
func (Keeper) SetServiceRecord ¶
func (k Keeper) SetServiceRecord(ctx sdk.Context, serviceRecord types.ServiceRecord)
SetServiceRecord set a specific serviceRecord in the store from its Id
func (Keeper) SetServiceRelationship ¶ added in v0.6.26
func (k Keeper) SetServiceRelationship(ctx sdk.Context, serviceRelationships types.ServiceRelationship)
SetServiceRelationships set a specific serviceRelationships in the store