Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func IncludeService(did string, services []*Service, id string) bool
- func IncludeVerificationMethod(did string, vms []*VerificationMethod, id string) bool
- func KeyPrefix(p string) []byte
- func MsgTypeURL(msg proto.Message) string
- 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 ValidateService(namespace string, s *Service) error
- func ValidateServices(namespace string, did string, services []*Service) error
- func ValidateVerificationMethod(namespace string, vm *VerificationMethod) error
- func ValidateVerificationMethods(namespace string, did string, vms []*VerificationMethod) error
- type Did
- func (*Did) Descriptor() ([]byte, []int)
- func (m *Did) GetAlsoKnownAs() []string
- func (m *Did) GetAssertionMethod() []string
- func (m *Did) GetAuthentication() []string
- func (m *Did) GetCapabilityDelegation() []string
- func (m *Did) GetCapabilityInvocation() []string
- func (m *Did) GetContext() []string
- func (m *Did) GetController() []string
- func (m *Did) GetId() string
- func (m *Did) GetKeyAgreement() []string
- func (m *Did) GetService() []*Service
- func (m *Did) GetVerificationMethod() []*VerificationMethod
- func (m *Did) Marshal() (dAtA []byte, err error)
- func (m *Did) MarshalTo(dAtA []byte) (int, error)
- func (m *Did) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Did) ProtoMessage()
- func (m *Did) Reset()
- func (m *Did) Size() (n int)
- func (m *Did) String() string
- func (m *Did) Unmarshal(dAtA []byte) error
- func (m *Did) XXX_DiscardUnknown()
- func (m *Did) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Did) XXX_Merge(src proto.Message)
- func (m *Did) XXX_Size() int
- func (m *Did) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDidList() []*StateValue
- func (m *GenesisState) GetDidNamespace() string
- 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 (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 KeyValuePair
- func (*KeyValuePair) Descriptor() ([]byte, []int)
- func (m *KeyValuePair) GetKey() string
- func (m *KeyValuePair) GetValue() string
- func (m *KeyValuePair) Marshal() (dAtA []byte, err error)
- func (m *KeyValuePair) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyValuePair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyValuePair) ProtoMessage()
- func (m *KeyValuePair) Reset()
- func (m *KeyValuePair) Size() (n int)
- func (m *KeyValuePair) String() string
- func (m *KeyValuePair) Unmarshal(dAtA []byte) error
- func (m *KeyValuePair) XXX_DiscardUnknown()
- func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValuePair) XXX_Merge(src proto.Message)
- func (m *KeyValuePair) XXX_Size() int
- func (m *KeyValuePair) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetCreated() string
- func (m *Metadata) GetDeactivated() bool
- func (m *Metadata) GetUpdated() string
- 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) 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 MsgClient
- type MsgCreateDid
- func (*MsgCreateDid) Descriptor() ([]byte, []int)
- func (m *MsgCreateDid) GetPayload() *MsgCreateDidPayload
- func (msg *MsgCreateDid) GetSignBytes() []byte
- func (m *MsgCreateDid) GetSignatures() []*SignInfo
- func (msg *MsgCreateDid) GetSigners() []sdk.AccAddress
- func (m *MsgCreateDid) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDid) ProtoMessage()
- func (m *MsgCreateDid) Reset()
- func (msg *MsgCreateDid) Route() string
- func (m *MsgCreateDid) Size() (n int)
- func (m *MsgCreateDid) String() string
- func (msg *MsgCreateDid) Type() string
- func (m *MsgCreateDid) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateDid) ValidateBasic() error
- func (m *MsgCreateDid) XXX_DiscardUnknown()
- func (m *MsgCreateDid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDid) XXX_Merge(src proto.Message)
- func (m *MsgCreateDid) XXX_Size() int
- func (m *MsgCreateDid) XXX_Unmarshal(b []byte) error
- type MsgCreateDidPayload
- func (*MsgCreateDidPayload) Descriptor() ([]byte, []int)
- func (m *MsgCreateDidPayload) GetAlsoKnownAs() []string
- func (m *MsgCreateDidPayload) GetAssertionMethod() []string
- func (m *MsgCreateDidPayload) GetAuthentication() []string
- func (m *MsgCreateDidPayload) GetCapabilityDelegation() []string
- func (m *MsgCreateDidPayload) GetCapabilityInvocation() []string
- func (m *MsgCreateDidPayload) GetContext() []string
- func (m *MsgCreateDidPayload) GetController() []string
- func (m *MsgCreateDidPayload) GetId() string
- func (m *MsgCreateDidPayload) GetKeyAgreement() []string
- func (m *MsgCreateDidPayload) GetService() []*Service
- func (msg *MsgCreateDidPayload) GetSignBytes() []byte
- func (msg *MsgCreateDidPayload) GetSigners() []Signer
- func (m *MsgCreateDidPayload) GetVerificationMethod() []*VerificationMethod
- func (m *MsgCreateDidPayload) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDidPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDidPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDidPayload) ProtoMessage()
- func (m *MsgCreateDidPayload) Reset()
- func (m *MsgCreateDidPayload) Size() (n int)
- func (m *MsgCreateDidPayload) String() string
- func (m *MsgCreateDidPayload) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateDidPayload) Validate(namespace string) error
- func (m *MsgCreateDidPayload) XXX_DiscardUnknown()
- func (m *MsgCreateDidPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDidPayload) XXX_Merge(src proto.Message)
- func (m *MsgCreateDidPayload) XXX_Size() int
- func (m *MsgCreateDidPayload) XXX_Unmarshal(b []byte) error
- type MsgCreateDidResponse
- func (*MsgCreateDidResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateDidResponse) GetId() string
- func (m *MsgCreateDidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDidResponse) ProtoMessage()
- func (m *MsgCreateDidResponse) Reset()
- func (m *MsgCreateDidResponse) Size() (n int)
- func (m *MsgCreateDidResponse) String() string
- func (m *MsgCreateDidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateDidResponse) XXX_DiscardUnknown()
- func (m *MsgCreateDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDidResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateDidResponse) XXX_Size() int
- func (m *MsgCreateDidResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateDid
- func (*MsgUpdateDid) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDid) GetPayload() *MsgUpdateDidPayload
- func (msg *MsgUpdateDid) GetSignBytes() []byte
- func (m *MsgUpdateDid) GetSignatures() []*SignInfo
- func (msg *MsgUpdateDid) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateDid) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDid) ProtoMessage()
- func (m *MsgUpdateDid) Reset()
- func (msg *MsgUpdateDid) Route() string
- func (m *MsgUpdateDid) Size() (n int)
- func (m *MsgUpdateDid) String() string
- func (msg *MsgUpdateDid) Type() string
- func (m *MsgUpdateDid) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateDid) ValidateBasic() error
- func (m *MsgUpdateDid) XXX_DiscardUnknown()
- func (m *MsgUpdateDid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDid) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDid) XXX_Size() int
- func (m *MsgUpdateDid) XXX_Unmarshal(b []byte) error
- type MsgUpdateDidPayload
- func (*MsgUpdateDidPayload) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDidPayload) GetAlsoKnownAs() []string
- func (m *MsgUpdateDidPayload) GetAssertionMethod() []string
- func (m *MsgUpdateDidPayload) GetAuthentication() []string
- func (m *MsgUpdateDidPayload) GetCapabilityDelegation() []string
- func (m *MsgUpdateDidPayload) GetCapabilityInvocation() []string
- func (m *MsgUpdateDidPayload) GetContext() []string
- func (m *MsgUpdateDidPayload) GetController() []string
- func (m *MsgUpdateDidPayload) GetId() string
- func (m *MsgUpdateDidPayload) GetKeyAgreement() []string
- func (m *MsgUpdateDidPayload) GetService() []*Service
- func (msg *MsgUpdateDidPayload) GetSignBytes() []byte
- func (msg *MsgUpdateDidPayload) GetSigners() []Signer
- func (m *MsgUpdateDidPayload) GetVerificationMethod() []*VerificationMethod
- func (m *MsgUpdateDidPayload) GetVersionId() string
- func (m *MsgUpdateDidPayload) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDidPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDidPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDidPayload) ProtoMessage()
- func (m *MsgUpdateDidPayload) Reset()
- func (m *MsgUpdateDidPayload) Size() (n int)
- func (m *MsgUpdateDidPayload) String() string
- func (m *MsgUpdateDidPayload) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateDidPayload) Validate(namespace string) error
- func (m *MsgUpdateDidPayload) XXX_DiscardUnknown()
- func (m *MsgUpdateDidPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDidPayload) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDidPayload) XXX_Size() int
- func (m *MsgUpdateDidPayload) XXX_Unmarshal(b []byte) error
- type MsgUpdateDidResponse
- func (*MsgUpdateDidResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDidResponse) GetId() string
- func (m *MsgUpdateDidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDidResponse) ProtoMessage()
- func (m *MsgUpdateDidResponse) Reset()
- func (m *MsgUpdateDidResponse) Size() (n int)
- func (m *MsgUpdateDidResponse) String() string
- func (m *MsgUpdateDidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateDidResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDidResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDidResponse) XXX_Size() int
- func (m *MsgUpdateDidResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetDidRequest
- func (*QueryGetDidRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetDidRequest) GetId() string
- func (m *QueryGetDidRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetDidRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetDidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetDidRequest) ProtoMessage()
- func (m *QueryGetDidRequest) Reset()
- func (m *QueryGetDidRequest) Size() (n int)
- func (m *QueryGetDidRequest) String() string
- func (m *QueryGetDidRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetDidRequest) XXX_DiscardUnknown()
- func (m *QueryGetDidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetDidRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetDidRequest) XXX_Size() int
- func (m *QueryGetDidRequest) XXX_Unmarshal(b []byte) error
- type QueryGetDidResponse
- func (*QueryGetDidResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetDidResponse) GetDid() *Did
- func (m *QueryGetDidResponse) GetMetadata() *Metadata
- func (m *QueryGetDidResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetDidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetDidResponse) ProtoMessage()
- func (m *QueryGetDidResponse) Reset()
- func (m *QueryGetDidResponse) Size() (n int)
- func (m *QueryGetDidResponse) String() string
- func (m *QueryGetDidResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetDidResponse) XXX_DiscardUnknown()
- func (m *QueryGetDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetDidResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetDidResponse) XXX_Size() int
- func (m *QueryGetDidResponse) 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) GetType() 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 (m *Service) Reset()
- func (m *Service) Size() (n int)
- func (m *Service) String() string
- func (m *Service) Unmarshal(dAtA []byte) 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() string
- 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 (*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 (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 Signer
- type StateValue
- func (*StateValue) Descriptor() ([]byte, []int)
- func (m *StateValue) GetData() *types.Any
- func (m *StateValue) GetMetadata() *Metadata
- func (m *StateValue) Marshal() (dAtA []byte, err error)
- func (m *StateValue) MarshalTo(dAtA []byte) (int, error)
- func (m *StateValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StateValue) ProtoMessage()
- func (m *StateValue) Reset()
- func (m *StateValue) Size() (n int)
- func (m *StateValue) String() string
- func (m *StateValue) Unmarshal(dAtA []byte) error
- func (m StateValue) UnpackData() (StateValueData, error)
- func (m StateValue) UnpackDataAsDid() (*Did, error)
- func (m *StateValue) UnpackInterfaces(unpacker types.AnyUnpacker) error
- func (m *StateValue) XXX_DiscardUnknown()
- func (m *StateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StateValue) XXX_Merge(src proto.Message)
- func (m *StateValue) XXX_Size() int
- func (m *StateValue) XXX_Unmarshal(b []byte) error
- type StateValueData
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type VerificationMethod
- func (*VerificationMethod) Descriptor() ([]byte, []int)
- func (m *VerificationMethod) GetController() string
- func (m *VerificationMethod) GetId() string
- func (v VerificationMethod) GetPublicKey() ([]byte, error)
- func (m *VerificationMethod) GetPublicKeyJwk() []*KeyValuePair
- func (m *VerificationMethod) GetPublicKeyMultibase() string
- func (m *VerificationMethod) GetType() 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 (m *VerificationMethod) Reset()
- func (m *VerificationMethod) Size() (n int)
- func (m *VerificationMethod) String() string
- func (m *VerificationMethod) Unmarshal(dAtA []byte) 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 ( // 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 // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName DidMethod = ModuleName DidPrefix = "did" )
const ( DidKey = "did:" DidCountKey = "did-count:" // DidNamespaceKey FIXME: Should be `did-namespace:`. // Networks was started with `testnet` value so we need a migration now. DidNamespaceKey = "testnettestnet" )
const DefaultDidNamespace = "testnet"
const (
MessageCreateDid = "/cheqdid.cheqdnode.cheqd.v1.MsgCreateDidPayload"
)
const (
MessageUpdateDid = "/cheqdid.cheqdnode.cheqd.v1.MsgUpdateDidPayload"
)
const (
QueryGetDid = "get-did"
)
Variables ¶
var ( ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommon = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCommon = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthDid = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDid = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDid = fmt.Errorf("proto: unexpected end of group") )
var ( ErrBadRequest = sdkerrors.Register(ModuleName, 1000, "bad request") ErrBadRequestIsRequired = sdkerrors.Register(ModuleName, 1001, "is required") ErrBadRequestIsNotDid = sdkerrors.Register(ModuleName, 1002, "is not DID") ErrBadRequestInvalidVerMethod = sdkerrors.Register(ModuleName, 1003, "invalid verification method") ErrBadRequestInvalidService = sdkerrors.Register(ModuleName, 1004, "invalid service") ErrBadRequestIsNotDidFragment = sdkerrors.Register(ModuleName, 1005, "is not DID fragment") ErrInvalidSignature = sdkerrors.Register(ModuleName, 1100, "invalid signature detected") ErrDidDocExists = sdkerrors.Register(ModuleName, 1200, "DID Doc exists") ErrDidDocNotFound = sdkerrors.Register(ModuleName, 1201, "DID Doc not found") ErrVerificationMethodNotFound = sdkerrors.Register(ModuleName, 1202, "verification method not found") ErrUnexpectedDidVersion = sdkerrors.Register(ModuleName, 1203, "unexpected DID version") ErrInvalidPublicKey = sdkerrors.Register(ModuleName, 1204, "invalid public key") ErrInvalidDidStateValue = sdkerrors.Register(ModuleName, 1300, "invalid did state value") ErrSetToState = sdkerrors.Register(ModuleName, 1304, "cannot set to state") ErrNotImplemented = sdkerrors.Register(ModuleName, 1501, "not implemented") )
x/cheqd module sentinel errors
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 ( ErrInvalidLengthStateValue = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStateValue = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStateValue = 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)
)
Functions ¶
func IncludeService ¶ added in v0.4.0
func IncludeVerificationMethod ¶ added in v0.4.0
func IncludeVerificationMethod(did string, vms []*VerificationMethod, id string) bool
func MsgTypeURL ¶
MsgTypeURL returns the TypeURL of a `proto.Message`.
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 ValidateService ¶ added in v0.4.0
func ValidateServices ¶ added in v0.4.0
func ValidateVerificationMethod ¶ added in v0.4.0
func ValidateVerificationMethod(namespace string, vm *VerificationMethod) error
func ValidateVerificationMethods ¶ added in v0.4.0
func ValidateVerificationMethods(namespace string, did string, vms []*VerificationMethod) error
Types ¶
type Did ¶
type Did struct { Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"` VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"` Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"` AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"` CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"` CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"` KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"` Service []*Service `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"` AlsoKnownAs []string `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"` }
func (*Did) Descriptor ¶
func (*Did) GetAlsoKnownAs ¶
func (*Did) GetAssertionMethod ¶
func (*Did) GetAuthentication ¶
func (*Did) GetCapabilityDelegation ¶
func (*Did) GetCapabilityInvocation ¶
func (*Did) GetContext ¶
func (*Did) GetController ¶
func (*Did) GetKeyAgreement ¶
func (*Did) GetService ¶
func (*Did) GetVerificationMethod ¶
func (m *Did) GetVerificationMethod() []*VerificationMethod
func (*Did) ProtoMessage ¶
func (*Did) ProtoMessage()
func (*Did) XXX_DiscardUnknown ¶
func (m *Did) XXX_DiscardUnknown()
func (*Did) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { DidNamespace string `protobuf:"bytes,1,opt,name=did_namespace,json=didNamespace,proto3" json:"did_namespace,omitempty"` DidList []*StateValue `protobuf:"bytes,2,rep,name=didList,proto3" json:"didList,omitempty"` }
GenesisState defines the cheqd module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDidList ¶
func (m *GenesisState) GetDidList() []*StateValue
func (*GenesisState) GetDidNamespace ¶
func (m *GenesisState) GetDidNamespace() string
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) 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 KeyValuePair ¶
type KeyValuePair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*KeyValuePair) Descriptor ¶
func (*KeyValuePair) Descriptor() ([]byte, []int)
func (*KeyValuePair) GetKey ¶
func (m *KeyValuePair) GetKey() string
func (*KeyValuePair) GetValue ¶
func (m *KeyValuePair) GetValue() string
func (*KeyValuePair) Marshal ¶
func (m *KeyValuePair) Marshal() (dAtA []byte, err error)
func (*KeyValuePair) MarshalToSizedBuffer ¶
func (m *KeyValuePair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyValuePair) ProtoMessage ¶
func (*KeyValuePair) ProtoMessage()
func (*KeyValuePair) Reset ¶
func (m *KeyValuePair) Reset()
func (*KeyValuePair) Size ¶
func (m *KeyValuePair) Size() (n int)
func (*KeyValuePair) String ¶
func (m *KeyValuePair) String() string
func (*KeyValuePair) Unmarshal ¶
func (m *KeyValuePair) Unmarshal(dAtA []byte) error
func (*KeyValuePair) XXX_DiscardUnknown ¶
func (m *KeyValuePair) XXX_DiscardUnknown()
func (*KeyValuePair) XXX_Marshal ¶
func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyValuePair) XXX_Merge ¶
func (m *KeyValuePair) XXX_Merge(src proto.Message)
func (*KeyValuePair) XXX_Size ¶
func (m *KeyValuePair) XXX_Size() int
func (*KeyValuePair) XXX_Unmarshal ¶
func (m *KeyValuePair) XXX_Unmarshal(b []byte) error
type Metadata ¶
type Metadata struct { Created string `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` Updated string `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"` Deactivated bool `protobuf:"varint,3,opt,name=deactivated,proto3" json:"deactivated,omitempty"` VersionId string `protobuf:"bytes,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` }
metadata
func NewMetadata ¶ added in v0.4.0
func (*Metadata) Descriptor ¶
func (*Metadata) GetCreated ¶
func (*Metadata) GetDeactivated ¶
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 MsgClient ¶
type MsgClient interface { CreateDid(ctx context.Context, in *MsgCreateDid, opts ...grpc.CallOption) (*MsgCreateDidResponse, error) UpdateDid(ctx context.Context, in *MsgUpdateDid, opts ...grpc.CallOption) (*MsgUpdateDidResponse, 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 MsgCreateDid ¶
type MsgCreateDid struct { Payload *MsgCreateDidPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` }
this line is used by starport scaffolding # proto/tx/message
func NewMsgCreateDid ¶
func NewMsgCreateDid(payload *MsgCreateDidPayload, signatures []*SignInfo) *MsgCreateDid
func (*MsgCreateDid) Descriptor ¶
func (*MsgCreateDid) Descriptor() ([]byte, []int)
func (*MsgCreateDid) GetPayload ¶
func (m *MsgCreateDid) GetPayload() *MsgCreateDidPayload
func (*MsgCreateDid) GetSignBytes ¶
func (msg *MsgCreateDid) GetSignBytes() []byte
func (*MsgCreateDid) GetSignatures ¶
func (m *MsgCreateDid) GetSignatures() []*SignInfo
func (*MsgCreateDid) GetSigners ¶
func (msg *MsgCreateDid) GetSigners() []sdk.AccAddress
func (*MsgCreateDid) Marshal ¶
func (m *MsgCreateDid) Marshal() (dAtA []byte, err error)
func (*MsgCreateDid) MarshalToSizedBuffer ¶
func (m *MsgCreateDid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDid) ProtoMessage ¶
func (*MsgCreateDid) ProtoMessage()
func (*MsgCreateDid) Reset ¶
func (m *MsgCreateDid) Reset()
func (*MsgCreateDid) Route ¶
func (msg *MsgCreateDid) Route() string
func (*MsgCreateDid) Size ¶
func (m *MsgCreateDid) Size() (n int)
func (*MsgCreateDid) String ¶
func (m *MsgCreateDid) String() string
func (*MsgCreateDid) Type ¶
func (msg *MsgCreateDid) Type() string
func (*MsgCreateDid) Unmarshal ¶
func (m *MsgCreateDid) Unmarshal(dAtA []byte) error
func (*MsgCreateDid) ValidateBasic ¶
func (msg *MsgCreateDid) ValidateBasic() error
func (*MsgCreateDid) XXX_DiscardUnknown ¶
func (m *MsgCreateDid) XXX_DiscardUnknown()
func (*MsgCreateDid) XXX_Marshal ¶
func (m *MsgCreateDid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDid) XXX_Merge ¶
func (m *MsgCreateDid) XXX_Merge(src proto.Message)
func (*MsgCreateDid) XXX_Size ¶
func (m *MsgCreateDid) XXX_Size() int
func (*MsgCreateDid) XXX_Unmarshal ¶
func (m *MsgCreateDid) XXX_Unmarshal(b []byte) error
type MsgCreateDidPayload ¶
type MsgCreateDidPayload struct { Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"` VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"` Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"` AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"` CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"` CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"` KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"` AlsoKnownAs []string `protobuf:"bytes,10,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"` Service []*Service `protobuf:"bytes,11,rep,name=service,proto3" json:"service,omitempty"` }
func NewMsgCreateDidPayloadPayload ¶ added in v0.4.0
func NewMsgCreateDidPayloadPayload( context []string, id string, controller []string, verificationMethod []*VerificationMethod, authentication []string, assertionMethod []string, capabilityInvocation []string, capabilityDelegation []string, keyAgreement []string, alsoKnownAs []string, service []*Service, ) *MsgCreateDidPayload
func (*MsgCreateDidPayload) Descriptor ¶
func (*MsgCreateDidPayload) Descriptor() ([]byte, []int)
func (*MsgCreateDidPayload) GetAlsoKnownAs ¶
func (m *MsgCreateDidPayload) GetAlsoKnownAs() []string
func (*MsgCreateDidPayload) GetAssertionMethod ¶
func (m *MsgCreateDidPayload) GetAssertionMethod() []string
func (*MsgCreateDidPayload) GetAuthentication ¶
func (m *MsgCreateDidPayload) GetAuthentication() []string
func (*MsgCreateDidPayload) GetCapabilityDelegation ¶
func (m *MsgCreateDidPayload) GetCapabilityDelegation() []string
func (*MsgCreateDidPayload) GetCapabilityInvocation ¶
func (m *MsgCreateDidPayload) GetCapabilityInvocation() []string
func (*MsgCreateDidPayload) GetContext ¶
func (m *MsgCreateDidPayload) GetContext() []string
func (*MsgCreateDidPayload) GetController ¶
func (m *MsgCreateDidPayload) GetController() []string
func (*MsgCreateDidPayload) GetId ¶
func (m *MsgCreateDidPayload) GetId() string
func (*MsgCreateDidPayload) GetKeyAgreement ¶
func (m *MsgCreateDidPayload) GetKeyAgreement() []string
func (*MsgCreateDidPayload) GetService ¶
func (m *MsgCreateDidPayload) GetService() []*Service
func (*MsgCreateDidPayload) GetSignBytes ¶
func (msg *MsgCreateDidPayload) GetSignBytes() []byte
func (*MsgCreateDidPayload) GetSigners ¶ added in v0.4.0
func (msg *MsgCreateDidPayload) GetSigners() []Signer
func (*MsgCreateDidPayload) GetVerificationMethod ¶
func (m *MsgCreateDidPayload) GetVerificationMethod() []*VerificationMethod
func (*MsgCreateDidPayload) Marshal ¶
func (m *MsgCreateDidPayload) Marshal() (dAtA []byte, err error)
func (*MsgCreateDidPayload) MarshalTo ¶
func (m *MsgCreateDidPayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDidPayload) MarshalToSizedBuffer ¶
func (m *MsgCreateDidPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDidPayload) ProtoMessage ¶
func (*MsgCreateDidPayload) ProtoMessage()
func (*MsgCreateDidPayload) Reset ¶
func (m *MsgCreateDidPayload) Reset()
func (*MsgCreateDidPayload) Size ¶
func (m *MsgCreateDidPayload) Size() (n int)
func (*MsgCreateDidPayload) String ¶
func (m *MsgCreateDidPayload) String() string
func (*MsgCreateDidPayload) Unmarshal ¶
func (m *MsgCreateDidPayload) Unmarshal(dAtA []byte) error
func (*MsgCreateDidPayload) Validate ¶
func (msg *MsgCreateDidPayload) Validate(namespace string) error
func (*MsgCreateDidPayload) XXX_DiscardUnknown ¶
func (m *MsgCreateDidPayload) XXX_DiscardUnknown()
func (*MsgCreateDidPayload) XXX_Marshal ¶
func (m *MsgCreateDidPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDidPayload) XXX_Merge ¶
func (m *MsgCreateDidPayload) XXX_Merge(src proto.Message)
func (*MsgCreateDidPayload) XXX_Size ¶
func (m *MsgCreateDidPayload) XXX_Size() int
func (*MsgCreateDidPayload) XXX_Unmarshal ¶
func (m *MsgCreateDidPayload) XXX_Unmarshal(b []byte) error
type MsgCreateDidResponse ¶
type MsgCreateDidResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgCreateDidResponse) Descriptor ¶
func (*MsgCreateDidResponse) Descriptor() ([]byte, []int)
func (*MsgCreateDidResponse) GetId ¶
func (m *MsgCreateDidResponse) GetId() string
func (*MsgCreateDidResponse) Marshal ¶
func (m *MsgCreateDidResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateDidResponse) MarshalTo ¶
func (m *MsgCreateDidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDidResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDidResponse) ProtoMessage ¶
func (*MsgCreateDidResponse) ProtoMessage()
func (*MsgCreateDidResponse) Reset ¶
func (m *MsgCreateDidResponse) Reset()
func (*MsgCreateDidResponse) Size ¶
func (m *MsgCreateDidResponse) Size() (n int)
func (*MsgCreateDidResponse) String ¶
func (m *MsgCreateDidResponse) String() string
func (*MsgCreateDidResponse) Unmarshal ¶
func (m *MsgCreateDidResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateDidResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateDidResponse) XXX_DiscardUnknown()
func (*MsgCreateDidResponse) XXX_Marshal ¶
func (m *MsgCreateDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDidResponse) XXX_Merge ¶
func (m *MsgCreateDidResponse) XXX_Merge(src proto.Message)
func (*MsgCreateDidResponse) XXX_Size ¶
func (m *MsgCreateDidResponse) XXX_Size() int
func (*MsgCreateDidResponse) XXX_Unmarshal ¶
func (m *MsgCreateDidResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateDid(context.Context, *MsgCreateDid) (*MsgCreateDidResponse, error) UpdateDid(context.Context, *MsgUpdateDid) (*MsgUpdateDidResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateDid ¶
type MsgUpdateDid struct { Payload *MsgUpdateDidPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Signatures []*SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` }
func NewMsgUpdateDid ¶
func NewMsgUpdateDid(payload *MsgUpdateDidPayload, signatures []*SignInfo) *MsgUpdateDid
func (*MsgUpdateDid) Descriptor ¶
func (*MsgUpdateDid) Descriptor() ([]byte, []int)
func (*MsgUpdateDid) GetPayload ¶
func (m *MsgUpdateDid) GetPayload() *MsgUpdateDidPayload
func (*MsgUpdateDid) GetSignBytes ¶
func (msg *MsgUpdateDid) GetSignBytes() []byte
func (*MsgUpdateDid) GetSignatures ¶
func (m *MsgUpdateDid) GetSignatures() []*SignInfo
func (*MsgUpdateDid) GetSigners ¶
func (msg *MsgUpdateDid) GetSigners() []sdk.AccAddress
func (*MsgUpdateDid) Marshal ¶
func (m *MsgUpdateDid) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDid) MarshalToSizedBuffer ¶
func (m *MsgUpdateDid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDid) ProtoMessage ¶
func (*MsgUpdateDid) ProtoMessage()
func (*MsgUpdateDid) Reset ¶
func (m *MsgUpdateDid) Reset()
func (*MsgUpdateDid) Route ¶
func (msg *MsgUpdateDid) Route() string
func (*MsgUpdateDid) Size ¶
func (m *MsgUpdateDid) Size() (n int)
func (*MsgUpdateDid) String ¶
func (m *MsgUpdateDid) String() string
func (*MsgUpdateDid) Type ¶
func (msg *MsgUpdateDid) Type() string
func (*MsgUpdateDid) Unmarshal ¶
func (m *MsgUpdateDid) Unmarshal(dAtA []byte) error
func (*MsgUpdateDid) ValidateBasic ¶
func (msg *MsgUpdateDid) ValidateBasic() error
func (*MsgUpdateDid) XXX_DiscardUnknown ¶
func (m *MsgUpdateDid) XXX_DiscardUnknown()
func (*MsgUpdateDid) XXX_Marshal ¶
func (m *MsgUpdateDid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDid) XXX_Merge ¶
func (m *MsgUpdateDid) XXX_Merge(src proto.Message)
func (*MsgUpdateDid) XXX_Size ¶
func (m *MsgUpdateDid) XXX_Size() int
func (*MsgUpdateDid) XXX_Unmarshal ¶
func (m *MsgUpdateDid) XXX_Unmarshal(b []byte) error
type MsgUpdateDidPayload ¶
type MsgUpdateDidPayload struct { Context []string `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Controller []string `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"` VerificationMethod []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"` Authentication []string `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"` AssertionMethod []string `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"` CapabilityInvocation []string `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"` CapabilityDelegation []string `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"` KeyAgreement []string `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"` AlsoKnownAs []string `protobuf:"bytes,10,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"` Service []*Service `protobuf:"bytes,11,rep,name=service,proto3" json:"service,omitempty"` VersionId string `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` }
func NewMsgUpdateDidPayloadPayload ¶ added in v0.4.0
func NewMsgUpdateDidPayloadPayload( context []string, id string, controller []string, verificationMethod []*VerificationMethod, authentication []string, assertionMethod []string, capabilityInvocation []string, capabilityDelegation []string, keyAgreement []string, alsoKnownAs []string, service []*Service, ) *MsgUpdateDidPayload
func (*MsgUpdateDidPayload) Descriptor ¶
func (*MsgUpdateDidPayload) Descriptor() ([]byte, []int)
func (*MsgUpdateDidPayload) GetAlsoKnownAs ¶
func (m *MsgUpdateDidPayload) GetAlsoKnownAs() []string
func (*MsgUpdateDidPayload) GetAssertionMethod ¶
func (m *MsgUpdateDidPayload) GetAssertionMethod() []string
func (*MsgUpdateDidPayload) GetAuthentication ¶
func (m *MsgUpdateDidPayload) GetAuthentication() []string
func (*MsgUpdateDidPayload) GetCapabilityDelegation ¶
func (m *MsgUpdateDidPayload) GetCapabilityDelegation() []string
func (*MsgUpdateDidPayload) GetCapabilityInvocation ¶
func (m *MsgUpdateDidPayload) GetCapabilityInvocation() []string
func (*MsgUpdateDidPayload) GetContext ¶
func (m *MsgUpdateDidPayload) GetContext() []string
func (*MsgUpdateDidPayload) GetController ¶
func (m *MsgUpdateDidPayload) GetController() []string
func (*MsgUpdateDidPayload) GetId ¶
func (m *MsgUpdateDidPayload) GetId() string
func (*MsgUpdateDidPayload) GetKeyAgreement ¶
func (m *MsgUpdateDidPayload) GetKeyAgreement() []string
func (*MsgUpdateDidPayload) GetService ¶
func (m *MsgUpdateDidPayload) GetService() []*Service
func (*MsgUpdateDidPayload) GetSignBytes ¶
func (msg *MsgUpdateDidPayload) GetSignBytes() []byte
func (*MsgUpdateDidPayload) GetSigners ¶ added in v0.4.0
func (msg *MsgUpdateDidPayload) GetSigners() []Signer
func (*MsgUpdateDidPayload) GetVerificationMethod ¶
func (m *MsgUpdateDidPayload) GetVerificationMethod() []*VerificationMethod
func (*MsgUpdateDidPayload) GetVersionId ¶
func (m *MsgUpdateDidPayload) GetVersionId() string
func (*MsgUpdateDidPayload) Marshal ¶
func (m *MsgUpdateDidPayload) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDidPayload) MarshalTo ¶
func (m *MsgUpdateDidPayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDidPayload) MarshalToSizedBuffer ¶
func (m *MsgUpdateDidPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDidPayload) ProtoMessage ¶
func (*MsgUpdateDidPayload) ProtoMessage()
func (*MsgUpdateDidPayload) Reset ¶
func (m *MsgUpdateDidPayload) Reset()
func (*MsgUpdateDidPayload) Size ¶
func (m *MsgUpdateDidPayload) Size() (n int)
func (*MsgUpdateDidPayload) String ¶
func (m *MsgUpdateDidPayload) String() string
func (*MsgUpdateDidPayload) Unmarshal ¶
func (m *MsgUpdateDidPayload) Unmarshal(dAtA []byte) error
func (*MsgUpdateDidPayload) Validate ¶
func (msg *MsgUpdateDidPayload) Validate(namespace string) error
func (*MsgUpdateDidPayload) XXX_DiscardUnknown ¶
func (m *MsgUpdateDidPayload) XXX_DiscardUnknown()
func (*MsgUpdateDidPayload) XXX_Marshal ¶
func (m *MsgUpdateDidPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDidPayload) XXX_Merge ¶
func (m *MsgUpdateDidPayload) XXX_Merge(src proto.Message)
func (*MsgUpdateDidPayload) XXX_Size ¶
func (m *MsgUpdateDidPayload) XXX_Size() int
func (*MsgUpdateDidPayload) XXX_Unmarshal ¶
func (m *MsgUpdateDidPayload) XXX_Unmarshal(b []byte) error
type MsgUpdateDidResponse ¶
type MsgUpdateDidResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgUpdateDidResponse) Descriptor ¶
func (*MsgUpdateDidResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateDidResponse) GetId ¶
func (m *MsgUpdateDidResponse) GetId() string
func (*MsgUpdateDidResponse) Marshal ¶
func (m *MsgUpdateDidResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDidResponse) MarshalTo ¶
func (m *MsgUpdateDidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDidResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDidResponse) ProtoMessage ¶
func (*MsgUpdateDidResponse) ProtoMessage()
func (*MsgUpdateDidResponse) Reset ¶
func (m *MsgUpdateDidResponse) Reset()
func (*MsgUpdateDidResponse) Size ¶
func (m *MsgUpdateDidResponse) Size() (n int)
func (*MsgUpdateDidResponse) String ¶
func (m *MsgUpdateDidResponse) String() string
func (*MsgUpdateDidResponse) Unmarshal ¶
func (m *MsgUpdateDidResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateDidResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateDidResponse) XXX_DiscardUnknown()
func (*MsgUpdateDidResponse) XXX_Marshal ¶
func (m *MsgUpdateDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDidResponse) XXX_Merge ¶
func (m *MsgUpdateDidResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateDidResponse) XXX_Size ¶
func (m *MsgUpdateDidResponse) XXX_Size() int
func (*MsgUpdateDidResponse) XXX_Unmarshal ¶
func (m *MsgUpdateDidResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
Did(ctx context.Context, in *QueryGetDidRequest, opts ...grpc.CallOption) (*QueryGetDidResponse, 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 QueryGetDidRequest ¶
type QueryGetDidRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetDidRequest) Descriptor ¶
func (*QueryGetDidRequest) Descriptor() ([]byte, []int)
func (*QueryGetDidRequest) GetId ¶
func (m *QueryGetDidRequest) GetId() string
func (*QueryGetDidRequest) Marshal ¶
func (m *QueryGetDidRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetDidRequest) MarshalTo ¶
func (m *QueryGetDidRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetDidRequest) MarshalToSizedBuffer ¶
func (m *QueryGetDidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetDidRequest) ProtoMessage ¶
func (*QueryGetDidRequest) ProtoMessage()
func (*QueryGetDidRequest) Reset ¶
func (m *QueryGetDidRequest) Reset()
func (*QueryGetDidRequest) Size ¶
func (m *QueryGetDidRequest) Size() (n int)
func (*QueryGetDidRequest) String ¶
func (m *QueryGetDidRequest) String() string
func (*QueryGetDidRequest) Unmarshal ¶
func (m *QueryGetDidRequest) Unmarshal(dAtA []byte) error
func (*QueryGetDidRequest) XXX_DiscardUnknown ¶
func (m *QueryGetDidRequest) XXX_DiscardUnknown()
func (*QueryGetDidRequest) XXX_Marshal ¶
func (m *QueryGetDidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetDidRequest) XXX_Merge ¶
func (m *QueryGetDidRequest) XXX_Merge(src proto.Message)
func (*QueryGetDidRequest) XXX_Size ¶
func (m *QueryGetDidRequest) XXX_Size() int
func (*QueryGetDidRequest) XXX_Unmarshal ¶
func (m *QueryGetDidRequest) XXX_Unmarshal(b []byte) error
type QueryGetDidResponse ¶
type QueryGetDidResponse struct { Did *Did `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
func (*QueryGetDidResponse) Descriptor ¶
func (*QueryGetDidResponse) Descriptor() ([]byte, []int)
func (*QueryGetDidResponse) GetDid ¶
func (m *QueryGetDidResponse) GetDid() *Did
func (*QueryGetDidResponse) GetMetadata ¶
func (m *QueryGetDidResponse) GetMetadata() *Metadata
func (*QueryGetDidResponse) Marshal ¶
func (m *QueryGetDidResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetDidResponse) MarshalTo ¶
func (m *QueryGetDidResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetDidResponse) MarshalToSizedBuffer ¶
func (m *QueryGetDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetDidResponse) ProtoMessage ¶
func (*QueryGetDidResponse) ProtoMessage()
func (*QueryGetDidResponse) Reset ¶
func (m *QueryGetDidResponse) Reset()
func (*QueryGetDidResponse) Size ¶
func (m *QueryGetDidResponse) Size() (n int)
func (*QueryGetDidResponse) String ¶
func (m *QueryGetDidResponse) String() string
func (*QueryGetDidResponse) Unmarshal ¶
func (m *QueryGetDidResponse) Unmarshal(dAtA []byte) error
func (*QueryGetDidResponse) XXX_DiscardUnknown ¶
func (m *QueryGetDidResponse) XXX_DiscardUnknown()
func (*QueryGetDidResponse) XXX_Marshal ¶
func (m *QueryGetDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetDidResponse) XXX_Merge ¶
func (m *QueryGetDidResponse) XXX_Merge(src proto.Message)
func (*QueryGetDidResponse) XXX_Size ¶
func (m *QueryGetDidResponse) XXX_Size() int
func (*QueryGetDidResponse) XXX_Unmarshal ¶
func (m *QueryGetDidResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
Did(context.Context, *QueryGetDidRequest) (*QueryGetDidResponse, error)
}
QueryServer is the server API for Query service.
type Service ¶
type Service struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` ServiceEndpoint string `protobuf:"bytes,3,opt,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"` }
func (*Service) Descriptor ¶
func (*Service) GetServiceEndpoint ¶
func (*Service) MarshalToSizedBuffer ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
type SignInfo ¶
type SignInfo struct { VerificationMethodId string `protobuf:"bytes,1,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
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 Signer ¶ added in v0.4.0
type Signer struct { Signer string Authentication []string VerificationMethod []*VerificationMethod }
type StateValue ¶
type StateValue struct { Data *types.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
func NewStateValue ¶
func NewStateValue(data StateValueData, metadata *Metadata) (*StateValue, error)
func (*StateValue) Descriptor ¶
func (*StateValue) Descriptor() ([]byte, []int)
func (*StateValue) GetData ¶
func (m *StateValue) GetData() *types.Any
func (*StateValue) GetMetadata ¶
func (m *StateValue) GetMetadata() *Metadata
func (*StateValue) Marshal ¶
func (m *StateValue) Marshal() (dAtA []byte, err error)
func (*StateValue) MarshalToSizedBuffer ¶
func (m *StateValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StateValue) ProtoMessage ¶
func (*StateValue) ProtoMessage()
func (*StateValue) Reset ¶
func (m *StateValue) Reset()
func (*StateValue) Size ¶
func (m *StateValue) Size() (n int)
func (*StateValue) String ¶
func (m *StateValue) String() string
func (*StateValue) Unmarshal ¶
func (m *StateValue) Unmarshal(dAtA []byte) error
func (StateValue) UnpackData ¶
func (m StateValue) UnpackData() (StateValueData, error)
func (StateValue) UnpackDataAsDid ¶
func (m StateValue) UnpackDataAsDid() (*Did, error)
func (*StateValue) UnpackInterfaces ¶
func (m *StateValue) UnpackInterfaces(unpacker types.AnyUnpacker) error
func (*StateValue) XXX_DiscardUnknown ¶
func (m *StateValue) XXX_DiscardUnknown()
func (*StateValue) XXX_Marshal ¶
func (m *StateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateValue) XXX_Merge ¶
func (m *StateValue) XXX_Merge(src proto.Message)
func (*StateValue) XXX_Size ¶
func (m *StateValue) XXX_Size() int
func (*StateValue) XXX_Unmarshal ¶
func (m *StateValue) XXX_Unmarshal(b []byte) error
type StateValueData ¶
StateValueData is interface uniting possible types to be used for stateValue.data field
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateDid ¶
func (*UnimplementedMsgServer) CreateDid(ctx context.Context, req *MsgCreateDid) (*MsgCreateDidResponse, error)
func (*UnimplementedMsgServer) UpdateDid ¶
func (*UnimplementedMsgServer) UpdateDid(ctx context.Context, req *MsgUpdateDid) (*MsgUpdateDidResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Did ¶
func (*UnimplementedQueryServer) Did(ctx context.Context, req *QueryGetDidRequest) (*QueryGetDidResponse, error)
type VerificationMethod ¶
type VerificationMethod struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"` PublicKeyJwk []*KeyValuePair `protobuf:"bytes,4,rep,name=public_key_jwk,json=publicKeyJwk,proto3" json:"public_key_jwk,omitempty"` PublicKeyMultibase string `protobuf:"bytes,5,opt,name=public_key_multibase,json=publicKeyMultibase,proto3" json:"public_key_multibase,omitempty"` }
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) GetPublicKey ¶ added in v0.4.0
func (v VerificationMethod) GetPublicKey() ([]byte, error)
func (*VerificationMethod) GetPublicKeyJwk ¶
func (m *VerificationMethod) GetPublicKeyJwk() []*KeyValuePair
func (*VerificationMethod) GetPublicKeyMultibase ¶
func (m *VerificationMethod) GetPublicKeyMultibase() string
func (*VerificationMethod) GetType ¶
func (m *VerificationMethod) GetType() 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) 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) 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