Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type DidDoc
- func (*DidDoc) Descriptor() ([]byte, []int)deprecated
- func (x *DidDoc) GetAlsoKnownAs() []string
- func (x *DidDoc) GetAssertionMethod() []string
- func (x *DidDoc) GetAuthentication() []string
- func (x *DidDoc) GetCapabilityDelegation() []string
- func (x *DidDoc) GetCapabilityInvocation() []string
- func (x *DidDoc) GetContext() []string
- func (x *DidDoc) GetController() []string
- func (x *DidDoc) GetId() string
- func (x *DidDoc) GetKeyAgreement() []string
- func (x *DidDoc) GetService() []*Service
- func (x *DidDoc) GetVerificationMethod() []*VerificationMethod
- func (*DidDoc) ProtoMessage()
- func (x *DidDoc) ProtoReflect() protoreflect.Message
- func (x *DidDoc) Reset()
- func (x *DidDoc) String() string
- type DidDocVersionSet
- func (*DidDocVersionSet) Descriptor() ([]byte, []int)deprecated
- func (x *DidDocVersionSet) GetDidDocs() []*DidDocWithMetadata
- func (x *DidDocVersionSet) GetLatestVersion() string
- func (*DidDocVersionSet) ProtoMessage()
- func (x *DidDocVersionSet) ProtoReflect() protoreflect.Message
- func (x *DidDocVersionSet) Reset()
- func (x *DidDocVersionSet) String() string
- type DidDocWithMetadata
- func (*DidDocWithMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *DidDocWithMetadata) GetDidDoc() *DidDoc
- func (x *DidDocWithMetadata) GetMetadata() *Metadata
- func (*DidDocWithMetadata) ProtoMessage()
- func (x *DidDocWithMetadata) ProtoReflect() protoreflect.Message
- func (x *DidDocWithMetadata) Reset()
- func (x *DidDocWithMetadata) String() string
- type FeeParams
- func (*FeeParams) Descriptor() ([]byte, []int)deprecated
- func (x *FeeParams) GetBurnFactor() string
- func (x *FeeParams) GetCreateDid() []*FeeRange
- func (x *FeeParams) GetDeactivateDid() []*FeeRange
- func (x *FeeParams) GetUpdateDid() []*FeeRange
- func (*FeeParams) ProtoMessage()
- func (x *FeeParams) ProtoReflect() protoreflect.Message
- func (x *FeeParams) Reset()
- func (x *FeeParams) String() string
- type FeeRange
- func (*FeeRange) Descriptor() ([]byte, []int)deprecated
- func (x *FeeRange) GetDenom() string
- func (x *FeeRange) GetMaxAmount() string
- func (x *FeeRange) GetMinAmount() string
- func (*FeeRange) ProtoMessage()
- func (x *FeeRange) ProtoReflect() protoreflect.Message
- func (x *FeeRange) Reset()
- func (x *FeeRange) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetDidNamespace() string
- func (x *GenesisState) GetFeeParams() *FeeParams
- func (x *GenesisState) GetVersionSets() []*DidDocVersionSet
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type LegacyFeeParams
- func (*LegacyFeeParams) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyFeeParams) GetBurnFactor() string
- func (x *LegacyFeeParams) GetCreateDid() *v1beta1.Coin
- func (x *LegacyFeeParams) GetDeactivateDid() *v1beta1.Coin
- func (x *LegacyFeeParams) GetUpdateDid() *v1beta1.Coin
- func (*LegacyFeeParams) ProtoMessage()
- func (x *LegacyFeeParams) ProtoReflect() protoreflect.Message
- func (x *LegacyFeeParams) Reset()
- func (x *LegacyFeeParams) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetCreated() *timestamppb.Timestamp
- func (x *Metadata) GetDeactivated() bool
- func (x *Metadata) GetNextVersionId() string
- func (x *Metadata) GetPreviousVersionId() string
- func (x *Metadata) GetUpdated() *timestamppb.Timestamp
- func (x *Metadata) GetVersionId() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type MsgBurn
- type MsgBurnResponse
- type MsgClient
- type MsgCreateDidDoc
- func (*MsgCreateDidDoc) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload
- func (x *MsgCreateDidDoc) GetSignatures() []*SignInfo
- func (*MsgCreateDidDoc) ProtoMessage()
- func (x *MsgCreateDidDoc) ProtoReflect() protoreflect.Message
- func (x *MsgCreateDidDoc) Reset()
- func (x *MsgCreateDidDoc) String() string
- type MsgCreateDidDocPayload
- func (*MsgCreateDidDocPayload) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateDidDocPayload) GetAlsoKnownAs() []string
- func (x *MsgCreateDidDocPayload) GetAssertionMethod() []string
- func (x *MsgCreateDidDocPayload) GetAuthentication() []string
- func (x *MsgCreateDidDocPayload) GetCapabilityDelegation() []string
- func (x *MsgCreateDidDocPayload) GetCapabilityInvocation() []string
- func (x *MsgCreateDidDocPayload) GetContext() []string
- func (x *MsgCreateDidDocPayload) GetController() []string
- func (x *MsgCreateDidDocPayload) GetId() string
- func (x *MsgCreateDidDocPayload) GetKeyAgreement() []string
- func (x *MsgCreateDidDocPayload) GetService() []*Service
- func (x *MsgCreateDidDocPayload) GetVerificationMethod() []*VerificationMethod
- func (x *MsgCreateDidDocPayload) GetVersionId() string
- func (*MsgCreateDidDocPayload) ProtoMessage()
- func (x *MsgCreateDidDocPayload) ProtoReflect() protoreflect.Message
- func (x *MsgCreateDidDocPayload) Reset()
- func (x *MsgCreateDidDocPayload) String() string
- type MsgCreateDidDocResponse
- func (*MsgCreateDidDocResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateDidDocResponse) GetValue() *DidDocWithMetadata
- func (*MsgCreateDidDocResponse) ProtoMessage()
- func (x *MsgCreateDidDocResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateDidDocResponse) Reset()
- func (x *MsgCreateDidDocResponse) String() string
- type MsgDeactivateDidDoc
- func (*MsgDeactivateDidDoc) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeactivateDidDoc) GetPayload() *MsgDeactivateDidDocPayload
- func (x *MsgDeactivateDidDoc) GetSignatures() []*SignInfo
- func (*MsgDeactivateDidDoc) ProtoMessage()
- func (x *MsgDeactivateDidDoc) ProtoReflect() protoreflect.Message
- func (x *MsgDeactivateDidDoc) Reset()
- func (x *MsgDeactivateDidDoc) String() string
- type MsgDeactivateDidDocPayload
- func (*MsgDeactivateDidDocPayload) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeactivateDidDocPayload) GetId() string
- func (x *MsgDeactivateDidDocPayload) GetVersionId() string
- func (*MsgDeactivateDidDocPayload) ProtoMessage()
- func (x *MsgDeactivateDidDocPayload) ProtoReflect() protoreflect.Message
- func (x *MsgDeactivateDidDocPayload) Reset()
- func (x *MsgDeactivateDidDocPayload) String() string
- type MsgDeactivateDidDocResponse
- func (*MsgDeactivateDidDocResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeactivateDidDocResponse) GetValue() *DidDocWithMetadata
- func (*MsgDeactivateDidDocResponse) ProtoMessage()
- func (x *MsgDeactivateDidDocResponse) ProtoReflect() protoreflect.Message
- func (x *MsgDeactivateDidDocResponse) Reset()
- func (x *MsgDeactivateDidDocResponse) String() string
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)deprecated
- func (x *MsgMint) GetAmount() []*v1beta1.Coin
- func (x *MsgMint) GetAuthority() string
- func (x *MsgMint) GetToAddress() string
- func (*MsgMint) ProtoMessage()
- func (x *MsgMint) ProtoReflect() protoreflect.Message
- func (x *MsgMint) Reset()
- func (x *MsgMint) String() string
- type MsgMintResponse
- type MsgServer
- type MsgUpdateDidDoc
- func (*MsgUpdateDidDoc) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload
- func (x *MsgUpdateDidDoc) GetSignatures() []*SignInfo
- func (*MsgUpdateDidDoc) ProtoMessage()
- func (x *MsgUpdateDidDoc) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateDidDoc) Reset()
- func (x *MsgUpdateDidDoc) String() string
- type MsgUpdateDidDocPayload
- func (*MsgUpdateDidDocPayload) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateDidDocPayload) GetAlsoKnownAs() []string
- func (x *MsgUpdateDidDocPayload) GetAssertionMethod() []string
- func (x *MsgUpdateDidDocPayload) GetAuthentication() []string
- func (x *MsgUpdateDidDocPayload) GetCapabilityDelegation() []string
- func (x *MsgUpdateDidDocPayload) GetCapabilityInvocation() []string
- func (x *MsgUpdateDidDocPayload) GetContext() []string
- func (x *MsgUpdateDidDocPayload) GetController() []string
- func (x *MsgUpdateDidDocPayload) GetId() string
- func (x *MsgUpdateDidDocPayload) GetKeyAgreement() []string
- func (x *MsgUpdateDidDocPayload) GetService() []*Service
- func (x *MsgUpdateDidDocPayload) GetVerificationMethod() []*VerificationMethod
- func (x *MsgUpdateDidDocPayload) GetVersionId() string
- func (*MsgUpdateDidDocPayload) ProtoMessage()
- func (x *MsgUpdateDidDocPayload) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateDidDocPayload) Reset()
- func (x *MsgUpdateDidDocPayload) String() string
- type MsgUpdateDidDocResponse
- func (*MsgUpdateDidDocResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateDidDocResponse) GetValue() *DidDocWithMetadata
- func (*MsgUpdateDidDocResponse) ProtoMessage()
- func (x *MsgUpdateDidDocResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateDidDocResponse) Reset()
- func (x *MsgUpdateDidDocResponse) String() string
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *FeeParams
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type QueryAllDidDocVersionsMetadataRequest
- func (*QueryAllDidDocVersionsMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllDidDocVersionsMetadataRequest) GetId() string
- func (x *QueryAllDidDocVersionsMetadataRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage()
- func (x *QueryAllDidDocVersionsMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllDidDocVersionsMetadataRequest) Reset()
- func (x *QueryAllDidDocVersionsMetadataRequest) String() string
- type QueryAllDidDocVersionsMetadataResponse
- func (*QueryAllDidDocVersionsMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllDidDocVersionsMetadataResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryAllDidDocVersionsMetadataResponse) GetVersions() []*Metadata
- func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage()
- func (x *QueryAllDidDocVersionsMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllDidDocVersionsMetadataResponse) Reset()
- func (x *QueryAllDidDocVersionsMetadataResponse) String() string
- type QueryClient
- type QueryDidDocRequest
- type QueryDidDocResponse
- func (*QueryDidDocResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDidDocResponse) GetValue() *DidDocWithMetadata
- func (*QueryDidDocResponse) ProtoMessage()
- func (x *QueryDidDocResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDidDocResponse) Reset()
- func (x *QueryDidDocResponse) String() string
- type QueryDidDocVersionRequest
- func (*QueryDidDocVersionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDidDocVersionRequest) GetId() string
- func (x *QueryDidDocVersionRequest) GetVersion() string
- func (*QueryDidDocVersionRequest) ProtoMessage()
- func (x *QueryDidDocVersionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDidDocVersionRequest) Reset()
- func (x *QueryDidDocVersionRequest) String() string
- type QueryDidDocVersionResponse
- func (*QueryDidDocVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDidDocVersionResponse) GetValue() *DidDocWithMetadata
- func (*QueryDidDocVersionResponse) ProtoMessage()
- func (x *QueryDidDocVersionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDidDocVersionResponse) Reset()
- func (x *QueryDidDocVersionResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *FeeParams
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetAccept() []string
- func (x *Service) GetId() string
- func (x *Service) GetPriority() uint32
- func (x *Service) GetRecipientKeys() []string
- func (x *Service) GetRoutingKeys() []string
- func (x *Service) GetServiceEndpoint() []string
- func (x *Service) GetServiceType() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type SignInfo
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
- func (UnimplementedMsgServer) CreateDidDoc(context.Context, *MsgCreateDidDoc) (*MsgCreateDidDocResponse, error)
- func (UnimplementedMsgServer) DeactivateDidDoc(context.Context, *MsgDeactivateDidDoc) (*MsgDeactivateDidDocResponse, error)
- func (UnimplementedMsgServer) Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
- func (UnimplementedMsgServer) UpdateDidDoc(context.Context, *MsgUpdateDidDoc) (*MsgUpdateDidDocResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) AllDidDocVersionsMetadata(context.Context, *QueryAllDidDocVersionsMetadataRequest) (*QueryAllDidDocVersionsMetadataResponse, error)
- func (UnimplementedQueryServer) DidDoc(context.Context, *QueryDidDocRequest) (*QueryDidDocResponse, error)
- func (UnimplementedQueryServer) DidDocVersion(context.Context, *QueryDidDocVersionRequest) (*QueryDidDocVersionResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type VerificationMethod
- func (*VerificationMethod) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationMethod) GetController() string
- func (x *VerificationMethod) GetId() string
- func (x *VerificationMethod) GetVerificationMaterial() string
- func (x *VerificationMethod) GetVerificationMethodType() string
- func (*VerificationMethod) ProtoMessage()
- func (x *VerificationMethod) ProtoReflect() protoreflect.Message
- func (x *VerificationMethod) Reset()
- func (x *VerificationMethod) String() string
Constants ¶
const ( Query_DidDoc_FullMethodName = "/cheqd.did.v2.Query/DidDoc" Query_DidDocVersion_FullMethodName = "/cheqd.did.v2.Query/DidDocVersion" Query_AllDidDocVersionsMetadata_FullMethodName = "/cheqd.did.v2.Query/AllDidDocVersionsMetadata" Query_Params_FullMethodName = "/cheqd.did.v2.Query/Params" )
const ( Msg_CreateDidDoc_FullMethodName = "/cheqd.did.v2.Msg/CreateDidDoc" Msg_UpdateDidDoc_FullMethodName = "/cheqd.did.v2.Msg/UpdateDidDoc" Msg_DeactivateDidDoc_FullMethodName = "/cheqd.did.v2.Msg/DeactivateDidDoc" Msg_Burn_FullMethodName = "/cheqd.did.v2.Msg/Burn" Msg_Mint_FullMethodName = "/cheqd.did.v2.Msg/Mint" Msg_UpdateParams_FullMethodName = "/cheqd.did.v2.Msg/UpdateParams" )
Variables ¶
var File_cheqd_did_v2_diddoc_proto protoreflect.FileDescriptor
var File_cheqd_did_v2_fee_legacy_proto protoreflect.FileDescriptor
var File_cheqd_did_v2_fee_proto protoreflect.FileDescriptor
var File_cheqd_did_v2_genesis_proto protoreflect.FileDescriptor
var File_cheqd_did_v2_query_proto protoreflect.FileDescriptor
var File_cheqd_did_v2_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cheqd.did.v2.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDidDoc", Handler: _Msg_CreateDidDoc_Handler, }, { MethodName: "UpdateDidDoc", Handler: _Msg_UpdateDidDoc_Handler, }, { MethodName: "DeactivateDidDoc", Handler: _Msg_DeactivateDidDoc_Handler, }, { MethodName: "Burn", Handler: _Msg_Burn_Handler, }, { MethodName: "Mint", Handler: _Msg_Mint_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cheqd/did/v2/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cheqd.did.v2.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DidDoc", Handler: _Query_DidDoc_Handler, }, { MethodName: "DidDocVersion", Handler: _Query_DidDocVersion_Handler, }, { MethodName: "AllDidDocVersionsMetadata", Handler: _Query_AllDidDocVersionsMetadata_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cheqd/did/v2/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type DidDoc ¶
type DidDoc struct {
// context is a list of URIs used to identify the context of the DID document.
// Default: https://www.w3.org/ns/did/v1
Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
// id is the DID of the DID document.
// Format: did:cheqd:<namespace>:<unique-identifier>
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// controller is a list of DIDs that are allowed to control the DID document.
Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
// verificationMethod is a list of verification methods that can be used to
// verify a digital signature or cryptographic proof.
VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
// authentication is a list of verification methods that can be used to
// authenticate as the DID subject.
Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
// assertionMethod is a list of verification methods that can be used to
// assert statements as the DID subject.
AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
// capabilityInvocation is a list of verification methods that can be used to
// invoke capabilities as the DID subject.
CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
// capabilityDelegation is a list of verification methods that can be used to
// delegate capabilities as the DID subject.
CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
// keyAgreement is a list of verification methods that can be used to perform
// key agreement as the DID subject.
KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
// service is a list of services that can be used to interact with the DID subject.
Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
// alsoKnownAs is a list of DIDs that are known to refer to the same DID subject.
AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
// contains filtered or unexported fields
}
DidDoc defines a DID Document, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/
func (*DidDoc) Descriptor
deprecated
func (*DidDoc) GetAlsoKnownAs ¶
func (*DidDoc) GetAssertionMethod ¶
func (*DidDoc) GetAuthentication ¶
func (*DidDoc) GetCapabilityDelegation ¶
func (*DidDoc) GetCapabilityInvocation ¶
func (*DidDoc) GetContext ¶
func (*DidDoc) GetController ¶
func (*DidDoc) GetKeyAgreement ¶
func (*DidDoc) GetService ¶
func (*DidDoc) GetVerificationMethod ¶
func (x *DidDoc) GetVerificationMethod() []*VerificationMethod
func (*DidDoc) ProtoMessage ¶
func (*DidDoc) ProtoMessage()
func (*DidDoc) ProtoReflect ¶
func (x *DidDoc) ProtoReflect() protoreflect.Message
type DidDocVersionSet ¶
type DidDocVersionSet struct {
// Latest version of the DID Document set
LatestVersion string `protobuf:"bytes,1,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
// All versions of the DID Document set
DidDocs []*DidDocWithMetadata `protobuf:"bytes,2,rep,name=did_docs,json=didDocs,proto3" json:"did_docs,omitempty"`
// contains filtered or unexported fields
}
DidDocVersionSet contains all versions of DID Documents and their metadata for a given DID. The latest version of the DID Document set is stored in the latest_version field.
func (*DidDocVersionSet) Descriptor
deprecated
func (*DidDocVersionSet) Descriptor() ([]byte, []int)
Deprecated: Use DidDocVersionSet.ProtoReflect.Descriptor instead.
func (*DidDocVersionSet) GetDidDocs ¶
func (x *DidDocVersionSet) GetDidDocs() []*DidDocWithMetadata
func (*DidDocVersionSet) GetLatestVersion ¶
func (x *DidDocVersionSet) GetLatestVersion() string
func (*DidDocVersionSet) ProtoMessage ¶
func (*DidDocVersionSet) ProtoMessage()
func (*DidDocVersionSet) ProtoReflect ¶
func (x *DidDocVersionSet) ProtoReflect() protoreflect.Message
func (*DidDocVersionSet) Reset ¶
func (x *DidDocVersionSet) Reset()
func (*DidDocVersionSet) String ¶
func (x *DidDocVersionSet) String() string
type DidDocWithMetadata ¶
type DidDocWithMetadata struct {
// didDocument is the DID Document.
DidDoc *DidDoc `protobuf:"bytes,1,opt,name=did_doc,json=didDoc,proto3" json:"did_doc,omitempty"`
// didDocumentMetadata is the DID Document metadata.
Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
DidDocWithMetadata defines a DID Document with metadata, as defined in the DID Core specification. Contains the DID Document, as well as DID Document metadata.
func (*DidDocWithMetadata) Descriptor
deprecated
func (*DidDocWithMetadata) Descriptor() ([]byte, []int)
Deprecated: Use DidDocWithMetadata.ProtoReflect.Descriptor instead.
func (*DidDocWithMetadata) GetDidDoc ¶
func (x *DidDocWithMetadata) GetDidDoc() *DidDoc
func (*DidDocWithMetadata) GetMetadata ¶
func (x *DidDocWithMetadata) GetMetadata() *Metadata
func (*DidDocWithMetadata) ProtoMessage ¶
func (*DidDocWithMetadata) ProtoMessage()
func (*DidDocWithMetadata) ProtoReflect ¶
func (x *DidDocWithMetadata) ProtoReflect() protoreflect.Message
func (*DidDocWithMetadata) Reset ¶
func (x *DidDocWithMetadata) Reset()
func (*DidDocWithMetadata) String ¶
func (x *DidDocWithMetadata) String() string
type FeeParams ¶
type FeeParams struct {
// Range-based fee for creating a DID
CreateDid []*FeeRange `protobuf:"bytes,1,rep,name=create_did,json=createDid,proto3" json:"create_did,omitempty"`
// Range-based fee for updating a DID
UpdateDid []*FeeRange `protobuf:"bytes,2,rep,name=update_did,json=updateDid,proto3" json:"update_did,omitempty"`
// Range-based fee for deactivating a DID
DeactivateDid []*FeeRange `protobuf:"bytes,3,rep,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did,omitempty"`
// Percentage of the fixed fee that will be burned
//
// Default: 0.5 (50%)
BurnFactor string `protobuf:"bytes,4,opt,name=burn_factor,json=burnFactor,proto3" json:"burn_factor,omitempty"`
// contains filtered or unexported fields
}
func (*FeeParams) Descriptor
deprecated
func (*FeeParams) GetBurnFactor ¶
func (*FeeParams) GetCreateDid ¶
func (*FeeParams) GetDeactivateDid ¶
func (*FeeParams) GetUpdateDid ¶
func (*FeeParams) ProtoMessage ¶
func (*FeeParams) ProtoMessage()
func (*FeeParams) ProtoReflect ¶
func (x *FeeParams) ProtoReflect() protoreflect.Message
type FeeRange ¶ added in v2.4.2
type FeeRange struct {
// Denomination of the token (e.g., "ncheq")
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
// Minimum fee amount allowed (stored as string for large values)
MinAmount string `protobuf:"bytes,2,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"`
// Maximum fee amount allowed (stored as string for large values)
MaxAmount string `protobuf:"bytes,3,opt,name=max_amount,json=maxAmount,proto3" json:"max_amount,omitempty"`
// contains filtered or unexported fields
}
func (*FeeRange) Descriptor
deprecated
added in
v2.4.2
func (*FeeRange) GetMaxAmount ¶ added in v2.4.2
func (*FeeRange) GetMinAmount ¶ added in v2.4.2
func (*FeeRange) ProtoMessage ¶ added in v2.4.2
func (*FeeRange) ProtoMessage()
func (*FeeRange) ProtoReflect ¶ added in v2.4.2
func (x *FeeRange) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct {
// Namespace for the DID module
// Example: mainnet, testnet, local
DidNamespace string `protobuf:"bytes,1,opt,name=did_namespace,json=didNamespace,proto3" json:"did_namespace,omitempty"`
// All DID Document version sets (contains all versions of all DID Documents)
VersionSets []*DidDocVersionSet `protobuf:"bytes,2,rep,name=version_sets,json=versionSets,proto3" json:"version_sets,omitempty"`
// Fee parameters for the DID module
// Defines fixed fees and burn percentage for each DID operation type (create, update, delete)
FeeParams *FeeParams `protobuf:"bytes,3,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"`
// contains filtered or unexported fields
}
GenesisState defines the cheqd DID module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetDidNamespace ¶
func (x *GenesisState) GetDidNamespace() string
func (*GenesisState) GetFeeParams ¶
func (x *GenesisState) GetFeeParams() *FeeParams
func (*GenesisState) GetVersionSets ¶
func (x *GenesisState) GetVersionSets() []*DidDocVersionSet
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type LegacyFeeParams ¶ added in v2.4.2
type LegacyFeeParams struct {
// Fixed fee for creating a DID
//
// Default: 50 CHEQ or 50000000000ncheq
CreateDid *v1beta1.Coin `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did,omitempty"`
// Fixed fee for updating a DID
//
// Default: 25 CHEQ or 25000000000ncheq
UpdateDid *v1beta1.Coin `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did,omitempty"`
// Fixed fee for deactivating a DID
//
// Default: 10 CHEQ or 10000000000ncheq
DeactivateDid *v1beta1.Coin `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did,omitempty"`
// Percentage of the fixed fee that will be burned
//
// Default: 0.5 (50%)
BurnFactor string `protobuf:"bytes,4,opt,name=burn_factor,json=burnFactor,proto3" json:"burn_factor,omitempty"`
// contains filtered or unexported fields
}
FeeParams defines the parameters for the cheqd DID module fixed fee
func (*LegacyFeeParams) Descriptor
deprecated
added in
v2.4.2
func (*LegacyFeeParams) Descriptor() ([]byte, []int)
Deprecated: Use LegacyFeeParams.ProtoReflect.Descriptor instead.
func (*LegacyFeeParams) GetBurnFactor ¶ added in v2.4.2
func (x *LegacyFeeParams) GetBurnFactor() string
func (*LegacyFeeParams) GetCreateDid ¶ added in v2.4.2
func (x *LegacyFeeParams) GetCreateDid() *v1beta1.Coin
func (*LegacyFeeParams) GetDeactivateDid ¶ added in v2.4.2
func (x *LegacyFeeParams) GetDeactivateDid() *v1beta1.Coin
func (*LegacyFeeParams) GetUpdateDid ¶ added in v2.4.2
func (x *LegacyFeeParams) GetUpdateDid() *v1beta1.Coin
func (*LegacyFeeParams) ProtoMessage ¶ added in v2.4.2
func (*LegacyFeeParams) ProtoMessage()
func (*LegacyFeeParams) ProtoReflect ¶ added in v2.4.2
func (x *LegacyFeeParams) ProtoReflect() protoreflect.Message
func (*LegacyFeeParams) Reset ¶ added in v2.4.2
func (x *LegacyFeeParams) Reset()
func (*LegacyFeeParams) String ¶ added in v2.4.2
func (x *LegacyFeeParams) String() string
type Metadata ¶
type Metadata struct {
// created is the timestamp of the creation of the DID Document.
// Format: RFC3339
// Example: 2021-03-10T15:16:17Z
Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
// updated is the timestamp of the last update of the DID Document.
// Format: RFC3339
// Example: 2021-03-10T15:16:17Z
Updated *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"`
// deactivated is a flag that indicates whether the DID Document is deactivated.
// Default: false
Deactivated bool `protobuf:"varint,3,opt,name=deactivated,proto3" json:"deactivated,omitempty"`
// version_id is the version identifier of the DID Document.
// Format: UUID
// Example: 123e4567-e89b-12d3-a456-426655440000
VersionId string `protobuf:"bytes,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
// next_version_id is the version identifier of the next version of the DID Document.
// Format: UUID
// Example: 123e4567-e89b-12d3-a456-426655440000
NextVersionId string `protobuf:"bytes,5,opt,name=next_version_id,json=nextVersionId,proto3" json:"next_version_id,omitempty"`
// previous_version_id is the version identifier of the previous version of the DID Document.
// Format: UUID
// Example: 123e4567-e89b-12d3-a456-426655440000
PreviousVersionId string `protobuf:"bytes,6,opt,name=previous_version_id,json=previousVersionId,proto3" json:"previous_version_id,omitempty"`
// contains filtered or unexported fields
}
Metadata defines DID Document metadata, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#did-document-metadata-properties
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetCreated ¶
func (x *Metadata) GetCreated() *timestamppb.Timestamp
func (*Metadata) GetDeactivated ¶
func (*Metadata) GetNextVersionId ¶
func (*Metadata) GetPreviousVersionId ¶
func (*Metadata) GetUpdated ¶
func (x *Metadata) GetUpdated() *timestamppb.Timestamp
func (*Metadata) GetVersionId ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type MsgBurn ¶ added in v2.3.0
type MsgBurn struct {
FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
Amount []*v1beta1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
MsgBurn represents a message to burn coins from the message signer account
func (*MsgBurn) Descriptor
deprecated
added in
v2.3.0
func (*MsgBurn) GetFromAddress ¶ added in v2.3.0
func (*MsgBurn) ProtoMessage ¶ added in v2.3.0
func (*MsgBurn) ProtoMessage()
func (*MsgBurn) ProtoReflect ¶ added in v2.3.0
func (x *MsgBurn) ProtoReflect() protoreflect.Message
type MsgBurnResponse ¶ added in v2.3.0
type MsgBurnResponse struct {
// contains filtered or unexported fields
}
func (*MsgBurnResponse) Descriptor
deprecated
added in
v2.3.0
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgBurnResponse.ProtoReflect.Descriptor instead.
func (*MsgBurnResponse) ProtoMessage ¶ added in v2.3.0
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) ProtoReflect ¶ added in v2.3.0
func (x *MsgBurnResponse) ProtoReflect() protoreflect.Message
func (*MsgBurnResponse) Reset ¶ added in v2.3.0
func (x *MsgBurnResponse) Reset()
func (*MsgBurnResponse) String ¶ added in v2.3.0
func (x *MsgBurnResponse) String() string
type MsgClient ¶
type MsgClient interface {
// CreateDidDoc defines a method for creating a new DID document
CreateDidDoc(ctx context.Context, in *MsgCreateDidDoc, opts ...grpc.CallOption) (*MsgCreateDidDocResponse, error)
// UpdateDidDoc defines a method for updating an existing DID document
UpdateDidDoc(ctx context.Context, in *MsgUpdateDidDoc, opts ...grpc.CallOption) (*MsgUpdateDidDocResponse, error)
// DeactivateDidDoc defines a method for deactivating an existing DID document
DeactivateDidDoc(ctx context.Context, in *MsgDeactivateDidDoc, opts ...grpc.CallOption) (*MsgDeactivateDidDocResponse, error)
Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
// Mint defines a method to mint tokens to the given address.
Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the Cosmos SDK Msg service for the cheqd.did.v2 module.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCreateDidDoc ¶
type MsgCreateDidDoc struct {
// Payload containing the DID Document to be created
Payload *MsgCreateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// Signatures of the DID Document's controller(s)
Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
// contains filtered or unexported fields
}
MsgCreateDidDoc defines the Msg/CreateDidDoc request type. It describes the parameters of a request for creating a new DID document.
func (*MsgCreateDidDoc) Descriptor
deprecated
func (*MsgCreateDidDoc) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateDidDoc.ProtoReflect.Descriptor instead.
func (*MsgCreateDidDoc) GetPayload ¶
func (x *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload
func (*MsgCreateDidDoc) GetSignatures ¶
func (x *MsgCreateDidDoc) GetSignatures() []*SignInfo
func (*MsgCreateDidDoc) ProtoMessage ¶
func (*MsgCreateDidDoc) ProtoMessage()
func (*MsgCreateDidDoc) ProtoReflect ¶
func (x *MsgCreateDidDoc) ProtoReflect() protoreflect.Message
func (*MsgCreateDidDoc) Reset ¶
func (x *MsgCreateDidDoc) Reset()
func (*MsgCreateDidDoc) String ¶
func (x *MsgCreateDidDoc) String() string
type MsgCreateDidDocPayload ¶
type MsgCreateDidDocPayload struct {
// context is a list of URIs used to identify the context of the DID document.
// Default: https://www.w3.org/ns/did/v1
Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
// id is the DID of the DID document.
// Format: did:cheqd:<namespace>:<unique-identifier>
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// controller is a list of DIDs that are allowed to control the DID document.
Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
// verificationMethod is a list of verification methods that can be used to
// verify a digital signature or cryptographic proof.
// Documentation: https://www.w3.org/TR/did-core/#verification-methods
//
// Required fields:
// - id: A unique identifier for the verification method
// - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020)
// - controller: DID of the controller of the verification method
// - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase)
VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
// authentication is a list of verification methods that can be used to
// authenticate as the DID subject.
Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
// assertionMethod is a list of verification methods that can be used to
// assert statements as the DID subject.
AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
// capabilityInvocation is a list of verification methods that can be used to
// invoke capabilities as the DID subject.
CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
// capabilityDelegation is a list of verification methods that can be used to
// delegate capabilities as the DID subject.
CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
// keyAgreement is a list of verification methods that can be used to perform
// key agreement as the DID subject.
KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
// service is a list of services that can be used to interact with the DID subject.
// Documentation: https://www.w3.org/TR/did-core/#services
//
// Required fields:
// - id: A unique identifier for the service
// - type: A service type defined in DID Specification Registries
// - service_endpoint: Service endpoint(s), provided as a URI or set of URIs
Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
// alsoKnownAs is a list of DIDs that are known to refer to the same DID subject.
AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
// Version ID of the DID Document to be created
//
// Format: <uuid>
VersionId string `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
// contains filtered or unexported fields
}
MsgCreateDidDocPayload defines the structure of the payload for creating a new DID document
func (*MsgCreateDidDocPayload) Descriptor
deprecated
func (*MsgCreateDidDocPayload) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateDidDocPayload.ProtoReflect.Descriptor instead.
func (*MsgCreateDidDocPayload) GetAlsoKnownAs ¶
func (x *MsgCreateDidDocPayload) GetAlsoKnownAs() []string
func (*MsgCreateDidDocPayload) GetAssertionMethod ¶
func (x *MsgCreateDidDocPayload) GetAssertionMethod() []string
func (*MsgCreateDidDocPayload) GetAuthentication ¶
func (x *MsgCreateDidDocPayload) GetAuthentication() []string
func (*MsgCreateDidDocPayload) GetCapabilityDelegation ¶
func (x *MsgCreateDidDocPayload) GetCapabilityDelegation() []string
func (*MsgCreateDidDocPayload) GetCapabilityInvocation ¶
func (x *MsgCreateDidDocPayload) GetCapabilityInvocation() []string
func (*MsgCreateDidDocPayload) GetContext ¶
func (x *MsgCreateDidDocPayload) GetContext() []string
func (*MsgCreateDidDocPayload) GetController ¶
func (x *MsgCreateDidDocPayload) GetController() []string
func (*MsgCreateDidDocPayload) GetId ¶
func (x *MsgCreateDidDocPayload) GetId() string
func (*MsgCreateDidDocPayload) GetKeyAgreement ¶
func (x *MsgCreateDidDocPayload) GetKeyAgreement() []string
func (*MsgCreateDidDocPayload) GetService ¶
func (x *MsgCreateDidDocPayload) GetService() []*Service
func (*MsgCreateDidDocPayload) GetVerificationMethod ¶
func (x *MsgCreateDidDocPayload) GetVerificationMethod() []*VerificationMethod
func (*MsgCreateDidDocPayload) GetVersionId ¶
func (x *MsgCreateDidDocPayload) GetVersionId() string
func (*MsgCreateDidDocPayload) ProtoMessage ¶
func (*MsgCreateDidDocPayload) ProtoMessage()
func (*MsgCreateDidDocPayload) ProtoReflect ¶
func (x *MsgCreateDidDocPayload) ProtoReflect() protoreflect.Message
func (*MsgCreateDidDocPayload) Reset ¶
func (x *MsgCreateDidDocPayload) Reset()
func (*MsgCreateDidDocPayload) String ¶
func (x *MsgCreateDidDocPayload) String() string
type MsgCreateDidDocResponse ¶
type MsgCreateDidDocResponse struct {
// Return the created DID Document with metadata
Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc.
func (*MsgCreateDidDocResponse) Descriptor
deprecated
func (*MsgCreateDidDocResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateDidDocResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateDidDocResponse) GetValue ¶
func (x *MsgCreateDidDocResponse) GetValue() *DidDocWithMetadata
func (*MsgCreateDidDocResponse) ProtoMessage ¶
func (*MsgCreateDidDocResponse) ProtoMessage()
func (*MsgCreateDidDocResponse) ProtoReflect ¶
func (x *MsgCreateDidDocResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateDidDocResponse) Reset ¶
func (x *MsgCreateDidDocResponse) Reset()
func (*MsgCreateDidDocResponse) String ¶
func (x *MsgCreateDidDocResponse) String() string
type MsgDeactivateDidDoc ¶
type MsgDeactivateDidDoc struct {
// Payload containing the DID Document to be deactivated
Payload *MsgDeactivateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// Signatures of the DID Document's controller(s)
Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
// contains filtered or unexported fields
}
MsgDeactivateDidDoc defines the Msg/DeactivateDidDoc request type. It describes the parameters of a request for deactivating an existing DID document.
func (*MsgDeactivateDidDoc) Descriptor
deprecated
func (*MsgDeactivateDidDoc) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeactivateDidDoc.ProtoReflect.Descriptor instead.
func (*MsgDeactivateDidDoc) GetPayload ¶
func (x *MsgDeactivateDidDoc) GetPayload() *MsgDeactivateDidDocPayload
func (*MsgDeactivateDidDoc) GetSignatures ¶
func (x *MsgDeactivateDidDoc) GetSignatures() []*SignInfo
func (*MsgDeactivateDidDoc) ProtoMessage ¶
func (*MsgDeactivateDidDoc) ProtoMessage()
func (*MsgDeactivateDidDoc) ProtoReflect ¶
func (x *MsgDeactivateDidDoc) ProtoReflect() protoreflect.Message
func (*MsgDeactivateDidDoc) Reset ¶
func (x *MsgDeactivateDidDoc) Reset()
func (*MsgDeactivateDidDoc) String ¶
func (x *MsgDeactivateDidDoc) String() string
type MsgDeactivateDidDocPayload ¶
type MsgDeactivateDidDocPayload struct {
// Unique identifier of the DID Document to be deactivated
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Version ID of the DID Document to be deactivated
// This is primarily used as a sanity check to ensure that the correct DID Document is being deactivated.
VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
// contains filtered or unexported fields
}
MsgDeactivateDidDocPayload defines the structure of the payload for deactivating an existing DID document
func (*MsgDeactivateDidDocPayload) Descriptor
deprecated
func (*MsgDeactivateDidDocPayload) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeactivateDidDocPayload.ProtoReflect.Descriptor instead.
func (*MsgDeactivateDidDocPayload) GetId ¶
func (x *MsgDeactivateDidDocPayload) GetId() string
func (*MsgDeactivateDidDocPayload) GetVersionId ¶
func (x *MsgDeactivateDidDocPayload) GetVersionId() string
func (*MsgDeactivateDidDocPayload) ProtoMessage ¶
func (*MsgDeactivateDidDocPayload) ProtoMessage()
func (*MsgDeactivateDidDocPayload) ProtoReflect ¶
func (x *MsgDeactivateDidDocPayload) ProtoReflect() protoreflect.Message
func (*MsgDeactivateDidDocPayload) Reset ¶
func (x *MsgDeactivateDidDocPayload) Reset()
func (*MsgDeactivateDidDocPayload) String ¶
func (x *MsgDeactivateDidDocPayload) String() string
type MsgDeactivateDidDocResponse ¶
type MsgDeactivateDidDocResponse struct {
// Return the deactivated DID Document with metadata
Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc.
func (*MsgDeactivateDidDocResponse) Descriptor
deprecated
func (*MsgDeactivateDidDocResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgDeactivateDidDocResponse.ProtoReflect.Descriptor instead.
func (*MsgDeactivateDidDocResponse) GetValue ¶
func (x *MsgDeactivateDidDocResponse) GetValue() *DidDocWithMetadata
func (*MsgDeactivateDidDocResponse) ProtoMessage ¶
func (*MsgDeactivateDidDocResponse) ProtoMessage()
func (*MsgDeactivateDidDocResponse) ProtoReflect ¶
func (x *MsgDeactivateDidDocResponse) ProtoReflect() protoreflect.Message
func (*MsgDeactivateDidDocResponse) Reset ¶
func (x *MsgDeactivateDidDocResponse) Reset()
func (*MsgDeactivateDidDocResponse) String ¶
func (x *MsgDeactivateDidDocResponse) String() string
type MsgMint ¶ added in v2.3.0
type MsgMint struct {
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
MsgMint is the sdk.Msg type for allowing an admin account to mint more of a token. Only the admin of the token factory denom has permission to mint unless the denom does not have any admin.
func (*MsgMint) Descriptor
deprecated
added in
v2.3.0
func (*MsgMint) GetAuthority ¶ added in v2.3.0
func (*MsgMint) GetToAddress ¶ added in v2.3.0
func (*MsgMint) ProtoMessage ¶ added in v2.3.0
func (*MsgMint) ProtoMessage()
func (*MsgMint) ProtoReflect ¶ added in v2.3.0
func (x *MsgMint) ProtoReflect() protoreflect.Message
type MsgMintResponse ¶ added in v2.3.0
type MsgMintResponse struct {
// contains filtered or unexported fields
}
func (*MsgMintResponse) Descriptor
deprecated
added in
v2.3.0
func (*MsgMintResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgMintResponse.ProtoReflect.Descriptor instead.
func (*MsgMintResponse) ProtoMessage ¶ added in v2.3.0
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) ProtoReflect ¶ added in v2.3.0
func (x *MsgMintResponse) ProtoReflect() protoreflect.Message
func (*MsgMintResponse) Reset ¶ added in v2.3.0
func (x *MsgMintResponse) Reset()
func (*MsgMintResponse) String ¶ added in v2.3.0
func (x *MsgMintResponse) String() string
type MsgServer ¶
type MsgServer interface {
// CreateDidDoc defines a method for creating a new DID document
CreateDidDoc(context.Context, *MsgCreateDidDoc) (*MsgCreateDidDocResponse, error)
// UpdateDidDoc defines a method for updating an existing DID document
UpdateDidDoc(context.Context, *MsgUpdateDidDoc) (*MsgUpdateDidDocResponse, error)
// DeactivateDidDoc defines a method for deactivating an existing DID document
DeactivateDidDoc(context.Context, *MsgDeactivateDidDoc) (*MsgDeactivateDidDocResponse, error)
Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
// Mint defines a method to mint tokens to the given address.
Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// contains filtered or unexported methods
}
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the Cosmos SDK Msg service for the cheqd.did.v2 module.
type MsgUpdateDidDoc ¶
type MsgUpdateDidDoc struct {
// Payload containing the DID Document to be updated. This should be updated the DID Document.
Payload *MsgUpdateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// Signatures of the DID Document's controller(s)
Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
// contains filtered or unexported fields
}
MsgUpdateDidDoc defines the Msg/UpdateDidDoc request type. It describes the parameters of a request for updating an existing DID document.
func (*MsgUpdateDidDoc) Descriptor
deprecated
func (*MsgUpdateDidDoc) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateDidDoc.ProtoReflect.Descriptor instead.
func (*MsgUpdateDidDoc) GetPayload ¶
func (x *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload
func (*MsgUpdateDidDoc) GetSignatures ¶
func (x *MsgUpdateDidDoc) GetSignatures() []*SignInfo
func (*MsgUpdateDidDoc) ProtoMessage ¶
func (*MsgUpdateDidDoc) ProtoMessage()
func (*MsgUpdateDidDoc) ProtoReflect ¶
func (x *MsgUpdateDidDoc) ProtoReflect() protoreflect.Message
func (*MsgUpdateDidDoc) Reset ¶
func (x *MsgUpdateDidDoc) Reset()
func (*MsgUpdateDidDoc) String ¶
func (x *MsgUpdateDidDoc) String() string
type MsgUpdateDidDocPayload ¶
type MsgUpdateDidDocPayload struct {
// context is a list of URIs used to identify the context of the DID document.
// Default: https://www.w3.org/ns/did/v1
Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
// id is the DID of the DID document.
// Format: did:cheqd:<namespace>:<unique-identifier>
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// controller is a list of DIDs that are allowed to control the DID document.
Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
// verificationMethod is a list of verification methods that can be used to
// verify a digital signature or cryptographic proof.
// Documentation: https://www.w3.org/TR/did-core/#verification-methods
//
// Required fields:
// - id: A unique identifier for the verification method
// - type: A supported verification method type (supported: Ed25519VerificationKey2018, Ed25519VerificationKey2020, JsonWebKey2020)
// - controller: DID of the controller of the verification method
// - verification_material: Public key of the verification method (supported: publicJwk, publicKeyBase58, publicKeyMultibase)
VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
// authentication is a list of verification methods that can be used to
// authenticate as the DID subject.
Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
// assertionMethod is a list of verification methods that can be used to
// assert statements as the DID subject.
AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
// capabilityInvocation is a list of verification methods that can be used to
// invoke capabilities as the DID subject.
CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
// capabilityDelegation is a list of verification methods that can be used to
// delegate capabilities as the DID subject.
CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
// keyAgreement is a list of verification methods that can be used to perform
// key agreement as the DID subject.
KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
// service is a list of services that can be used to interact with the DID subject.
// Documentation: https://www.w3.org/TR/did-core/#services
//
// Required fields:
// - id: A unique identifier for the service
// - type: A service type defined in DID Specification Registries
// - service_endpoint: Service endpoint(s), provided as a URI or set of URIs
Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
// alsoKnownAs is a list of DIDs that are known to refer to the same DID subject.
AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
// Updated version ID of the DID Document.
// Links to next/previous versions of the DID Document will be automatically updated.
//
// Format: <uuid>
VersionId string `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
// contains filtered or unexported fields
}
MsgUpdateDidDocPayload defines the structure of the payload for updating an existing DID document
func (*MsgUpdateDidDocPayload) Descriptor
deprecated
func (*MsgUpdateDidDocPayload) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateDidDocPayload.ProtoReflect.Descriptor instead.
func (*MsgUpdateDidDocPayload) GetAlsoKnownAs ¶
func (x *MsgUpdateDidDocPayload) GetAlsoKnownAs() []string
func (*MsgUpdateDidDocPayload) GetAssertionMethod ¶
func (x *MsgUpdateDidDocPayload) GetAssertionMethod() []string
func (*MsgUpdateDidDocPayload) GetAuthentication ¶
func (x *MsgUpdateDidDocPayload) GetAuthentication() []string
func (*MsgUpdateDidDocPayload) GetCapabilityDelegation ¶
func (x *MsgUpdateDidDocPayload) GetCapabilityDelegation() []string
func (*MsgUpdateDidDocPayload) GetCapabilityInvocation ¶
func (x *MsgUpdateDidDocPayload) GetCapabilityInvocation() []string
func (*MsgUpdateDidDocPayload) GetContext ¶
func (x *MsgUpdateDidDocPayload) GetContext() []string
func (*MsgUpdateDidDocPayload) GetController ¶
func (x *MsgUpdateDidDocPayload) GetController() []string
func (*MsgUpdateDidDocPayload) GetId ¶
func (x *MsgUpdateDidDocPayload) GetId() string
func (*MsgUpdateDidDocPayload) GetKeyAgreement ¶
func (x *MsgUpdateDidDocPayload) GetKeyAgreement() []string
func (*MsgUpdateDidDocPayload) GetService ¶
func (x *MsgUpdateDidDocPayload) GetService() []*Service
func (*MsgUpdateDidDocPayload) GetVerificationMethod ¶
func (x *MsgUpdateDidDocPayload) GetVerificationMethod() []*VerificationMethod
func (*MsgUpdateDidDocPayload) GetVersionId ¶
func (x *MsgUpdateDidDocPayload) GetVersionId() string
func (*MsgUpdateDidDocPayload) ProtoMessage ¶
func (*MsgUpdateDidDocPayload) ProtoMessage()
func (*MsgUpdateDidDocPayload) ProtoReflect ¶
func (x *MsgUpdateDidDocPayload) ProtoReflect() protoreflect.Message
func (*MsgUpdateDidDocPayload) Reset ¶
func (x *MsgUpdateDidDocPayload) Reset()
func (*MsgUpdateDidDocPayload) String ¶
func (x *MsgUpdateDidDocPayload) String() string
type MsgUpdateDidDocResponse ¶
type MsgUpdateDidDocResponse struct {
// Return the updated DID Document with metadata
Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*MsgUpdateDidDocResponse) Descriptor
deprecated
func (*MsgUpdateDidDocResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateDidDocResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateDidDocResponse) GetValue ¶
func (x *MsgUpdateDidDocResponse) GetValue() *DidDocWithMetadata
func (*MsgUpdateDidDocResponse) ProtoMessage ¶
func (*MsgUpdateDidDocResponse) ProtoMessage()
func (*MsgUpdateDidDocResponse) ProtoReflect ¶
func (x *MsgUpdateDidDocResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateDidDocResponse) Reset ¶
func (x *MsgUpdateDidDocResponse) Reset()
func (*MsgUpdateDidDocResponse) String ¶
func (x *MsgUpdateDidDocResponse) String() string
type MsgUpdateParams ¶ added in v2.4.0
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the x/did parameters to update.
//
// NOTE: All parameters must be supplied.
Params *FeeParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
// contains filtered or unexported fields
}
func (*MsgUpdateParams) Descriptor
deprecated
added in
v2.4.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶ added in v2.4.0
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v2.4.0
func (x *MsgUpdateParams) GetParams() *FeeParams
func (*MsgUpdateParams) ProtoMessage ¶ added in v2.4.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶ added in v2.4.0
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶ added in v2.4.0
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶ added in v2.4.0
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶ added in v2.4.0
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor
deprecated
added in
v2.4.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v2.4.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶ added in v2.4.0
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶ added in v2.4.0
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶ added in v2.4.0
func (x *MsgUpdateParamsResponse) String() string
type QueryAllDidDocVersionsMetadataRequest ¶
type QueryAllDidDocVersionsMetadataRequest struct {
// DID unique identifier of the DID Document to fetch version metadata.
// UUID-style DIDs as well as Indy-style DID are supported.
//
// Format: did:cheqd:<namespace>:<unique-identifier>
//
// Examples:
// - did:cheqd:mainnet:c82f2b02-bdab-4dd7-b833-3e143745d612
// - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// pagination defines an optional pagination for the request.
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
QueryAllDidDocVersionsMetadataRequest is the request type for the Query/AllDidDocVersionsMetadata method
func (*QueryAllDidDocVersionsMetadataRequest) Descriptor
deprecated
func (*QueryAllDidDocVersionsMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllDidDocVersionsMetadataRequest.ProtoReflect.Descriptor instead.
func (*QueryAllDidDocVersionsMetadataRequest) GetId ¶
func (x *QueryAllDidDocVersionsMetadataRequest) GetId() string
func (*QueryAllDidDocVersionsMetadataRequest) GetPagination ¶
func (x *QueryAllDidDocVersionsMetadataRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage ¶
func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage()
func (*QueryAllDidDocVersionsMetadataRequest) ProtoReflect ¶
func (x *QueryAllDidDocVersionsMetadataRequest) ProtoReflect() protoreflect.Message
func (*QueryAllDidDocVersionsMetadataRequest) Reset ¶
func (x *QueryAllDidDocVersionsMetadataRequest) Reset()
func (*QueryAllDidDocVersionsMetadataRequest) String ¶
func (x *QueryAllDidDocVersionsMetadataRequest) String() string
type QueryAllDidDocVersionsMetadataResponse ¶
type QueryAllDidDocVersionsMetadataResponse struct {
// versions is the list of all versions of the requested DID Document
Versions []*Metadata `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
// pagination defines the pagination in the response.
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
QueryAllDidDocVersionsMetadataResponse is the response type for the Query/AllDidDocVersionsMetadata method
func (*QueryAllDidDocVersionsMetadataResponse) Descriptor
deprecated
func (*QueryAllDidDocVersionsMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllDidDocVersionsMetadataResponse.ProtoReflect.Descriptor instead.
func (*QueryAllDidDocVersionsMetadataResponse) GetPagination ¶
func (x *QueryAllDidDocVersionsMetadataResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllDidDocVersionsMetadataResponse) GetVersions ¶
func (x *QueryAllDidDocVersionsMetadataResponse) GetVersions() []*Metadata
func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage ¶
func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage()
func (*QueryAllDidDocVersionsMetadataResponse) ProtoReflect ¶
func (x *QueryAllDidDocVersionsMetadataResponse) ProtoReflect() protoreflect.Message
func (*QueryAllDidDocVersionsMetadataResponse) Reset ¶
func (x *QueryAllDidDocVersionsMetadataResponse) Reset()
func (*QueryAllDidDocVersionsMetadataResponse) String ¶
func (x *QueryAllDidDocVersionsMetadataResponse) String() string
type QueryClient ¶
type QueryClient interface {
// Fetch latest version of a DID Document for a given DID
DidDoc(ctx context.Context, in *QueryDidDocRequest, opts ...grpc.CallOption) (*QueryDidDocResponse, error)
// Fetch specific version of a DID Document for a given DID
DidDocVersion(ctx context.Context, in *QueryDidDocVersionRequest, opts ...grpc.CallOption) (*QueryDidDocVersionResponse, error)
// Fetch list of all versions of DID Documents for a given DID
AllDidDocVersionsMetadata(ctx context.Context, in *QueryAllDidDocVersionsMetadataRequest, opts ...grpc.CallOption) (*QueryAllDidDocVersionsMetadataResponse, error)
// Params queries params of the did module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Query defines the gRPC querier service for the DID module
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryDidDocRequest ¶
type QueryDidDocRequest struct {
// DID unique identifier of the DID Document to fetch.
// UUID-style DIDs as well as Indy-style DID are supported.
//
// Format: did:cheqd:<namespace>:<unique-identifier>
//
// Examples:
// - did:cheqd:mainnet:c82f2b02-bdab-4dd7-b833-3e143745d612
// - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
QueryDidDocRequest is the request type for the Query/DidDoc method
func (*QueryDidDocRequest) Descriptor
deprecated
func (*QueryDidDocRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDidDocRequest.ProtoReflect.Descriptor instead.
func (*QueryDidDocRequest) GetId ¶
func (x *QueryDidDocRequest) GetId() string
func (*QueryDidDocRequest) ProtoMessage ¶
func (*QueryDidDocRequest) ProtoMessage()
func (*QueryDidDocRequest) ProtoReflect ¶
func (x *QueryDidDocRequest) ProtoReflect() protoreflect.Message
func (*QueryDidDocRequest) Reset ¶
func (x *QueryDidDocRequest) Reset()
func (*QueryDidDocRequest) String ¶
func (x *QueryDidDocRequest) String() string
type QueryDidDocResponse ¶
type QueryDidDocResponse struct {
// Successful resolution of the DID Document returns the following:
// - did_doc is the latest version of the DID Document
// - metadata is is the DID Document metadata associated with the latest version of the DID Document
Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
QueryDidDocResponse is the response type for the Query/DidDoc method
func (*QueryDidDocResponse) Descriptor
deprecated
func (*QueryDidDocResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDidDocResponse.ProtoReflect.Descriptor instead.
func (*QueryDidDocResponse) GetValue ¶
func (x *QueryDidDocResponse) GetValue() *DidDocWithMetadata
func (*QueryDidDocResponse) ProtoMessage ¶
func (*QueryDidDocResponse) ProtoMessage()
func (*QueryDidDocResponse) ProtoReflect ¶
func (x *QueryDidDocResponse) ProtoReflect() protoreflect.Message
func (*QueryDidDocResponse) Reset ¶
func (x *QueryDidDocResponse) Reset()
func (*QueryDidDocResponse) String ¶
func (x *QueryDidDocResponse) String() string
type QueryDidDocVersionRequest ¶
type QueryDidDocVersionRequest struct {
// DID unique identifier of the DID Document to fetch.
// UUID-style DIDs as well as Indy-style DID are supported.
//
// Format: did:cheqd:<namespace>:<unique-identifier>
//
// Examples:
// - did:cheqd:mainnet:c82f2b02-bdab-4dd7-b833-3e143745d612
// - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Unique version identifier of the DID Document to fetch.
// Returns the specified version of the DID Document.
//
// Format: <uuid>
//
// Example: 93f2573c-eca9-4098-96cb-a1ec676a29ed
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
QueryDidDocVersionRequest is the request type for the Query/DidDocVersion method
func (*QueryDidDocVersionRequest) Descriptor
deprecated
func (*QueryDidDocVersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDidDocVersionRequest.ProtoReflect.Descriptor instead.
func (*QueryDidDocVersionRequest) GetId ¶
func (x *QueryDidDocVersionRequest) GetId() string
func (*QueryDidDocVersionRequest) GetVersion ¶
func (x *QueryDidDocVersionRequest) GetVersion() string
func (*QueryDidDocVersionRequest) ProtoMessage ¶
func (*QueryDidDocVersionRequest) ProtoMessage()
func (*QueryDidDocVersionRequest) ProtoReflect ¶
func (x *QueryDidDocVersionRequest) ProtoReflect() protoreflect.Message
func (*QueryDidDocVersionRequest) Reset ¶
func (x *QueryDidDocVersionRequest) Reset()
func (*QueryDidDocVersionRequest) String ¶
func (x *QueryDidDocVersionRequest) String() string
type QueryDidDocVersionResponse ¶
type QueryDidDocVersionResponse struct {
// Successful resolution of the DID Document returns the following:
// - did_doc is the requested version of the DID Document
// - metadata is DID Document metadata associated with the requested version of the DID Document
Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
QueryDidDocVersionResponse is the response type for the Query/DidDocVersion method
func (*QueryDidDocVersionResponse) Descriptor
deprecated
func (*QueryDidDocVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDidDocVersionResponse.ProtoReflect.Descriptor instead.
func (*QueryDidDocVersionResponse) GetValue ¶
func (x *QueryDidDocVersionResponse) GetValue() *DidDocWithMetadata
func (*QueryDidDocVersionResponse) ProtoMessage ¶
func (*QueryDidDocVersionResponse) ProtoMessage()
func (*QueryDidDocVersionResponse) ProtoReflect ¶
func (x *QueryDidDocVersionResponse) ProtoReflect() protoreflect.Message
func (*QueryDidDocVersionResponse) Reset ¶
func (x *QueryDidDocVersionResponse) Reset()
func (*QueryDidDocVersionResponse) String ¶
func (x *QueryDidDocVersionResponse) String() string
type QueryParamsRequest ¶ added in v2.4.0
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
added in
v2.4.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶ added in v2.4.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶ added in v2.4.0
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶ added in v2.4.0
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶ added in v2.4.0
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶ added in v2.4.0
type QueryParamsResponse struct {
// params defines the parameters of the module.
Params *FeeParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// contains filtered or unexported fields
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
added in
v2.4.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶ added in v2.4.0
func (x *QueryParamsResponse) GetParams() *FeeParams
func (*QueryParamsResponse) ProtoMessage ¶ added in v2.4.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶ added in v2.4.0
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶ added in v2.4.0
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶ added in v2.4.0
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface {
// Fetch latest version of a DID Document for a given DID
DidDoc(context.Context, *QueryDidDocRequest) (*QueryDidDocResponse, error)
// Fetch specific version of a DID Document for a given DID
DidDocVersion(context.Context, *QueryDidDocVersionRequest) (*QueryDidDocVersionResponse, error)
// Fetch list of all versions of DID Documents for a given DID
AllDidDocVersionsMetadata(context.Context, *QueryAllDidDocVersionsMetadataRequest) (*QueryAllDidDocVersionsMetadataResponse, error)
// Params queries params of the did module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// contains filtered or unexported methods
}
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query defines the gRPC querier service for the DID module
type Service ¶
type Service struct {
// id is the unique identifier of the service.
// Format: did:cheqd:<namespace>:<unique-identifier>#<service-id>
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// type is the type of the service.
// Example: LinkedResource
ServiceType string `protobuf:"bytes,2,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"`
// serviceEndpoint is the endpoint of the service.
// Example: https://example.com/endpoint
ServiceEndpoint []string `protobuf:"bytes,3,rep,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"`
// recipient key identify the recipient’s public encryption keys
// Format: did:cheqd:<namespace>:<unique-identifier>#<key-id> or did:key:<identifier>
RecipientKeys []string `protobuf:"bytes,4,rep,name=recipient_keys,json=recipientKeys,proto3" json:"recipient_keys,omitempty"`
// routing keys contain a list of mediator or relay keys
// Format: did:cheqd:<namespace>:<unique-identifier>#<key-id> or did:key:<identifier>
RoutingKeys []string `protobuf:"bytes,5,rep,name=routing_keys,json=routingKeys,proto3" json:"routing_keys,omitempty"`
// accept: list of MIME types or protocol formats the service supports.
// format: ["didcomm/v2", "didcomm/v1"]
Accept []string `protobuf:"bytes,6,rep,name=accept,proto3" json:"accept,omitempty"`
// priority: An integer defining the priority of this service entry.
Priority uint32 `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"`
// contains filtered or unexported fields
}
Service defines a service, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#services
func (*Service) Descriptor
deprecated
func (*Service) GetPriority ¶ added in v2.4.0
func (*Service) GetRecipientKeys ¶ added in v2.4.0
func (*Service) GetRoutingKeys ¶ added in v2.4.0
func (*Service) GetServiceEndpoint ¶
func (*Service) GetServiceType ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type SignInfo ¶
type SignInfo struct {
// Verification method ID of the DID Controller
VerificationMethodId string `protobuf:"bytes,1,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"`
// Signature of the DID Document controller
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
SignInfo defines the structure of a DID Document controller's signature
func (*SignInfo) Descriptor
deprecated
func (*SignInfo) GetSignature ¶
func (*SignInfo) GetVerificationMethodId ¶
func (*SignInfo) ProtoMessage ¶
func (*SignInfo) ProtoMessage()
func (*SignInfo) ProtoReflect ¶
func (x *SignInfo) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) Burn ¶ added in v2.3.0
func (UnimplementedMsgServer) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
func (UnimplementedMsgServer) CreateDidDoc ¶
func (UnimplementedMsgServer) CreateDidDoc(context.Context, *MsgCreateDidDoc) (*MsgCreateDidDocResponse, error)
func (UnimplementedMsgServer) DeactivateDidDoc ¶
func (UnimplementedMsgServer) DeactivateDidDoc(context.Context, *MsgDeactivateDidDoc) (*MsgDeactivateDidDocResponse, error)
func (UnimplementedMsgServer) Mint ¶ added in v2.3.0
func (UnimplementedMsgServer) Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
func (UnimplementedMsgServer) UpdateDidDoc ¶
func (UnimplementedMsgServer) UpdateDidDoc(context.Context, *MsgUpdateDidDoc) (*MsgUpdateDidDocResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶ added in v2.4.0
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) AllDidDocVersionsMetadata ¶
func (UnimplementedQueryServer) AllDidDocVersionsMetadata(context.Context, *QueryAllDidDocVersionsMetadataRequest) (*QueryAllDidDocVersionsMetadataResponse, error)
func (UnimplementedQueryServer) DidDoc ¶
func (UnimplementedQueryServer) DidDoc(context.Context, *QueryDidDocRequest) (*QueryDidDocResponse, error)
func (UnimplementedQueryServer) DidDocVersion ¶
func (UnimplementedQueryServer) DidDocVersion(context.Context, *QueryDidDocVersionRequest) (*QueryDidDocVersionResponse, error)
func (UnimplementedQueryServer) Params ¶ added in v2.4.0
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type VerificationMethod ¶
type VerificationMethod struct {
// id is the unique identifier of the verification method.
// Format: did:cheqd:<namespace>:<unique-identifier>#<key-id>
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// type is the type of the verification method.
// Example: Ed25519VerificationKey2020
VerificationMethodType string `` /* 129-byte string literal not displayed */
// controller is the DID of the controller of the verification method.
// Format: did:cheqd:<namespace>:<unique-identifier>
Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
// verification_material is the public key of the verification method.
// Commonly used verification material types: publicJwk, publicKeyBase58, publicKeyMultibase
VerificationMaterial string `protobuf:"bytes,4,opt,name=verification_material,json=verificationMaterial,proto3" json:"verification_material,omitempty"`
// contains filtered or unexported fields
}
VerificationMethod defines a verification method, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#verification-methods
func (*VerificationMethod) Descriptor
deprecated
func (*VerificationMethod) Descriptor() ([]byte, []int)
Deprecated: Use VerificationMethod.ProtoReflect.Descriptor instead.
func (*VerificationMethod) GetController ¶
func (x *VerificationMethod) GetController() string
func (*VerificationMethod) GetId ¶
func (x *VerificationMethod) GetId() string
func (*VerificationMethod) GetVerificationMaterial ¶
func (x *VerificationMethod) GetVerificationMaterial() string
func (*VerificationMethod) GetVerificationMethodType ¶
func (x *VerificationMethod) GetVerificationMethodType() string
func (*VerificationMethod) ProtoMessage ¶
func (*VerificationMethod) ProtoMessage()
func (*VerificationMethod) ProtoReflect ¶
func (x *VerificationMethod) ProtoReflect() protoreflect.Message
func (*VerificationMethod) Reset ¶
func (x *VerificationMethod) Reset()
func (*VerificationMethod) String ¶
func (x *VerificationMethod) String() string