Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDidPrefixKey(did exported.Did) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 UnmarshalIxoDid(jsonIxoDid string) (exported.IxoDid, error)
- func ValidateGenesis(data *GenesisState) error
- type BaseDidDoc
- func (dd *BaseDidDoc) AddCredential(cred *DidCredential)
- func (dd BaseDidDoc) Address() sdk.AccAddress
- func (*BaseDidDoc) Descriptor() ([]byte, []int)
- func (dd BaseDidDoc) GetCredentials() []DidCredential
- func (dd BaseDidDoc) GetDid() exported.Did
- func (dd BaseDidDoc) GetPubKey() string
- func (m *BaseDidDoc) Marshal() (dAtA []byte, err error)
- func (m *BaseDidDoc) MarshalTo(dAtA []byte) (int, error)
- func (m *BaseDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (dd BaseDidDoc) MarshalYAML() (interface{}, error)
- func (*BaseDidDoc) ProtoMessage()
- func (m *BaseDidDoc) Reset()
- func (dd *BaseDidDoc) SetDid(did exported.Did) error
- func (dd *BaseDidDoc) SetPubKey(pubKey string) error
- func (m *BaseDidDoc) Size() (n int)
- func (dd BaseDidDoc) String() string
- func (m *BaseDidDoc) Unmarshal(dAtA []byte) error
- func (m *BaseDidDoc) XXX_DiscardUnknown()
- func (m *BaseDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseDidDoc) XXX_Merge(src proto.Message)
- func (m *BaseDidDoc) XXX_Size() int
- func (m *BaseDidDoc) XXX_Unmarshal(b []byte) error
- type Claim
- func (*Claim) Descriptor() ([]byte, []int)
- func (m *Claim) GetId() string
- func (m *Claim) GetKYCValidated() bool
- func (m *Claim) Marshal() (dAtA []byte, err error)
- func (m *Claim) MarshalTo(dAtA []byte) (int, error)
- func (m *Claim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Claim) ProtoMessage()
- func (m *Claim) Reset()
- func (m *Claim) Size() (n int)
- func (m *Claim) String() string
- func (m *Claim) Unmarshal(dAtA []byte) error
- func (m *Claim) XXX_DiscardUnknown()
- func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claim) XXX_Merge(src proto.Message)
- func (m *Claim) XXX_Size() int
- func (m *Claim) XXX_Unmarshal(b []byte) error
- type DidCredential
- func (*DidCredential) Descriptor() ([]byte, []int)
- func (m *DidCredential) GetClaim() *Claim
- func (m *DidCredential) GetCredType() []string
- func (m *DidCredential) GetIssued() string
- func (m *DidCredential) GetIssuer() string
- func (m *DidCredential) Marshal() (dAtA []byte, err error)
- func (m *DidCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *DidCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DidCredential) ProtoMessage()
- func (m *DidCredential) Reset()
- func (m *DidCredential) Size() (n int)
- func (m *DidCredential) String() string
- func (m *DidCredential) Unmarshal(dAtA []byte) error
- func (m *DidCredential) XXX_DiscardUnknown()
- func (m *DidCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DidCredential) XXX_Merge(src proto.Message)
- func (m *DidCredential) XXX_Size() int
- func (m *DidCredential) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDidDocs() []*types.Any
- 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 (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) 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 IxoDid
- func (*IxoDid) Descriptor() ([]byte, []int)
- func (m *IxoDid) GetDid() string
- func (m *IxoDid) GetEncryptionPublicKey() string
- func (m *IxoDid) GetSecret() *Secret
- func (m *IxoDid) GetVerifyKey() string
- func (m *IxoDid) Marshal() (dAtA []byte, err error)
- func (m *IxoDid) MarshalTo(dAtA []byte) (int, error)
- func (m *IxoDid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IxoDid) ProtoMessage()
- func (m *IxoDid) Reset()
- func (m *IxoDid) Size() (n int)
- func (m *IxoDid) String() string
- func (m *IxoDid) Unmarshal(dAtA []byte) error
- func (m *IxoDid) XXX_DiscardUnknown()
- func (m *IxoDid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IxoDid) XXX_Merge(src proto.Message)
- func (m *IxoDid) XXX_Size() int
- func (m *IxoDid) XXX_Unmarshal(b []byte) error
- type MsgAddCredential
- func (*MsgAddCredential) Descriptor() ([]byte, []int)
- func (m *MsgAddCredential) GetDidCredential() DidCredential
- func (msg MsgAddCredential) GetSignBytes() []byte
- func (msg MsgAddCredential) GetSignerDid() exported.Did
- func (msg MsgAddCredential) GetSigners() []sdk.AccAddress
- func (m *MsgAddCredential) Marshal() (dAtA []byte, err error)
- func (m *MsgAddCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddCredential) ProtoMessage()
- func (m *MsgAddCredential) Reset()
- func (msg MsgAddCredential) Route() string
- func (m *MsgAddCredential) Size() (n int)
- func (m *MsgAddCredential) String() string
- func (msg MsgAddCredential) Type() string
- func (m *MsgAddCredential) Unmarshal(dAtA []byte) error
- func (msg MsgAddCredential) ValidateBasic() error
- func (m *MsgAddCredential) XXX_DiscardUnknown()
- func (m *MsgAddCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddCredential) XXX_Merge(src proto.Message)
- func (m *MsgAddCredential) XXX_Size() int
- func (m *MsgAddCredential) XXX_Unmarshal(b []byte) error
- type MsgAddCredentialResponse
- func (*MsgAddCredentialResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddCredentialResponse) ProtoMessage()
- func (m *MsgAddCredentialResponse) Reset()
- func (m *MsgAddCredentialResponse) Size() (n int)
- func (m *MsgAddCredentialResponse) String() string
- func (m *MsgAddCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddCredentialResponse) XXX_DiscardUnknown()
- func (m *MsgAddCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddCredentialResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddCredentialResponse) XXX_Size() int
- func (m *MsgAddCredentialResponse) XXX_Unmarshal(b []byte) error
- type MsgAddDid
- func (*MsgAddDid) Descriptor() ([]byte, []int)
- func (m *MsgAddDid) GetDid() string
- func (m *MsgAddDid) GetPubKey() string
- func (msg MsgAddDid) GetSignBytes() []byte
- func (msg MsgAddDid) GetSignerDid() exported.Did
- func (msg MsgAddDid) GetSigners() []sdk.AccAddress
- func (m *MsgAddDid) Marshal() (dAtA []byte, err error)
- func (m *MsgAddDid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddDid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddDid) ProtoMessage()
- func (m *MsgAddDid) Reset()
- func (msg MsgAddDid) Route() string
- func (m *MsgAddDid) Size() (n int)
- func (m *MsgAddDid) String() string
- func (msg MsgAddDid) Type() string
- func (m *MsgAddDid) Unmarshal(dAtA []byte) error
- func (msg MsgAddDid) ValidateBasic() error
- func (m *MsgAddDid) XXX_DiscardUnknown()
- func (m *MsgAddDid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddDid) XXX_Merge(src proto.Message)
- func (m *MsgAddDid) XXX_Size() int
- func (m *MsgAddDid) XXX_Unmarshal(b []byte) error
- type MsgAddDidResponse
- func (*MsgAddDidResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddDidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddDidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddDidResponse) ProtoMessage()
- func (m *MsgAddDidResponse) Reset()
- func (m *MsgAddDidResponse) Size() (n int)
- func (m *MsgAddDidResponse) String() string
- func (m *MsgAddDidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddDidResponse) XXX_DiscardUnknown()
- func (m *MsgAddDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddDidResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddDidResponse) XXX_Size() int
- func (m *MsgAddDidResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type QueryAddressFromBase58EncodedPubkeyRequest
- func (*QueryAddressFromBase58EncodedPubkeyRequest) Descriptor() ([]byte, []int)
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) GetPubKey() string
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAddressFromBase58EncodedPubkeyRequest) ProtoMessage()
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) Reset()
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) Size() (n int)
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) String() string
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_DiscardUnknown()
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Merge(src proto.Message)
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Size() int
- func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Unmarshal(b []byte) error
- type QueryAddressFromBase58EncodedPubkeyResponse
- func (*QueryAddressFromBase58EncodedPubkeyResponse) Descriptor() ([]byte, []int)
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) GetAddress() string
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAddressFromBase58EncodedPubkeyResponse) ProtoMessage()
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) Reset()
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) Size() (n int)
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) String() string
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_DiscardUnknown()
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Merge(src proto.Message)
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Size() int
- func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Unmarshal(b []byte) error
- type QueryAddressFromDidRequest
- func (*QueryAddressFromDidRequest) Descriptor() ([]byte, []int)
- func (m *QueryAddressFromDidRequest) GetDid() string
- func (m *QueryAddressFromDidRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAddressFromDidRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAddressFromDidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAddressFromDidRequest) ProtoMessage()
- func (m *QueryAddressFromDidRequest) Reset()
- func (m *QueryAddressFromDidRequest) Size() (n int)
- func (m *QueryAddressFromDidRequest) String() string
- func (m *QueryAddressFromDidRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAddressFromDidRequest) XXX_DiscardUnknown()
- func (m *QueryAddressFromDidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAddressFromDidRequest) XXX_Merge(src proto.Message)
- func (m *QueryAddressFromDidRequest) XXX_Size() int
- func (m *QueryAddressFromDidRequest) XXX_Unmarshal(b []byte) error
- type QueryAddressFromDidResponse
- func (*QueryAddressFromDidResponse) Descriptor() ([]byte, []int)
- func (m *QueryAddressFromDidResponse) GetAddress() string
- func (m *QueryAddressFromDidResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAddressFromDidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAddressFromDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAddressFromDidResponse) ProtoMessage()
- func (m *QueryAddressFromDidResponse) Reset()
- func (m *QueryAddressFromDidResponse) Size() (n int)
- func (m *QueryAddressFromDidResponse) String() string
- func (m *QueryAddressFromDidResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAddressFromDidResponse) XXX_DiscardUnknown()
- func (m *QueryAddressFromDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAddressFromDidResponse) XXX_Merge(src proto.Message)
- func (m *QueryAddressFromDidResponse) XXX_Size() int
- func (m *QueryAddressFromDidResponse) XXX_Unmarshal(b []byte) error
- type QueryAllDidDocsRequest
- func (*QueryAllDidDocsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllDidDocsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDidDocsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDidDocsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDidDocsRequest) ProtoMessage()
- func (m *QueryAllDidDocsRequest) Reset()
- func (m *QueryAllDidDocsRequest) Size() (n int)
- func (m *QueryAllDidDocsRequest) String() string
- func (m *QueryAllDidDocsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllDidDocsRequest) XXX_DiscardUnknown()
- func (m *QueryAllDidDocsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDidDocsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllDidDocsRequest) XXX_Size() int
- func (m *QueryAllDidDocsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllDidDocsResponse
- func (*QueryAllDidDocsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllDidDocsResponse) GetDiddocs() []*types.Any
- func (m *QueryAllDidDocsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDidDocsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDidDocsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDidDocsResponse) ProtoMessage()
- func (m *QueryAllDidDocsResponse) Reset()
- func (m *QueryAllDidDocsResponse) Size() (n int)
- func (m *QueryAllDidDocsResponse) String() string
- func (m *QueryAllDidDocsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllDidDocsResponse) XXX_DiscardUnknown()
- func (m *QueryAllDidDocsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDidDocsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllDidDocsResponse) XXX_Size() int
- func (m *QueryAllDidDocsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllDidsRequest
- func (*QueryAllDidsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllDidsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDidsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDidsRequest) ProtoMessage()
- func (m *QueryAllDidsRequest) Reset()
- func (m *QueryAllDidsRequest) Size() (n int)
- func (m *QueryAllDidsRequest) String() string
- func (m *QueryAllDidsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllDidsRequest) XXX_DiscardUnknown()
- func (m *QueryAllDidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDidsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllDidsRequest) XXX_Size() int
- func (m *QueryAllDidsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllDidsResponse
- func (*QueryAllDidsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllDidsResponse) GetDids() []string
- func (m *QueryAllDidsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDidsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDidsResponse) ProtoMessage()
- func (m *QueryAllDidsResponse) Reset()
- func (m *QueryAllDidsResponse) Size() (n int)
- func (m *QueryAllDidsResponse) String() string
- func (m *QueryAllDidsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllDidsResponse) XXX_DiscardUnknown()
- func (m *QueryAllDidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDidsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllDidsResponse) XXX_Size() int
- func (m *QueryAllDidsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDidDocRequest
- func (*QueryDidDocRequest) Descriptor() ([]byte, []int)
- func (m *QueryDidDocRequest) GetDid() 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 (*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) GetDiddoc() *types.Any
- 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 QueryServer
- type Secret
- func (*Secret) Descriptor() ([]byte, []int)
- func (m *Secret) GetEncryptionPrivateKey() string
- func (m *Secret) GetSeed() string
- func (m *Secret) GetSignKey() string
- func (m *Secret) Marshal() (dAtA []byte, err error)
- func (m *Secret) MarshalTo(dAtA []byte) (int, error)
- func (m *Secret) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Secret) ProtoMessage()
- func (m *Secret) Reset()
- func (m *Secret) Size() (n int)
- func (m *Secret) String() string
- func (m *Secret) Unmarshal(dAtA []byte) error
- func (m *Secret) XXX_DiscardUnknown()
- func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Secret) XXX_Merge(src proto.Message)
- func (m *Secret) XXX_Size() int
- func (m *Secret) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AddressFromBase58EncodedPubkey(ctx context.Context, req *QueryAddressFromBase58EncodedPubkeyRequest) (*QueryAddressFromBase58EncodedPubkeyResponse, error)
- func (*UnimplementedQueryServer) AddressFromDid(ctx context.Context, req *QueryAddressFromDidRequest) (*QueryAddressFromDidResponse, error)
- func (*UnimplementedQueryServer) AllDidDocs(ctx context.Context, req *QueryAllDidDocsRequest) (*QueryAllDidDocsResponse, error)
- func (*UnimplementedQueryServer) AllDids(ctx context.Context, req *QueryAllDidsRequest) (*QueryAllDidsResponse, error)
- func (*UnimplementedQueryServer) DidDoc(ctx context.Context, req *QueryDidDocRequest) (*QueryDidDocResponse, error)
Constants ¶
const ( EventTypeAddDidDoc = "add_did_doc" EventTypeAddCredential = "add_credential" AttributeKeyDid = "did" AttributeKeyPubKey = "pub_key" AttributeKeyCredType = "cred_type" AttributeKeyIssuer = "issuer" AttributeKeyIssued = "issued" AttributeKeyClaimID = "claim" AttributeKeyKYCValidated = "kyc_validated" AttributeValueCategory = ModuleName )
const ( ModuleName = "did" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName )
const ( TypeMsgAddDid = "add-did" TypeMsgAddCredential = "add-credential" )
const (
DefaultCodespace = ModuleName
)
Variables ¶
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 ( ErrInvalidLengthDiddoc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDiddoc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDiddoc = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidDid = sdkerrors.Register(DefaultCodespace, 2, "invalid did") ErrInvalidPubKey = sdkerrors.Register(DefaultCodespace, 3, "invalid pubKey") ErrDidPubKeyMismatch = sdkerrors.Register(DefaultCodespace, 4, "did pubKey mismatch") ErrInvalidIssuer = sdkerrors.Register(DefaultCodespace, 5, "invalid issuer") ErrInvalidCredentials = sdkerrors.Register(DefaultCodespace, 6, "invalid credentials") ErrInvalidClaimId = sdkerrors.Register(DefaultCodespace, 7, "invalid claim ID") )
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 ( ValidDid = regexp.MustCompile(`^did:(ixo:|sov:)([a-zA-Z0-9]){21,22}([/][a-zA-Z0-9:]+|)$`) ValidPubKey = regexp.MustCompile(`^[123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ]{43,44}$`) IsValidDid = ValidDid.MatchString IsValidPubKey = ValidPubKey.MatchString )
var DidKey = []byte{0x01}
var (
EmptyDid = ""
)
var ( // ModuleCdc references the global x/did module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/did and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var ValidDidDoc = BaseDidDoc{ Did: "FrNMgb6xmPoVfWoFk5zDGn", PubKey: "96UYka2KZEw3nNb58GfP48wPeBUjPrUFrM4AnFhoBzqx", Credentials: []*DidCredential{}, }
Functions ¶
func GetDidPrefixKey ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data *GenesisState) error
ValidateGenesis performs no inspection
Types ¶
type BaseDidDoc ¶
type BaseDidDoc struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" yaml:"did"` PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pubKey" yaml:"pubKey"` Credentials []*DidCredential `protobuf:"bytes,3,rep,name=credentials,proto3" json:"credentials,omitempty" yaml:"credentials"` }
func NewBaseDidDoc ¶
func NewBaseDidDoc(did exported.Did, pubKey string) BaseDidDoc
func (*BaseDidDoc) AddCredential ¶
func (dd *BaseDidDoc) AddCredential(cred *DidCredential)
func (BaseDidDoc) Address ¶
func (dd BaseDidDoc) Address() sdk.AccAddress
func (*BaseDidDoc) Descriptor ¶
func (*BaseDidDoc) Descriptor() ([]byte, []int)
func (BaseDidDoc) GetCredentials ¶
func (dd BaseDidDoc) GetCredentials() []DidCredential
func (BaseDidDoc) GetDid ¶
func (dd BaseDidDoc) GetDid() exported.Did
func (BaseDidDoc) GetPubKey ¶
func (dd BaseDidDoc) GetPubKey() string
func (*BaseDidDoc) Marshal ¶
func (m *BaseDidDoc) Marshal() (dAtA []byte, err error)
func (*BaseDidDoc) MarshalToSizedBuffer ¶
func (m *BaseDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (BaseDidDoc) MarshalYAML ¶
func (dd BaseDidDoc) MarshalYAML() (interface{}, error)
func (*BaseDidDoc) ProtoMessage ¶
func (*BaseDidDoc) ProtoMessage()
func (*BaseDidDoc) Reset ¶
func (m *BaseDidDoc) Reset()
func (*BaseDidDoc) SetPubKey ¶
func (dd *BaseDidDoc) SetPubKey(pubKey string) error
func (*BaseDidDoc) Size ¶
func (m *BaseDidDoc) Size() (n int)
func (BaseDidDoc) String ¶
func (dd BaseDidDoc) String() string
func (*BaseDidDoc) Unmarshal ¶
func (m *BaseDidDoc) Unmarshal(dAtA []byte) error
func (*BaseDidDoc) XXX_DiscardUnknown ¶
func (m *BaseDidDoc) XXX_DiscardUnknown()
func (*BaseDidDoc) XXX_Marshal ¶
func (m *BaseDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseDidDoc) XXX_Merge ¶
func (m *BaseDidDoc) XXX_Merge(src proto.Message)
func (*BaseDidDoc) XXX_Size ¶
func (m *BaseDidDoc) XXX_Size() int
func (*BaseDidDoc) XXX_Unmarshal ¶
func (m *BaseDidDoc) XXX_Unmarshal(b []byte) error
type Claim ¶
type Claim struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` KYCValidated bool `protobuf:"varint,2,opt,name=KYC_validated,json=KYCValidated,proto3" json:"KYCValidated" yaml:"KYCValidated"` }
func (*Claim) Descriptor ¶
func (*Claim) GetKYCValidated ¶
func (*Claim) ProtoMessage ¶
func (*Claim) ProtoMessage()
func (*Claim) XXX_DiscardUnknown ¶
func (m *Claim) XXX_DiscardUnknown()
func (*Claim) XXX_Marshal ¶
func (*Claim) XXX_Unmarshal ¶
type DidCredential ¶
type DidCredential struct { CredType []string `protobuf:"bytes,1,rep,name=cred_type,json=credType,proto3" json:"type" yaml:"type"` Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty" yaml:"issuer"` Issued string `protobuf:"bytes,3,opt,name=issued,proto3" json:"issued,omitempty" yaml:"issued"` Claim *Claim `protobuf:"bytes,4,opt,name=claim,proto3" json:"claim,omitempty" yaml:"claim"` }
func (*DidCredential) Descriptor ¶
func (*DidCredential) Descriptor() ([]byte, []int)
func (*DidCredential) GetClaim ¶
func (m *DidCredential) GetClaim() *Claim
func (*DidCredential) GetCredType ¶
func (m *DidCredential) GetCredType() []string
func (*DidCredential) GetIssued ¶
func (m *DidCredential) GetIssued() string
func (*DidCredential) GetIssuer ¶
func (m *DidCredential) GetIssuer() string
func (*DidCredential) Marshal ¶
func (m *DidCredential) Marshal() (dAtA []byte, err error)
func (*DidCredential) MarshalToSizedBuffer ¶
func (m *DidCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DidCredential) ProtoMessage ¶
func (*DidCredential) ProtoMessage()
func (*DidCredential) Reset ¶
func (m *DidCredential) Reset()
func (*DidCredential) Size ¶
func (m *DidCredential) Size() (n int)
func (*DidCredential) String ¶
func (m *DidCredential) String() string
func (*DidCredential) Unmarshal ¶
func (m *DidCredential) Unmarshal(dAtA []byte) error
func (*DidCredential) XXX_DiscardUnknown ¶
func (m *DidCredential) XXX_DiscardUnknown()
func (*DidCredential) XXX_Marshal ¶
func (m *DidCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DidCredential) XXX_Merge ¶
func (m *DidCredential) XXX_Merge(src proto.Message)
func (*DidCredential) XXX_Size ¶
func (m *DidCredential) XXX_Size() int
func (*DidCredential) XXX_Unmarshal ¶
func (m *DidCredential) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
DidDocs []*types.Any `protobuf:"bytes,1,rep,name=did_docs,json=didDocs,proto3" json:"did_docs,omitempty" yaml:"did_docs"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState - Return a default genesis state
func NewGenesisState ¶
func NewGenesisState(dd []exported.DidDoc) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDidDocs ¶
func (m *GenesisState) GetDidDocs() []*types.Any
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) UnpackInterfaces ¶
func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
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 IxoDid ¶
type IxoDid struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" yaml:"did"` VerifyKey string `protobuf:"bytes,2,opt,name=verify_key,json=verifyKey,proto3" json:"verifyKey" yaml:"verifyKey"` EncryptionPublicKey string `` /* 135-byte string literal not displayed */ Secret *Secret `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty" yaml:"secret"` }
func (*IxoDid) Descriptor ¶
func (*IxoDid) GetEncryptionPublicKey ¶
func (*IxoDid) GetVerifyKey ¶
func (*IxoDid) MarshalToSizedBuffer ¶
func (*IxoDid) ProtoMessage ¶
func (*IxoDid) ProtoMessage()
func (*IxoDid) XXX_DiscardUnknown ¶
func (m *IxoDid) XXX_DiscardUnknown()
func (*IxoDid) XXX_Marshal ¶
func (*IxoDid) XXX_Unmarshal ¶
type MsgAddCredential ¶
type MsgAddCredential struct {
DidCredential DidCredential `protobuf:"bytes,1,opt,name=did_credential,json=didCredential,proto3" json:"credential" yaml:"credential"`
}
func NewMsgAddCredential ¶
func NewMsgAddCredential(did string, credType []string, issuer string, issued string) *MsgAddCredential
func (*MsgAddCredential) Descriptor ¶
func (*MsgAddCredential) Descriptor() ([]byte, []int)
func (*MsgAddCredential) GetDidCredential ¶
func (m *MsgAddCredential) GetDidCredential() DidCredential
func (MsgAddCredential) GetSignBytes ¶
func (msg MsgAddCredential) GetSignBytes() []byte
func (MsgAddCredential) GetSignerDid ¶
func (msg MsgAddCredential) GetSignerDid() exported.Did
func (MsgAddCredential) GetSigners ¶
func (msg MsgAddCredential) GetSigners() []sdk.AccAddress
func (*MsgAddCredential) Marshal ¶
func (m *MsgAddCredential) Marshal() (dAtA []byte, err error)
func (*MsgAddCredential) MarshalToSizedBuffer ¶
func (m *MsgAddCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddCredential) ProtoMessage ¶
func (*MsgAddCredential) ProtoMessage()
func (*MsgAddCredential) Reset ¶
func (m *MsgAddCredential) Reset()
func (MsgAddCredential) Route ¶
func (msg MsgAddCredential) Route() string
func (*MsgAddCredential) Size ¶
func (m *MsgAddCredential) Size() (n int)
func (*MsgAddCredential) String ¶
func (m *MsgAddCredential) String() string
func (MsgAddCredential) Type ¶
func (msg MsgAddCredential) Type() string
func (*MsgAddCredential) Unmarshal ¶
func (m *MsgAddCredential) Unmarshal(dAtA []byte) error
func (MsgAddCredential) ValidateBasic ¶
func (msg MsgAddCredential) ValidateBasic() error
func (*MsgAddCredential) XXX_DiscardUnknown ¶
func (m *MsgAddCredential) XXX_DiscardUnknown()
func (*MsgAddCredential) XXX_Marshal ¶
func (m *MsgAddCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddCredential) XXX_Merge ¶
func (m *MsgAddCredential) XXX_Merge(src proto.Message)
func (*MsgAddCredential) XXX_Size ¶
func (m *MsgAddCredential) XXX_Size() int
func (*MsgAddCredential) XXX_Unmarshal ¶
func (m *MsgAddCredential) XXX_Unmarshal(b []byte) error
type MsgAddCredentialResponse ¶
type MsgAddCredentialResponse struct { }
func (*MsgAddCredentialResponse) Descriptor ¶
func (*MsgAddCredentialResponse) Descriptor() ([]byte, []int)
func (*MsgAddCredentialResponse) Marshal ¶
func (m *MsgAddCredentialResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddCredentialResponse) MarshalTo ¶
func (m *MsgAddCredentialResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddCredentialResponse) MarshalToSizedBuffer ¶
func (m *MsgAddCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddCredentialResponse) ProtoMessage ¶
func (*MsgAddCredentialResponse) ProtoMessage()
func (*MsgAddCredentialResponse) Reset ¶
func (m *MsgAddCredentialResponse) Reset()
func (*MsgAddCredentialResponse) Size ¶
func (m *MsgAddCredentialResponse) Size() (n int)
func (*MsgAddCredentialResponse) String ¶
func (m *MsgAddCredentialResponse) String() string
func (*MsgAddCredentialResponse) Unmarshal ¶
func (m *MsgAddCredentialResponse) Unmarshal(dAtA []byte) error
func (*MsgAddCredentialResponse) XXX_DiscardUnknown ¶
func (m *MsgAddCredentialResponse) XXX_DiscardUnknown()
func (*MsgAddCredentialResponse) XXX_Marshal ¶
func (m *MsgAddCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddCredentialResponse) XXX_Merge ¶
func (m *MsgAddCredentialResponse) XXX_Merge(src proto.Message)
func (*MsgAddCredentialResponse) XXX_Size ¶
func (m *MsgAddCredentialResponse) XXX_Size() int
func (*MsgAddCredentialResponse) XXX_Unmarshal ¶
func (m *MsgAddCredentialResponse) XXX_Unmarshal(b []byte) error
type MsgAddDid ¶
type MsgAddDid struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" json:"did" yaml:"did"` PubKey string `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty" json:"pubKey" yaml:"pubKey"` }
func NewMsgAddDid ¶
func (*MsgAddDid) Descriptor ¶
func (MsgAddDid) GetSignBytes ¶
func (MsgAddDid) GetSignerDid ¶
func (MsgAddDid) GetSigners ¶
func (msg MsgAddDid) GetSigners() []sdk.AccAddress
func (*MsgAddDid) MarshalToSizedBuffer ¶
func (*MsgAddDid) ProtoMessage ¶
func (*MsgAddDid) ProtoMessage()
func (MsgAddDid) ValidateBasic ¶
func (*MsgAddDid) XXX_DiscardUnknown ¶
func (m *MsgAddDid) XXX_DiscardUnknown()
func (*MsgAddDid) XXX_Marshal ¶
func (*MsgAddDid) XXX_Unmarshal ¶
type MsgAddDidResponse ¶
type MsgAddDidResponse struct { }
func (*MsgAddDidResponse) Descriptor ¶
func (*MsgAddDidResponse) Descriptor() ([]byte, []int)
func (*MsgAddDidResponse) Marshal ¶
func (m *MsgAddDidResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddDidResponse) MarshalTo ¶
func (m *MsgAddDidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddDidResponse) MarshalToSizedBuffer ¶
func (m *MsgAddDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddDidResponse) ProtoMessage ¶
func (*MsgAddDidResponse) ProtoMessage()
func (*MsgAddDidResponse) Reset ¶
func (m *MsgAddDidResponse) Reset()
func (*MsgAddDidResponse) Size ¶
func (m *MsgAddDidResponse) Size() (n int)
func (*MsgAddDidResponse) String ¶
func (m *MsgAddDidResponse) String() string
func (*MsgAddDidResponse) Unmarshal ¶
func (m *MsgAddDidResponse) Unmarshal(dAtA []byte) error
func (*MsgAddDidResponse) XXX_DiscardUnknown ¶
func (m *MsgAddDidResponse) XXX_DiscardUnknown()
func (*MsgAddDidResponse) XXX_Marshal ¶
func (m *MsgAddDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddDidResponse) XXX_Merge ¶
func (m *MsgAddDidResponse) XXX_Merge(src proto.Message)
func (*MsgAddDidResponse) XXX_Size ¶
func (m *MsgAddDidResponse) XXX_Size() int
func (*MsgAddDidResponse) XXX_Unmarshal ¶
func (m *MsgAddDidResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { AddDid(ctx context.Context, in *MsgAddDid, opts ...grpc.CallOption) (*MsgAddDidResponse, error) AddCredential(ctx context.Context, in *MsgAddCredential, opts ...grpc.CallOption) (*MsgAddCredentialResponse, 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 MsgServer ¶
type MsgServer interface { AddDid(context.Context, *MsgAddDid) (*MsgAddDidResponse, error) AddCredential(context.Context, *MsgAddCredential) (*MsgAddCredentialResponse, error) }
MsgServer is the server API for Msg service.
type QueryAddressFromBase58EncodedPubkeyRequest ¶
type QueryAddressFromBase58EncodedPubkeyRequest struct {
PubKey string `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty" json:"pubKey" yaml:"pubKey"`
}
func (*QueryAddressFromBase58EncodedPubkeyRequest) Descriptor ¶
func (*QueryAddressFromBase58EncodedPubkeyRequest) Descriptor() ([]byte, []int)
func (*QueryAddressFromBase58EncodedPubkeyRequest) GetPubKey ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) GetPubKey() string
func (*QueryAddressFromBase58EncodedPubkeyRequest) Marshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) Marshal() (dAtA []byte, err error)
func (*QueryAddressFromBase58EncodedPubkeyRequest) MarshalTo ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAddressFromBase58EncodedPubkeyRequest) MarshalToSizedBuffer ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAddressFromBase58EncodedPubkeyRequest) ProtoMessage ¶
func (*QueryAddressFromBase58EncodedPubkeyRequest) ProtoMessage()
func (*QueryAddressFromBase58EncodedPubkeyRequest) Reset ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) Reset()
func (*QueryAddressFromBase58EncodedPubkeyRequest) Size ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) Size() (n int)
func (*QueryAddressFromBase58EncodedPubkeyRequest) String ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) String() string
func (*QueryAddressFromBase58EncodedPubkeyRequest) Unmarshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) Unmarshal(dAtA []byte) error
func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_DiscardUnknown ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_DiscardUnknown()
func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Marshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Merge ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Merge(src proto.Message)
func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Size ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Size() int
func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Unmarshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_Unmarshal(b []byte) error
type QueryAddressFromBase58EncodedPubkeyResponse ¶
type QueryAddressFromBase58EncodedPubkeyResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" json:"address" yaml:"address"`
}
func (*QueryAddressFromBase58EncodedPubkeyResponse) Descriptor ¶
func (*QueryAddressFromBase58EncodedPubkeyResponse) Descriptor() ([]byte, []int)
func (*QueryAddressFromBase58EncodedPubkeyResponse) GetAddress ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) GetAddress() string
func (*QueryAddressFromBase58EncodedPubkeyResponse) Marshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) Marshal() (dAtA []byte, err error)
func (*QueryAddressFromBase58EncodedPubkeyResponse) MarshalTo ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAddressFromBase58EncodedPubkeyResponse) MarshalToSizedBuffer ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAddressFromBase58EncodedPubkeyResponse) ProtoMessage ¶
func (*QueryAddressFromBase58EncodedPubkeyResponse) ProtoMessage()
func (*QueryAddressFromBase58EncodedPubkeyResponse) Reset ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) Reset()
func (*QueryAddressFromBase58EncodedPubkeyResponse) Size ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) Size() (n int)
func (*QueryAddressFromBase58EncodedPubkeyResponse) String ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) String() string
func (*QueryAddressFromBase58EncodedPubkeyResponse) Unmarshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) Unmarshal(dAtA []byte) error
func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_DiscardUnknown ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_DiscardUnknown()
func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Marshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Merge ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Merge(src proto.Message)
func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Size ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Size() int
func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Unmarshal ¶
func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_Unmarshal(b []byte) error
type QueryAddressFromDidRequest ¶
type QueryAddressFromDidRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" json:"did" yaml:"did"`
}
func (*QueryAddressFromDidRequest) Descriptor ¶
func (*QueryAddressFromDidRequest) Descriptor() ([]byte, []int)
func (*QueryAddressFromDidRequest) GetDid ¶
func (m *QueryAddressFromDidRequest) GetDid() string
func (*QueryAddressFromDidRequest) Marshal ¶
func (m *QueryAddressFromDidRequest) Marshal() (dAtA []byte, err error)
func (*QueryAddressFromDidRequest) MarshalTo ¶
func (m *QueryAddressFromDidRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAddressFromDidRequest) MarshalToSizedBuffer ¶
func (m *QueryAddressFromDidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAddressFromDidRequest) ProtoMessage ¶
func (*QueryAddressFromDidRequest) ProtoMessage()
func (*QueryAddressFromDidRequest) Reset ¶
func (m *QueryAddressFromDidRequest) Reset()
func (*QueryAddressFromDidRequest) Size ¶
func (m *QueryAddressFromDidRequest) Size() (n int)
func (*QueryAddressFromDidRequest) String ¶
func (m *QueryAddressFromDidRequest) String() string
func (*QueryAddressFromDidRequest) Unmarshal ¶
func (m *QueryAddressFromDidRequest) Unmarshal(dAtA []byte) error
func (*QueryAddressFromDidRequest) XXX_DiscardUnknown ¶
func (m *QueryAddressFromDidRequest) XXX_DiscardUnknown()
func (*QueryAddressFromDidRequest) XXX_Marshal ¶
func (m *QueryAddressFromDidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAddressFromDidRequest) XXX_Merge ¶
func (m *QueryAddressFromDidRequest) XXX_Merge(src proto.Message)
func (*QueryAddressFromDidRequest) XXX_Size ¶
func (m *QueryAddressFromDidRequest) XXX_Size() int
func (*QueryAddressFromDidRequest) XXX_Unmarshal ¶
func (m *QueryAddressFromDidRequest) XXX_Unmarshal(b []byte) error
type QueryAddressFromDidResponse ¶
type QueryAddressFromDidResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" json:"address" yaml:"address"`
}
func (*QueryAddressFromDidResponse) Descriptor ¶
func (*QueryAddressFromDidResponse) Descriptor() ([]byte, []int)
func (*QueryAddressFromDidResponse) GetAddress ¶
func (m *QueryAddressFromDidResponse) GetAddress() string
func (*QueryAddressFromDidResponse) Marshal ¶
func (m *QueryAddressFromDidResponse) Marshal() (dAtA []byte, err error)
func (*QueryAddressFromDidResponse) MarshalTo ¶
func (m *QueryAddressFromDidResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAddressFromDidResponse) MarshalToSizedBuffer ¶
func (m *QueryAddressFromDidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAddressFromDidResponse) ProtoMessage ¶
func (*QueryAddressFromDidResponse) ProtoMessage()
func (*QueryAddressFromDidResponse) Reset ¶
func (m *QueryAddressFromDidResponse) Reset()
func (*QueryAddressFromDidResponse) Size ¶
func (m *QueryAddressFromDidResponse) Size() (n int)
func (*QueryAddressFromDidResponse) String ¶
func (m *QueryAddressFromDidResponse) String() string
func (*QueryAddressFromDidResponse) Unmarshal ¶
func (m *QueryAddressFromDidResponse) Unmarshal(dAtA []byte) error
func (*QueryAddressFromDidResponse) XXX_DiscardUnknown ¶
func (m *QueryAddressFromDidResponse) XXX_DiscardUnknown()
func (*QueryAddressFromDidResponse) XXX_Marshal ¶
func (m *QueryAddressFromDidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAddressFromDidResponse) XXX_Merge ¶
func (m *QueryAddressFromDidResponse) XXX_Merge(src proto.Message)
func (*QueryAddressFromDidResponse) XXX_Size ¶
func (m *QueryAddressFromDidResponse) XXX_Size() int
func (*QueryAddressFromDidResponse) XXX_Unmarshal ¶
func (m *QueryAddressFromDidResponse) XXX_Unmarshal(b []byte) error
type QueryAllDidDocsRequest ¶
type QueryAllDidDocsRequest struct { }
func (*QueryAllDidDocsRequest) Descriptor ¶
func (*QueryAllDidDocsRequest) Descriptor() ([]byte, []int)
func (*QueryAllDidDocsRequest) Marshal ¶
func (m *QueryAllDidDocsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllDidDocsRequest) MarshalTo ¶
func (m *QueryAllDidDocsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDidDocsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllDidDocsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDidDocsRequest) ProtoMessage ¶
func (*QueryAllDidDocsRequest) ProtoMessage()
func (*QueryAllDidDocsRequest) Reset ¶
func (m *QueryAllDidDocsRequest) Reset()
func (*QueryAllDidDocsRequest) Size ¶
func (m *QueryAllDidDocsRequest) Size() (n int)
func (*QueryAllDidDocsRequest) String ¶
func (m *QueryAllDidDocsRequest) String() string
func (*QueryAllDidDocsRequest) Unmarshal ¶
func (m *QueryAllDidDocsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllDidDocsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllDidDocsRequest) XXX_DiscardUnknown()
func (*QueryAllDidDocsRequest) XXX_Marshal ¶
func (m *QueryAllDidDocsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDidDocsRequest) XXX_Merge ¶
func (m *QueryAllDidDocsRequest) XXX_Merge(src proto.Message)
func (*QueryAllDidDocsRequest) XXX_Size ¶
func (m *QueryAllDidDocsRequest) XXX_Size() int
func (*QueryAllDidDocsRequest) XXX_Unmarshal ¶
func (m *QueryAllDidDocsRequest) XXX_Unmarshal(b []byte) error
type QueryAllDidDocsResponse ¶
type QueryAllDidDocsResponse struct {
Diddocs []*types.Any `protobuf:"bytes,1,rep,name=diddocs,proto3" json:"diddocs,omitempty" json:"did_docs" yaml:"did_docs"`
}
func (*QueryAllDidDocsResponse) Descriptor ¶
func (*QueryAllDidDocsResponse) Descriptor() ([]byte, []int)
func (*QueryAllDidDocsResponse) GetDiddocs ¶
func (m *QueryAllDidDocsResponse) GetDiddocs() []*types.Any
func (*QueryAllDidDocsResponse) Marshal ¶
func (m *QueryAllDidDocsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllDidDocsResponse) MarshalTo ¶
func (m *QueryAllDidDocsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDidDocsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllDidDocsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDidDocsResponse) ProtoMessage ¶
func (*QueryAllDidDocsResponse) ProtoMessage()
func (*QueryAllDidDocsResponse) Reset ¶
func (m *QueryAllDidDocsResponse) Reset()
func (*QueryAllDidDocsResponse) Size ¶
func (m *QueryAllDidDocsResponse) Size() (n int)
func (*QueryAllDidDocsResponse) String ¶
func (m *QueryAllDidDocsResponse) String() string
func (*QueryAllDidDocsResponse) Unmarshal ¶
func (m *QueryAllDidDocsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllDidDocsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllDidDocsResponse) XXX_DiscardUnknown()
func (*QueryAllDidDocsResponse) XXX_Marshal ¶
func (m *QueryAllDidDocsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDidDocsResponse) XXX_Merge ¶
func (m *QueryAllDidDocsResponse) XXX_Merge(src proto.Message)
func (*QueryAllDidDocsResponse) XXX_Size ¶
func (m *QueryAllDidDocsResponse) XXX_Size() int
func (*QueryAllDidDocsResponse) XXX_Unmarshal ¶
func (m *QueryAllDidDocsResponse) XXX_Unmarshal(b []byte) error
type QueryAllDidsRequest ¶
type QueryAllDidsRequest struct { }
func (*QueryAllDidsRequest) Descriptor ¶
func (*QueryAllDidsRequest) Descriptor() ([]byte, []int)
func (*QueryAllDidsRequest) Marshal ¶
func (m *QueryAllDidsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllDidsRequest) MarshalTo ¶
func (m *QueryAllDidsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDidsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllDidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDidsRequest) ProtoMessage ¶
func (*QueryAllDidsRequest) ProtoMessage()
func (*QueryAllDidsRequest) Reset ¶
func (m *QueryAllDidsRequest) Reset()
func (*QueryAllDidsRequest) Size ¶
func (m *QueryAllDidsRequest) Size() (n int)
func (*QueryAllDidsRequest) String ¶
func (m *QueryAllDidsRequest) String() string
func (*QueryAllDidsRequest) Unmarshal ¶
func (m *QueryAllDidsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllDidsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllDidsRequest) XXX_DiscardUnknown()
func (*QueryAllDidsRequest) XXX_Marshal ¶
func (m *QueryAllDidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDidsRequest) XXX_Merge ¶
func (m *QueryAllDidsRequest) XXX_Merge(src proto.Message)
func (*QueryAllDidsRequest) XXX_Size ¶
func (m *QueryAllDidsRequest) XXX_Size() int
func (*QueryAllDidsRequest) XXX_Unmarshal ¶
func (m *QueryAllDidsRequest) XXX_Unmarshal(b []byte) error
type QueryAllDidsResponse ¶
type QueryAllDidsResponse struct {
Dids []string `protobuf:"bytes,1,rep,name=dids,proto3" json:"dids,omitempty" json:"dids" yaml:"dids"`
}
func (*QueryAllDidsResponse) Descriptor ¶
func (*QueryAllDidsResponse) Descriptor() ([]byte, []int)
func (*QueryAllDidsResponse) GetDids ¶
func (m *QueryAllDidsResponse) GetDids() []string
func (*QueryAllDidsResponse) Marshal ¶
func (m *QueryAllDidsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllDidsResponse) MarshalTo ¶
func (m *QueryAllDidsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDidsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllDidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDidsResponse) ProtoMessage ¶
func (*QueryAllDidsResponse) ProtoMessage()
func (*QueryAllDidsResponse) Reset ¶
func (m *QueryAllDidsResponse) Reset()
func (*QueryAllDidsResponse) Size ¶
func (m *QueryAllDidsResponse) Size() (n int)
func (*QueryAllDidsResponse) String ¶
func (m *QueryAllDidsResponse) String() string
func (*QueryAllDidsResponse) Unmarshal ¶
func (m *QueryAllDidsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllDidsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllDidsResponse) XXX_DiscardUnknown()
func (*QueryAllDidsResponse) XXX_Marshal ¶
func (m *QueryAllDidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDidsResponse) XXX_Merge ¶
func (m *QueryAllDidsResponse) XXX_Merge(src proto.Message)
func (*QueryAllDidsResponse) XXX_Size ¶
func (m *QueryAllDidsResponse) XXX_Size() int
func (*QueryAllDidsResponse) XXX_Unmarshal ¶
func (m *QueryAllDidsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { DidDoc(ctx context.Context, in *QueryDidDocRequest, opts ...grpc.CallOption) (*QueryDidDocResponse, error) AllDids(ctx context.Context, in *QueryAllDidsRequest, opts ...grpc.CallOption) (*QueryAllDidsResponse, error) AllDidDocs(ctx context.Context, in *QueryAllDidDocsRequest, opts ...grpc.CallOption) (*QueryAllDidDocsResponse, error) AddressFromDid(ctx context.Context, in *QueryAddressFromDidRequest, opts ...grpc.CallOption) (*QueryAddressFromDidResponse, error) AddressFromBase58EncodedPubkey(ctx context.Context, in *QueryAddressFromBase58EncodedPubkeyRequest, opts ...grpc.CallOption) (*QueryAddressFromBase58EncodedPubkeyResponse, 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 ¶
type QueryDidDocRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" json:"did" yaml:"did"`
}
func (*QueryDidDocRequest) Descriptor ¶
func (*QueryDidDocRequest) Descriptor() ([]byte, []int)
func (*QueryDidDocRequest) GetDid ¶
func (m *QueryDidDocRequest) GetDid() string
func (*QueryDidDocRequest) Marshal ¶
func (m *QueryDidDocRequest) Marshal() (dAtA []byte, err error)
func (*QueryDidDocRequest) MarshalTo ¶
func (m *QueryDidDocRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDidDocRequest) MarshalToSizedBuffer ¶
func (m *QueryDidDocRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDidDocRequest) ProtoMessage ¶
func (*QueryDidDocRequest) ProtoMessage()
func (*QueryDidDocRequest) Reset ¶
func (m *QueryDidDocRequest) Reset()
func (*QueryDidDocRequest) Size ¶
func (m *QueryDidDocRequest) Size() (n int)
func (*QueryDidDocRequest) String ¶
func (m *QueryDidDocRequest) String() string
func (*QueryDidDocRequest) Unmarshal ¶
func (m *QueryDidDocRequest) Unmarshal(dAtA []byte) error
func (*QueryDidDocRequest) XXX_DiscardUnknown ¶
func (m *QueryDidDocRequest) XXX_DiscardUnknown()
func (*QueryDidDocRequest) XXX_Marshal ¶
func (m *QueryDidDocRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDidDocRequest) XXX_Merge ¶
func (m *QueryDidDocRequest) XXX_Merge(src proto.Message)
func (*QueryDidDocRequest) XXX_Size ¶
func (m *QueryDidDocRequest) XXX_Size() int
func (*QueryDidDocRequest) XXX_Unmarshal ¶
func (m *QueryDidDocRequest) XXX_Unmarshal(b []byte) error
type QueryDidDocResponse ¶
type QueryDidDocResponse struct {
Diddoc *types.Any `protobuf:"bytes,1,opt,name=diddoc,proto3" json:"diddoc,omitempty" json:"did_doc" yaml:"did_doc"`
}
func (*QueryDidDocResponse) Descriptor ¶
func (*QueryDidDocResponse) Descriptor() ([]byte, []int)
func (*QueryDidDocResponse) GetDiddoc ¶
func (m *QueryDidDocResponse) GetDiddoc() *types.Any
func (*QueryDidDocResponse) Marshal ¶
func (m *QueryDidDocResponse) Marshal() (dAtA []byte, err error)
func (*QueryDidDocResponse) MarshalTo ¶
func (m *QueryDidDocResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDidDocResponse) MarshalToSizedBuffer ¶
func (m *QueryDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDidDocResponse) ProtoMessage ¶
func (*QueryDidDocResponse) ProtoMessage()
func (*QueryDidDocResponse) Reset ¶
func (m *QueryDidDocResponse) Reset()
func (*QueryDidDocResponse) Size ¶
func (m *QueryDidDocResponse) Size() (n int)
func (*QueryDidDocResponse) String ¶
func (m *QueryDidDocResponse) String() string
func (*QueryDidDocResponse) Unmarshal ¶
func (m *QueryDidDocResponse) Unmarshal(dAtA []byte) error
func (*QueryDidDocResponse) XXX_DiscardUnknown ¶
func (m *QueryDidDocResponse) XXX_DiscardUnknown()
func (*QueryDidDocResponse) XXX_Marshal ¶
func (m *QueryDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDidDocResponse) XXX_Merge ¶
func (m *QueryDidDocResponse) XXX_Merge(src proto.Message)
func (*QueryDidDocResponse) XXX_Size ¶
func (m *QueryDidDocResponse) XXX_Size() int
func (*QueryDidDocResponse) XXX_Unmarshal ¶
func (m *QueryDidDocResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { DidDoc(context.Context, *QueryDidDocRequest) (*QueryDidDocResponse, error) AllDids(context.Context, *QueryAllDidsRequest) (*QueryAllDidsResponse, error) AllDidDocs(context.Context, *QueryAllDidDocsRequest) (*QueryAllDidDocsResponse, error) AddressFromDid(context.Context, *QueryAddressFromDidRequest) (*QueryAddressFromDidResponse, error) AddressFromBase58EncodedPubkey(context.Context, *QueryAddressFromBase58EncodedPubkeyRequest) (*QueryAddressFromBase58EncodedPubkeyResponse, error) }
QueryServer is the server API for Query service.
type Secret ¶
type Secret struct { Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty" yaml:"seed"` SignKey string `protobuf:"bytes,2,opt,name=sign_key,json=signKey,proto3" json:"signKey" yaml:"signKey"` EncryptionPrivateKey string `` /* 139-byte string literal not displayed */ }
func (*Secret) Descriptor ¶
func (*Secret) GetEncryptionPrivateKey ¶
func (*Secret) GetSignKey ¶
func (*Secret) MarshalToSizedBuffer ¶
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) XXX_DiscardUnknown ¶
func (m *Secret) XXX_DiscardUnknown()
func (*Secret) XXX_Marshal ¶
func (*Secret) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddCredential ¶
func (*UnimplementedMsgServer) AddCredential(ctx context.Context, req *MsgAddCredential) (*MsgAddCredentialResponse, error)
func (*UnimplementedMsgServer) AddDid ¶
func (*UnimplementedMsgServer) AddDid(ctx context.Context, req *MsgAddDid) (*MsgAddDidResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AddressFromBase58EncodedPubkey ¶
func (*UnimplementedQueryServer) AddressFromBase58EncodedPubkey(ctx context.Context, req *QueryAddressFromBase58EncodedPubkeyRequest) (*QueryAddressFromBase58EncodedPubkeyResponse, error)
func (*UnimplementedQueryServer) AddressFromDid ¶
func (*UnimplementedQueryServer) AddressFromDid(ctx context.Context, req *QueryAddressFromDidRequest) (*QueryAddressFromDidResponse, error)
func (*UnimplementedQueryServer) AllDidDocs ¶
func (*UnimplementedQueryServer) AllDidDocs(ctx context.Context, req *QueryAllDidDocsRequest) (*QueryAllDidDocsResponse, error)
func (*UnimplementedQueryServer) AllDids ¶
func (*UnimplementedQueryServer) AllDids(ctx context.Context, req *QueryAllDidsRequest) (*QueryAllDidsResponse, error)
func (*UnimplementedQueryServer) DidDoc ¶
func (*UnimplementedQueryServer) DidDoc(ctx context.Context, req *QueryDidDocRequest) (*QueryDidDocResponse, error)