Documentation ¶
Overview ¶
Package diddoc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDIDDocHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDIDDocHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DIDDocClient) error
- func RegisterDIDDocHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDIDDocHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DIDDocServer) error
- func RegisterDIDDocServer(s grpc.ServiceRegistrar, srv DIDDocServer)
- type DIDDocClient
- type DIDDocServer
- type DIDDocument
- func (*DIDDocument) Descriptor() ([]byte, []int)deprecated
- func (x *DIDDocument) GetAlsoKnownAs() []string
- func (x *DIDDocument) GetAssertionMethod() []string
- func (x *DIDDocument) GetAuthentication() []string
- func (x *DIDDocument) GetCapabilityDelegation() []string
- func (x *DIDDocument) GetCapabilityInvocation() []string
- func (x *DIDDocument) GetContext() []string
- func (x *DIDDocument) GetController() []string
- func (x *DIDDocument) GetId() string
- func (x *DIDDocument) GetKeyAgreement() []string
- func (x *DIDDocument) GetMetadata() *Metadata
- func (x *DIDDocument) GetService() []*Service
- func (x *DIDDocument) GetVerificationMethod() []*VerificationMethod
- func (*DIDDocument) ProtoMessage()
- func (x *DIDDocument) ProtoReflect() protoreflect.Message
- func (x *DIDDocument) Reset()
- func (x *DIDDocument) String() string
- type DataArray
- func (*DataArray) Descriptor() ([]byte, []int)deprecated
- func (x *DataArray) GetObjects() []*Object
- func (x *DataArray) GetRootHash() string
- func (x *DataArray) GetVersionHash() string
- func (*DataArray) ProtoMessage()
- func (x *DataArray) ProtoReflect() protoreflect.Message
- func (x *DataArray) Reset()
- func (x *DataArray) String() string
- type GetMetadataHistoryRequest
- func (*GetMetadataHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetadataHistoryRequest) GetDid() string
- func (*GetMetadataHistoryRequest) ProtoMessage()
- func (x *GetMetadataHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetadataHistoryRequest) Reset()
- func (x *GetMetadataHistoryRequest) String() string
- type GetMetadataHistoryResponse
- func (*GetMetadataHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetadataHistoryResponse) GetMetadataHistory() map[int32]*DataArray
- func (*GetMetadataHistoryResponse) ProtoMessage()
- func (x *GetMetadataHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetMetadataHistoryResponse) Reset()
- func (x *GetMetadataHistoryResponse) String() string
- type GetRequest
- type GetResponse
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetObjects() []*Object
- func (x *Metadata) GetRootHash() string
- func (x *Metadata) GetVersionHash() string
- func (x *Metadata) GetVersionId() int32
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type MsgSaveVerificationMethods
- func (*MsgSaveVerificationMethods) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSaveVerificationMethods) GetData() *MsgSaveVerificationMethods_Data
- func (x *MsgSaveVerificationMethods) GetSignature() []byte
- func (*MsgSaveVerificationMethods) ProtoMessage()
- func (x *MsgSaveVerificationMethods) ProtoReflect() protoreflect.Message
- func (x *MsgSaveVerificationMethods) Reset()
- func (x *MsgSaveVerificationMethods) String() string
- type MsgSaveVerificationMethods_Data
- func (*MsgSaveVerificationMethods_Data) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSaveVerificationMethods_Data) GetAuthentication() []string
- func (x *MsgSaveVerificationMethods_Data) GetAuthenticationKeyId() string
- func (x *MsgSaveVerificationMethods_Data) GetDid() string
- func (x *MsgSaveVerificationMethods_Data) GetVerificationMethods() []*VerificationMethod
- func (*MsgSaveVerificationMethods_Data) ProtoMessage()
- func (x *MsgSaveVerificationMethods_Data) ProtoReflect() protoreflect.Message
- func (x *MsgSaveVerificationMethods_Data) Reset()
- func (x *MsgSaveVerificationMethods_Data) String() string
- type Object
- func (*Object) Descriptor() ([]byte, []int)deprecated
- func (x *Object) GetDataObjectHash() string
- func (x *Object) GetHashEncryptedDataObject() string
- func (x *Object) GetHashEncryptedMetadata() string
- func (x *Object) GetHashUnencryptedMetadata() string
- func (x *Object) GetHashUnencryptedObject() string
- func (x *Object) GetMetadata() map[string]string
- func (x *Object) GetUrl() string
- func (*Object) ProtoMessage()
- func (x *Object) ProtoReflect() protoreflect.Message
- func (x *Object) Reset()
- func (x *Object) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAuthentication() []string
- func (x *RegisterRequest) GetDid() string
- func (x *RegisterRequest) GetService() []*Service
- func (x *RegisterRequest) GetVerificationMethod() []*VerificationMethod
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type SaveMetadataRequest
- func (*SaveMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveMetadataRequest) GetData() *SaveMetadataRequest_Data
- func (x *SaveMetadataRequest) GetSignature() []byte
- func (*SaveMetadataRequest) ProtoMessage()
- func (x *SaveMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *SaveMetadataRequest) Reset()
- func (x *SaveMetadataRequest) String() string
- type SaveMetadataRequest_Data
- func (*SaveMetadataRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *SaveMetadataRequest_Data) GetAuthenticationKeyId() string
- func (x *SaveMetadataRequest_Data) GetDid() string
- func (x *SaveMetadataRequest_Data) GetObjects() []*Object
- func (*SaveMetadataRequest_Data) ProtoMessage()
- func (x *SaveMetadataRequest_Data) ProtoReflect() protoreflect.Message
- func (x *SaveMetadataRequest_Data) Reset()
- func (x *SaveMetadataRequest_Data) String() string
- type SaveMetadataResponse
- type SaveVerificationMethodsResponse
- func (*SaveVerificationMethodsResponse) Descriptor() ([]byte, []int)deprecated
- func (*SaveVerificationMethodsResponse) ProtoMessage()
- func (x *SaveVerificationMethodsResponse) ProtoReflect() protoreflect.Message
- func (x *SaveVerificationMethodsResponse) Reset()
- func (x *SaveVerificationMethodsResponse) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetContext() string
- func (x *Service) GetId() string
- func (x *Service) GetServiceEndpoint() []string
- func (x *Service) GetType() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type UnimplementedDIDDocServer
- func (UnimplementedDIDDocServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedDIDDocServer) GetMetadataHistory(context.Context, *GetMetadataHistoryRequest) (*GetMetadataHistoryResponse, error)
- func (UnimplementedDIDDocServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedDIDDocServer) SaveMetadata(context.Context, *SaveMetadataRequest) (*SaveMetadataResponse, error)
- func (UnimplementedDIDDocServer) SaveVerificationMethods(context.Context, *MsgSaveVerificationMethods) (*SaveVerificationMethodsResponse, error)
- type UnsafeDIDDocServer
- type VerificationMethod
- func (*VerificationMethod) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationMethod) GetContext() []string
- func (x *VerificationMethod) GetController() string
- func (x *VerificationMethod) GetId() string
- func (x *VerificationMethod) GetPublicKeyBase58() string
- func (x *VerificationMethod) GetPublicKeyJwk() map[string]string
- func (x *VerificationMethod) GetPublicKeyMultibase() string
- func (x *VerificationMethod) GetType() string
- func (*VerificationMethod) ProtoMessage()
- func (x *VerificationMethod) ProtoReflect() protoreflect.Message
- func (x *VerificationMethod) Reset()
- func (x *VerificationMethod) String() string
Constants ¶
This section is empty.
Variables ¶
var DIDDoc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.diddoc.DIDDoc", HandlerType: (*DIDDocServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _DIDDoc_Register_Handler, }, { MethodName: "Get", Handler: _DIDDoc_Get_Handler, }, { MethodName: "GetMetadataHistory", Handler: _DIDDoc_GetMetadataHistory_Handler, }, { MethodName: "SaveMetadata", Handler: _DIDDoc_SaveMetadata_Handler, }, { MethodName: "SaveVerificationMethods", Handler: _DIDDoc_SaveVerificationMethods_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/diddoc/service.proto", }
DIDDoc_ServiceDesc is the grpc.ServiceDesc for DIDDoc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_diddoc_did_document_proto protoreflect.FileDescriptor
var File_v1_diddoc_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDIDDocHandler ¶
RegisterDIDDocHandler registers the http handlers for service DIDDoc to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDIDDocHandlerClient ¶
func RegisterDIDDocHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DIDDocClient) error
RegisterDIDDocHandlerClient registers the http handlers for service DIDDoc to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DIDDocClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DIDDocClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DIDDocClient" to call the correct interceptors.
func RegisterDIDDocHandlerFromEndpoint ¶
func RegisterDIDDocHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDIDDocHandlerFromEndpoint is same as RegisterDIDDocHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDIDDocHandlerServer ¶
func RegisterDIDDocHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DIDDocServer) error
RegisterDIDDocHandlerServer registers the http handlers for service DIDDoc to "mux". UnaryRPC :call DIDDocServer 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 RegisterDIDDocHandlerFromEndpoint instead.
func RegisterDIDDocServer ¶
func RegisterDIDDocServer(s grpc.ServiceRegistrar, srv DIDDocServer)
Types ¶
type DIDDocClient ¶
type DIDDocClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) GetMetadataHistory(ctx context.Context, in *GetMetadataHistoryRequest, opts ...grpc.CallOption) (*GetMetadataHistoryResponse, error) SaveMetadata(ctx context.Context, in *SaveMetadataRequest, opts ...grpc.CallOption) (*SaveMetadataResponse, error) SaveVerificationMethods(ctx context.Context, in *MsgSaveVerificationMethods, opts ...grpc.CallOption) (*SaveVerificationMethodsResponse, error) }
DIDDocClient is the client API for DIDDoc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDIDDocClient ¶
func NewDIDDocClient(cc grpc.ClientConnInterface) DIDDocClient
type DIDDocServer ¶
type DIDDocServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) GetMetadataHistory(context.Context, *GetMetadataHistoryRequest) (*GetMetadataHistoryResponse, error) SaveMetadata(context.Context, *SaveMetadataRequest) (*SaveMetadataResponse, error) SaveVerificationMethods(context.Context, *MsgSaveVerificationMethods) (*SaveVerificationMethodsResponse, error) // contains filtered or unexported methods }
DIDDocServer is the server API for DIDDoc service. All implementations must embed UnimplementedDIDDocServer for forward compatibility
type DIDDocument ¶
type DIDDocument 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"` Metadata *Metadata `protobuf:"bytes,12,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*DIDDocument) Descriptor
deprecated
func (*DIDDocument) Descriptor() ([]byte, []int)
Deprecated: Use DIDDocument.ProtoReflect.Descriptor instead.
func (*DIDDocument) GetAlsoKnownAs ¶
func (x *DIDDocument) GetAlsoKnownAs() []string
func (*DIDDocument) GetAssertionMethod ¶
func (x *DIDDocument) GetAssertionMethod() []string
func (*DIDDocument) GetAuthentication ¶
func (x *DIDDocument) GetAuthentication() []string
func (*DIDDocument) GetCapabilityDelegation ¶
func (x *DIDDocument) GetCapabilityDelegation() []string
func (*DIDDocument) GetCapabilityInvocation ¶
func (x *DIDDocument) GetCapabilityInvocation() []string
func (*DIDDocument) GetContext ¶
func (x *DIDDocument) GetContext() []string
func (*DIDDocument) GetController ¶
func (x *DIDDocument) GetController() []string
func (*DIDDocument) GetId ¶
func (x *DIDDocument) GetId() string
func (*DIDDocument) GetKeyAgreement ¶
func (x *DIDDocument) GetKeyAgreement() []string
func (*DIDDocument) GetMetadata ¶
func (x *DIDDocument) GetMetadata() *Metadata
func (*DIDDocument) GetService ¶
func (x *DIDDocument) GetService() []*Service
func (*DIDDocument) GetVerificationMethod ¶
func (x *DIDDocument) GetVerificationMethod() []*VerificationMethod
func (*DIDDocument) ProtoMessage ¶
func (*DIDDocument) ProtoMessage()
func (*DIDDocument) ProtoReflect ¶
func (x *DIDDocument) ProtoReflect() protoreflect.Message
func (*DIDDocument) Reset ¶
func (x *DIDDocument) Reset()
func (*DIDDocument) String ¶
func (x *DIDDocument) String() string
type DataArray ¶
type DataArray struct { VersionHash string `protobuf:"bytes,1,opt,name=version_hash,json=versionHash,proto3" json:"version_hash,omitempty"` RootHash string `protobuf:"bytes,2,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` Objects []*Object `protobuf:"bytes,3,rep,name=objects,proto3" json:"objects,omitempty"` // contains filtered or unexported fields }
func (*DataArray) Descriptor
deprecated
func (*DataArray) GetObjects ¶
func (*DataArray) GetRootHash ¶
func (*DataArray) GetVersionHash ¶
func (*DataArray) ProtoMessage ¶
func (*DataArray) ProtoMessage()
func (*DataArray) ProtoReflect ¶
func (x *DataArray) ProtoReflect() protoreflect.Message
type GetMetadataHistoryRequest ¶
type GetMetadataHistoryRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // contains filtered or unexported fields }
func (*GetMetadataHistoryRequest) Descriptor
deprecated
func (*GetMetadataHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetadataHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetMetadataHistoryRequest) GetDid ¶
func (x *GetMetadataHistoryRequest) GetDid() string
func (*GetMetadataHistoryRequest) ProtoMessage ¶
func (*GetMetadataHistoryRequest) ProtoMessage()
func (*GetMetadataHistoryRequest) ProtoReflect ¶
func (x *GetMetadataHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetMetadataHistoryRequest) Reset ¶
func (x *GetMetadataHistoryRequest) Reset()
func (*GetMetadataHistoryRequest) String ¶
func (x *GetMetadataHistoryRequest) String() string
type GetMetadataHistoryResponse ¶
type GetMetadataHistoryResponse struct { MetadataHistory map[int32]*DataArray `` /* 195-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetMetadataHistoryResponse) Descriptor
deprecated
func (*GetMetadataHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMetadataHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetMetadataHistoryResponse) GetMetadataHistory ¶
func (x *GetMetadataHistoryResponse) GetMetadataHistory() map[int32]*DataArray
func (*GetMetadataHistoryResponse) ProtoMessage ¶
func (*GetMetadataHistoryResponse) ProtoMessage()
func (*GetMetadataHistoryResponse) ProtoReflect ¶
func (x *GetMetadataHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetMetadataHistoryResponse) Reset ¶
func (x *GetMetadataHistoryResponse) Reset()
func (*GetMetadataHistoryResponse) String ¶
func (x *GetMetadataHistoryResponse) String() string
type GetRequest ¶
type GetRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetDid ¶
func (x *GetRequest) GetDid() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Document *DIDDocument `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetDocument ¶
func (x *GetResponse) GetDocument() *DIDDocument
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type Metadata ¶
type Metadata struct { VersionId int32 `protobuf:"varint,1,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` VersionHash string `protobuf:"bytes,2,opt,name=version_hash,json=versionHash,proto3" json:"version_hash,omitempty"` RootHash string `protobuf:"bytes,3,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` Objects []*Object `protobuf:"bytes,5,rep,name=objects,proto3" json:"objects,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetObjects ¶
func (*Metadata) GetRootHash ¶
func (*Metadata) GetVersionHash ¶
func (*Metadata) GetVersionId ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type MsgSaveVerificationMethods ¶
type MsgSaveVerificationMethods struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` Data *MsgSaveVerificationMethods_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*MsgSaveVerificationMethods) Descriptor
deprecated
func (*MsgSaveVerificationMethods) Descriptor() ([]byte, []int)
Deprecated: Use MsgSaveVerificationMethods.ProtoReflect.Descriptor instead.
func (*MsgSaveVerificationMethods) GetData ¶
func (x *MsgSaveVerificationMethods) GetData() *MsgSaveVerificationMethods_Data
func (*MsgSaveVerificationMethods) GetSignature ¶
func (x *MsgSaveVerificationMethods) GetSignature() []byte
func (*MsgSaveVerificationMethods) ProtoMessage ¶
func (*MsgSaveVerificationMethods) ProtoMessage()
func (*MsgSaveVerificationMethods) ProtoReflect ¶
func (x *MsgSaveVerificationMethods) ProtoReflect() protoreflect.Message
func (*MsgSaveVerificationMethods) Reset ¶
func (x *MsgSaveVerificationMethods) Reset()
func (*MsgSaveVerificationMethods) String ¶
func (x *MsgSaveVerificationMethods) String() string
type MsgSaveVerificationMethods_Data ¶
type MsgSaveVerificationMethods_Data struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` VerificationMethods []*VerificationMethod `protobuf:"bytes,2,rep,name=verification_methods,json=verificationMethods,proto3" json:"verification_methods,omitempty"` Authentication []string `protobuf:"bytes,3,rep,name=authentication,proto3" json:"authentication,omitempty"` AuthenticationKeyId string `protobuf:"bytes,4,opt,name=authentication_key_id,json=authenticationKeyId,proto3" json:"authentication_key_id,omitempty"` // contains filtered or unexported fields }
func (*MsgSaveVerificationMethods_Data) Descriptor
deprecated
func (*MsgSaveVerificationMethods_Data) Descriptor() ([]byte, []int)
Deprecated: Use MsgSaveVerificationMethods_Data.ProtoReflect.Descriptor instead.
func (*MsgSaveVerificationMethods_Data) GetAuthentication ¶
func (x *MsgSaveVerificationMethods_Data) GetAuthentication() []string
func (*MsgSaveVerificationMethods_Data) GetAuthenticationKeyId ¶
func (x *MsgSaveVerificationMethods_Data) GetAuthenticationKeyId() string
func (*MsgSaveVerificationMethods_Data) GetDid ¶
func (x *MsgSaveVerificationMethods_Data) GetDid() string
func (*MsgSaveVerificationMethods_Data) GetVerificationMethods ¶
func (x *MsgSaveVerificationMethods_Data) GetVerificationMethods() []*VerificationMethod
func (*MsgSaveVerificationMethods_Data) ProtoMessage ¶
func (*MsgSaveVerificationMethods_Data) ProtoMessage()
func (*MsgSaveVerificationMethods_Data) ProtoReflect ¶
func (x *MsgSaveVerificationMethods_Data) ProtoReflect() protoreflect.Message
func (*MsgSaveVerificationMethods_Data) Reset ¶
func (x *MsgSaveVerificationMethods_Data) Reset()
func (*MsgSaveVerificationMethods_Data) String ¶
func (x *MsgSaveVerificationMethods_Data) String() string
type Object ¶
type Object struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` HashEncryptedDataObject string `` /* 134-byte string literal not displayed */ HashUnencryptedObject string `` /* 126-byte string literal not displayed */ Metadata map[string]string `` /* 157-byte string literal not displayed */ HashUnencryptedMetadata string `` /* 132-byte string literal not displayed */ HashEncryptedMetadata string `` /* 126-byte string literal not displayed */ DataObjectHash string `protobuf:"bytes,7,opt,name=data_object_hash,json=dataObjectHash,proto3" json:"data_object_hash,omitempty"` // contains filtered or unexported fields }
func (*Object) Descriptor
deprecated
func (*Object) GetDataObjectHash ¶
func (*Object) GetHashEncryptedDataObject ¶
func (*Object) GetHashEncryptedMetadata ¶
func (*Object) GetHashUnencryptedMetadata ¶
func (*Object) GetHashUnencryptedObject ¶
func (*Object) GetMetadata ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
type RegisterRequest ¶
type RegisterRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` VerificationMethod []*VerificationMethod `protobuf:"bytes,2,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"` Authentication []string `protobuf:"bytes,3,rep,name=authentication,proto3" json:"authentication,omitempty"` Service []*Service `protobuf:"bytes,4,rep,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAuthentication ¶
func (x *RegisterRequest) GetAuthentication() []string
func (*RegisterRequest) GetDid ¶
func (x *RegisterRequest) GetDid() string
func (*RegisterRequest) GetService ¶
func (x *RegisterRequest) GetService() []*Service
func (*RegisterRequest) GetVerificationMethod ¶
func (x *RegisterRequest) GetVerificationMethod() []*VerificationMethod
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct {
// contains filtered or unexported fields
}
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type SaveMetadataRequest ¶
type SaveMetadataRequest struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` Data *SaveMetadataRequest_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SaveMetadataRequest) Descriptor
deprecated
func (*SaveMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveMetadataRequest.ProtoReflect.Descriptor instead.
func (*SaveMetadataRequest) GetData ¶
func (x *SaveMetadataRequest) GetData() *SaveMetadataRequest_Data
func (*SaveMetadataRequest) GetSignature ¶
func (x *SaveMetadataRequest) GetSignature() []byte
func (*SaveMetadataRequest) ProtoMessage ¶
func (*SaveMetadataRequest) ProtoMessage()
func (*SaveMetadataRequest) ProtoReflect ¶
func (x *SaveMetadataRequest) ProtoReflect() protoreflect.Message
func (*SaveMetadataRequest) Reset ¶
func (x *SaveMetadataRequest) Reset()
func (*SaveMetadataRequest) String ¶
func (x *SaveMetadataRequest) String() string
type SaveMetadataRequest_Data ¶
type SaveMetadataRequest_Data struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` Objects []*Object `protobuf:"bytes,2,rep,name=objects,proto3" json:"objects,omitempty"` AuthenticationKeyId string `protobuf:"bytes,3,opt,name=authentication_key_id,json=authenticationKeyId,proto3" json:"authentication_key_id,omitempty"` // contains filtered or unexported fields }
func (*SaveMetadataRequest_Data) Descriptor
deprecated
func (*SaveMetadataRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use SaveMetadataRequest_Data.ProtoReflect.Descriptor instead.
func (*SaveMetadataRequest_Data) GetAuthenticationKeyId ¶
func (x *SaveMetadataRequest_Data) GetAuthenticationKeyId() string
func (*SaveMetadataRequest_Data) GetDid ¶
func (x *SaveMetadataRequest_Data) GetDid() string
func (*SaveMetadataRequest_Data) GetObjects ¶
func (x *SaveMetadataRequest_Data) GetObjects() []*Object
func (*SaveMetadataRequest_Data) ProtoMessage ¶
func (*SaveMetadataRequest_Data) ProtoMessage()
func (*SaveMetadataRequest_Data) ProtoReflect ¶
func (x *SaveMetadataRequest_Data) ProtoReflect() protoreflect.Message
func (*SaveMetadataRequest_Data) Reset ¶
func (x *SaveMetadataRequest_Data) Reset()
func (*SaveMetadataRequest_Data) String ¶
func (x *SaveMetadataRequest_Data) String() string
type SaveMetadataResponse ¶
type SaveMetadataResponse struct {
// contains filtered or unexported fields
}
func (*SaveMetadataResponse) Descriptor
deprecated
func (*SaveMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveMetadataResponse.ProtoReflect.Descriptor instead.
func (*SaveMetadataResponse) ProtoMessage ¶
func (*SaveMetadataResponse) ProtoMessage()
func (*SaveMetadataResponse) ProtoReflect ¶
func (x *SaveMetadataResponse) ProtoReflect() protoreflect.Message
func (*SaveMetadataResponse) Reset ¶
func (x *SaveMetadataResponse) Reset()
func (*SaveMetadataResponse) String ¶
func (x *SaveMetadataResponse) String() string
type SaveVerificationMethodsResponse ¶
type SaveVerificationMethodsResponse struct {
// contains filtered or unexported fields
}
func (*SaveVerificationMethodsResponse) Descriptor
deprecated
func (*SaveVerificationMethodsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveVerificationMethodsResponse.ProtoReflect.Descriptor instead.
func (*SaveVerificationMethodsResponse) ProtoMessage ¶
func (*SaveVerificationMethodsResponse) ProtoMessage()
func (*SaveVerificationMethodsResponse) ProtoReflect ¶
func (x *SaveVerificationMethodsResponse) ProtoReflect() protoreflect.Message
func (*SaveVerificationMethodsResponse) Reset ¶
func (x *SaveVerificationMethodsResponse) Reset()
func (*SaveVerificationMethodsResponse) String ¶
func (x *SaveVerificationMethodsResponse) String() string
type Service ¶
type Service struct { Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` ServiceEndpoint []string `protobuf:"bytes,4,rep,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetContext ¶
func (*Service) GetServiceEndpoint ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type UnimplementedDIDDocServer ¶
type UnimplementedDIDDocServer struct { }
UnimplementedDIDDocServer must be embedded to have forward compatible implementations.
func (UnimplementedDIDDocServer) Get ¶
func (UnimplementedDIDDocServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedDIDDocServer) GetMetadataHistory ¶
func (UnimplementedDIDDocServer) GetMetadataHistory(context.Context, *GetMetadataHistoryRequest) (*GetMetadataHistoryResponse, error)
func (UnimplementedDIDDocServer) Register ¶
func (UnimplementedDIDDocServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedDIDDocServer) SaveMetadata ¶
func (UnimplementedDIDDocServer) SaveMetadata(context.Context, *SaveMetadataRequest) (*SaveMetadataResponse, error)
func (UnimplementedDIDDocServer) SaveVerificationMethods ¶
func (UnimplementedDIDDocServer) SaveVerificationMethods(context.Context, *MsgSaveVerificationMethods) (*SaveVerificationMethodsResponse, error)
type UnsafeDIDDocServer ¶
type UnsafeDIDDocServer interface {
// contains filtered or unexported methods
}
UnsafeDIDDocServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DIDDocServer will result in compilation errors.
type VerificationMethod ¶
type VerificationMethod 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"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Controller string `protobuf:"bytes,4,opt,name=controller,proto3" json:"controller,omitempty"` PublicKeyJwk map[string]string `` /* 187-byte string literal not displayed */ PublicKeyMultibase string `protobuf:"bytes,6,opt,name=public_key_multibase,json=publicKeyMultibase,proto3" json:"public_key_multibase,omitempty"` PublicKeyBase58 string `protobuf:"bytes,7,opt,name=public_key_base58,json=publicKeyBase58,proto3" json:"public_key_base58,omitempty"` // contains filtered or unexported fields }
func (*VerificationMethod) Descriptor
deprecated
func (*VerificationMethod) Descriptor() ([]byte, []int)
Deprecated: Use VerificationMethod.ProtoReflect.Descriptor instead.
func (*VerificationMethod) GetContext ¶
func (x *VerificationMethod) GetContext() []string
func (*VerificationMethod) GetController ¶
func (x *VerificationMethod) GetController() string
func (*VerificationMethod) GetId ¶
func (x *VerificationMethod) GetId() string
func (*VerificationMethod) GetPublicKeyBase58 ¶
func (x *VerificationMethod) GetPublicKeyBase58() string
func (*VerificationMethod) GetPublicKeyJwk ¶
func (x *VerificationMethod) GetPublicKeyJwk() map[string]string
func (*VerificationMethod) GetPublicKeyMultibase ¶
func (x *VerificationMethod) GetPublicKeyMultibase() string
func (*VerificationMethod) GetType ¶
func (x *VerificationMethod) GetType() string
func (*VerificationMethod) ProtoMessage ¶
func (*VerificationMethod) ProtoMessage()
func (*VerificationMethod) ProtoReflect ¶
func (x *VerificationMethod) ProtoReflect() protoreflect.Message
func (*VerificationMethod) Reset ¶
func (x *VerificationMethod) Reset()
func (*VerificationMethod) String ¶
func (x *VerificationMethod) String() string