diddoc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 17 Imported by: 3

Documentation

Overview

Package diddoc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_v1_diddoc_did_document_proto protoreflect.FileDescriptor
View Source
var File_v1_diddoc_service_proto protoreflect.FileDescriptor

Functions

func RegisterDIDDocHandler

func RegisterDIDDocHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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) Descriptor() ([]byte, []int)

Deprecated: Use DataArray.ProtoReflect.Descriptor instead.

func (*DataArray) GetObjects

func (x *DataArray) GetObjects() []*Object

func (*DataArray) GetRootHash

func (x *DataArray) GetRootHash() string

func (*DataArray) GetVersionHash

func (x *DataArray) GetVersionHash() string

func (*DataArray) ProtoMessage

func (*DataArray) ProtoMessage()

func (*DataArray) ProtoReflect

func (x *DataArray) ProtoReflect() protoreflect.Message

func (*DataArray) Reset

func (x *DataArray) Reset()

func (*DataArray) String

func (x *DataArray) String() string

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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetObjects

func (x *Metadata) GetObjects() []*Object

func (*Metadata) GetRootHash

func (x *Metadata) GetRootHash() string

func (*Metadata) GetVersionHash

func (x *Metadata) GetVersionHash() string

func (*Metadata) GetVersionId

func (x *Metadata) GetVersionId() int32

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

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 (*MsgSaveVerificationMethods) GetSignature

func (x *MsgSaveVerificationMethods) GetSignature() []byte

func (*MsgSaveVerificationMethods) ProtoMessage

func (*MsgSaveVerificationMethods) ProtoMessage()

func (*MsgSaveVerificationMethods) ProtoReflect

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 (*MsgSaveVerificationMethods_Data) GetVerificationMethods

func (x *MsgSaveVerificationMethods_Data) GetVerificationMethods() []*VerificationMethod

func (*MsgSaveVerificationMethods_Data) ProtoMessage

func (*MsgSaveVerificationMethods_Data) ProtoMessage()

func (*MsgSaveVerificationMethods_Data) ProtoReflect

func (*MsgSaveVerificationMethods_Data) Reset

func (*MsgSaveVerificationMethods_Data) 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) Descriptor() ([]byte, []int)

Deprecated: Use Object.ProtoReflect.Descriptor instead.

func (*Object) GetDataObjectHash

func (x *Object) GetDataObjectHash() string

func (*Object) GetHashEncryptedDataObject

func (x *Object) GetHashEncryptedDataObject() string

func (*Object) GetHashEncryptedMetadata

func (x *Object) GetHashEncryptedMetadata() string

func (*Object) GetHashUnencryptedMetadata

func (x *Object) GetHashUnencryptedMetadata() string

func (*Object) GetHashUnencryptedObject

func (x *Object) GetHashUnencryptedObject() string

func (*Object) GetMetadata

func (x *Object) GetMetadata() map[string]string

func (*Object) GetUrl

func (x *Object) GetUrl() string

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

func (x *Object) ProtoReflect() protoreflect.Message

func (*Object) Reset

func (x *Object) Reset()

func (*Object) String

func (x *Object) String() string

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 (*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 (*SaveVerificationMethodsResponse) Reset

func (*SaveVerificationMethodsResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetContext

func (x *Service) GetContext() string

func (*Service) GetId

func (x *Service) GetId() string

func (*Service) GetServiceEndpoint

func (x *Service) GetServiceEndpoint() []string

func (*Service) GetType

func (x *Service) GetType() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type UnimplementedDIDDocServer

type UnimplementedDIDDocServer struct {
}

UnimplementedDIDDocServer must be embedded to have forward compatible implementations.

func (UnimplementedDIDDocServer) Get

func (UnimplementedDIDDocServer) Register

func (UnimplementedDIDDocServer) SaveMetadata

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL