Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDidDocVersionKey(did string, version string) []byte
- func GetDidDocVersionsPrefix(did string) []byte
- func GetLatestDidDocVersionKey(did string) []byte
- func GetLatestDidDocVersionPrefix() []byte
- func GetServiceIds(vms []*Service) []string
- func GetSignInfoIds(infos []*SignInfo) []string
- func GetVerificationMethodIds(vms []*VerificationMethod) []string
- func IsUniqueSignInfoList(infos []*SignInfo) bool
- func NormalizeSignInfoList(signatures []*SignInfo)
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func VerificationMethodListToMapByFragment(vms []*VerificationMethod) map[string]VerificationMethod
- func VerifySignature(vm VerificationMethod, message []byte, signature []byte) error
- type AccountKeeper
- type AssertionMethodJSONUnescaped
- type BankKeeper
- type CustomErrorRule
- func HasPrefix(prefix string) *CustomErrorRule
- func IsAssertionMethod(allowedNamespaces []string, didDoc DidDoc) *CustomErrorRule
- func IsBase58Ed25519VerificationKey2018() *CustomErrorRule
- func IsDID(allowedNamespaces []string) *CustomErrorRule
- func IsDIDUrl(allowedNamespaces []string, pathRule, queryRule, fragmentRule ValidationType) *CustomErrorRule
- func IsID() *CustomErrorRule
- func IsJWK() *CustomErrorRule
- func IsMultibase() *CustomErrorRule
- func IsMultibaseEd25519VerificationKey2020() *CustomErrorRule
- func IsMultibaseEncodedEd25519PubKey() *CustomErrorRule
- func IsURI() *CustomErrorRule
- func IsUUID() *CustomErrorRule
- func IsUniqueServiceListByIDRule() *CustomErrorRule
- func IsUniqueSignInfoListByIDRule() *CustomErrorRule
- func IsUniqueSignInfoListRule() *CustomErrorRule
- func IsUniqueStrList() *CustomErrorRule
- func IsUniqueVerificationMethodListByIDRule() *CustomErrorRule
- func NewCustomErrorRule(fn func(value interface{}) error) *CustomErrorRule
- func ValidMsgCreateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule
- func ValidMsgDeactivateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule
- func ValidMsgUpdateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule
- func ValidServiceRule(baseDid string, allowedNamespaces []string) *CustomErrorRule
- func ValidSignInfoRule(allowedNamespaces []string) *CustomErrorRule
- func ValidVerificationMethodRule(baseDid string, allowedNamespaces []string) *CustomErrorRule
- type DidDoc
- func (didDoc *DidDoc) AllControllerDids() []string
- func (*DidDoc) Descriptor() ([]byte, []int)
- func (m *DidDoc) GetAlsoKnownAs() []string
- func (m *DidDoc) GetAssertionMethod() []string
- func (m *DidDoc) GetAuthentication() []string
- func (m *DidDoc) GetCapabilityDelegation() []string
- func (m *DidDoc) GetCapabilityInvocation() []string
- func (m *DidDoc) GetContext() []string
- func (m *DidDoc) GetController() []string
- func (didDoc *DidDoc) GetControllersOrSubject() []string
- func (m *DidDoc) GetId() string
- func (m *DidDoc) GetKeyAgreement() []string
- func (m *DidDoc) GetService() []*Service
- func (m *DidDoc) GetVerificationMethod() []*VerificationMethod
- func (didDoc *DidDoc) GetVerificationMethodControllers() []string
- func (m *DidDoc) Marshal() (dAtA []byte, err error)
- func (m *DidDoc) MarshalTo(dAtA []byte) (int, error)
- func (m *DidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DidDoc) ProtoMessage()
- func (didDoc *DidDoc) ReplaceDids(old, new string)
- func (m *DidDoc) Reset()
- func (m *DidDoc) Size() (n int)
- func (m *DidDoc) String() string
- func (m *DidDoc) Unmarshal(dAtA []byte) error
- func (didDoc DidDoc) Validate(allowedNamespaces []string) error
- func (m *DidDoc) XXX_DiscardUnknown()
- func (m *DidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DidDoc) XXX_Merge(src proto.Message)
- func (m *DidDoc) XXX_Size() int
- func (m *DidDoc) XXX_Unmarshal(b []byte) error
- type DidDocVersionSet
- func (*DidDocVersionSet) Descriptor() ([]byte, []int)
- func (m *DidDocVersionSet) GetDidDocs() []*DidDocWithMetadata
- func (m *DidDocVersionSet) GetLatestVersion() string
- func (m *DidDocVersionSet) Marshal() (dAtA []byte, err error)
- func (m *DidDocVersionSet) MarshalTo(dAtA []byte) (int, error)
- func (m *DidDocVersionSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DidDocVersionSet) ProtoMessage()
- func (m *DidDocVersionSet) Reset()
- func (m *DidDocVersionSet) Size() (n int)
- func (m *DidDocVersionSet) String() string
- func (m *DidDocVersionSet) Unmarshal(dAtA []byte) error
- func (m *DidDocVersionSet) XXX_DiscardUnknown()
- func (m *DidDocVersionSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DidDocVersionSet) XXX_Merge(src proto.Message)
- func (m *DidDocVersionSet) XXX_Size() int
- func (m *DidDocVersionSet) XXX_Unmarshal(b []byte) error
- type DidDocWithMetadata
- func (*DidDocWithMetadata) Descriptor() ([]byte, []int)
- func (m *DidDocWithMetadata) GetDidDoc() *DidDoc
- func (m *DidDocWithMetadata) GetMetadata() *Metadata
- func (m *DidDocWithMetadata) Marshal() (dAtA []byte, err error)
- func (m *DidDocWithMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *DidDocWithMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DidDocWithMetadata) ProtoMessage()
- func (d *DidDocWithMetadata) ReplaceDids(old, new string)
- func (m *DidDocWithMetadata) Reset()
- func (m *DidDocWithMetadata) Size() (n int)
- func (m *DidDocWithMetadata) String() string
- func (m *DidDocWithMetadata) Unmarshal(dAtA []byte) error
- func (m *DidDocWithMetadata) XXX_DiscardUnknown()
- func (m *DidDocWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DidDocWithMetadata) XXX_Merge(src proto.Message)
- func (m *DidDocWithMetadata) XXX_Size() int
- func (m *DidDocWithMetadata) XXX_Unmarshal(b []byte) error
- type FeeParams
- func (*FeeParams) Descriptor() ([]byte, []int)
- func (this *FeeParams) Equal(that interface{}) bool
- func (m *FeeParams) GetCreateDid() types.Coin
- func (m *FeeParams) GetDeactivateDid() types.Coin
- func (m *FeeParams) GetUpdateDid() types.Coin
- func (m *FeeParams) Marshal() (dAtA []byte, err error)
- func (m *FeeParams) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeParams) ProtoMessage()
- func (m *FeeParams) Reset()
- func (m *FeeParams) Size() (n int)
- func (m *FeeParams) String() string
- func (m *FeeParams) Unmarshal(dAtA []byte) error
- func (tfp *FeeParams) ValidateBasic() error
- func (m *FeeParams) XXX_DiscardUnknown()
- func (m *FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeParams) XXX_Merge(src proto.Message)
- func (m *FeeParams) XXX_Size() int
- func (m *FeeParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDidNamespace() string
- func (m *GenesisState) GetFeeParams() *FeeParams
- func (m *GenesisState) GetVersionSets() []*DidDocVersionSet
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (gs GenesisState) ValidateBasic() error
- func (gs GenesisState) ValidateNoDuplicates() error
- func (gs GenesisState) ValidateVersionSets() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IdentityMsg
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetCreated() time.Time
- func (m *Metadata) GetDeactivated() bool
- func (m *Metadata) GetNextVersionId() string
- func (m *Metadata) GetPreviousVersionId() string
- func (m *Metadata) GetUpdated() *time.Time
- func (m *Metadata) GetVersionId() string
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) Update(ctx sdk.Context, version string)
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m MsgBurn) GetSignBytes() []byte
- func (m MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (m MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (m MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateDidDoc
- func (*MsgCreateDidDoc) Descriptor() ([]byte, []int)
- func (m *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload
- func (msg *MsgCreateDidDoc) GetSignBytes() []byte
- func (m *MsgCreateDidDoc) GetSignatures() []*SignInfo
- func (msg *MsgCreateDidDoc) GetSigners() []sdk.AccAddress
- func (m *MsgCreateDidDoc) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDidDoc) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgCreateDidDoc) Normalize()
- func (*MsgCreateDidDoc) ProtoMessage()
- func (m *MsgCreateDidDoc) Reset()
- func (msg *MsgCreateDidDoc) Route() string
- func (m *MsgCreateDidDoc) Size() (n int)
- func (m *MsgCreateDidDoc) String() string
- func (msg *MsgCreateDidDoc) Type() string
- func (m *MsgCreateDidDoc) Unmarshal(dAtA []byte) error
- func (msg MsgCreateDidDoc) Validate(allowedNamespaces []string) error
- func (msg *MsgCreateDidDoc) ValidateBasic() error
- func (m *MsgCreateDidDoc) XXX_DiscardUnknown()
- func (m *MsgCreateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDidDoc) XXX_Merge(src proto.Message)
- func (m *MsgCreateDidDoc) XXX_Size() int
- func (m *MsgCreateDidDoc) XXX_Unmarshal(b []byte) error
- type MsgCreateDidDocPayload
- func (*MsgCreateDidDocPayload) Descriptor() ([]byte, []int)
- func (m *MsgCreateDidDocPayload) GetAlsoKnownAs() []string
- func (m *MsgCreateDidDocPayload) GetAssertionMethod() []string
- func (m *MsgCreateDidDocPayload) GetAuthentication() []string
- func (m *MsgCreateDidDocPayload) GetCapabilityDelegation() []string
- func (m *MsgCreateDidDocPayload) GetCapabilityInvocation() []string
- func (m *MsgCreateDidDocPayload) GetContext() []string
- func (m *MsgCreateDidDocPayload) GetController() []string
- func (m *MsgCreateDidDocPayload) GetId() string
- func (m *MsgCreateDidDocPayload) GetKeyAgreement() []string
- func (m *MsgCreateDidDocPayload) GetService() []*Service
- func (msg *MsgCreateDidDocPayload) GetSignBytes() []byte
- func (m *MsgCreateDidDocPayload) GetVerificationMethod() []*VerificationMethod
- func (m *MsgCreateDidDocPayload) GetVersionId() string
- func (m *MsgCreateDidDocPayload) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDidDocPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgCreateDidDocPayload) Normalize()
- func (*MsgCreateDidDocPayload) ProtoMessage()
- func (m *MsgCreateDidDocPayload) Reset()
- func (m *MsgCreateDidDocPayload) Size() (n int)
- func (m *MsgCreateDidDocPayload) String() string
- func (msg *MsgCreateDidDocPayload) ToDidDoc() DidDoc
- func (m *MsgCreateDidDocPayload) Unmarshal(dAtA []byte) error
- func (msg MsgCreateDidDocPayload) Validate(allowedNamespaces []string) error
- func (m *MsgCreateDidDocPayload) XXX_DiscardUnknown()
- func (m *MsgCreateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDidDocPayload) XXX_Merge(src proto.Message)
- func (m *MsgCreateDidDocPayload) XXX_Size() int
- func (m *MsgCreateDidDocPayload) XXX_Unmarshal(b []byte) error
- type MsgCreateDidDocResponse
- func (*MsgCreateDidDocResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateDidDocResponse) GetValue() *DidDocWithMetadata
- func (m *MsgCreateDidDocResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDidDocResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDidDocResponse) ProtoMessage()
- func (m *MsgCreateDidDocResponse) Reset()
- func (m *MsgCreateDidDocResponse) Size() (n int)
- func (m *MsgCreateDidDocResponse) String() string
- func (m *MsgCreateDidDocResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateDidDocResponse) XXX_DiscardUnknown()
- func (m *MsgCreateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDidDocResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateDidDocResponse) XXX_Size() int
- func (m *MsgCreateDidDocResponse) XXX_Unmarshal(b []byte) error
- type MsgDeactivateDidDoc
- func (*MsgDeactivateDidDoc) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateDidDoc) GetPayload() *MsgDeactivateDidDocPayload
- func (msg *MsgDeactivateDidDoc) GetSignBytes() []byte
- func (m *MsgDeactivateDidDoc) GetSignatures() []*SignInfo
- func (msg *MsgDeactivateDidDoc) GetSigners() []sdk.AccAddress
- func (m *MsgDeactivateDidDoc) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateDidDoc) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgDeactivateDidDoc) Normalize()
- func (*MsgDeactivateDidDoc) ProtoMessage()
- func (m *MsgDeactivateDidDoc) Reset()
- func (msg *MsgDeactivateDidDoc) Route() string
- func (m *MsgDeactivateDidDoc) Size() (n int)
- func (m *MsgDeactivateDidDoc) String() string
- func (msg *MsgDeactivateDidDoc) Type() string
- func (m *MsgDeactivateDidDoc) Unmarshal(dAtA []byte) error
- func (msg MsgDeactivateDidDoc) Validate(allowedNamespaces []string) error
- func (msg *MsgDeactivateDidDoc) ValidateBasic() error
- func (m *MsgDeactivateDidDoc) XXX_DiscardUnknown()
- func (m *MsgDeactivateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateDidDoc) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateDidDoc) XXX_Size() int
- func (m *MsgDeactivateDidDoc) XXX_Unmarshal(b []byte) error
- type MsgDeactivateDidDocPayload
- func (*MsgDeactivateDidDocPayload) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateDidDocPayload) GetId() string
- func (msg *MsgDeactivateDidDocPayload) GetSignBytes() []byte
- func (m *MsgDeactivateDidDocPayload) GetVersionId() string
- func (m *MsgDeactivateDidDocPayload) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateDidDocPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgDeactivateDidDocPayload) Normalize()
- func (*MsgDeactivateDidDocPayload) ProtoMessage()
- func (m *MsgDeactivateDidDocPayload) Reset()
- func (m *MsgDeactivateDidDocPayload) Size() (n int)
- func (m *MsgDeactivateDidDocPayload) String() string
- func (m *MsgDeactivateDidDocPayload) Unmarshal(dAtA []byte) error
- func (msg MsgDeactivateDidDocPayload) Validate(allowedNamespaces []string) error
- func (m *MsgDeactivateDidDocPayload) XXX_DiscardUnknown()
- func (m *MsgDeactivateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateDidDocPayload) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateDidDocPayload) XXX_Size() int
- func (m *MsgDeactivateDidDocPayload) XXX_Unmarshal(b []byte) error
- type MsgDeactivateDidDocResponse
- func (*MsgDeactivateDidDocResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateDidDocResponse) GetValue() *DidDocWithMetadata
- func (m *MsgDeactivateDidDocResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateDidDocResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateDidDocResponse) ProtoMessage()
- func (m *MsgDeactivateDidDocResponse) Reset()
- func (m *MsgDeactivateDidDocResponse) Size() (n int)
- func (m *MsgDeactivateDidDocResponse) String() string
- func (m *MsgDeactivateDidDocResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeactivateDidDocResponse) XXX_DiscardUnknown()
- func (m *MsgDeactivateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateDidDocResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateDidDocResponse) XXX_Size() int
- func (m *MsgDeactivateDidDocResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgMint) GetAuthority() string
- func (msg *MsgMint) GetSignBytes() []byte
- func (msg *MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) GetToAddress() string
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg *MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg *MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg *MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateDidDoc
- func (*MsgUpdateDidDoc) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload
- func (msg *MsgUpdateDidDoc) GetSignBytes() []byte
- func (m *MsgUpdateDidDoc) GetSignatures() []*SignInfo
- func (msg *MsgUpdateDidDoc) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateDidDoc) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDidDoc) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgUpdateDidDoc) Normalize()
- func (*MsgUpdateDidDoc) ProtoMessage()
- func (m *MsgUpdateDidDoc) Reset()
- func (msg *MsgUpdateDidDoc) Route() string
- func (m *MsgUpdateDidDoc) Size() (n int)
- func (m *MsgUpdateDidDoc) String() string
- func (msg *MsgUpdateDidDoc) Type() string
- func (m *MsgUpdateDidDoc) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateDidDoc) Validate(allowedNamespaces []string) error
- func (msg *MsgUpdateDidDoc) ValidateBasic() error
- func (m *MsgUpdateDidDoc) XXX_DiscardUnknown()
- func (m *MsgUpdateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDidDoc) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDidDoc) XXX_Size() int
- func (m *MsgUpdateDidDoc) XXX_Unmarshal(b []byte) error
- type MsgUpdateDidDocPayload
- func (*MsgUpdateDidDocPayload) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDidDocPayload) GetAlsoKnownAs() []string
- func (m *MsgUpdateDidDocPayload) GetAssertionMethod() []string
- func (m *MsgUpdateDidDocPayload) GetAuthentication() []string
- func (m *MsgUpdateDidDocPayload) GetCapabilityDelegation() []string
- func (m *MsgUpdateDidDocPayload) GetCapabilityInvocation() []string
- func (m *MsgUpdateDidDocPayload) GetContext() []string
- func (m *MsgUpdateDidDocPayload) GetController() []string
- func (m *MsgUpdateDidDocPayload) GetId() string
- func (m *MsgUpdateDidDocPayload) GetKeyAgreement() []string
- func (m *MsgUpdateDidDocPayload) GetService() []*Service
- func (msg *MsgUpdateDidDocPayload) GetSignBytes() []byte
- func (m *MsgUpdateDidDocPayload) GetVerificationMethod() []*VerificationMethod
- func (m *MsgUpdateDidDocPayload) GetVersionId() string
- func (m *MsgUpdateDidDocPayload) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDidDocPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgUpdateDidDocPayload) Normalize()
- func (*MsgUpdateDidDocPayload) ProtoMessage()
- func (m *MsgUpdateDidDocPayload) Reset()
- func (m *MsgUpdateDidDocPayload) Size() (n int)
- func (m *MsgUpdateDidDocPayload) String() string
- func (msg *MsgUpdateDidDocPayload) ToDidDoc() DidDoc
- func (m *MsgUpdateDidDocPayload) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateDidDocPayload) Validate(allowedNamespaces []string) error
- func (m *MsgUpdateDidDocPayload) XXX_DiscardUnknown()
- func (m *MsgUpdateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDidDocPayload) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDidDocPayload) XXX_Size() int
- func (m *MsgUpdateDidDocPayload) XXX_Unmarshal(b []byte) error
- type MsgUpdateDidDocResponse
- func (*MsgUpdateDidDocResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDidDocResponse) GetValue() *DidDocWithMetadata
- func (m *MsgUpdateDidDocResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDidDocResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDidDocResponse) ProtoMessage()
- func (m *MsgUpdateDidDocResponse) Reset()
- func (m *MsgUpdateDidDocResponse) Size() (n int)
- func (m *MsgUpdateDidDocResponse) String() string
- func (m *MsgUpdateDidDocResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateDidDocResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDidDocResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDidDocResponse) XXX_Size() int
- func (m *MsgUpdateDidDocResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type QueryAllDidDocVersionsMetadataRequest
- func (*QueryAllDidDocVersionsMetadataRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllDidDocVersionsMetadataRequest) GetId() string
- func (m *QueryAllDidDocVersionsMetadataRequest) GetPagination() *query.PageRequest
- func (m *QueryAllDidDocVersionsMetadataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDidDocVersionsMetadataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDidDocVersionsMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (query *QueryAllDidDocVersionsMetadataRequest) Normalize()
- func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage()
- func (m *QueryAllDidDocVersionsMetadataRequest) Reset()
- func (m *QueryAllDidDocVersionsMetadataRequest) Size() (n int)
- func (m *QueryAllDidDocVersionsMetadataRequest) String() string
- func (m *QueryAllDidDocVersionsMetadataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown()
- func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Size() int
- func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Unmarshal(b []byte) error
- type QueryAllDidDocVersionsMetadataResponse
- func (*QueryAllDidDocVersionsMetadataResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllDidDocVersionsMetadataResponse) GetPagination() *query.PageResponse
- func (m *QueryAllDidDocVersionsMetadataResponse) GetVersions() []*Metadata
- func (m *QueryAllDidDocVersionsMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDidDocVersionsMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDidDocVersionsMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage()
- func (m *QueryAllDidDocVersionsMetadataResponse) Reset()
- func (m *QueryAllDidDocVersionsMetadataResponse) Size() (n int)
- func (m *QueryAllDidDocVersionsMetadataResponse) String() string
- func (m *QueryAllDidDocVersionsMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown()
- func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Size() int
- func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDidDocRequest
- func (*QueryDidDocRequest) Descriptor() ([]byte, []int)
- func (m *QueryDidDocRequest) GetId() string
- func (m *QueryDidDocRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDidDocRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDidDocRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (query *QueryDidDocRequest) Normalize()
- func (*QueryDidDocRequest) ProtoMessage()
- func (m *QueryDidDocRequest) Reset()
- func (m *QueryDidDocRequest) Size() (n int)
- func (m *QueryDidDocRequest) String() string
- func (m *QueryDidDocRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDidDocRequest) XXX_DiscardUnknown()
- func (m *QueryDidDocRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDidDocRequest) XXX_Merge(src proto.Message)
- func (m *QueryDidDocRequest) XXX_Size() int
- func (m *QueryDidDocRequest) XXX_Unmarshal(b []byte) error
- type QueryDidDocResponse
- func (*QueryDidDocResponse) Descriptor() ([]byte, []int)
- func (m *QueryDidDocResponse) GetValue() *DidDocWithMetadata
- func (m *QueryDidDocResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDidDocResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDidDocResponse) ProtoMessage()
- func (m *QueryDidDocResponse) Reset()
- func (m *QueryDidDocResponse) Size() (n int)
- func (m *QueryDidDocResponse) String() string
- func (m *QueryDidDocResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDidDocResponse) XXX_DiscardUnknown()
- func (m *QueryDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDidDocResponse) XXX_Merge(src proto.Message)
- func (m *QueryDidDocResponse) XXX_Size() int
- func (m *QueryDidDocResponse) XXX_Unmarshal(b []byte) error
- type QueryDidDocVersionRequest
- func (*QueryDidDocVersionRequest) Descriptor() ([]byte, []int)
- func (m *QueryDidDocVersionRequest) GetId() string
- func (m *QueryDidDocVersionRequest) GetVersion() string
- func (m *QueryDidDocVersionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDidDocVersionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDidDocVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (query *QueryDidDocVersionRequest) Normalize()
- func (*QueryDidDocVersionRequest) ProtoMessage()
- func (m *QueryDidDocVersionRequest) Reset()
- func (m *QueryDidDocVersionRequest) Size() (n int)
- func (m *QueryDidDocVersionRequest) String() string
- func (m *QueryDidDocVersionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDidDocVersionRequest) XXX_DiscardUnknown()
- func (m *QueryDidDocVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDidDocVersionRequest) XXX_Merge(src proto.Message)
- func (m *QueryDidDocVersionRequest) XXX_Size() int
- func (m *QueryDidDocVersionRequest) XXX_Unmarshal(b []byte) error
- type QueryDidDocVersionResponse
- func (*QueryDidDocVersionResponse) Descriptor() ([]byte, []int)
- func (m *QueryDidDocVersionResponse) GetValue() *DidDocWithMetadata
- func (m *QueryDidDocVersionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDidDocVersionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDidDocVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDidDocVersionResponse) ProtoMessage()
- func (m *QueryDidDocVersionResponse) Reset()
- func (m *QueryDidDocVersionResponse) Size() (n int)
- func (m *QueryDidDocVersionResponse) String() string
- func (m *QueryDidDocVersionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDidDocVersionResponse) XXX_DiscardUnknown()
- func (m *QueryDidDocVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDidDocVersionResponse) XXX_Merge(src proto.Message)
- func (m *QueryDidDocVersionResponse) XXX_Size() int
- func (m *QueryDidDocVersionResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetId() string
- func (m *Service) GetServiceEndpoint() []string
- func (m *Service) GetServiceType() string
- func (m *Service) Marshal() (dAtA []byte, err error)
- func (m *Service) MarshalTo(dAtA []byte) (int, error)
- func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Service) ProtoMessage()
- func (s *Service) ReplaceDids(old, new string)
- func (m *Service) Reset()
- func (m *Service) Size() (n int)
- func (m *Service) String() string
- func (m *Service) Unmarshal(dAtA []byte) error
- func (s Service) Validate(baseDid string, allowedNamespaces []string) error
- func (m *Service) XXX_DiscardUnknown()
- func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Service) XXX_Merge(src proto.Message)
- func (m *Service) XXX_Size() int
- func (m *Service) XXX_Unmarshal(b []byte) error
- type SignInfo
- func (*SignInfo) Descriptor() ([]byte, []int)
- func (m *SignInfo) GetSignature() []byte
- func (m *SignInfo) GetVerificationMethodId() string
- func (m *SignInfo) Marshal() (dAtA []byte, err error)
- func (m *SignInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *SignInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (si *SignInfo) Normalize()
- func (*SignInfo) ProtoMessage()
- func (m *SignInfo) Reset()
- func (m *SignInfo) Size() (n int)
- func (m *SignInfo) String() string
- func (m *SignInfo) Unmarshal(dAtA []byte) error
- func (si SignInfo) Validate(allowedNamespaces []string) error
- func (m *SignInfo) XXX_DiscardUnknown()
- func (m *SignInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignInfo) XXX_Merge(src proto.Message)
- func (m *SignInfo) XXX_Size() int
- func (m *SignInfo) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) CreateDidDoc(ctx context.Context, req *MsgCreateDidDoc) (*MsgCreateDidDocResponse, error)
- func (*UnimplementedMsgServer) DeactivateDidDoc(ctx context.Context, req *MsgDeactivateDidDoc) (*MsgDeactivateDidDocResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) UpdateDidDoc(ctx context.Context, req *MsgUpdateDidDoc) (*MsgUpdateDidDocResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllDidDocVersionsMetadata(ctx context.Context, req *QueryAllDidDocVersionsMetadataRequest) (*QueryAllDidDocVersionsMetadataResponse, error)
- func (*UnimplementedQueryServer) DidDoc(ctx context.Context, req *QueryDidDocRequest) (*QueryDidDocResponse, error)
- func (*UnimplementedQueryServer) DidDocVersion(ctx context.Context, req *QueryDidDocVersionRequest) (*QueryDidDocVersionResponse, error)
- type ValidationType
- type VerificationMethod
- func (*VerificationMethod) Descriptor() ([]byte, []int)
- func (m *VerificationMethod) GetController() string
- func (m *VerificationMethod) GetId() string
- func (m *VerificationMethod) GetVerificationMaterial() string
- func (m *VerificationMethod) GetVerificationMethodType() string
- func (m *VerificationMethod) Marshal() (dAtA []byte, err error)
- func (m *VerificationMethod) MarshalTo(dAtA []byte) (int, error)
- func (m *VerificationMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VerificationMethod) ProtoMessage()
- func (vm *VerificationMethod) ReplaceDids(old, new string)
- func (m *VerificationMethod) Reset()
- func (m *VerificationMethod) Size() (n int)
- func (m *VerificationMethod) String() string
- func (m *VerificationMethod) Unmarshal(dAtA []byte) error
- func (vm VerificationMethod) Validate(baseDid string, allowedNamespaces []string) error
- func (m *VerificationMethod) XXX_DiscardUnknown()
- func (m *VerificationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerificationMethod) XXX_Merge(src proto.Message)
- func (m *VerificationMethod) XXX_Size() int
- func (m *VerificationMethod) XXX_Unmarshal(b []byte) error
Constants ¶
const ( BaseMinimalDenom = "ncheq" BaseFactor = 1e9 )
const ( JSONWebKey2020Type = "JsonWebKey2020" Ed25519VerificationKey2020Type = "Ed25519VerificationKey2020" Ed25519VerificationKey2018Type = "Ed25519VerificationKey2018" )
const ( DefaultDidNamespace = "testnet" DefaultCreateDidTxFee = 50e9 // 50 CHEQ or 50000000000 ncheq DefaultUpdateDidTxFee = 25e9 // 25 CHEQ or 25000000000 ncheq DefaultDeactivateDidTxFee = 10e9 // 10 CHEQ or 10000000000 ncheq DefaultBurnFactor = "0.500000000000000000" // 0.5 or 50% )
const ( // ModuleName defines the module name ModuleName = "cheqd" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName DidMethod = ModuleName )
const ( LatestDidDocVersionKey = "did-latest:" DidDocVersionKey = "did-version:" DidDocCountKey = "did-count:" DidNamespaceKey = "did-namespace:" )
const ( QueryGetDidDoc = "get-diddoc" QueryGetAllDidDocVersions = "get-all-diddoc-versions" QueryGetDidDocVersion = "get-diddoc-version" )
Variables ¶
var ( ErrInvalidLengthDiddoc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDiddoc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDiddoc = fmt.Errorf("proto: unexpected end of group") )
var ( ErrBadRequest = errorsmod.Register(ModuleName, 1000, "bad request") ErrInvalidSignature = errorsmod.Register(ModuleName, 1100, "invalid signature detected") ErrSignatureNotFound = errorsmod.Register(ModuleName, 1101, "signature is required but not found") ErrDidDocExists = errorsmod.Register(ModuleName, 1200, "DID Doc exists") ErrDidDocNotFound = errorsmod.Register(ModuleName, 1201, "DID Doc not found") ErrVerificationMethodNotFound = errorsmod.Register(ModuleName, 1202, "verification method not found") ErrUnexpectedDidVersion = errorsmod.Register(ModuleName, 1203, "unexpected DID version") ErrBasicValidation = errorsmod.Register(ModuleName, 1205, "basic validation failed") ErrNamespaceValidation = errorsmod.Register(ModuleName, 1206, "DID namespace validation failed") ErrDIDDocDeactivated = errorsmod.Register(ModuleName, 1207, "DID Doc already deactivated") ErrUnpackStateValue = errorsmod.Register(ModuleName, 1300, "invalid did state value") ErrInternal = errorsmod.Register(ModuleName, 1500, "internal error") ErrBurnFromModuleAccount = errorsmod.Register(ModuleName, 2, "burning from Module Account is not allowed") ErrInvalidDenom = errorsmod.Register(ModuleName, 3, "Invalid Denom") )
x/cheqd module sentinel errors
var ( ErrInvalidLengthFee = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFee = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFee = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var (
ParamStoreKeyFeeParams = []byte("feeparams")
)
Parameter store key
var SupportedMethodTypes = []string{ JSONWebKey2020Type, Ed25519VerificationKey2020Type, Ed25519VerificationKey2018Type, }
Functions ¶
func GetDidDocVersionKey ¶
func GetDidDocVersionsPrefix ¶
func GetLatestDidDocVersionPrefix ¶
func GetLatestDidDocVersionPrefix() []byte
func GetServiceIds ¶
func GetSignInfoIds ¶
func GetVerificationMethodIds ¶
func GetVerificationMethodIds(vms []*VerificationMethod) []string
func IsUniqueSignInfoList ¶
func NormalizeSignInfoList ¶
func NormalizeSignInfoList(signatures []*SignInfo)
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func VerificationMethodListToMapByFragment ¶
func VerificationMethodListToMapByFragment(vms []*VerificationMethod) map[string]VerificationMethod
func VerifySignature ¶
func VerifySignature(vm VerificationMethod, message []byte, signature []byte) error
Types ¶
type AccountKeeper ¶
type AssertionMethodJSONUnescaped ¶
type AssertionMethodJSONUnescaped struct { Id string `json:"id"` Type string `json:"type"` Controller string `json:"controller"` PublicKeyBase58 *string `json:"publicKeyBase58,omitempty"` PublicKeyMultibase *string `json:"publicKeyMultibase,omitempty"` PublicKeyJwk *string `json:"publicKeyJwk,omitempty"` }
type BankKeeper ¶
type BankKeeper interface { // Methods imported from bank should be defined here GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata) HasSupply(ctx sdk.Context, denom string) bool SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool }
type CustomErrorRule ¶
type CustomErrorRule struct {
// contains filtered or unexported fields
}
func HasPrefix ¶
func HasPrefix(prefix string) *CustomErrorRule
func IsAssertionMethod ¶
func IsAssertionMethod(allowedNamespaces []string, didDoc DidDoc) *CustomErrorRule
func IsBase58Ed25519VerificationKey2018 ¶ added in v1.1.0
func IsBase58Ed25519VerificationKey2018() *CustomErrorRule
func IsDID ¶
func IsDID(allowedNamespaces []string) *CustomErrorRule
func IsDIDUrl ¶
func IsDIDUrl(allowedNamespaces []string, pathRule, queryRule, fragmentRule ValidationType) *CustomErrorRule
func IsID ¶
func IsID() *CustomErrorRule
func IsJWK ¶
func IsJWK() *CustomErrorRule
func IsMultibase ¶
func IsMultibase() *CustomErrorRule
func IsMultibaseEd25519VerificationKey2020 ¶ added in v1.1.0
func IsMultibaseEd25519VerificationKey2020() *CustomErrorRule
func IsMultibaseEncodedEd25519PubKey ¶
func IsMultibaseEncodedEd25519PubKey() *CustomErrorRule
func IsURI ¶
func IsURI() *CustomErrorRule
func IsUUID ¶
func IsUUID() *CustomErrorRule
func IsUniqueServiceListByIDRule ¶ added in v1.1.0
func IsUniqueServiceListByIDRule() *CustomErrorRule
func IsUniqueSignInfoListByIDRule ¶ added in v1.1.0
func IsUniqueSignInfoListByIDRule() *CustomErrorRule
func IsUniqueSignInfoListRule ¶
func IsUniqueSignInfoListRule() *CustomErrorRule
func IsUniqueStrList ¶
func IsUniqueStrList() *CustomErrorRule
func IsUniqueVerificationMethodListByIDRule ¶ added in v1.1.0
func IsUniqueVerificationMethodListByIDRule() *CustomErrorRule
func NewCustomErrorRule ¶
func NewCustomErrorRule(fn func(value interface{}) error) *CustomErrorRule
func ValidMsgCreateDidPayloadRule ¶
func ValidMsgCreateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule
func ValidMsgDeactivateDidPayloadRule ¶
func ValidMsgDeactivateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule
func ValidMsgUpdateDidPayloadRule ¶
func ValidMsgUpdateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule
func ValidServiceRule ¶
func ValidServiceRule(baseDid string, allowedNamespaces []string) *CustomErrorRule
func ValidSignInfoRule ¶
func ValidSignInfoRule(allowedNamespaces []string) *CustomErrorRule
func ValidVerificationMethodRule ¶
func ValidVerificationMethodRule(baseDid string, allowedNamespaces []string) *CustomErrorRule
func (CustomErrorRule) Validate ¶
func (c CustomErrorRule) Validate(value interface{}) error
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"` }
DidDoc defines a DID Document, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/
func (*DidDoc) AllControllerDids ¶
AllControllerDids returns controller DIDs used in both did.controllers and did.verification_method.controller
func (*DidDoc) Descriptor ¶
func (*DidDoc) GetAlsoKnownAs ¶
func (*DidDoc) GetAssertionMethod ¶
func (*DidDoc) GetAuthentication ¶
func (*DidDoc) GetCapabilityDelegation ¶
func (*DidDoc) GetCapabilityInvocation ¶
func (*DidDoc) GetContext ¶
func (*DidDoc) GetController ¶
func (*DidDoc) GetControllersOrSubject ¶
func (*DidDoc) GetKeyAgreement ¶
func (*DidDoc) GetService ¶
func (*DidDoc) GetVerificationMethod ¶
func (m *DidDoc) GetVerificationMethod() []*VerificationMethod
func (*DidDoc) GetVerificationMethodControllers ¶
func (*DidDoc) MarshalToSizedBuffer ¶
func (*DidDoc) ProtoMessage ¶
func (*DidDoc) ProtoMessage()
func (*DidDoc) ReplaceDids ¶
ReplaceDids replaces ids in all controller and id fields
func (*DidDoc) XXX_DiscardUnknown ¶
func (m *DidDoc) XXX_DiscardUnknown()
func (*DidDoc) XXX_Marshal ¶
func (*DidDoc) XXX_Unmarshal ¶
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"` }
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 ¶
func (*DidDocVersionSet) Descriptor() ([]byte, []int)
func (*DidDocVersionSet) GetDidDocs ¶
func (m *DidDocVersionSet) GetDidDocs() []*DidDocWithMetadata
func (*DidDocVersionSet) GetLatestVersion ¶
func (m *DidDocVersionSet) GetLatestVersion() string
func (*DidDocVersionSet) Marshal ¶
func (m *DidDocVersionSet) Marshal() (dAtA []byte, err error)
func (*DidDocVersionSet) MarshalToSizedBuffer ¶
func (m *DidDocVersionSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DidDocVersionSet) ProtoMessage ¶
func (*DidDocVersionSet) ProtoMessage()
func (*DidDocVersionSet) Reset ¶
func (m *DidDocVersionSet) Reset()
func (*DidDocVersionSet) Size ¶
func (m *DidDocVersionSet) Size() (n int)
func (*DidDocVersionSet) String ¶
func (m *DidDocVersionSet) String() string
func (*DidDocVersionSet) Unmarshal ¶
func (m *DidDocVersionSet) Unmarshal(dAtA []byte) error
func (*DidDocVersionSet) XXX_DiscardUnknown ¶
func (m *DidDocVersionSet) XXX_DiscardUnknown()
func (*DidDocVersionSet) XXX_Marshal ¶
func (m *DidDocVersionSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DidDocVersionSet) XXX_Merge ¶
func (m *DidDocVersionSet) XXX_Merge(src proto.Message)
func (*DidDocVersionSet) XXX_Size ¶
func (m *DidDocVersionSet) XXX_Size() int
func (*DidDocVersionSet) XXX_Unmarshal ¶
func (m *DidDocVersionSet) XXX_Unmarshal(b []byte) error
type DidDocWithMetadata ¶
type DidDocWithMetadata struct { // didDocument is the DID Document. DidDoc *DidDoc `protobuf:"bytes,1,opt,name=did_doc,json=didDoc,proto3" json:"didDocument"` // didDocumentMetadata is the DID Document metadata. Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"didDocumentMetadata"` }
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 NewDidDocWithMetadata ¶
func NewDidDocWithMetadata(didDoc *DidDoc, metadata *Metadata) DidDocWithMetadata
func (*DidDocWithMetadata) Descriptor ¶
func (*DidDocWithMetadata) Descriptor() ([]byte, []int)
func (*DidDocWithMetadata) GetDidDoc ¶
func (m *DidDocWithMetadata) GetDidDoc() *DidDoc
func (*DidDocWithMetadata) GetMetadata ¶
func (m *DidDocWithMetadata) GetMetadata() *Metadata
func (*DidDocWithMetadata) Marshal ¶
func (m *DidDocWithMetadata) Marshal() (dAtA []byte, err error)
func (*DidDocWithMetadata) MarshalTo ¶
func (m *DidDocWithMetadata) MarshalTo(dAtA []byte) (int, error)
func (*DidDocWithMetadata) MarshalToSizedBuffer ¶
func (m *DidDocWithMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DidDocWithMetadata) ProtoMessage ¶
func (*DidDocWithMetadata) ProtoMessage()
func (*DidDocWithMetadata) ReplaceDids ¶
func (d *DidDocWithMetadata) ReplaceDids(old, new string)
func (*DidDocWithMetadata) Reset ¶
func (m *DidDocWithMetadata) Reset()
func (*DidDocWithMetadata) Size ¶
func (m *DidDocWithMetadata) Size() (n int)
func (*DidDocWithMetadata) String ¶
func (m *DidDocWithMetadata) String() string
func (*DidDocWithMetadata) Unmarshal ¶
func (m *DidDocWithMetadata) Unmarshal(dAtA []byte) error
func (*DidDocWithMetadata) XXX_DiscardUnknown ¶
func (m *DidDocWithMetadata) XXX_DiscardUnknown()
func (*DidDocWithMetadata) XXX_Marshal ¶
func (m *DidDocWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DidDocWithMetadata) XXX_Merge ¶
func (m *DidDocWithMetadata) XXX_Merge(src proto.Message)
func (*DidDocWithMetadata) XXX_Size ¶
func (m *DidDocWithMetadata) XXX_Size() int
func (*DidDocWithMetadata) XXX_Unmarshal ¶
func (m *DidDocWithMetadata) XXX_Unmarshal(b []byte) error
type FeeParams ¶
type FeeParams struct { // Fixed fee for creating a DID // // Default: 50 CHEQ or 50000000000ncheq CreateDid types.Coin `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did"` // Fixed fee for updating a DID // // Default: 25 CHEQ or 25000000000ncheq UpdateDid types.Coin `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did"` // Fixed fee for deactivating a DID // // Default: 10 CHEQ or 10000000000ncheq DeactivateDid types.Coin `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did"` // Percentage of the fixed fee that will be burned // // Default: 0.5 (50%) BurnFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ }
FeeParams defines the parameters for the cheqd DID module fixed fee
func DefaultFeeParams ¶
func DefaultFeeParams() *FeeParams
DefaultFeeParams returns default cheqd module tx fee parameters
func (*FeeParams) Descriptor ¶
func (*FeeParams) GetCreateDid ¶
func (*FeeParams) GetDeactivateDid ¶
func (*FeeParams) GetUpdateDid ¶
func (*FeeParams) MarshalToSizedBuffer ¶
func (*FeeParams) ProtoMessage ¶
func (*FeeParams) ProtoMessage()
func (*FeeParams) ValidateBasic ¶
ValidateBasic performs basic validation of cheqd module tx fee parameters
func (*FeeParams) XXX_DiscardUnknown ¶
func (m *FeeParams) XXX_DiscardUnknown()
func (*FeeParams) XXX_Marshal ¶
func (*FeeParams) XXX_Unmarshal ¶
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"` }
GenesisState defines the cheqd DID module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default `did` genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDidNamespace ¶
func (m *GenesisState) GetDidNamespace() string
func (*GenesisState) GetFeeParams ¶
func (m *GenesisState) GetFeeParams() *FeeParams
func (*GenesisState) GetVersionSets ¶
func (m *GenesisState) GetVersionSets() []*DidDocVersionSet
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (GenesisState) ValidateBasic ¶
func (gs GenesisState) ValidateBasic() error
func (GenesisState) ValidateNoDuplicates ¶
func (gs GenesisState) ValidateNoDuplicates() error
func (GenesisState) ValidateVersionSets ¶
func (gs GenesisState) ValidateVersionSets() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type IdentityMsg ¶
type IdentityMsg interface {
GetSignBytes() []byte
}
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 time.Time `protobuf:"bytes,1,opt,name=created,proto3,stdtime" json:"created"` // updated is the timestamp of the last update of the DID Document. // Format: RFC3339 // Example: 2021-03-10T15:16:17Z Updated *time.Time `protobuf:"bytes,2,opt,name=updated,proto3,stdtime" 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"` }
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 ¶
func (*Metadata) GetCreated ¶
func (*Metadata) GetDeactivated ¶
func (*Metadata) GetNextVersionId ¶
func (*Metadata) GetPreviousVersionId ¶
func (*Metadata) GetUpdated ¶
func (*Metadata) GetVersionId ¶
func (*Metadata) MarshalToSizedBuffer ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
type MsgBurn ¶
type MsgBurn struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgBurn represents a message to burn coins from the message signer account
func NewMsgBurn ¶
NewMsgBurn creates a message to burn tokens
func (*MsgBurn) Descriptor ¶
func (MsgBurn) GetSignBytes ¶
func (MsgBurn) GetSigners ¶
func (m MsgBurn) GetSigners() []sdk.AccAddress
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (MsgBurn) ValidateBasic ¶
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
type MsgBurnResponse ¶
type MsgBurnResponse struct { }
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
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) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) 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"` }
MsgCreateDidDoc defines the Msg/CreateDidDoc request type. It describes the parameters of a request for creating a new DID document.
func NewMsgCreateDid ¶
func NewMsgCreateDid(payload *MsgCreateDidDocPayload, signatures []*SignInfo) *MsgCreateDidDoc
func (*MsgCreateDidDoc) Descriptor ¶
func (*MsgCreateDidDoc) Descriptor() ([]byte, []int)
func (*MsgCreateDidDoc) GetPayload ¶
func (m *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload
func (*MsgCreateDidDoc) GetSignBytes ¶
func (msg *MsgCreateDidDoc) GetSignBytes() []byte
func (*MsgCreateDidDoc) GetSignatures ¶
func (m *MsgCreateDidDoc) GetSignatures() []*SignInfo
func (*MsgCreateDidDoc) GetSigners ¶
func (msg *MsgCreateDidDoc) GetSigners() []sdk.AccAddress
func (*MsgCreateDidDoc) Marshal ¶
func (m *MsgCreateDidDoc) Marshal() (dAtA []byte, err error)
func (*MsgCreateDidDoc) MarshalToSizedBuffer ¶
func (m *MsgCreateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDidDoc) Normalize ¶
func (msg *MsgCreateDidDoc) Normalize()
func (*MsgCreateDidDoc) ProtoMessage ¶
func (*MsgCreateDidDoc) ProtoMessage()
func (*MsgCreateDidDoc) Reset ¶
func (m *MsgCreateDidDoc) Reset()
func (*MsgCreateDidDoc) Route ¶
func (msg *MsgCreateDidDoc) Route() string
func (*MsgCreateDidDoc) Size ¶
func (m *MsgCreateDidDoc) Size() (n int)
func (*MsgCreateDidDoc) String ¶
func (m *MsgCreateDidDoc) String() string
func (*MsgCreateDidDoc) Type ¶
func (msg *MsgCreateDidDoc) Type() string
func (*MsgCreateDidDoc) Unmarshal ¶
func (m *MsgCreateDidDoc) Unmarshal(dAtA []byte) error
func (MsgCreateDidDoc) Validate ¶
func (msg MsgCreateDidDoc) Validate(allowedNamespaces []string) error
func (*MsgCreateDidDoc) ValidateBasic ¶
func (msg *MsgCreateDidDoc) ValidateBasic() error
func (*MsgCreateDidDoc) XXX_DiscardUnknown ¶
func (m *MsgCreateDidDoc) XXX_DiscardUnknown()
func (*MsgCreateDidDoc) XXX_Marshal ¶
func (m *MsgCreateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDidDoc) XXX_Merge ¶
func (m *MsgCreateDidDoc) XXX_Merge(src proto.Message)
func (*MsgCreateDidDoc) XXX_Size ¶
func (m *MsgCreateDidDoc) XXX_Size() int
func (*MsgCreateDidDoc) XXX_Unmarshal ¶
func (m *MsgCreateDidDoc) XXX_Unmarshal(b []byte) error
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"` }
MsgCreateDidDocPayload defines the structure of the payload for creating a new DID document
func (*MsgCreateDidDocPayload) Descriptor ¶
func (*MsgCreateDidDocPayload) Descriptor() ([]byte, []int)
func (*MsgCreateDidDocPayload) GetAlsoKnownAs ¶
func (m *MsgCreateDidDocPayload) GetAlsoKnownAs() []string
func (*MsgCreateDidDocPayload) GetAssertionMethod ¶
func (m *MsgCreateDidDocPayload) GetAssertionMethod() []string
func (*MsgCreateDidDocPayload) GetAuthentication ¶
func (m *MsgCreateDidDocPayload) GetAuthentication() []string
func (*MsgCreateDidDocPayload) GetCapabilityDelegation ¶
func (m *MsgCreateDidDocPayload) GetCapabilityDelegation() []string
func (*MsgCreateDidDocPayload) GetCapabilityInvocation ¶
func (m *MsgCreateDidDocPayload) GetCapabilityInvocation() []string
func (*MsgCreateDidDocPayload) GetContext ¶
func (m *MsgCreateDidDocPayload) GetContext() []string
func (*MsgCreateDidDocPayload) GetController ¶
func (m *MsgCreateDidDocPayload) GetController() []string
func (*MsgCreateDidDocPayload) GetId ¶
func (m *MsgCreateDidDocPayload) GetId() string
func (*MsgCreateDidDocPayload) GetKeyAgreement ¶
func (m *MsgCreateDidDocPayload) GetKeyAgreement() []string
func (*MsgCreateDidDocPayload) GetService ¶
func (m *MsgCreateDidDocPayload) GetService() []*Service
func (*MsgCreateDidDocPayload) GetSignBytes ¶
func (msg *MsgCreateDidDocPayload) GetSignBytes() []byte
func (*MsgCreateDidDocPayload) GetVerificationMethod ¶
func (m *MsgCreateDidDocPayload) GetVerificationMethod() []*VerificationMethod
func (*MsgCreateDidDocPayload) GetVersionId ¶
func (m *MsgCreateDidDocPayload) GetVersionId() string
func (*MsgCreateDidDocPayload) Marshal ¶
func (m *MsgCreateDidDocPayload) Marshal() (dAtA []byte, err error)
func (*MsgCreateDidDocPayload) MarshalTo ¶
func (m *MsgCreateDidDocPayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDidDocPayload) MarshalToSizedBuffer ¶
func (m *MsgCreateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDidDocPayload) Normalize ¶
func (msg *MsgCreateDidDocPayload) Normalize()
func (*MsgCreateDidDocPayload) ProtoMessage ¶
func (*MsgCreateDidDocPayload) ProtoMessage()
func (*MsgCreateDidDocPayload) Reset ¶
func (m *MsgCreateDidDocPayload) Reset()
func (*MsgCreateDidDocPayload) Size ¶
func (m *MsgCreateDidDocPayload) Size() (n int)
func (*MsgCreateDidDocPayload) String ¶
func (m *MsgCreateDidDocPayload) String() string
func (*MsgCreateDidDocPayload) ToDidDoc ¶
func (msg *MsgCreateDidDocPayload) ToDidDoc() DidDoc
func (*MsgCreateDidDocPayload) Unmarshal ¶
func (m *MsgCreateDidDocPayload) Unmarshal(dAtA []byte) error
func (MsgCreateDidDocPayload) Validate ¶
func (msg MsgCreateDidDocPayload) Validate(allowedNamespaces []string) error
func (*MsgCreateDidDocPayload) XXX_DiscardUnknown ¶
func (m *MsgCreateDidDocPayload) XXX_DiscardUnknown()
func (*MsgCreateDidDocPayload) XXX_Marshal ¶
func (m *MsgCreateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDidDocPayload) XXX_Merge ¶
func (m *MsgCreateDidDocPayload) XXX_Merge(src proto.Message)
func (*MsgCreateDidDocPayload) XXX_Size ¶
func (m *MsgCreateDidDocPayload) XXX_Size() int
func (*MsgCreateDidDocPayload) XXX_Unmarshal ¶
func (m *MsgCreateDidDocPayload) XXX_Unmarshal(b []byte) error
type MsgCreateDidDocResponse ¶
type MsgCreateDidDocResponse struct { // Return the created DID Document with metadata Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` }
MsgCreateDidDocResponse defines response type for Msg/CreateDidDoc.
func (*MsgCreateDidDocResponse) Descriptor ¶
func (*MsgCreateDidDocResponse) Descriptor() ([]byte, []int)
func (*MsgCreateDidDocResponse) GetValue ¶
func (m *MsgCreateDidDocResponse) GetValue() *DidDocWithMetadata
func (*MsgCreateDidDocResponse) Marshal ¶
func (m *MsgCreateDidDocResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateDidDocResponse) MarshalTo ¶
func (m *MsgCreateDidDocResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDidDocResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDidDocResponse) ProtoMessage ¶
func (*MsgCreateDidDocResponse) ProtoMessage()
func (*MsgCreateDidDocResponse) Reset ¶
func (m *MsgCreateDidDocResponse) Reset()
func (*MsgCreateDidDocResponse) Size ¶
func (m *MsgCreateDidDocResponse) Size() (n int)
func (*MsgCreateDidDocResponse) String ¶
func (m *MsgCreateDidDocResponse) String() string
func (*MsgCreateDidDocResponse) Unmarshal ¶
func (m *MsgCreateDidDocResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateDidDocResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateDidDocResponse) XXX_DiscardUnknown()
func (*MsgCreateDidDocResponse) XXX_Marshal ¶
func (m *MsgCreateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDidDocResponse) XXX_Merge ¶
func (m *MsgCreateDidDocResponse) XXX_Merge(src proto.Message)
func (*MsgCreateDidDocResponse) XXX_Size ¶
func (m *MsgCreateDidDocResponse) XXX_Size() int
func (*MsgCreateDidDocResponse) XXX_Unmarshal ¶
func (m *MsgCreateDidDocResponse) XXX_Unmarshal(b []byte) error
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"` }
MsgDeactivateDidDoc defines the Msg/DeactivateDidDoc request type. It describes the parameters of a request for deactivating an existing DID document.
func NewMsgDeactivateDid ¶
func NewMsgDeactivateDid(payload *MsgDeactivateDidDocPayload, signatures []*SignInfo) *MsgDeactivateDidDoc
func (*MsgDeactivateDidDoc) Descriptor ¶
func (*MsgDeactivateDidDoc) Descriptor() ([]byte, []int)
func (*MsgDeactivateDidDoc) GetPayload ¶
func (m *MsgDeactivateDidDoc) GetPayload() *MsgDeactivateDidDocPayload
func (*MsgDeactivateDidDoc) GetSignBytes ¶
func (msg *MsgDeactivateDidDoc) GetSignBytes() []byte
func (*MsgDeactivateDidDoc) GetSignatures ¶
func (m *MsgDeactivateDidDoc) GetSignatures() []*SignInfo
func (*MsgDeactivateDidDoc) GetSigners ¶
func (msg *MsgDeactivateDidDoc) GetSigners() []sdk.AccAddress
func (*MsgDeactivateDidDoc) Marshal ¶
func (m *MsgDeactivateDidDoc) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateDidDoc) MarshalTo ¶
func (m *MsgDeactivateDidDoc) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateDidDoc) MarshalToSizedBuffer ¶
func (m *MsgDeactivateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateDidDoc) Normalize ¶
func (msg *MsgDeactivateDidDoc) Normalize()
func (*MsgDeactivateDidDoc) ProtoMessage ¶
func (*MsgDeactivateDidDoc) ProtoMessage()
func (*MsgDeactivateDidDoc) Reset ¶
func (m *MsgDeactivateDidDoc) Reset()
func (*MsgDeactivateDidDoc) Route ¶
func (msg *MsgDeactivateDidDoc) Route() string
func (*MsgDeactivateDidDoc) Size ¶
func (m *MsgDeactivateDidDoc) Size() (n int)
func (*MsgDeactivateDidDoc) String ¶
func (m *MsgDeactivateDidDoc) String() string
func (*MsgDeactivateDidDoc) Type ¶
func (msg *MsgDeactivateDidDoc) Type() string
func (*MsgDeactivateDidDoc) Unmarshal ¶
func (m *MsgDeactivateDidDoc) Unmarshal(dAtA []byte) error
func (MsgDeactivateDidDoc) Validate ¶
func (msg MsgDeactivateDidDoc) Validate(allowedNamespaces []string) error
func (*MsgDeactivateDidDoc) ValidateBasic ¶
func (msg *MsgDeactivateDidDoc) ValidateBasic() error
func (*MsgDeactivateDidDoc) XXX_DiscardUnknown ¶
func (m *MsgDeactivateDidDoc) XXX_DiscardUnknown()
func (*MsgDeactivateDidDoc) XXX_Marshal ¶
func (m *MsgDeactivateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateDidDoc) XXX_Merge ¶
func (m *MsgDeactivateDidDoc) XXX_Merge(src proto.Message)
func (*MsgDeactivateDidDoc) XXX_Size ¶
func (m *MsgDeactivateDidDoc) XXX_Size() int
func (*MsgDeactivateDidDoc) XXX_Unmarshal ¶
func (m *MsgDeactivateDidDoc) XXX_Unmarshal(b []byte) error
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"` }
MsgDeactivateDidDocPayload defines the structure of the payload for deactivating an existing DID document
func (*MsgDeactivateDidDocPayload) Descriptor ¶
func (*MsgDeactivateDidDocPayload) Descriptor() ([]byte, []int)
func (*MsgDeactivateDidDocPayload) GetId ¶
func (m *MsgDeactivateDidDocPayload) GetId() string
func (*MsgDeactivateDidDocPayload) GetSignBytes ¶
func (msg *MsgDeactivateDidDocPayload) GetSignBytes() []byte
func (*MsgDeactivateDidDocPayload) GetVersionId ¶
func (m *MsgDeactivateDidDocPayload) GetVersionId() string
func (*MsgDeactivateDidDocPayload) Marshal ¶
func (m *MsgDeactivateDidDocPayload) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateDidDocPayload) MarshalTo ¶
func (m *MsgDeactivateDidDocPayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateDidDocPayload) MarshalToSizedBuffer ¶
func (m *MsgDeactivateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateDidDocPayload) Normalize ¶
func (msg *MsgDeactivateDidDocPayload) Normalize()
func (*MsgDeactivateDidDocPayload) ProtoMessage ¶
func (*MsgDeactivateDidDocPayload) ProtoMessage()
func (*MsgDeactivateDidDocPayload) Reset ¶
func (m *MsgDeactivateDidDocPayload) Reset()
func (*MsgDeactivateDidDocPayload) Size ¶
func (m *MsgDeactivateDidDocPayload) Size() (n int)
func (*MsgDeactivateDidDocPayload) String ¶
func (m *MsgDeactivateDidDocPayload) String() string
func (*MsgDeactivateDidDocPayload) Unmarshal ¶
func (m *MsgDeactivateDidDocPayload) Unmarshal(dAtA []byte) error
func (MsgDeactivateDidDocPayload) Validate ¶
func (msg MsgDeactivateDidDocPayload) Validate(allowedNamespaces []string) error
func (*MsgDeactivateDidDocPayload) XXX_DiscardUnknown ¶
func (m *MsgDeactivateDidDocPayload) XXX_DiscardUnknown()
func (*MsgDeactivateDidDocPayload) XXX_Marshal ¶
func (m *MsgDeactivateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateDidDocPayload) XXX_Merge ¶
func (m *MsgDeactivateDidDocPayload) XXX_Merge(src proto.Message)
func (*MsgDeactivateDidDocPayload) XXX_Size ¶
func (m *MsgDeactivateDidDocPayload) XXX_Size() int
func (*MsgDeactivateDidDocPayload) XXX_Unmarshal ¶
func (m *MsgDeactivateDidDocPayload) XXX_Unmarshal(b []byte) error
type MsgDeactivateDidDocResponse ¶
type MsgDeactivateDidDocResponse struct { // Return the deactivated DID Document with metadata Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` }
MsgDeactivateDidDocResponse defines response type for Msg/DeactivateDidDoc.
func (*MsgDeactivateDidDocResponse) Descriptor ¶
func (*MsgDeactivateDidDocResponse) Descriptor() ([]byte, []int)
func (*MsgDeactivateDidDocResponse) GetValue ¶
func (m *MsgDeactivateDidDocResponse) GetValue() *DidDocWithMetadata
func (*MsgDeactivateDidDocResponse) Marshal ¶
func (m *MsgDeactivateDidDocResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateDidDocResponse) MarshalTo ¶
func (m *MsgDeactivateDidDocResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateDidDocResponse) MarshalToSizedBuffer ¶
func (m *MsgDeactivateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateDidDocResponse) ProtoMessage ¶
func (*MsgDeactivateDidDocResponse) ProtoMessage()
func (*MsgDeactivateDidDocResponse) Reset ¶
func (m *MsgDeactivateDidDocResponse) Reset()
func (*MsgDeactivateDidDocResponse) Size ¶
func (m *MsgDeactivateDidDocResponse) Size() (n int)
func (*MsgDeactivateDidDocResponse) String ¶
func (m *MsgDeactivateDidDocResponse) String() string
func (*MsgDeactivateDidDocResponse) Unmarshal ¶
func (m *MsgDeactivateDidDocResponse) Unmarshal(dAtA []byte) error
func (*MsgDeactivateDidDocResponse) XXX_DiscardUnknown ¶
func (m *MsgDeactivateDidDocResponse) XXX_DiscardUnknown()
func (*MsgDeactivateDidDocResponse) XXX_Marshal ¶
func (m *MsgDeactivateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateDidDocResponse) XXX_Merge ¶
func (m *MsgDeactivateDidDocResponse) XXX_Merge(src proto.Message)
func (*MsgDeactivateDidDocResponse) XXX_Size ¶
func (m *MsgDeactivateDidDocResponse) XXX_Size() int
func (*MsgDeactivateDidDocResponse) XXX_Unmarshal ¶
func (m *MsgDeactivateDidDocResponse) XXX_Unmarshal(b []byte) error
type MsgMint ¶
type MsgMint struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
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 ¶
func (*MsgMint) GetAmount ¶
func (m *MsgMint) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgMint) GetAuthority ¶
func (*MsgMint) GetSignBytes ¶
func (*MsgMint) GetSigners ¶
func (msg *MsgMint) GetSigners() []sdk.AccAddress
func (*MsgMint) GetToAddress ¶
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (*MsgMint) ValidateBasic ¶
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
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) }
MsgServer is the server API for Msg service.
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"` }
MsgUpdateDidDoc defines the Msg/UpdateDidDoc request type. It describes the parameters of a request for updating an existing DID document.
func NewMsgUpdateDid ¶
func NewMsgUpdateDid(payload *MsgUpdateDidDocPayload, signatures []*SignInfo) *MsgUpdateDidDoc
func (*MsgUpdateDidDoc) Descriptor ¶
func (*MsgUpdateDidDoc) Descriptor() ([]byte, []int)
func (*MsgUpdateDidDoc) GetPayload ¶
func (m *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload
func (*MsgUpdateDidDoc) GetSignBytes ¶
func (msg *MsgUpdateDidDoc) GetSignBytes() []byte
func (*MsgUpdateDidDoc) GetSignatures ¶
func (m *MsgUpdateDidDoc) GetSignatures() []*SignInfo
func (*MsgUpdateDidDoc) GetSigners ¶
func (msg *MsgUpdateDidDoc) GetSigners() []sdk.AccAddress
func (*MsgUpdateDidDoc) Marshal ¶
func (m *MsgUpdateDidDoc) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDidDoc) MarshalToSizedBuffer ¶
func (m *MsgUpdateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDidDoc) Normalize ¶
func (msg *MsgUpdateDidDoc) Normalize()
func (*MsgUpdateDidDoc) ProtoMessage ¶
func (*MsgUpdateDidDoc) ProtoMessage()
func (*MsgUpdateDidDoc) Reset ¶
func (m *MsgUpdateDidDoc) Reset()
func (*MsgUpdateDidDoc) Route ¶
func (msg *MsgUpdateDidDoc) Route() string
func (*MsgUpdateDidDoc) Size ¶
func (m *MsgUpdateDidDoc) Size() (n int)
func (*MsgUpdateDidDoc) String ¶
func (m *MsgUpdateDidDoc) String() string
func (*MsgUpdateDidDoc) Type ¶
func (msg *MsgUpdateDidDoc) Type() string
func (*MsgUpdateDidDoc) Unmarshal ¶
func (m *MsgUpdateDidDoc) Unmarshal(dAtA []byte) error
func (MsgUpdateDidDoc) Validate ¶
func (msg MsgUpdateDidDoc) Validate(allowedNamespaces []string) error
func (*MsgUpdateDidDoc) ValidateBasic ¶
func (msg *MsgUpdateDidDoc) ValidateBasic() error
func (*MsgUpdateDidDoc) XXX_DiscardUnknown ¶
func (m *MsgUpdateDidDoc) XXX_DiscardUnknown()
func (*MsgUpdateDidDoc) XXX_Marshal ¶
func (m *MsgUpdateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDidDoc) XXX_Merge ¶
func (m *MsgUpdateDidDoc) XXX_Merge(src proto.Message)
func (*MsgUpdateDidDoc) XXX_Size ¶
func (m *MsgUpdateDidDoc) XXX_Size() int
func (*MsgUpdateDidDoc) XXX_Unmarshal ¶
func (m *MsgUpdateDidDoc) XXX_Unmarshal(b []byte) error
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"` }
MsgUpdateDidDocPayload defines the structure of the payload for updating an existing DID document
func (*MsgUpdateDidDocPayload) Descriptor ¶
func (*MsgUpdateDidDocPayload) Descriptor() ([]byte, []int)
func (*MsgUpdateDidDocPayload) GetAlsoKnownAs ¶
func (m *MsgUpdateDidDocPayload) GetAlsoKnownAs() []string
func (*MsgUpdateDidDocPayload) GetAssertionMethod ¶
func (m *MsgUpdateDidDocPayload) GetAssertionMethod() []string
func (*MsgUpdateDidDocPayload) GetAuthentication ¶
func (m *MsgUpdateDidDocPayload) GetAuthentication() []string
func (*MsgUpdateDidDocPayload) GetCapabilityDelegation ¶
func (m *MsgUpdateDidDocPayload) GetCapabilityDelegation() []string
func (*MsgUpdateDidDocPayload) GetCapabilityInvocation ¶
func (m *MsgUpdateDidDocPayload) GetCapabilityInvocation() []string
func (*MsgUpdateDidDocPayload) GetContext ¶
func (m *MsgUpdateDidDocPayload) GetContext() []string
func (*MsgUpdateDidDocPayload) GetController ¶
func (m *MsgUpdateDidDocPayload) GetController() []string
func (*MsgUpdateDidDocPayload) GetId ¶
func (m *MsgUpdateDidDocPayload) GetId() string
func (*MsgUpdateDidDocPayload) GetKeyAgreement ¶
func (m *MsgUpdateDidDocPayload) GetKeyAgreement() []string
func (*MsgUpdateDidDocPayload) GetService ¶
func (m *MsgUpdateDidDocPayload) GetService() []*Service
func (*MsgUpdateDidDocPayload) GetSignBytes ¶
func (msg *MsgUpdateDidDocPayload) GetSignBytes() []byte
func (*MsgUpdateDidDocPayload) GetVerificationMethod ¶
func (m *MsgUpdateDidDocPayload) GetVerificationMethod() []*VerificationMethod
func (*MsgUpdateDidDocPayload) GetVersionId ¶
func (m *MsgUpdateDidDocPayload) GetVersionId() string
func (*MsgUpdateDidDocPayload) Marshal ¶
func (m *MsgUpdateDidDocPayload) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDidDocPayload) MarshalTo ¶
func (m *MsgUpdateDidDocPayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDidDocPayload) MarshalToSizedBuffer ¶
func (m *MsgUpdateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDidDocPayload) Normalize ¶
func (msg *MsgUpdateDidDocPayload) Normalize()
func (*MsgUpdateDidDocPayload) ProtoMessage ¶
func (*MsgUpdateDidDocPayload) ProtoMessage()
func (*MsgUpdateDidDocPayload) Reset ¶
func (m *MsgUpdateDidDocPayload) Reset()
func (*MsgUpdateDidDocPayload) Size ¶
func (m *MsgUpdateDidDocPayload) Size() (n int)
func (*MsgUpdateDidDocPayload) String ¶
func (m *MsgUpdateDidDocPayload) String() string
func (*MsgUpdateDidDocPayload) ToDidDoc ¶
func (msg *MsgUpdateDidDocPayload) ToDidDoc() DidDoc
func (*MsgUpdateDidDocPayload) Unmarshal ¶
func (m *MsgUpdateDidDocPayload) Unmarshal(dAtA []byte) error
func (MsgUpdateDidDocPayload) Validate ¶
func (msg MsgUpdateDidDocPayload) Validate(allowedNamespaces []string) error
func (*MsgUpdateDidDocPayload) XXX_DiscardUnknown ¶
func (m *MsgUpdateDidDocPayload) XXX_DiscardUnknown()
func (*MsgUpdateDidDocPayload) XXX_Marshal ¶
func (m *MsgUpdateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDidDocPayload) XXX_Merge ¶
func (m *MsgUpdateDidDocPayload) XXX_Merge(src proto.Message)
func (*MsgUpdateDidDocPayload) XXX_Size ¶
func (m *MsgUpdateDidDocPayload) XXX_Size() int
func (*MsgUpdateDidDocPayload) XXX_Unmarshal ¶
func (m *MsgUpdateDidDocPayload) XXX_Unmarshal(b []byte) error
type MsgUpdateDidDocResponse ¶
type MsgUpdateDidDocResponse struct { // Return the updated DID Document with metadata Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` }
func (*MsgUpdateDidDocResponse) Descriptor ¶
func (*MsgUpdateDidDocResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateDidDocResponse) GetValue ¶
func (m *MsgUpdateDidDocResponse) GetValue() *DidDocWithMetadata
func (*MsgUpdateDidDocResponse) Marshal ¶
func (m *MsgUpdateDidDocResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDidDocResponse) MarshalTo ¶
func (m *MsgUpdateDidDocResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDidDocResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDidDocResponse) ProtoMessage ¶
func (*MsgUpdateDidDocResponse) ProtoMessage()
func (*MsgUpdateDidDocResponse) Reset ¶
func (m *MsgUpdateDidDocResponse) Reset()
func (*MsgUpdateDidDocResponse) Size ¶
func (m *MsgUpdateDidDocResponse) Size() (n int)
func (*MsgUpdateDidDocResponse) String ¶
func (m *MsgUpdateDidDocResponse) String() string
func (*MsgUpdateDidDocResponse) Unmarshal ¶
func (m *MsgUpdateDidDocResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateDidDocResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateDidDocResponse) XXX_DiscardUnknown()
func (*MsgUpdateDidDocResponse) XXX_Marshal ¶
func (m *MsgUpdateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDidDocResponse) XXX_Merge ¶
func (m *MsgUpdateDidDocResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateDidDocResponse) XXX_Size ¶
func (m *MsgUpdateDidDocResponse) XXX_Size() int
func (*MsgUpdateDidDocResponse) XXX_Unmarshal ¶
func (m *MsgUpdateDidDocResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(ctx sdk.Context, key []byte, ptr interface{}) Set(ctx sdk.Context, key []byte, param interface{}) }
ParamSubspace defines the expected Subspace interface for parameters (noalias)
type QueryAllDidDocVersionsMetadataRequest ¶ added in v1.1.0
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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllDidDocVersionsMetadataRequest is the request type for the Query/AllDidDocVersionsMetadata method
func (*QueryAllDidDocVersionsMetadataRequest) Descriptor ¶ added in v1.1.0
func (*QueryAllDidDocVersionsMetadataRequest) Descriptor() ([]byte, []int)
func (*QueryAllDidDocVersionsMetadataRequest) GetId ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) GetId() string
func (*QueryAllDidDocVersionsMetadataRequest) GetPagination ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) GetPagination() *query.PageRequest
func (*QueryAllDidDocVersionsMetadataRequest) Marshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllDidDocVersionsMetadataRequest) MarshalTo ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDidDocVersionsMetadataRequest) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDidDocVersionsMetadataRequest) Normalize ¶ added in v1.1.0
func (query *QueryAllDidDocVersionsMetadataRequest) Normalize()
func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage ¶ added in v1.1.0
func (*QueryAllDidDocVersionsMetadataRequest) ProtoMessage()
func (*QueryAllDidDocVersionsMetadataRequest) Reset ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) Reset()
func (*QueryAllDidDocVersionsMetadataRequest) Size ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) Size() (n int)
func (*QueryAllDidDocVersionsMetadataRequest) String ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) String() string
func (*QueryAllDidDocVersionsMetadataRequest) Unmarshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) Unmarshal(dAtA []byte) error
func (*QueryAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown()
func (*QueryAllDidDocVersionsMetadataRequest) XXX_Marshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDidDocVersionsMetadataRequest) XXX_Merge ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Merge(src proto.Message)
func (*QueryAllDidDocVersionsMetadataRequest) XXX_Size ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Size() int
func (*QueryAllDidDocVersionsMetadataRequest) XXX_Unmarshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataRequest) XXX_Unmarshal(b []byte) error
type QueryAllDidDocVersionsMetadataResponse ¶ added in v1.1.0
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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllDidDocVersionsMetadataResponse is the response type for the Query/AllDidDocVersionsMetadata method
func (*QueryAllDidDocVersionsMetadataResponse) Descriptor ¶ added in v1.1.0
func (*QueryAllDidDocVersionsMetadataResponse) Descriptor() ([]byte, []int)
func (*QueryAllDidDocVersionsMetadataResponse) GetPagination ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) GetPagination() *query.PageResponse
func (*QueryAllDidDocVersionsMetadataResponse) GetVersions ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) GetVersions() []*Metadata
func (*QueryAllDidDocVersionsMetadataResponse) Marshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllDidDocVersionsMetadataResponse) MarshalTo ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDidDocVersionsMetadataResponse) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage ¶ added in v1.1.0
func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage()
func (*QueryAllDidDocVersionsMetadataResponse) Reset ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) Reset()
func (*QueryAllDidDocVersionsMetadataResponse) Size ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) Size() (n int)
func (*QueryAllDidDocVersionsMetadataResponse) String ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) String() string
func (*QueryAllDidDocVersionsMetadataResponse) Unmarshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) Unmarshal(dAtA []byte) error
func (*QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown()
func (*QueryAllDidDocVersionsMetadataResponse) XXX_Marshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDidDocVersionsMetadataResponse) XXX_Merge ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Merge(src proto.Message)
func (*QueryAllDidDocVersionsMetadataResponse) XXX_Size ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Size() int
func (*QueryAllDidDocVersionsMetadataResponse) XXX_Unmarshal ¶ added in v1.1.0
func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Unmarshal(b []byte) error
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) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryDidDocRequest ¶ added in v1.1.0
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"` }
QueryDidDocRequest is the request type for the Query/DidDoc method
func (*QueryDidDocRequest) Descriptor ¶ added in v1.1.0
func (*QueryDidDocRequest) Descriptor() ([]byte, []int)
func (*QueryDidDocRequest) GetId ¶ added in v1.1.0
func (m *QueryDidDocRequest) GetId() string
func (*QueryDidDocRequest) Marshal ¶ added in v1.1.0
func (m *QueryDidDocRequest) Marshal() (dAtA []byte, err error)
func (*QueryDidDocRequest) MarshalTo ¶ added in v1.1.0
func (m *QueryDidDocRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDidDocRequest) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *QueryDidDocRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDidDocRequest) Normalize ¶ added in v1.1.0
func (query *QueryDidDocRequest) Normalize()
func (*QueryDidDocRequest) ProtoMessage ¶ added in v1.1.0
func (*QueryDidDocRequest) ProtoMessage()
func (*QueryDidDocRequest) Reset ¶ added in v1.1.0
func (m *QueryDidDocRequest) Reset()
func (*QueryDidDocRequest) Size ¶ added in v1.1.0
func (m *QueryDidDocRequest) Size() (n int)
func (*QueryDidDocRequest) String ¶ added in v1.1.0
func (m *QueryDidDocRequest) String() string
func (*QueryDidDocRequest) Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocRequest) Unmarshal(dAtA []byte) error
func (*QueryDidDocRequest) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *QueryDidDocRequest) XXX_DiscardUnknown()
func (*QueryDidDocRequest) XXX_Marshal ¶ added in v1.1.0
func (m *QueryDidDocRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDidDocRequest) XXX_Merge ¶ added in v1.1.0
func (m *QueryDidDocRequest) XXX_Merge(src proto.Message)
func (*QueryDidDocRequest) XXX_Size ¶ added in v1.1.0
func (m *QueryDidDocRequest) XXX_Size() int
func (*QueryDidDocRequest) XXX_Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocRequest) XXX_Unmarshal(b []byte) error
type QueryDidDocResponse ¶ added in v1.1.0
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"` }
QueryDidDocResponse is the response type for the Query/DidDoc method
func (*QueryDidDocResponse) Descriptor ¶ added in v1.1.0
func (*QueryDidDocResponse) Descriptor() ([]byte, []int)
func (*QueryDidDocResponse) GetValue ¶ added in v1.1.0
func (m *QueryDidDocResponse) GetValue() *DidDocWithMetadata
func (*QueryDidDocResponse) Marshal ¶ added in v1.1.0
func (m *QueryDidDocResponse) Marshal() (dAtA []byte, err error)
func (*QueryDidDocResponse) MarshalTo ¶ added in v1.1.0
func (m *QueryDidDocResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDidDocResponse) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *QueryDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDidDocResponse) ProtoMessage ¶ added in v1.1.0
func (*QueryDidDocResponse) ProtoMessage()
func (*QueryDidDocResponse) Reset ¶ added in v1.1.0
func (m *QueryDidDocResponse) Reset()
func (*QueryDidDocResponse) Size ¶ added in v1.1.0
func (m *QueryDidDocResponse) Size() (n int)
func (*QueryDidDocResponse) String ¶ added in v1.1.0
func (m *QueryDidDocResponse) String() string
func (*QueryDidDocResponse) Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocResponse) Unmarshal(dAtA []byte) error
func (*QueryDidDocResponse) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *QueryDidDocResponse) XXX_DiscardUnknown()
func (*QueryDidDocResponse) XXX_Marshal ¶ added in v1.1.0
func (m *QueryDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDidDocResponse) XXX_Merge ¶ added in v1.1.0
func (m *QueryDidDocResponse) XXX_Merge(src proto.Message)
func (*QueryDidDocResponse) XXX_Size ¶ added in v1.1.0
func (m *QueryDidDocResponse) XXX_Size() int
func (*QueryDidDocResponse) XXX_Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocResponse) XXX_Unmarshal(b []byte) error
type QueryDidDocVersionRequest ¶ added in v1.1.0
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"` }
QueryDidDocVersionRequest is the request type for the Query/DidDocVersion method
func (*QueryDidDocVersionRequest) Descriptor ¶ added in v1.1.0
func (*QueryDidDocVersionRequest) Descriptor() ([]byte, []int)
func (*QueryDidDocVersionRequest) GetId ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) GetId() string
func (*QueryDidDocVersionRequest) GetVersion ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) GetVersion() string
func (*QueryDidDocVersionRequest) Marshal ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) Marshal() (dAtA []byte, err error)
func (*QueryDidDocVersionRequest) MarshalTo ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDidDocVersionRequest) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDidDocVersionRequest) Normalize ¶ added in v1.1.0
func (query *QueryDidDocVersionRequest) Normalize()
func (*QueryDidDocVersionRequest) ProtoMessage ¶ added in v1.1.0
func (*QueryDidDocVersionRequest) ProtoMessage()
func (*QueryDidDocVersionRequest) Reset ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) Reset()
func (*QueryDidDocVersionRequest) Size ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) Size() (n int)
func (*QueryDidDocVersionRequest) String ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) String() string
func (*QueryDidDocVersionRequest) Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) Unmarshal(dAtA []byte) error
func (*QueryDidDocVersionRequest) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) XXX_DiscardUnknown()
func (*QueryDidDocVersionRequest) XXX_Marshal ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDidDocVersionRequest) XXX_Merge ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) XXX_Merge(src proto.Message)
func (*QueryDidDocVersionRequest) XXX_Size ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) XXX_Size() int
func (*QueryDidDocVersionRequest) XXX_Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocVersionRequest) XXX_Unmarshal(b []byte) error
type QueryDidDocVersionResponse ¶ added in v1.1.0
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"` }
QueryDidDocVersionResponse is the response type for the Query/DidDocVersion method
func (*QueryDidDocVersionResponse) Descriptor ¶ added in v1.1.0
func (*QueryDidDocVersionResponse) Descriptor() ([]byte, []int)
func (*QueryDidDocVersionResponse) GetValue ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) GetValue() *DidDocWithMetadata
func (*QueryDidDocVersionResponse) Marshal ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) Marshal() (dAtA []byte, err error)
func (*QueryDidDocVersionResponse) MarshalTo ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDidDocVersionResponse) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDidDocVersionResponse) ProtoMessage ¶ added in v1.1.0
func (*QueryDidDocVersionResponse) ProtoMessage()
func (*QueryDidDocVersionResponse) Reset ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) Reset()
func (*QueryDidDocVersionResponse) Size ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) Size() (n int)
func (*QueryDidDocVersionResponse) String ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) String() string
func (*QueryDidDocVersionResponse) Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) Unmarshal(dAtA []byte) error
func (*QueryDidDocVersionResponse) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) XXX_DiscardUnknown()
func (*QueryDidDocVersionResponse) XXX_Marshal ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDidDocVersionResponse) XXX_Merge ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) XXX_Merge(src proto.Message)
func (*QueryDidDocVersionResponse) XXX_Size ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) XXX_Size() int
func (*QueryDidDocVersionResponse) XXX_Unmarshal ¶ added in v1.1.0
func (m *QueryDidDocVersionResponse) XXX_Unmarshal(b []byte) error
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) }
QueryServer is the server API for Query service.
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:"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"` }
Service defines a service, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#services
func (*Service) Descriptor ¶
func (*Service) GetServiceEndpoint ¶
func (*Service) GetServiceType ¶ added in v1.1.0
func (*Service) MarshalToSizedBuffer ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ReplaceDids ¶
ReplaceDids replaces ids in all fields
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
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"` }
SignInfo defines the structure of a DID Document controller's signature
func FindSignInfoBySigner ¶
FindSignInfoBySigner returns the first sign info that corresponds to the provided signer's did
func FindSignInfosBySigner ¶
FindSignInfosBySigner returns the sign infos that corresponds to the provided signer's did
func NewSignInfo ¶
func (*SignInfo) Descriptor ¶
func (*SignInfo) GetSignature ¶
func (*SignInfo) GetVerificationMethodId ¶
func (*SignInfo) MarshalToSizedBuffer ¶
func (*SignInfo) ProtoMessage ¶
func (*SignInfo) ProtoMessage()
func (*SignInfo) XXX_DiscardUnknown ¶
func (m *SignInfo) XXX_DiscardUnknown()
func (*SignInfo) XXX_Marshal ¶
func (*SignInfo) XXX_Unmarshal ¶
type StakingKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) CreateDidDoc ¶
func (*UnimplementedMsgServer) CreateDidDoc(ctx context.Context, req *MsgCreateDidDoc) (*MsgCreateDidDocResponse, error)
func (*UnimplementedMsgServer) DeactivateDidDoc ¶
func (*UnimplementedMsgServer) DeactivateDidDoc(ctx context.Context, req *MsgDeactivateDidDoc) (*MsgDeactivateDidDocResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) UpdateDidDoc ¶
func (*UnimplementedMsgServer) UpdateDidDoc(ctx context.Context, req *MsgUpdateDidDoc) (*MsgUpdateDidDocResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllDidDocVersionsMetadata ¶
func (*UnimplementedQueryServer) AllDidDocVersionsMetadata(ctx context.Context, req *QueryAllDidDocVersionsMetadataRequest) (*QueryAllDidDocVersionsMetadataResponse, error)
func (*UnimplementedQueryServer) DidDoc ¶
func (*UnimplementedQueryServer) DidDoc(ctx context.Context, req *QueryDidDocRequest) (*QueryDidDocResponse, error)
func (*UnimplementedQueryServer) DidDocVersion ¶
func (*UnimplementedQueryServer) DidDocVersion(ctx context.Context, req *QueryDidDocVersionRequest) (*QueryDidDocVersionResponse, error)
type ValidationType ¶
type ValidationType int
const ( Optional ValidationType = iota Required ValidationType = iota Empty ValidationType = iota )
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 `protobuf:"bytes,2,opt,name=verification_method_type,json=verificationMethodType,proto3" json:"type,omitempty"` // 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"` }
VerificationMethod defines a verification method, as defined in the DID Core specification. Documentation: https://www.w3.org/TR/did-core/#verification-methods
func FindVerificationMethod ¶
func FindVerificationMethod(vms []VerificationMethod, id string) (VerificationMethod, bool)
func NewVerificationMethod ¶
func NewVerificationMethod(id string, vmType string, controller string, verificationMaterial string) *VerificationMethod
func (*VerificationMethod) Descriptor ¶
func (*VerificationMethod) Descriptor() ([]byte, []int)
func (*VerificationMethod) GetController ¶
func (m *VerificationMethod) GetController() string
func (*VerificationMethod) GetId ¶
func (m *VerificationMethod) GetId() string
func (*VerificationMethod) GetVerificationMaterial ¶
func (m *VerificationMethod) GetVerificationMaterial() string
func (*VerificationMethod) GetVerificationMethodType ¶ added in v1.1.0
func (m *VerificationMethod) GetVerificationMethodType() string
func (*VerificationMethod) Marshal ¶
func (m *VerificationMethod) Marshal() (dAtA []byte, err error)
func (*VerificationMethod) MarshalTo ¶
func (m *VerificationMethod) MarshalTo(dAtA []byte) (int, error)
func (*VerificationMethod) MarshalToSizedBuffer ¶
func (m *VerificationMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerificationMethod) ProtoMessage ¶
func (*VerificationMethod) ProtoMessage()
func (*VerificationMethod) ReplaceDids ¶
func (vm *VerificationMethod) ReplaceDids(old, new string)
ReplaceDids replaces ids in all fields
func (*VerificationMethod) Reset ¶
func (m *VerificationMethod) Reset()
func (*VerificationMethod) Size ¶
func (m *VerificationMethod) Size() (n int)
func (*VerificationMethod) String ¶
func (m *VerificationMethod) String() string
func (*VerificationMethod) Unmarshal ¶
func (m *VerificationMethod) Unmarshal(dAtA []byte) error
func (VerificationMethod) Validate ¶
func (vm VerificationMethod) Validate(baseDid string, allowedNamespaces []string) error
Validation
func (*VerificationMethod) XXX_DiscardUnknown ¶
func (m *VerificationMethod) XXX_DiscardUnknown()
func (*VerificationMethod) XXX_Marshal ¶
func (m *VerificationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerificationMethod) XXX_Merge ¶
func (m *VerificationMethod) XXX_Merge(src proto.Message)
func (*VerificationMethod) XXX_Size ¶
func (m *VerificationMethod) XXX_Size() int
func (*VerificationMethod) XXX_Unmarshal ¶
func (m *VerificationMethod) XXX_Unmarshal(b []byte) error
Source Files ¶
- codec.go
- denom.go
- diddoc.pb.go
- diddoc_assertion_method.go
- diddoc_diddoc.go
- diddoc_diddoc_with_metadata.go
- diddoc_metadata.go
- diddoc_service.go
- diddoc_verification_method.go
- error.go
- expected_keepers.go
- fee.pb.go
- genesis.go
- genesis.pb.go
- keys.go
- params.go
- query.go
- query.pb.go
- query.pb.gw.go
- query_get_all_diddoc_versions_metadata_request.go
- query_get_diddoc_request.go
- query_get_diddoc_version_request.go
- tx.go
- tx.pb.go
- tx_msg_burn.go
- tx_msg_create_diddoc.go
- tx_msg_create_diddoc_payload.go
- tx_msg_deactivate_did_doc.go
- tx_msg_deactivate_did_doc_payload.go
- tx_msg_mint.go
- tx_msg_update_did_doc.go
- tx_msg_update_did_doc_payload.go
- tx_sign_info.go
- validate.go