did

package
v0.0.0-...-68a1676 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 12

Documentation

Index

Constants

View Source
const (
	GenerateService_RegisterDocument_FullMethodName                 = "/did.GenerateService/RegisterDocument"
	GenerateService_CtidBindCert_FullMethodName                     = "/did.GenerateService/CtidBindCert"
	GenerateService_CtidRealNameVC_FullMethodName                   = "/did.GenerateService/CtidRealNameVC"
	GenerateService_VerifyVP_FullMethodName                         = "/did.GenerateService/VerifyVP"
	GenerateService_UpdateDocumentVerificationMethod_FullMethodName = "/did.GenerateService/UpdateDocumentVerificationMethod"
	GenerateService_UpdateDocumentAuthentication_FullMethodName     = "/did.GenerateService/UpdateDocumentAuthentication"
	GenerateService_UpdateDocumentController_FullMethodName         = "/did.GenerateService/UpdateDocumentController"
	GenerateService_UpdateDocumentUnionId_FullMethodName            = "/did.GenerateService/UpdateDocumentUnionId"
	GenerateService_UpdateDocumentService_FullMethodName            = "/did.GenerateService/UpdateDocumentService"
)
View Source
const (
	DocumentService_Register_FullMethodName             = "/did.DocumentService/Register"
	DocumentService_UpdateDocument_FullMethodName       = "/did.DocumentService/UpdateDocument"
	DocumentService_GetDocument_FullMethodName          = "/did.DocumentService/GetDocument"
	DocumentService_GetDocumentByAddress_FullMethodName = "/did.DocumentService/GetDocumentByAddress"
	DocumentService_GetListDocument_FullMethodName      = "/did.DocumentService/GetListDocument"
	DocumentService_Import_FullMethodName               = "/did.DocumentService/Import"
	DocumentService_AddPublicKey_FullMethodName         = "/did.DocumentService/AddPublicKey"
	DocumentService_DeletePublicKey_FullMethodName      = "/did.DocumentService/DeletePublicKey"
)
View Source
const (
	VcService_Issue_FullMethodName                = "/did.VcService/Issue"
	VcService_List_FullMethodName                 = "/did.VcService/List"
	VcService_Revoke_FullMethodName               = "/did.VcService/Revoke"
	VcService_FindDIDByCompanyName_FullMethodName = "/did.VcService/FindDIDByCompanyName"
	VcService_FindCompanyNameByDID_FullMethodName = "/did.VcService/FindCompanyNameByDID"
)
View Source
const (
	VcTemplateService_Create_FullMethodName  = "/did.VcTemplateService/Create"
	VcTemplateService_One_FullMethodName     = "/did.VcTemplateService/One"
	VcTemplateService_List_FullMethodName    = "/did.VcTemplateService/List"
	VcTemplateService_Upgrade_FullMethodName = "/did.VcTemplateService/Upgrade"
)
View Source
const (
	TrustIssuerService_Add_FullMethodName      = "/did.TrustIssuerService/Add"
	TrustIssuerService_Delete_FullMethodName   = "/did.TrustIssuerService/Delete"
	TrustIssuerService_FindList_FullMethodName = "/did.TrustIssuerService/FindList"
)
View Source
const (
	VcIssuerLogService_VcIssuerLog_FullMethodName    = "/did.VcIssuerLogService/VcIssuerLog"
	VcIssuerLogService_GetVcIssueLogs_FullMethodName = "/did.VcIssuerLogService/GetVcIssueLogs"
	VcIssuerLogService_GetVcIssuers_FullMethodName   = "/did.VcIssuerLogService/GetVcIssuers"
)
View Source
const (
	DidService_Generate_FullMethodName = "/did.DidService/Generate"
	DidService_Register_FullMethodName = "/did.DidService/Register"
)
View Source
const (
	BlackListService_CheckBlackList_FullMethodName = "/did.BlackListService/CheckBlackList"
)
View Source
const (
	HealthService_Health_FullMethodName = "/did.HealthService/Health"
)
View Source
const (
	VcRevokeListService_CheckVcRevokeList_FullMethodName = "/did.VcRevokeListService/CheckVcRevokeList"
)
View Source
const (
	VerifyService_Vp_FullMethodName = "/did.VerifyService/Vp"
)
View Source
const (
	VpService_One_FullMethodName = "/did.VpService/One"
)

Variables

View Source
var (
	ProofType_name = map[int32]string{
		0: "RegisterDocument",
		1: "CtidBindCert",
		2: "CtidRealNameVC",
		3: "VerifyVP",
		4: "UpdateDocumentVerificationMethod",
		5: "UpdateDocumentAuthentication",
		6: "UpdateDocumentController",
		7: "UpdateDocumentUnionId",
		8: "UpdateDocumentService",
	}
	ProofType_value = map[string]int32{
		"RegisterDocument":                 0,
		"CtidBindCert":                     1,
		"CtidRealNameVC":                   2,
		"VerifyVP":                         3,
		"UpdateDocumentVerificationMethod": 4,
		"UpdateDocumentAuthentication":     5,
		"UpdateDocumentController":         6,
		"UpdateDocumentUnionId":            7,
		"UpdateDocumentService":            8,
	}
)

Enum value maps for ProofType.

View Source
var (
	UpdateDocumentAction_name = map[int32]string{
		0: "Add",
		1: "Remove",
	}
	UpdateDocumentAction_value = map[string]int32{
		"Add":    0,
		"Remove": 1,
	}
)

Enum value maps for UpdateDocumentAction.

View Source
var BlackListService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.BlackListService",
	HandlerType: (*BlackListServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckBlackList",
			Handler:    _BlackListService_CheckBlackList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

BlackListService_ServiceDesc is the grpc.ServiceDesc for BlackListService 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 DidService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.DidService",
	HandlerType: (*DidServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Generate",
			Handler:    _DidService_Generate_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _DidService_Register_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

DidService_ServiceDesc is the grpc.ServiceDesc for DidService 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 DocumentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.DocumentService",
	HandlerType: (*DocumentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _DocumentService_Register_Handler,
		},
		{
			MethodName: "UpdateDocument",
			Handler:    _DocumentService_UpdateDocument_Handler,
		},
		{
			MethodName: "GetDocument",
			Handler:    _DocumentService_GetDocument_Handler,
		},
		{
			MethodName: "GetDocumentByAddress",
			Handler:    _DocumentService_GetDocumentByAddress_Handler,
		},
		{
			MethodName: "GetListDocument",
			Handler:    _DocumentService_GetListDocument_Handler,
		},
		{
			MethodName: "Import",
			Handler:    _DocumentService_Import_Handler,
		},
		{
			MethodName: "AddPublicKey",
			Handler:    _DocumentService_AddPublicKey_Handler,
		},
		{
			MethodName: "DeletePublicKey",
			Handler:    _DocumentService_DeletePublicKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

DocumentService_ServiceDesc is the grpc.ServiceDesc for DocumentService 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_did_template_did_c_proto protoreflect.FileDescriptor
View Source
var GenerateService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.GenerateService",
	HandlerType: (*GenerateServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterDocument",
			Handler:    _GenerateService_RegisterDocument_Handler,
		},
		{
			MethodName: "CtidBindCert",
			Handler:    _GenerateService_CtidBindCert_Handler,
		},
		{
			MethodName: "CtidRealNameVC",
			Handler:    _GenerateService_CtidRealNameVC_Handler,
		},
		{
			MethodName: "VerifyVP",
			Handler:    _GenerateService_VerifyVP_Handler,
		},
		{
			MethodName: "UpdateDocumentVerificationMethod",
			Handler:    _GenerateService_UpdateDocumentVerificationMethod_Handler,
		},
		{
			MethodName: "UpdateDocumentAuthentication",
			Handler:    _GenerateService_UpdateDocumentAuthentication_Handler,
		},
		{
			MethodName: "UpdateDocumentController",
			Handler:    _GenerateService_UpdateDocumentController_Handler,
		},
		{
			MethodName: "UpdateDocumentUnionId",
			Handler:    _GenerateService_UpdateDocumentUnionId_Handler,
		},
		{
			MethodName: "UpdateDocumentService",
			Handler:    _GenerateService_UpdateDocumentService_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

GenerateService_ServiceDesc is the grpc.ServiceDesc for GenerateService 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 HealthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.HealthService",
	HandlerType: (*HealthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Health",
			Handler:    _HealthService_Health_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

HealthService_ServiceDesc is the grpc.ServiceDesc for HealthService 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 TrustIssuerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.TrustIssuerService",
	HandlerType: (*TrustIssuerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _TrustIssuerService_Add_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _TrustIssuerService_Delete_Handler,
		},
		{
			MethodName: "FindList",
			Handler:    _TrustIssuerService_FindList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

TrustIssuerService_ServiceDesc is the grpc.ServiceDesc for TrustIssuerService 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 VcIssuerLogService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.VcIssuerLogService",
	HandlerType: (*VcIssuerLogServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "VcIssuerLog",
			Handler:    _VcIssuerLogService_VcIssuerLog_Handler,
		},
		{
			MethodName: "GetVcIssueLogs",
			Handler:    _VcIssuerLogService_GetVcIssueLogs_Handler,
		},
		{
			MethodName: "GetVcIssuers",
			Handler:    _VcIssuerLogService_GetVcIssuers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

VcIssuerLogService_ServiceDesc is the grpc.ServiceDesc for VcIssuerLogService 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 VcRevokeListService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.VcRevokeListService",
	HandlerType: (*VcRevokeListServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckVcRevokeList",
			Handler:    _VcRevokeListService_CheckVcRevokeList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

VcRevokeListService_ServiceDesc is the grpc.ServiceDesc for VcRevokeListService 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 VcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.VcService",
	HandlerType: (*VcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Issue",
			Handler:    _VcService_Issue_Handler,
		},
		{
			MethodName: "List",
			Handler:    _VcService_List_Handler,
		},
		{
			MethodName: "Revoke",
			Handler:    _VcService_Revoke_Handler,
		},
		{
			MethodName: "FindDIDByCompanyName",
			Handler:    _VcService_FindDIDByCompanyName_Handler,
		},
		{
			MethodName: "FindCompanyNameByDID",
			Handler:    _VcService_FindCompanyNameByDID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

VcService_ServiceDesc is the grpc.ServiceDesc for VcService 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 VcTemplateService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.VcTemplateService",
	HandlerType: (*VcTemplateServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _VcTemplateService_Create_Handler,
		},
		{
			MethodName: "One",
			Handler:    _VcTemplateService_One_Handler,
		},
		{
			MethodName: "List",
			Handler:    _VcTemplateService_List_Handler,
		},
		{
			MethodName: "Upgrade",
			Handler:    _VcTemplateService_Upgrade_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

VcTemplateService_ServiceDesc is the grpc.ServiceDesc for VcTemplateService 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 VerifyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.VerifyService",
	HandlerType: (*VerifyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Vp",
			Handler:    _VerifyService_Vp_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

VerifyService_ServiceDesc is the grpc.ServiceDesc for VerifyService 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 VpService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "did.VpService",
	HandlerType: (*VpServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "One",
			Handler:    _VpService_One_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "did/template/did_c.proto",
}

VpService_ServiceDesc is the grpc.ServiceDesc for VpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterBlackListServiceServer

func RegisterBlackListServiceServer(s grpc.ServiceRegistrar, srv BlackListServiceServer)

func RegisterDidServiceServer

func RegisterDidServiceServer(s grpc.ServiceRegistrar, srv DidServiceServer)

func RegisterDocumentServiceServer

func RegisterDocumentServiceServer(s grpc.ServiceRegistrar, srv DocumentServiceServer)

func RegisterGenerateServiceServer

func RegisterGenerateServiceServer(s grpc.ServiceRegistrar, srv GenerateServiceServer)

func RegisterHealthServiceServer

func RegisterHealthServiceServer(s grpc.ServiceRegistrar, srv HealthServiceServer)

func RegisterTrustIssuerServiceServer

func RegisterTrustIssuerServiceServer(s grpc.ServiceRegistrar, srv TrustIssuerServiceServer)

func RegisterVcIssuerLogServiceServer

func RegisterVcIssuerLogServiceServer(s grpc.ServiceRegistrar, srv VcIssuerLogServiceServer)

func RegisterVcRevokeListServiceServer

func RegisterVcRevokeListServiceServer(s grpc.ServiceRegistrar, srv VcRevokeListServiceServer)

func RegisterVcServiceServer

func RegisterVcServiceServer(s grpc.ServiceRegistrar, srv VcServiceServer)

func RegisterVcTemplateServiceServer

func RegisterVcTemplateServiceServer(s grpc.ServiceRegistrar, srv VcTemplateServiceServer)

func RegisterVerifyServiceServer

func RegisterVerifyServiceServer(s grpc.ServiceRegistrar, srv VerifyServiceServer)

func RegisterVpServiceServer

func RegisterVpServiceServer(s grpc.ServiceRegistrar, srv VpServiceServer)

Types

type BlackListServiceClient

type BlackListServiceClient interface {
	CheckBlackList(ctx context.Context, in *CheckBlackListRequest, opts ...grpc.CallOption) (*CheckBlackListResponse, error)
}

BlackListServiceClient is the client API for BlackListService 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 NewBlackListServiceClient

func NewBlackListServiceClient(cc grpc.ClientConnInterface) BlackListServiceClient

type BlackListServiceServer

type BlackListServiceServer interface {
	CheckBlackList(context.Context, *CheckBlackListRequest) (*CheckBlackListResponse, error)
	// contains filtered or unexported methods
}

BlackListServiceServer is the server API for BlackListService service. All implementations must embed UnimplementedBlackListServiceServer for forward compatibility

type CheckBlackListData

type CheckBlackListData struct {
	Did   string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	Exist bool   `protobuf:"varint,2,opt,name=exist,proto3" json:"exist,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckBlackListData) Descriptor deprecated

func (*CheckBlackListData) Descriptor() ([]byte, []int)

Deprecated: Use CheckBlackListData.ProtoReflect.Descriptor instead.

func (*CheckBlackListData) GetDid

func (x *CheckBlackListData) GetDid() string

func (*CheckBlackListData) GetExist

func (x *CheckBlackListData) GetExist() bool

func (*CheckBlackListData) ProtoMessage

func (*CheckBlackListData) ProtoMessage()

func (*CheckBlackListData) ProtoReflect

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

func (*CheckBlackListData) Reset

func (x *CheckBlackListData) Reset()

func (*CheckBlackListData) String

func (x *CheckBlackListData) String() string

type CheckBlackListRequest

type CheckBlackListRequest struct {
	Did []string `protobuf:"bytes,1,rep,name=did,proto3" json:"did,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckBlackListRequest) Descriptor deprecated

func (*CheckBlackListRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckBlackListRequest.ProtoReflect.Descriptor instead.

func (*CheckBlackListRequest) GetDid

func (x *CheckBlackListRequest) GetDid() []string

func (*CheckBlackListRequest) ProtoMessage

func (*CheckBlackListRequest) ProtoMessage()

func (*CheckBlackListRequest) ProtoReflect

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

func (*CheckBlackListRequest) Reset

func (x *CheckBlackListRequest) Reset()

func (*CheckBlackListRequest) String

func (x *CheckBlackListRequest) String() string

type CheckBlackListResponse

type CheckBlackListResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VC
	Data []*CheckBlackListData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckBlackListResponse) Descriptor deprecated

func (*CheckBlackListResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckBlackListResponse.ProtoReflect.Descriptor instead.

func (*CheckBlackListResponse) GetCode

func (x *CheckBlackListResponse) GetCode() int32

func (*CheckBlackListResponse) GetData

func (*CheckBlackListResponse) GetMsg

func (x *CheckBlackListResponse) GetMsg() string

func (*CheckBlackListResponse) ProtoMessage

func (*CheckBlackListResponse) ProtoMessage()

func (*CheckBlackListResponse) ProtoReflect

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

func (*CheckBlackListResponse) Reset

func (x *CheckBlackListResponse) Reset()

func (*CheckBlackListResponse) String

func (x *CheckBlackListResponse) String() string

type CheckVcRevokeListRequest

type CheckVcRevokeListRequest struct {
	List []*CheckVcRevokeListRequestData `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckVcRevokeListRequest) Descriptor deprecated

func (*CheckVcRevokeListRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckVcRevokeListRequest.ProtoReflect.Descriptor instead.

func (*CheckVcRevokeListRequest) GetList

func (*CheckVcRevokeListRequest) ProtoMessage

func (*CheckVcRevokeListRequest) ProtoMessage()

func (*CheckVcRevokeListRequest) ProtoReflect

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

func (*CheckVcRevokeListRequest) Reset

func (x *CheckVcRevokeListRequest) Reset()

func (*CheckVcRevokeListRequest) String

func (x *CheckVcRevokeListRequest) String() string

type CheckVcRevokeListRequestData

type CheckVcRevokeListRequestData struct {
	VcId   string `protobuf:"bytes,1,opt,name=vcId,proto3" json:"vcId,omitempty"`
	Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckVcRevokeListRequestData) Descriptor deprecated

func (*CheckVcRevokeListRequestData) Descriptor() ([]byte, []int)

Deprecated: Use CheckVcRevokeListRequestData.ProtoReflect.Descriptor instead.

func (*CheckVcRevokeListRequestData) GetIssuer

func (x *CheckVcRevokeListRequestData) GetIssuer() string

func (*CheckVcRevokeListRequestData) GetVcId

func (x *CheckVcRevokeListRequestData) GetVcId() string

func (*CheckVcRevokeListRequestData) ProtoMessage

func (*CheckVcRevokeListRequestData) ProtoMessage()

func (*CheckVcRevokeListRequestData) ProtoReflect

func (*CheckVcRevokeListRequestData) Reset

func (x *CheckVcRevokeListRequestData) Reset()

func (*CheckVcRevokeListRequestData) String

type CheckVcRevokeListResponse

type CheckVcRevokeListResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VC
	Data []*CheckVcRevokeListResponseData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckVcRevokeListResponse) Descriptor deprecated

func (*CheckVcRevokeListResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckVcRevokeListResponse.ProtoReflect.Descriptor instead.

func (*CheckVcRevokeListResponse) GetCode

func (x *CheckVcRevokeListResponse) GetCode() int32

func (*CheckVcRevokeListResponse) GetData

func (*CheckVcRevokeListResponse) GetMsg

func (x *CheckVcRevokeListResponse) GetMsg() string

func (*CheckVcRevokeListResponse) ProtoMessage

func (*CheckVcRevokeListResponse) ProtoMessage()

func (*CheckVcRevokeListResponse) ProtoReflect

func (*CheckVcRevokeListResponse) Reset

func (x *CheckVcRevokeListResponse) Reset()

func (*CheckVcRevokeListResponse) String

func (x *CheckVcRevokeListResponse) String() string

type CheckVcRevokeListResponseData

type CheckVcRevokeListResponseData struct {
	VcId    string `protobuf:"bytes,1,opt,name=vcId,proto3" json:"vcId,omitempty"`
	Issuer  string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Revoked bool   `protobuf:"varint,3,opt,name=revoked,proto3" json:"revoked,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckVcRevokeListResponseData) Descriptor deprecated

func (*CheckVcRevokeListResponseData) Descriptor() ([]byte, []int)

Deprecated: Use CheckVcRevokeListResponseData.ProtoReflect.Descriptor instead.

func (*CheckVcRevokeListResponseData) GetIssuer

func (x *CheckVcRevokeListResponseData) GetIssuer() string

func (*CheckVcRevokeListResponseData) GetRevoked

func (x *CheckVcRevokeListResponseData) GetRevoked() bool

func (*CheckVcRevokeListResponseData) GetVcId

func (*CheckVcRevokeListResponseData) ProtoMessage

func (*CheckVcRevokeListResponseData) ProtoMessage()

func (*CheckVcRevokeListResponseData) ProtoReflect

func (*CheckVcRevokeListResponseData) Reset

func (x *CheckVcRevokeListResponseData) Reset()

func (*CheckVcRevokeListResponseData) String

type DidGenerateCtid

type DidGenerateCtid struct {

	// 公钥
	PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	// 姓名
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 身份证号
	IdentityCardNumber string `protobuf:"bytes,3,opt,name=identityCardNumber,proto3" json:"identityCardNumber,omitempty"`
	// contains filtered or unexported fields
}

DidGenerateCtid 生成DIDDocument请求 Deprecated

func (*DidGenerateCtid) Descriptor deprecated

func (*DidGenerateCtid) Descriptor() ([]byte, []int)

Deprecated: Use DidGenerateCtid.ProtoReflect.Descriptor instead.

func (*DidGenerateCtid) GetIdentityCardNumber

func (x *DidGenerateCtid) GetIdentityCardNumber() string

func (*DidGenerateCtid) GetName

func (x *DidGenerateCtid) GetName() string

func (*DidGenerateCtid) GetPublicKey

func (x *DidGenerateCtid) GetPublicKey() string

func (*DidGenerateCtid) ProtoMessage

func (*DidGenerateCtid) ProtoMessage()

func (*DidGenerateCtid) ProtoReflect

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

func (*DidGenerateCtid) Reset

func (x *DidGenerateCtid) Reset()

func (*DidGenerateCtid) String

func (x *DidGenerateCtid) String() string

type DidGenerateDocument

type DidGenerateDocument struct {
	PublicKey []string `protobuf:"bytes,1,rep,name=publicKey,proto3" json:"publicKey,omitempty"`
	// contains filtered or unexported fields
}

DidGenerateDocument 生成DIDDocument请求 Deprecated

func (*DidGenerateDocument) Descriptor deprecated

func (*DidGenerateDocument) Descriptor() ([]byte, []int)

Deprecated: Use DidGenerateDocument.ProtoReflect.Descriptor instead.

func (*DidGenerateDocument) GetPublicKey

func (x *DidGenerateDocument) GetPublicKey() []string

func (*DidGenerateDocument) ProtoMessage

func (*DidGenerateDocument) ProtoMessage()

func (*DidGenerateDocument) ProtoReflect

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

func (*DidGenerateDocument) Reset

func (x *DidGenerateDocument) Reset()

func (*DidGenerateDocument) String

func (x *DidGenerateDocument) String() string

type DidGenerateRequest

type DidGenerateRequest struct {

	// 生成类型
	Type []ProofType `protobuf:"varint,1,rep,packed,name=type,proto3,enum=did.ProofType" json:"type,omitempty"`
	// document 当类型为Document时,需要传入公钥
	Document *DidGenerateDocument `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"`
	// ctidDID 当类型为CtidDID或CtidRealNameVC时,需要传入姓名、身份证号
	CtidDID *DidGenerateCtid `protobuf:"bytes,3,opt,name=ctidDID,proto3" json:"ctidDID,omitempty"`
	// contains filtered or unexported fields
}

DidGenerateRequest 生成DIDDocument请求 Deprecated

func (*DidGenerateRequest) Descriptor deprecated

func (*DidGenerateRequest) Descriptor() ([]byte, []int)

Deprecated: Use DidGenerateRequest.ProtoReflect.Descriptor instead.

func (*DidGenerateRequest) GetCtidDID

func (x *DidGenerateRequest) GetCtidDID() *DidGenerateCtid

func (*DidGenerateRequest) GetDocument

func (x *DidGenerateRequest) GetDocument() *DidGenerateDocument

func (*DidGenerateRequest) GetType

func (x *DidGenerateRequest) GetType() []ProofType

func (*DidGenerateRequest) ProtoMessage

func (*DidGenerateRequest) ProtoMessage()

func (*DidGenerateRequest) ProtoReflect

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

func (*DidGenerateRequest) Reset

func (x *DidGenerateRequest) Reset()

func (*DidGenerateRequest) String

func (x *DidGenerateRequest) String() string

type DidGenerateResponse

type DidGenerateResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 响应DATA
	Data *DidGenerateResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

DidGenerateResponse 生成DIDDocument响应 Deprecated

func (*DidGenerateResponse) Descriptor deprecated

func (*DidGenerateResponse) Descriptor() ([]byte, []int)

Deprecated: Use DidGenerateResponse.ProtoReflect.Descriptor instead.

func (*DidGenerateResponse) GetCode

func (x *DidGenerateResponse) GetCode() int32

func (*DidGenerateResponse) GetData

func (*DidGenerateResponse) GetMsg

func (x *DidGenerateResponse) GetMsg() string

func (*DidGenerateResponse) ProtoMessage

func (*DidGenerateResponse) ProtoMessage()

func (*DidGenerateResponse) ProtoReflect

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

func (*DidGenerateResponse) Reset

func (x *DidGenerateResponse) Reset()

func (*DidGenerateResponse) String

func (x *DidGenerateResponse) String() string

type DidGenerateResponseData

type DidGenerateResponseData struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 注册原文
	Plaintext []*LongPlaintext `protobuf:"bytes,2,rep,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

DidGenerateResponseData 生成DIDDocument响应 Deprecated

func (*DidGenerateResponseData) Descriptor deprecated

func (*DidGenerateResponseData) Descriptor() ([]byte, []int)

Deprecated: Use DidGenerateResponseData.ProtoReflect.Descriptor instead.

func (*DidGenerateResponseData) GetDid

func (x *DidGenerateResponseData) GetDid() string

func (*DidGenerateResponseData) GetPlaintext

func (x *DidGenerateResponseData) GetPlaintext() []*LongPlaintext

func (*DidGenerateResponseData) ProtoMessage

func (*DidGenerateResponseData) ProtoMessage()

func (*DidGenerateResponseData) ProtoReflect

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

func (*DidGenerateResponseData) Reset

func (x *DidGenerateResponseData) Reset()

func (*DidGenerateResponseData) String

func (x *DidGenerateResponseData) String() string

type DidRegisterRequest

type DidRegisterRequest struct {

	// 注册用户DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 证明结构
	RegisterProof []*LongProof `protobuf:"bytes,2,rep,name=registerProof,proto3" json:"registerProof,omitempty"`
	// contains filtered or unexported fields
}

DidRegisterRequest 注册 DID Document 响应 Deprecated

func (*DidRegisterRequest) Descriptor deprecated

func (*DidRegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use DidRegisterRequest.ProtoReflect.Descriptor instead.

func (*DidRegisterRequest) GetDid

func (x *DidRegisterRequest) GetDid() string

func (*DidRegisterRequest) GetRegisterProof

func (x *DidRegisterRequest) GetRegisterProof() []*LongProof

func (*DidRegisterRequest) ProtoMessage

func (*DidRegisterRequest) ProtoMessage()

func (*DidRegisterRequest) ProtoReflect

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

func (*DidRegisterRequest) Reset

func (x *DidRegisterRequest) Reset()

func (*DidRegisterRequest) String

func (x *DidRegisterRequest) String() string

type DidRegisterResponse

type DidRegisterResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 注册DID响应Data
	Data *DidRegisterResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

注册DID响应 Deprecated

func (*DidRegisterResponse) Descriptor deprecated

func (*DidRegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use DidRegisterResponse.ProtoReflect.Descriptor instead.

func (*DidRegisterResponse) GetCode

func (x *DidRegisterResponse) GetCode() int32

func (*DidRegisterResponse) GetData

func (*DidRegisterResponse) GetMsg

func (x *DidRegisterResponse) GetMsg() string

func (*DidRegisterResponse) ProtoMessage

func (*DidRegisterResponse) ProtoMessage()

func (*DidRegisterResponse) ProtoReflect

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

func (*DidRegisterResponse) Reset

func (x *DidRegisterResponse) Reset()

func (*DidRegisterResponse) String

func (x *DidRegisterResponse) String() string

type DidRegisterResponseData

type DidRegisterResponseData struct {
	Document []byte `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

注册DID响应Data Deprecated

func (*DidRegisterResponseData) Descriptor deprecated

func (*DidRegisterResponseData) Descriptor() ([]byte, []int)

Deprecated: Use DidRegisterResponseData.ProtoReflect.Descriptor instead.

func (*DidRegisterResponseData) GetDocument

func (x *DidRegisterResponseData) GetDocument() []byte

func (*DidRegisterResponseData) ProtoMessage

func (*DidRegisterResponseData) ProtoMessage()

func (*DidRegisterResponseData) ProtoReflect

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

func (*DidRegisterResponseData) Reset

func (x *DidRegisterResponseData) Reset()

func (*DidRegisterResponseData) String

func (x *DidRegisterResponseData) String() string

type DidServiceClient

type DidServiceClient interface {
	// 生成 Document
	Generate(ctx context.Context, in *DidGenerateRequest, opts ...grpc.CallOption) (*DidGenerateResponse, error)
	// 注册 DID Document
	Register(ctx context.Context, in *DidRegisterRequest, opts ...grpc.CallOption) (*DidRegisterResponse, error)
}

DidServiceClient is the client API for DidService 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 NewDidServiceClient

func NewDidServiceClient(cc grpc.ClientConnInterface) DidServiceClient

type DidServiceServer

type DidServiceServer interface {
	// 生成 Document
	Generate(context.Context, *DidGenerateRequest) (*DidGenerateResponse, error)
	// 注册 DID Document
	Register(context.Context, *DidRegisterRequest) (*DidRegisterResponse, error)
	// contains filtered or unexported methods
}

DidServiceServer is the server API for DidService service. All implementations must embed UnimplementedDidServiceServer for forward compatibility

type DocumentAddPublicKeyRequest

type DocumentAddPublicKeyRequest struct {
	Did       string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentAddPublicKeyRequest) Descriptor deprecated

func (*DocumentAddPublicKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentAddPublicKeyRequest.ProtoReflect.Descriptor instead.

func (*DocumentAddPublicKeyRequest) GetDid

func (x *DocumentAddPublicKeyRequest) GetDid() string

func (*DocumentAddPublicKeyRequest) GetPublicKey

func (x *DocumentAddPublicKeyRequest) GetPublicKey() string

func (*DocumentAddPublicKeyRequest) ProtoMessage

func (*DocumentAddPublicKeyRequest) ProtoMessage()

func (*DocumentAddPublicKeyRequest) ProtoReflect

func (*DocumentAddPublicKeyRequest) Reset

func (x *DocumentAddPublicKeyRequest) Reset()

func (*DocumentAddPublicKeyRequest) String

func (x *DocumentAddPublicKeyRequest) String() string

type DocumentDeletePublicKeyRequest

type DocumentDeletePublicKeyRequest struct {
	VerificationId string `protobuf:"bytes,1,opt,name=verificationId,proto3" json:"verificationId,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentDeletePublicKeyRequest) Descriptor deprecated

func (*DocumentDeletePublicKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentDeletePublicKeyRequest.ProtoReflect.Descriptor instead.

func (*DocumentDeletePublicKeyRequest) GetVerificationId

func (x *DocumentDeletePublicKeyRequest) GetVerificationId() string

func (*DocumentDeletePublicKeyRequest) ProtoMessage

func (*DocumentDeletePublicKeyRequest) ProtoMessage()

func (*DocumentDeletePublicKeyRequest) ProtoReflect

func (*DocumentDeletePublicKeyRequest) Reset

func (x *DocumentDeletePublicKeyRequest) Reset()

func (*DocumentDeletePublicKeyRequest) String

type DocumentGetByAddressRequest

type DocumentGetByAddressRequest struct {

	// 注册用户DID
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

DidRegisterRequest 注册 DID Document 响应

func (*DocumentGetByAddressRequest) Descriptor deprecated

func (*DocumentGetByAddressRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentGetByAddressRequest.ProtoReflect.Descriptor instead.

func (*DocumentGetByAddressRequest) GetAddress

func (x *DocumentGetByAddressRequest) GetAddress() string

func (*DocumentGetByAddressRequest) ProtoMessage

func (*DocumentGetByAddressRequest) ProtoMessage()

func (*DocumentGetByAddressRequest) ProtoReflect

func (*DocumentGetByAddressRequest) Reset

func (x *DocumentGetByAddressRequest) Reset()

func (*DocumentGetByAddressRequest) String

func (x *DocumentGetByAddressRequest) String() string

type DocumentGetListRequest

type DocumentGetListRequest struct {
	Did []string `protobuf:"bytes,1,rep,name=did,proto3" json:"did,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentGetListRequest) Descriptor deprecated

func (*DocumentGetListRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentGetListRequest.ProtoReflect.Descriptor instead.

func (*DocumentGetListRequest) GetDid

func (x *DocumentGetListRequest) GetDid() []string

func (*DocumentGetListRequest) ProtoMessage

func (*DocumentGetListRequest) ProtoMessage()

func (*DocumentGetListRequest) ProtoReflect

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

func (*DocumentGetListRequest) Reset

func (x *DocumentGetListRequest) Reset()

func (*DocumentGetListRequest) String

func (x *DocumentGetListRequest) String() string

type DocumentGetRequest

type DocumentGetRequest struct {

	// 注册用户DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// contains filtered or unexported fields
}

DidRegisterRequest 注册 DID Document 响应

func (*DocumentGetRequest) Descriptor deprecated

func (*DocumentGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentGetRequest.ProtoReflect.Descriptor instead.

func (*DocumentGetRequest) GetDid

func (x *DocumentGetRequest) GetDid() string

func (*DocumentGetRequest) ProtoMessage

func (*DocumentGetRequest) ProtoMessage()

func (*DocumentGetRequest) ProtoReflect

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

func (*DocumentGetRequest) Reset

func (x *DocumentGetRequest) Reset()

func (*DocumentGetRequest) String

func (x *DocumentGetRequest) String() string

type DocumentImportRequest

type DocumentImportRequest struct {
	Document *core.Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

DidRegisterRequest 注册 DID Document 响应

func (*DocumentImportRequest) Descriptor deprecated

func (*DocumentImportRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentImportRequest.ProtoReflect.Descriptor instead.

func (*DocumentImportRequest) GetDocument

func (x *DocumentImportRequest) GetDocument() *core.Document

func (*DocumentImportRequest) ProtoMessage

func (*DocumentImportRequest) ProtoMessage()

func (*DocumentImportRequest) ProtoReflect

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

func (*DocumentImportRequest) Reset

func (x *DocumentImportRequest) Reset()

func (*DocumentImportRequest) String

func (x *DocumentImportRequest) String() string

type DocumentListData

type DocumentListData struct {
	Document []*core.Document `protobuf:"bytes,1,rep,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentListData) Descriptor deprecated

func (*DocumentListData) Descriptor() ([]byte, []int)

Deprecated: Use DocumentListData.ProtoReflect.Descriptor instead.

func (*DocumentListData) GetDocument

func (x *DocumentListData) GetDocument() []*core.Document

func (*DocumentListData) ProtoMessage

func (*DocumentListData) ProtoMessage()

func (*DocumentListData) ProtoReflect

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

func (*DocumentListData) Reset

func (x *DocumentListData) Reset()

func (*DocumentListData) String

func (x *DocumentListData) String() string

type DocumentListResponse

type DocumentListResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// data
	Data *DocumentListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DocumentListResponse) Descriptor deprecated

func (*DocumentListResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentListResponse.ProtoReflect.Descriptor instead.

func (*DocumentListResponse) GetCode

func (x *DocumentListResponse) GetCode() int32

func (*DocumentListResponse) GetData

func (x *DocumentListResponse) GetData() *DocumentListData

func (*DocumentListResponse) GetMsg

func (x *DocumentListResponse) GetMsg() string

func (*DocumentListResponse) ProtoMessage

func (*DocumentListResponse) ProtoMessage()

func (*DocumentListResponse) ProtoReflect

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

func (*DocumentListResponse) Reset

func (x *DocumentListResponse) Reset()

func (*DocumentListResponse) String

func (x *DocumentListResponse) String() string

type DocumentRegisterRequest

type DocumentRegisterRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 证明结构
	Proof *core.Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

DidRegisterRequest 注册 DID Document 响应

func (*DocumentRegisterRequest) Descriptor deprecated

func (*DocumentRegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentRegisterRequest.ProtoReflect.Descriptor instead.

func (*DocumentRegisterRequest) GetDid

func (x *DocumentRegisterRequest) GetDid() string

func (*DocumentRegisterRequest) GetProof

func (x *DocumentRegisterRequest) GetProof() *core.Proof

func (*DocumentRegisterRequest) ProtoMessage

func (*DocumentRegisterRequest) ProtoMessage()

func (*DocumentRegisterRequest) ProtoReflect

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

func (*DocumentRegisterRequest) Reset

func (x *DocumentRegisterRequest) Reset()

func (*DocumentRegisterRequest) String

func (x *DocumentRegisterRequest) String() string

type DocumentResponse

type DocumentResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 注册DID响应Data
	Data *DocumentResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

注册DID响应

func (*DocumentResponse) Descriptor deprecated

func (*DocumentResponse) Descriptor() ([]byte, []int)

Deprecated: Use DocumentResponse.ProtoReflect.Descriptor instead.

func (*DocumentResponse) GetCode

func (x *DocumentResponse) GetCode() int32

func (*DocumentResponse) GetData

func (x *DocumentResponse) GetData() *DocumentResponseData

func (*DocumentResponse) GetMsg

func (x *DocumentResponse) GetMsg() string

func (*DocumentResponse) ProtoMessage

func (*DocumentResponse) ProtoMessage()

func (*DocumentResponse) ProtoReflect

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

func (*DocumentResponse) Reset

func (x *DocumentResponse) Reset()

func (*DocumentResponse) String

func (x *DocumentResponse) String() string

type DocumentResponseData

type DocumentResponseData struct {
	Document *core.Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

注册DID响应Data

func (*DocumentResponseData) Descriptor deprecated

func (*DocumentResponseData) Descriptor() ([]byte, []int)

Deprecated: Use DocumentResponseData.ProtoReflect.Descriptor instead.

func (*DocumentResponseData) GetDocument

func (x *DocumentResponseData) GetDocument() *core.Document

func (*DocumentResponseData) ProtoMessage

func (*DocumentResponseData) ProtoMessage()

func (*DocumentResponseData) ProtoReflect

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

func (*DocumentResponseData) Reset

func (x *DocumentResponseData) Reset()

func (*DocumentResponseData) String

func (x *DocumentResponseData) String() string

type DocumentServiceClient

type DocumentServiceClient interface {
	// 注册 DID Document
	Register(ctx context.Context, in *DocumentRegisterRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
	// 更新 DID Document
	UpdateDocument(ctx context.Context, in *DocumentUpdateRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
	// 获得 DID Document
	GetDocument(ctx context.Context, in *DocumentGetRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
	// 获得 DID Document
	GetDocumentByAddress(ctx context.Context, in *DocumentGetByAddressRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
	// 批量获得 DID Document
	GetListDocument(ctx context.Context, in *DocumentGetListRequest, opts ...grpc.CallOption) (*DocumentListResponse, error)
	// 导入Document
	Import(ctx context.Context, in *DocumentImportRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
	// 添加公钥
	AddPublicKey(ctx context.Context, in *DocumentAddPublicKeyRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
	// 删除公钥
	DeletePublicKey(ctx context.Context, in *DocumentDeletePublicKeyRequest, opts ...grpc.CallOption) (*DocumentResponse, error)
}

DocumentServiceClient is the client API for DocumentService 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 NewDocumentServiceClient

func NewDocumentServiceClient(cc grpc.ClientConnInterface) DocumentServiceClient

type DocumentServiceServer

type DocumentServiceServer interface {
	// 注册 DID Document
	Register(context.Context, *DocumentRegisterRequest) (*DocumentResponse, error)
	// 更新 DID Document
	UpdateDocument(context.Context, *DocumentUpdateRequest) (*DocumentResponse, error)
	// 获得 DID Document
	GetDocument(context.Context, *DocumentGetRequest) (*DocumentResponse, error)
	// 获得 DID Document
	GetDocumentByAddress(context.Context, *DocumentGetByAddressRequest) (*DocumentResponse, error)
	// 批量获得 DID Document
	GetListDocument(context.Context, *DocumentGetListRequest) (*DocumentListResponse, error)
	// 导入Document
	Import(context.Context, *DocumentImportRequest) (*DocumentResponse, error)
	// 添加公钥
	AddPublicKey(context.Context, *DocumentAddPublicKeyRequest) (*DocumentResponse, error)
	// 删除公钥
	DeletePublicKey(context.Context, *DocumentDeletePublicKeyRequest) (*DocumentResponse, error)
	// contains filtered or unexported methods
}

DocumentServiceServer is the server API for DocumentService service. All implementations must embed UnimplementedDocumentServiceServer for forward compatibility

type DocumentUpdateRequest

type DocumentUpdateRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 证明结构
	Proof []*core.Proof `protobuf:"bytes,2,rep,name=proof,proto3" json:"proof,omitempty"`
	// 外部传入document
	Document *core.Document `protobuf:"bytes,3,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

DocumentUpdateRequest 更新 DID Document 响应

func (*DocumentUpdateRequest) Descriptor deprecated

func (*DocumentUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use DocumentUpdateRequest.ProtoReflect.Descriptor instead.

func (*DocumentUpdateRequest) GetDid

func (x *DocumentUpdateRequest) GetDid() string

func (*DocumentUpdateRequest) GetDocument

func (x *DocumentUpdateRequest) GetDocument() *core.Document

func (*DocumentUpdateRequest) GetProof

func (x *DocumentUpdateRequest) GetProof() []*core.Proof

func (*DocumentUpdateRequest) ProtoMessage

func (*DocumentUpdateRequest) ProtoMessage()

func (*DocumentUpdateRequest) ProtoReflect

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

func (*DocumentUpdateRequest) Reset

func (x *DocumentUpdateRequest) Reset()

func (*DocumentUpdateRequest) String

func (x *DocumentUpdateRequest) String() string

type FindCompanyNameByDIDRequest

type FindCompanyNameByDIDRequest struct {
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// contains filtered or unexported fields
}

func (*FindCompanyNameByDIDRequest) Descriptor deprecated

func (*FindCompanyNameByDIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindCompanyNameByDIDRequest.ProtoReflect.Descriptor instead.

func (*FindCompanyNameByDIDRequest) GetDid

func (x *FindCompanyNameByDIDRequest) GetDid() string

func (*FindCompanyNameByDIDRequest) ProtoMessage

func (*FindCompanyNameByDIDRequest) ProtoMessage()

func (*FindCompanyNameByDIDRequest) ProtoReflect

func (*FindCompanyNameByDIDRequest) Reset

func (x *FindCompanyNameByDIDRequest) Reset()

func (*FindCompanyNameByDIDRequest) String

func (x *FindCompanyNameByDIDRequest) String() string

type FindCompanyNameByDIDResponse

type FindCompanyNameByDIDResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// data
	Data *FindCompanyNameByDIDResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*FindCompanyNameByDIDResponse) Descriptor deprecated

func (*FindCompanyNameByDIDResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindCompanyNameByDIDResponse.ProtoReflect.Descriptor instead.

func (*FindCompanyNameByDIDResponse) GetCode

func (x *FindCompanyNameByDIDResponse) GetCode() int32

func (*FindCompanyNameByDIDResponse) GetData

func (*FindCompanyNameByDIDResponse) GetMsg

func (*FindCompanyNameByDIDResponse) ProtoMessage

func (*FindCompanyNameByDIDResponse) ProtoMessage()

func (*FindCompanyNameByDIDResponse) ProtoReflect

func (*FindCompanyNameByDIDResponse) Reset

func (x *FindCompanyNameByDIDResponse) Reset()

func (*FindCompanyNameByDIDResponse) String

type FindCompanyNameByDIDResponseData

type FindCompanyNameByDIDResponseData struct {
	CompanyName string `protobuf:"bytes,1,opt,name=companyName,proto3" json:"companyName,omitempty"`
	// contains filtered or unexported fields
}

func (*FindCompanyNameByDIDResponseData) Descriptor deprecated

func (*FindCompanyNameByDIDResponseData) Descriptor() ([]byte, []int)

Deprecated: Use FindCompanyNameByDIDResponseData.ProtoReflect.Descriptor instead.

func (*FindCompanyNameByDIDResponseData) GetCompanyName

func (x *FindCompanyNameByDIDResponseData) GetCompanyName() string

func (*FindCompanyNameByDIDResponseData) ProtoMessage

func (*FindCompanyNameByDIDResponseData) ProtoMessage()

func (*FindCompanyNameByDIDResponseData) ProtoReflect

func (*FindCompanyNameByDIDResponseData) Reset

func (*FindCompanyNameByDIDResponseData) String

type FindDIDByCompanyNameRequest

type FindDIDByCompanyNameRequest struct {
	CompanyName string `protobuf:"bytes,1,opt,name=companyName,proto3" json:"companyName,omitempty"`
	// contains filtered or unexported fields
}

func (*FindDIDByCompanyNameRequest) Descriptor deprecated

func (*FindDIDByCompanyNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindDIDByCompanyNameRequest.ProtoReflect.Descriptor instead.

func (*FindDIDByCompanyNameRequest) GetCompanyName

func (x *FindDIDByCompanyNameRequest) GetCompanyName() string

func (*FindDIDByCompanyNameRequest) ProtoMessage

func (*FindDIDByCompanyNameRequest) ProtoMessage()

func (*FindDIDByCompanyNameRequest) ProtoReflect

func (*FindDIDByCompanyNameRequest) Reset

func (x *FindDIDByCompanyNameRequest) Reset()

func (*FindDIDByCompanyNameRequest) String

func (x *FindDIDByCompanyNameRequest) String() string

type FindDIDByCompanyNameResponse

type FindDIDByCompanyNameResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// data
	Data *FindDIDByCompanyNameResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*FindDIDByCompanyNameResponse) Descriptor deprecated

func (*FindDIDByCompanyNameResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindDIDByCompanyNameResponse.ProtoReflect.Descriptor instead.

func (*FindDIDByCompanyNameResponse) GetCode

func (x *FindDIDByCompanyNameResponse) GetCode() int32

func (*FindDIDByCompanyNameResponse) GetData

func (*FindDIDByCompanyNameResponse) GetMsg

func (*FindDIDByCompanyNameResponse) ProtoMessage

func (*FindDIDByCompanyNameResponse) ProtoMessage()

func (*FindDIDByCompanyNameResponse) ProtoReflect

func (*FindDIDByCompanyNameResponse) Reset

func (x *FindDIDByCompanyNameResponse) Reset()

func (*FindDIDByCompanyNameResponse) String

type FindDIDByCompanyNameResponseData

type FindDIDByCompanyNameResponseData struct {
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// contains filtered or unexported fields
}

func (*FindDIDByCompanyNameResponseData) Descriptor deprecated

func (*FindDIDByCompanyNameResponseData) Descriptor() ([]byte, []int)

Deprecated: Use FindDIDByCompanyNameResponseData.ProtoReflect.Descriptor instead.

func (*FindDIDByCompanyNameResponseData) GetDid

func (*FindDIDByCompanyNameResponseData) ProtoMessage

func (*FindDIDByCompanyNameResponseData) ProtoMessage()

func (*FindDIDByCompanyNameResponseData) ProtoReflect

func (*FindDIDByCompanyNameResponseData) Reset

func (*FindDIDByCompanyNameResponseData) String

type GenCtidDIDRequest

type GenCtidDIDRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 公钥
	PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	// 姓名
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 身份证号
	IdentityCardNumber string `protobuf:"bytes,4,opt,name=identityCardNumber,proto3" json:"identityCardNumber,omitempty"`
	// contains filtered or unexported fields
}

生成Ctid签名原文 请求

func (*GenCtidDIDRequest) Descriptor deprecated

func (*GenCtidDIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenCtidDIDRequest.ProtoReflect.Descriptor instead.

func (*GenCtidDIDRequest) GetDid

func (x *GenCtidDIDRequest) GetDid() string

func (*GenCtidDIDRequest) GetIdentityCardNumber

func (x *GenCtidDIDRequest) GetIdentityCardNumber() string

func (*GenCtidDIDRequest) GetName

func (x *GenCtidDIDRequest) GetName() string

func (*GenCtidDIDRequest) GetPublicKey

func (x *GenCtidDIDRequest) GetPublicKey() string

func (*GenCtidDIDRequest) ProtoMessage

func (*GenCtidDIDRequest) ProtoMessage()

func (*GenCtidDIDRequest) ProtoReflect

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

func (*GenCtidDIDRequest) Reset

func (x *GenCtidDIDRequest) Reset()

func (*GenCtidDIDRequest) String

func (x *GenCtidDIDRequest) String() string

type GenRegisterDocumentRequest

type GenRegisterDocumentRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 公钥
	PublicKey []string `protobuf:"bytes,2,rep,name=publicKey,proto3" json:"publicKey,omitempty"`
	// 外部数据绑定
	UnionId map[string]string `` /* 155-byte string literal not displayed */
	// 服务端点
	Service *core.Service `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

RegisterDocumentRequest 生成注册Document 请求

func (*GenRegisterDocumentRequest) Descriptor deprecated

func (*GenRegisterDocumentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenRegisterDocumentRequest.ProtoReflect.Descriptor instead.

func (*GenRegisterDocumentRequest) GetDid

func (x *GenRegisterDocumentRequest) GetDid() string

func (*GenRegisterDocumentRequest) GetPublicKey

func (x *GenRegisterDocumentRequest) GetPublicKey() []string

func (*GenRegisterDocumentRequest) GetService

func (x *GenRegisterDocumentRequest) GetService() *core.Service

func (*GenRegisterDocumentRequest) GetUnionId

func (x *GenRegisterDocumentRequest) GetUnionId() map[string]string

func (*GenRegisterDocumentRequest) ProtoMessage

func (*GenRegisterDocumentRequest) ProtoMessage()

func (*GenRegisterDocumentRequest) ProtoReflect

func (*GenRegisterDocumentRequest) Reset

func (x *GenRegisterDocumentRequest) Reset()

func (*GenRegisterDocumentRequest) String

func (x *GenRegisterDocumentRequest) String() string

type GenRegisterDocumentResponse

type GenRegisterDocumentResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 响应DATA
	Data *GenRegisterDocumentResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

DidGenUpdateDocumentResponse 生成DIDDocument响应

func (*GenRegisterDocumentResponse) Descriptor deprecated

func (*GenRegisterDocumentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenRegisterDocumentResponse.ProtoReflect.Descriptor instead.

func (*GenRegisterDocumentResponse) GetCode

func (x *GenRegisterDocumentResponse) GetCode() int32

func (*GenRegisterDocumentResponse) GetData

func (*GenRegisterDocumentResponse) GetMsg

func (x *GenRegisterDocumentResponse) GetMsg() string

func (*GenRegisterDocumentResponse) ProtoMessage

func (*GenRegisterDocumentResponse) ProtoMessage()

func (*GenRegisterDocumentResponse) ProtoReflect

func (*GenRegisterDocumentResponse) Reset

func (x *GenRegisterDocumentResponse) Reset()

func (*GenRegisterDocumentResponse) String

func (x *GenRegisterDocumentResponse) String() string

type GenRegisterDocumentResponseData

type GenRegisterDocumentResponseData struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 注册原文
	Plaintext []byte `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

DidGenUpdateDocumentResponseData 生成DIDDocument响应

func (*GenRegisterDocumentResponseData) Descriptor deprecated

func (*GenRegisterDocumentResponseData) Descriptor() ([]byte, []int)

Deprecated: Use GenRegisterDocumentResponseData.ProtoReflect.Descriptor instead.

func (*GenRegisterDocumentResponseData) GetDid

func (*GenRegisterDocumentResponseData) GetPlaintext

func (x *GenRegisterDocumentResponseData) GetPlaintext() []byte

func (*GenRegisterDocumentResponseData) ProtoMessage

func (*GenRegisterDocumentResponseData) ProtoMessage()

func (*GenRegisterDocumentResponseData) ProtoReflect

func (*GenRegisterDocumentResponseData) Reset

func (*GenRegisterDocumentResponseData) String

type GenUpdateDocumentAuthenticationRequest

type GenUpdateDocumentAuthenticationRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 公钥
	VerificationId []string `protobuf:"bytes,2,rep,name=verificationId,proto3" json:"verificationId,omitempty"`
	// 操作
	Action UpdateDocumentAction `protobuf:"varint,3,opt,name=action,proto3,enum=did.UpdateDocumentAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

生成更新Document验证权限 请求

func (*GenUpdateDocumentAuthenticationRequest) Descriptor deprecated

func (*GenUpdateDocumentAuthenticationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenUpdateDocumentAuthenticationRequest.ProtoReflect.Descriptor instead.

func (*GenUpdateDocumentAuthenticationRequest) GetAction

func (*GenUpdateDocumentAuthenticationRequest) GetDid

func (*GenUpdateDocumentAuthenticationRequest) GetVerificationId

func (x *GenUpdateDocumentAuthenticationRequest) GetVerificationId() []string

func (*GenUpdateDocumentAuthenticationRequest) ProtoMessage

func (*GenUpdateDocumentAuthenticationRequest) ProtoReflect

func (*GenUpdateDocumentAuthenticationRequest) Reset

func (*GenUpdateDocumentAuthenticationRequest) String

type GenUpdateDocumentControllerRequest

type GenUpdateDocumentControllerRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 公钥
	Controllers []string `protobuf:"bytes,2,rep,name=controllers,proto3" json:"controllers,omitempty"`
	// 操作
	Action UpdateDocumentAction `protobuf:"varint,3,opt,name=action,proto3,enum=did.UpdateDocumentAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

生成更新Document控制方 请求

func (*GenUpdateDocumentControllerRequest) Descriptor deprecated

func (*GenUpdateDocumentControllerRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenUpdateDocumentControllerRequest.ProtoReflect.Descriptor instead.

func (*GenUpdateDocumentControllerRequest) GetAction

func (*GenUpdateDocumentControllerRequest) GetControllers

func (x *GenUpdateDocumentControllerRequest) GetControllers() []string

func (*GenUpdateDocumentControllerRequest) GetDid

func (*GenUpdateDocumentControllerRequest) ProtoMessage

func (*GenUpdateDocumentControllerRequest) ProtoMessage()

func (*GenUpdateDocumentControllerRequest) ProtoReflect

func (*GenUpdateDocumentControllerRequest) Reset

func (*GenUpdateDocumentControllerRequest) String

type GenUpdateDocumentResponse

type GenUpdateDocumentResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 响应DATA
	Data *GenUpdateDocumentResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

DidGenUpdateDocumentResponse 生成DIDDocument响应

func (*GenUpdateDocumentResponse) Descriptor deprecated

func (*GenUpdateDocumentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenUpdateDocumentResponse.ProtoReflect.Descriptor instead.

func (*GenUpdateDocumentResponse) GetCode

func (x *GenUpdateDocumentResponse) GetCode() int32

func (*GenUpdateDocumentResponse) GetData

func (*GenUpdateDocumentResponse) GetMsg

func (x *GenUpdateDocumentResponse) GetMsg() string

func (*GenUpdateDocumentResponse) ProtoMessage

func (*GenUpdateDocumentResponse) ProtoMessage()

func (*GenUpdateDocumentResponse) ProtoReflect

func (*GenUpdateDocumentResponse) Reset

func (x *GenUpdateDocumentResponse) Reset()

func (*GenUpdateDocumentResponse) String

func (x *GenUpdateDocumentResponse) String() string

type GenUpdateDocumentResponseData

type GenUpdateDocumentResponseData struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 注册原文
	Plaintext *LongPlaintext `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

DidGenUpdateDocumentResponseData 生成DIDDocument响应

func (*GenUpdateDocumentResponseData) Descriptor deprecated

func (*GenUpdateDocumentResponseData) Descriptor() ([]byte, []int)

Deprecated: Use GenUpdateDocumentResponseData.ProtoReflect.Descriptor instead.

func (*GenUpdateDocumentResponseData) GetDid

func (*GenUpdateDocumentResponseData) GetPlaintext

func (x *GenUpdateDocumentResponseData) GetPlaintext() *LongPlaintext

func (*GenUpdateDocumentResponseData) ProtoMessage

func (*GenUpdateDocumentResponseData) ProtoMessage()

func (*GenUpdateDocumentResponseData) ProtoReflect

func (*GenUpdateDocumentResponseData) Reset

func (x *GenUpdateDocumentResponseData) Reset()

func (*GenUpdateDocumentResponseData) String

type GenUpdateDocumentUnionIdRequest

type GenUpdateDocumentUnionIdRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 外部DID绑定
	UnionId map[string]string `` /* 155-byte string literal not displayed */
	// 操作
	Action UpdateDocumentAction `protobuf:"varint,3,opt,name=action,proto3,enum=did.UpdateDocumentAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

生成更新Document外部DID绑定 请求

func (*GenUpdateDocumentUnionIdRequest) Descriptor deprecated

func (*GenUpdateDocumentUnionIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenUpdateDocumentUnionIdRequest.ProtoReflect.Descriptor instead.

func (*GenUpdateDocumentUnionIdRequest) GetAction

func (*GenUpdateDocumentUnionIdRequest) GetDid

func (*GenUpdateDocumentUnionIdRequest) GetUnionId

func (x *GenUpdateDocumentUnionIdRequest) GetUnionId() map[string]string

func (*GenUpdateDocumentUnionIdRequest) ProtoMessage

func (*GenUpdateDocumentUnionIdRequest) ProtoMessage()

func (*GenUpdateDocumentUnionIdRequest) ProtoReflect

func (*GenUpdateDocumentUnionIdRequest) Reset

func (*GenUpdateDocumentUnionIdRequest) String

type GenUpdateDocumentVerificationMethodRequest

type GenUpdateDocumentVerificationMethodRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 公钥
	PublicKey []string `protobuf:"bytes,2,rep,name=publicKey,proto3" json:"publicKey,omitempty"`
	// addresses
	Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// 操作
	Action UpdateDocumentAction `protobuf:"varint,4,opt,name=action,proto3,enum=did.UpdateDocumentAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

生成更新Document公钥 请求

func (*GenUpdateDocumentVerificationMethodRequest) Descriptor deprecated

Deprecated: Use GenUpdateDocumentVerificationMethodRequest.ProtoReflect.Descriptor instead.

func (*GenUpdateDocumentVerificationMethodRequest) GetAction

func (*GenUpdateDocumentVerificationMethodRequest) GetAddresses

func (*GenUpdateDocumentVerificationMethodRequest) GetDid

func (*GenUpdateDocumentVerificationMethodRequest) GetPublicKey

func (*GenUpdateDocumentVerificationMethodRequest) ProtoMessage

func (*GenUpdateDocumentVerificationMethodRequest) ProtoReflect

func (*GenUpdateDocumentVerificationMethodRequest) Reset

func (*GenUpdateDocumentVerificationMethodRequest) String

type GenVerifyVPRequest

type GenVerifyVPRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 拓展字段
	Extend []byte `protobuf:"bytes,2,opt,name=extend,proto3" json:"extend,omitempty"`
	// contains filtered or unexported fields
}

生成校验机构 请求

func (*GenVerifyVPRequest) Descriptor deprecated

func (*GenVerifyVPRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenVerifyVPRequest.ProtoReflect.Descriptor instead.

func (*GenVerifyVPRequest) GetDid

func (x *GenVerifyVPRequest) GetDid() string

func (*GenVerifyVPRequest) GetExtend

func (x *GenVerifyVPRequest) GetExtend() []byte

func (*GenVerifyVPRequest) ProtoMessage

func (*GenVerifyVPRequest) ProtoMessage()

func (*GenVerifyVPRequest) ProtoReflect

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

func (*GenVerifyVPRequest) Reset

func (x *GenVerifyVPRequest) Reset()

func (*GenVerifyVPRequest) String

func (x *GenVerifyVPRequest) String() string

type GenerateServiceClient

type GenerateServiceClient interface {
	// 注册 生成Document 注册前需要先CTID实名认证
	RegisterDocument(ctx context.Context, in *GenRegisterDocumentRequest, opts ...grpc.CallOption) (*GenRegisterDocumentResponse, error)
	// 生成 Ctid签名原文
	CtidBindCert(ctx context.Context, in *GenCtidDIDRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 CtidVC签名原文
	CtidRealNameVC(ctx context.Context, in *GenCtidDIDRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 随机数
	VerifyVP(ctx context.Context, in *GenVerifyVPRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document公钥
	UpdateDocumentVerificationMethod(ctx context.Context, in *GenUpdateDocumentVerificationMethodRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document验证权限
	UpdateDocumentAuthentication(ctx context.Context, in *GenUpdateDocumentAuthenticationRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document控制方
	UpdateDocumentController(ctx context.Context, in *GenUpdateDocumentControllerRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document外部DID绑定
	UpdateDocumentUnionId(ctx context.Context, in *GenUpdateDocumentUnionIdRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document服务
	UpdateDocumentService(ctx context.Context, in *UpdateDocumentServiceRequest, opts ...grpc.CallOption) (*GenUpdateDocumentResponse, error)
}

GenerateServiceClient is the client API for GenerateService 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 NewGenerateServiceClient

func NewGenerateServiceClient(cc grpc.ClientConnInterface) GenerateServiceClient

type GenerateServiceServer

type GenerateServiceServer interface {
	// 注册 生成Document 注册前需要先CTID实名认证
	RegisterDocument(context.Context, *GenRegisterDocumentRequest) (*GenRegisterDocumentResponse, error)
	// 生成 Ctid签名原文
	CtidBindCert(context.Context, *GenCtidDIDRequest) (*GenUpdateDocumentResponse, error)
	// 生成 CtidVC签名原文
	CtidRealNameVC(context.Context, *GenCtidDIDRequest) (*GenUpdateDocumentResponse, error)
	// 生成 随机数
	VerifyVP(context.Context, *GenVerifyVPRequest) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document公钥
	UpdateDocumentVerificationMethod(context.Context, *GenUpdateDocumentVerificationMethodRequest) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document验证权限
	UpdateDocumentAuthentication(context.Context, *GenUpdateDocumentAuthenticationRequest) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document控制方
	UpdateDocumentController(context.Context, *GenUpdateDocumentControllerRequest) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document外部DID绑定
	UpdateDocumentUnionId(context.Context, *GenUpdateDocumentUnionIdRequest) (*GenUpdateDocumentResponse, error)
	// 生成 更新Document服务
	UpdateDocumentService(context.Context, *UpdateDocumentServiceRequest) (*GenUpdateDocumentResponse, error)
	// contains filtered or unexported methods
}

GenerateServiceServer is the server API for GenerateService service. All implementations must embed UnimplementedGenerateServiceServer for forward compatibility

type GetVcIssueLogsRequest

type GetVcIssueLogsRequest struct {

	// 分页对象
	Page *page.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 持证人
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// 发证人
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// 证件类型
	TemplateId string `protobuf:"bytes,4,opt,name=templateId,proto3" json:"templateId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVcIssueLogsRequest) Descriptor deprecated

func (*GetVcIssueLogsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVcIssueLogsRequest.ProtoReflect.Descriptor instead.

func (*GetVcIssueLogsRequest) GetHolder

func (x *GetVcIssueLogsRequest) GetHolder() string

func (*GetVcIssueLogsRequest) GetIssuer

func (x *GetVcIssueLogsRequest) GetIssuer() string

func (*GetVcIssueLogsRequest) GetPage

func (x *GetVcIssueLogsRequest) GetPage() *page.Page

func (*GetVcIssueLogsRequest) GetTemplateId

func (x *GetVcIssueLogsRequest) GetTemplateId() string

func (*GetVcIssueLogsRequest) ProtoMessage

func (*GetVcIssueLogsRequest) ProtoMessage()

func (*GetVcIssueLogsRequest) ProtoReflect

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

func (*GetVcIssueLogsRequest) Reset

func (x *GetVcIssueLogsRequest) Reset()

func (*GetVcIssueLogsRequest) String

func (x *GetVcIssueLogsRequest) String() string

type GetVcIssueLogsResponse

type GetVcIssueLogsResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VcIssueLogsList
	Data *VcIssueLogsResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVcIssueLogsResponse) Descriptor deprecated

func (*GetVcIssueLogsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetVcIssueLogsResponse.ProtoReflect.Descriptor instead.

func (*GetVcIssueLogsResponse) GetCode

func (x *GetVcIssueLogsResponse) GetCode() int32

func (*GetVcIssueLogsResponse) GetData

func (*GetVcIssueLogsResponse) GetMsg

func (x *GetVcIssueLogsResponse) GetMsg() string

func (*GetVcIssueLogsResponse) ProtoMessage

func (*GetVcIssueLogsResponse) ProtoMessage()

func (*GetVcIssueLogsResponse) ProtoReflect

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

func (*GetVcIssueLogsResponse) Reset

func (x *GetVcIssueLogsResponse) Reset()

func (*GetVcIssueLogsResponse) String

func (x *GetVcIssueLogsResponse) String() string

type GetVcIssuersRequest

type GetVcIssuersRequest struct {

	// 持证人
	Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVcIssuersRequest) Descriptor deprecated

func (*GetVcIssuersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVcIssuersRequest.ProtoReflect.Descriptor instead.

func (*GetVcIssuersRequest) GetHolder

func (x *GetVcIssuersRequest) GetHolder() string

func (*GetVcIssuersRequest) ProtoMessage

func (*GetVcIssuersRequest) ProtoMessage()

func (*GetVcIssuersRequest) ProtoReflect

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

func (*GetVcIssuersRequest) Reset

func (x *GetVcIssuersRequest) Reset()

func (*GetVcIssuersRequest) String

func (x *GetVcIssuersRequest) String() string

type GetVcIssuersResponse

type GetVcIssuersResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 发行者DID列表
	Data *GetVcIssuersResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVcIssuersResponse) Descriptor deprecated

func (*GetVcIssuersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetVcIssuersResponse.ProtoReflect.Descriptor instead.

func (*GetVcIssuersResponse) GetCode

func (x *GetVcIssuersResponse) GetCode() int32

func (*GetVcIssuersResponse) GetData

func (*GetVcIssuersResponse) GetMsg

func (x *GetVcIssuersResponse) GetMsg() string

func (*GetVcIssuersResponse) ProtoMessage

func (*GetVcIssuersResponse) ProtoMessage()

func (*GetVcIssuersResponse) ProtoReflect

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

func (*GetVcIssuersResponse) Reset

func (x *GetVcIssuersResponse) Reset()

func (*GetVcIssuersResponse) String

func (x *GetVcIssuersResponse) String() string

type GetVcIssuersResponseData

type GetVcIssuersResponseData struct {
	Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVcIssuersResponseData) Descriptor deprecated

func (*GetVcIssuersResponseData) Descriptor() ([]byte, []int)

Deprecated: Use GetVcIssuersResponseData.ProtoReflect.Descriptor instead.

func (*GetVcIssuersResponseData) GetIssuers

func (x *GetVcIssuersResponseData) GetIssuers() []string

func (*GetVcIssuersResponseData) ProtoMessage

func (*GetVcIssuersResponseData) ProtoMessage()

func (*GetVcIssuersResponseData) ProtoReflect

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

func (*GetVcIssuersResponseData) Reset

func (x *GetVcIssuersResponseData) Reset()

func (*GetVcIssuersResponseData) String

func (x *GetVcIssuersResponseData) String() string

type HealthRequest

type HealthRequest struct {
	// contains filtered or unexported fields
}

func (*HealthRequest) Descriptor deprecated

func (*HealthRequest) Descriptor() ([]byte, []int)

Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) ProtoReflect

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

func (*HealthRequest) Reset

func (x *HealthRequest) Reset()

func (*HealthRequest) String

func (x *HealthRequest) String() string

type HealthResponse

type HealthResponse struct {
	Version   string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	BuildTime string `protobuf:"bytes,3,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
	GitBranch string `protobuf:"bytes,4,opt,name=gitBranch,proto3" json:"gitBranch,omitempty"`
	GitCommit string `protobuf:"bytes,5,opt,name=gitCommit,proto3" json:"gitCommit,omitempty"`
	StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"`
	Now       string `protobuf:"bytes,7,opt,name=now,proto3" json:"now,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthResponse) Descriptor deprecated

func (*HealthResponse) Descriptor() ([]byte, []int)

Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.

func (*HealthResponse) GetBuildTime

func (x *HealthResponse) GetBuildTime() string

func (*HealthResponse) GetGitBranch

func (x *HealthResponse) GetGitBranch() string

func (*HealthResponse) GetGitCommit

func (x *HealthResponse) GetGitCommit() string

func (*HealthResponse) GetName

func (x *HealthResponse) GetName() string

func (*HealthResponse) GetNow

func (x *HealthResponse) GetNow() string

func (*HealthResponse) GetStartTime

func (x *HealthResponse) GetStartTime() string

func (*HealthResponse) GetVersion

func (x *HealthResponse) GetVersion() string

func (*HealthResponse) ProtoMessage

func (*HealthResponse) ProtoMessage()

func (*HealthResponse) ProtoReflect

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

func (*HealthResponse) Reset

func (x *HealthResponse) Reset()

func (*HealthResponse) String

func (x *HealthResponse) String() string

type HealthServiceClient

type HealthServiceClient interface {
	Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
}

HealthServiceClient is the client API for HealthService 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 NewHealthServiceClient

func NewHealthServiceClient(cc grpc.ClientConnInterface) HealthServiceClient

type HealthServiceServer

type HealthServiceServer interface {
	Health(context.Context, *HealthRequest) (*HealthResponse, error)
	// contains filtered or unexported methods
}

HealthServiceServer is the server API for HealthService service. All implementations must embed UnimplementedHealthServiceServer for forward compatibility

type ListTrustIssuerRequest

type ListTrustIssuerRequest struct {

	// 分页对象
	Page *page.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键词
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTrustIssuerRequest) Descriptor deprecated

func (*ListTrustIssuerRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTrustIssuerRequest.ProtoReflect.Descriptor instead.

func (*ListTrustIssuerRequest) GetKeyword

func (x *ListTrustIssuerRequest) GetKeyword() string

func (*ListTrustIssuerRequest) GetPage

func (x *ListTrustIssuerRequest) GetPage() *page.Page

func (*ListTrustIssuerRequest) ProtoMessage

func (*ListTrustIssuerRequest) ProtoMessage()

func (*ListTrustIssuerRequest) ProtoReflect

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

func (*ListTrustIssuerRequest) Reset

func (x *ListTrustIssuerRequest) Reset()

func (*ListTrustIssuerRequest) String

func (x *ListTrustIssuerRequest) String() string

type ListTrustIssuerResponse

type ListTrustIssuerResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 信任的发行者列表
	Data *ListTrustIssuerResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTrustIssuerResponse) Descriptor deprecated

func (*ListTrustIssuerResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTrustIssuerResponse.ProtoReflect.Descriptor instead.

func (*ListTrustIssuerResponse) GetCode

func (x *ListTrustIssuerResponse) GetCode() int32

func (*ListTrustIssuerResponse) GetData

func (*ListTrustIssuerResponse) GetMsg

func (x *ListTrustIssuerResponse) GetMsg() string

func (*ListTrustIssuerResponse) ProtoMessage

func (*ListTrustIssuerResponse) ProtoMessage()

func (*ListTrustIssuerResponse) ProtoReflect

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

func (*ListTrustIssuerResponse) Reset

func (x *ListTrustIssuerResponse) Reset()

func (*ListTrustIssuerResponse) String

func (x *ListTrustIssuerResponse) String() string

type ListTrustIssuerResponseData

type ListTrustIssuerResponseData struct {

	// 总条数
	Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 信任的发行者列表
	List []string `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTrustIssuerResponseData) Descriptor deprecated

func (*ListTrustIssuerResponseData) Descriptor() ([]byte, []int)

Deprecated: Use ListTrustIssuerResponseData.ProtoReflect.Descriptor instead.

func (*ListTrustIssuerResponseData) GetList

func (x *ListTrustIssuerResponseData) GetList() []string

func (*ListTrustIssuerResponseData) GetTotal

func (x *ListTrustIssuerResponseData) GetTotal() int32

func (*ListTrustIssuerResponseData) ProtoMessage

func (*ListTrustIssuerResponseData) ProtoMessage()

func (*ListTrustIssuerResponseData) ProtoReflect

func (*ListTrustIssuerResponseData) Reset

func (x *ListTrustIssuerResponseData) Reset()

func (*ListTrustIssuerResponseData) String

func (x *ListTrustIssuerResponseData) String() string

type LongPlaintext

type LongPlaintext struct {

	// DID
	Type ProofType `protobuf:"varint,1,opt,name=type,proto3,enum=did.ProofType" json:"type,omitempty"`
	// 原文信息
	Plaintext []byte `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

func (*LongPlaintext) Descriptor deprecated

func (*LongPlaintext) Descriptor() ([]byte, []int)

Deprecated: Use LongPlaintext.ProtoReflect.Descriptor instead.

func (*LongPlaintext) GetPlaintext

func (x *LongPlaintext) GetPlaintext() []byte

func (*LongPlaintext) GetType

func (x *LongPlaintext) GetType() ProofType

func (*LongPlaintext) ProtoMessage

func (*LongPlaintext) ProtoMessage()

func (*LongPlaintext) ProtoReflect

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

func (*LongPlaintext) Reset

func (x *LongPlaintext) Reset()

func (*LongPlaintext) String

func (x *LongPlaintext) String() string

type LongProof

type LongProof struct {

	// 注册类型
	Type ProofType `protobuf:"varint,1,opt,name=type,proto3,enum=did.ProofType" json:"type,omitempty"`
	// 证明结构
	Proof *core.SODProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*LongProof) Descriptor deprecated

func (*LongProof) Descriptor() ([]byte, []int)

Deprecated: Use LongProof.ProtoReflect.Descriptor instead.

func (*LongProof) GetProof

func (x *LongProof) GetProof() *core.SODProof

func (*LongProof) GetType

func (x *LongProof) GetType() ProofType

func (*LongProof) ProtoMessage

func (*LongProof) ProtoMessage()

func (*LongProof) ProtoReflect

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

func (*LongProof) Reset

func (x *LongProof) Reset()

func (*LongProof) String

func (x *LongProof) String() string

type OneVpResponse

type OneVpResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VP结构
	Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

OneVpResponse 查询一个VP

func (*OneVpResponse) Descriptor deprecated

func (*OneVpResponse) Descriptor() ([]byte, []int)

Deprecated: Use OneVpResponse.ProtoReflect.Descriptor instead.

func (*OneVpResponse) GetCode

func (x *OneVpResponse) GetCode() int32

func (*OneVpResponse) GetData

func (x *OneVpResponse) GetData() string

func (*OneVpResponse) GetMsg

func (x *OneVpResponse) GetMsg() string

func (*OneVpResponse) ProtoMessage

func (*OneVpResponse) ProtoMessage()

func (*OneVpResponse) ProtoReflect

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

func (*OneVpResponse) Reset

func (x *OneVpResponse) Reset()

func (*OneVpResponse) String

func (x *OneVpResponse) String() string

type ProofType

type ProofType int32
const (
	// 生成Document
	ProofType_RegisterDocument ProofType = 0
	// 生成Ctid签名原文
	ProofType_CtidBindCert ProofType = 1
	// 生成 CtidVC签名原文
	ProofType_CtidRealNameVC ProofType = 2
	// 生成 验证机构AppId
	ProofType_VerifyVP ProofType = 3
	// 生成 更新Document公钥
	ProofType_UpdateDocumentVerificationMethod ProofType = 4
	// 生成 更新Document验证权限
	ProofType_UpdateDocumentAuthentication ProofType = 5
	// 生成 更新Document控制方
	ProofType_UpdateDocumentController ProofType = 6
	// 生成 更新Document外部DID绑定
	ProofType_UpdateDocumentUnionId ProofType = 7
	// 生成 更新Document服务
	ProofType_UpdateDocumentService ProofType = 8
)

func (ProofType) Descriptor

func (ProofType) Descriptor() protoreflect.EnumDescriptor

func (ProofType) Enum

func (x ProofType) Enum() *ProofType

func (ProofType) EnumDescriptor deprecated

func (ProofType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProofType.Descriptor instead.

func (ProofType) Number

func (x ProofType) Number() protoreflect.EnumNumber

func (ProofType) String

func (x ProofType) String() string

func (ProofType) Type

type TrustIssuerRequest

type TrustIssuerRequest struct {

	// 签发机构DID
	Did []string `protobuf:"bytes,1,rep,name=did,proto3" json:"did,omitempty"`
	// contains filtered or unexported fields
}

信任的发行者服务请求

func (*TrustIssuerRequest) Descriptor deprecated

func (*TrustIssuerRequest) Descriptor() ([]byte, []int)

Deprecated: Use TrustIssuerRequest.ProtoReflect.Descriptor instead.

func (*TrustIssuerRequest) GetDid

func (x *TrustIssuerRequest) GetDid() []string

func (*TrustIssuerRequest) ProtoMessage

func (*TrustIssuerRequest) ProtoMessage()

func (*TrustIssuerRequest) ProtoReflect

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

func (*TrustIssuerRequest) Reset

func (x *TrustIssuerRequest) Reset()

func (*TrustIssuerRequest) String

func (x *TrustIssuerRequest) String() string

type TrustIssuerResponse

type TrustIssuerResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

信任的发行者服务响应

func (*TrustIssuerResponse) Descriptor deprecated

func (*TrustIssuerResponse) Descriptor() ([]byte, []int)

Deprecated: Use TrustIssuerResponse.ProtoReflect.Descriptor instead.

func (*TrustIssuerResponse) GetCode

func (x *TrustIssuerResponse) GetCode() int32

func (*TrustIssuerResponse) GetMsg

func (x *TrustIssuerResponse) GetMsg() string

func (*TrustIssuerResponse) ProtoMessage

func (*TrustIssuerResponse) ProtoMessage()

func (*TrustIssuerResponse) ProtoReflect

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

func (*TrustIssuerResponse) Reset

func (x *TrustIssuerResponse) Reset()

func (*TrustIssuerResponse) String

func (x *TrustIssuerResponse) String() string

type TrustIssuerServiceClient

type TrustIssuerServiceClient interface {
	// 添加信任的发行者
	Add(ctx context.Context, in *TrustIssuerRequest, opts ...grpc.CallOption) (*TrustIssuerResponse, error)
	// 删除信任的发行者
	Delete(ctx context.Context, in *TrustIssuerRequest, opts ...grpc.CallOption) (*TrustIssuerResponse, error)
	// 查询信任的发行者
	FindList(ctx context.Context, in *ListTrustIssuerRequest, opts ...grpc.CallOption) (*ListTrustIssuerResponse, error)
}

TrustIssuerServiceClient is the client API for TrustIssuerService 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 NewTrustIssuerServiceClient

func NewTrustIssuerServiceClient(cc grpc.ClientConnInterface) TrustIssuerServiceClient

type TrustIssuerServiceServer

type TrustIssuerServiceServer interface {
	// 添加信任的发行者
	Add(context.Context, *TrustIssuerRequest) (*TrustIssuerResponse, error)
	// 删除信任的发行者
	Delete(context.Context, *TrustIssuerRequest) (*TrustIssuerResponse, error)
	// 查询信任的发行者
	FindList(context.Context, *ListTrustIssuerRequest) (*ListTrustIssuerResponse, error)
	// contains filtered or unexported methods
}

TrustIssuerServiceServer is the server API for TrustIssuerService service. All implementations must embed UnimplementedTrustIssuerServiceServer for forward compatibility

type UnimplementedBlackListServiceServer

type UnimplementedBlackListServiceServer struct {
}

UnimplementedBlackListServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBlackListServiceServer) CheckBlackList

type UnimplementedDidServiceServer

type UnimplementedDidServiceServer struct {
}

UnimplementedDidServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDidServiceServer) Generate

func (UnimplementedDidServiceServer) Register

type UnimplementedDocumentServiceServer

type UnimplementedDocumentServiceServer struct {
}

UnimplementedDocumentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDocumentServiceServer) AddPublicKey

func (UnimplementedDocumentServiceServer) DeletePublicKey

func (UnimplementedDocumentServiceServer) GetDocument

func (UnimplementedDocumentServiceServer) GetDocumentByAddress

func (UnimplementedDocumentServiceServer) GetListDocument

func (UnimplementedDocumentServiceServer) Import

func (UnimplementedDocumentServiceServer) Register

func (UnimplementedDocumentServiceServer) UpdateDocument

type UnimplementedGenerateServiceServer

type UnimplementedGenerateServiceServer struct {
}

UnimplementedGenerateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGenerateServiceServer) CtidBindCert

func (UnimplementedGenerateServiceServer) CtidRealNameVC

func (UnimplementedGenerateServiceServer) RegisterDocument

func (UnimplementedGenerateServiceServer) UpdateDocumentAuthentication

func (UnimplementedGenerateServiceServer) UpdateDocumentController

func (UnimplementedGenerateServiceServer) UpdateDocumentService

func (UnimplementedGenerateServiceServer) UpdateDocumentUnionId

func (UnimplementedGenerateServiceServer) UpdateDocumentVerificationMethod

func (UnimplementedGenerateServiceServer) VerifyVP

type UnimplementedHealthServiceServer

type UnimplementedHealthServiceServer struct {
}

UnimplementedHealthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHealthServiceServer) Health

type UnimplementedTrustIssuerServiceServer

type UnimplementedTrustIssuerServiceServer struct {
}

UnimplementedTrustIssuerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTrustIssuerServiceServer) Add

func (UnimplementedTrustIssuerServiceServer) Delete

func (UnimplementedTrustIssuerServiceServer) FindList

type UnimplementedVcIssuerLogServiceServer

type UnimplementedVcIssuerLogServiceServer struct {
}

UnimplementedVcIssuerLogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVcIssuerLogServiceServer) GetVcIssueLogs

func (UnimplementedVcIssuerLogServiceServer) GetVcIssuers

func (UnimplementedVcIssuerLogServiceServer) VcIssuerLog

type UnimplementedVcRevokeListServiceServer

type UnimplementedVcRevokeListServiceServer struct {
}

UnimplementedVcRevokeListServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVcRevokeListServiceServer) CheckVcRevokeList

type UnimplementedVcServiceServer

type UnimplementedVcServiceServer struct {
}

UnimplementedVcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVcServiceServer) FindCompanyNameByDID

func (UnimplementedVcServiceServer) FindDIDByCompanyName

func (UnimplementedVcServiceServer) Issue

func (UnimplementedVcServiceServer) List

func (UnimplementedVcServiceServer) Revoke

type UnimplementedVcTemplateServiceServer

type UnimplementedVcTemplateServiceServer struct {
}

UnimplementedVcTemplateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVcTemplateServiceServer) Create

func (UnimplementedVcTemplateServiceServer) List

func (UnimplementedVcTemplateServiceServer) One

func (UnimplementedVcTemplateServiceServer) Upgrade

type UnimplementedVerifyServiceServer

type UnimplementedVerifyServiceServer struct {
}

UnimplementedVerifyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVerifyServiceServer) Vp

type UnimplementedVpServiceServer

type UnimplementedVpServiceServer struct {
}

UnimplementedVpServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVpServiceServer) One

type UnsafeBlackListServiceServer

type UnsafeBlackListServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBlackListServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlackListServiceServer will result in compilation errors.

type UnsafeDidServiceServer

type UnsafeDidServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDidServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DidServiceServer will result in compilation errors.

type UnsafeDocumentServiceServer

type UnsafeDocumentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDocumentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DocumentServiceServer will result in compilation errors.

type UnsafeGenerateServiceServer

type UnsafeGenerateServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGenerateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GenerateServiceServer will result in compilation errors.

type UnsafeHealthServiceServer

type UnsafeHealthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeHealthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthServiceServer will result in compilation errors.

type UnsafeTrustIssuerServiceServer

type UnsafeTrustIssuerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTrustIssuerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrustIssuerServiceServer will result in compilation errors.

type UnsafeVcIssuerLogServiceServer

type UnsafeVcIssuerLogServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVcIssuerLogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VcIssuerLogServiceServer will result in compilation errors.

type UnsafeVcRevokeListServiceServer

type UnsafeVcRevokeListServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVcRevokeListServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VcRevokeListServiceServer will result in compilation errors.

type UnsafeVcServiceServer

type UnsafeVcServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VcServiceServer will result in compilation errors.

type UnsafeVcTemplateServiceServer

type UnsafeVcTemplateServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVcTemplateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VcTemplateServiceServer will result in compilation errors.

type UnsafeVerifyServiceServer

type UnsafeVerifyServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVerifyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VerifyServiceServer will result in compilation errors.

type UnsafeVpServiceServer

type UnsafeVpServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeVpServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VpServiceServer will result in compilation errors.

type UpdateDocumentAction

type UpdateDocumentAction int32
const (
	UpdateDocumentAction_Add    UpdateDocumentAction = 0
	UpdateDocumentAction_Remove UpdateDocumentAction = 1
)

func (UpdateDocumentAction) Descriptor

func (UpdateDocumentAction) Enum

func (UpdateDocumentAction) EnumDescriptor deprecated

func (UpdateDocumentAction) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateDocumentAction.Descriptor instead.

func (UpdateDocumentAction) Number

func (UpdateDocumentAction) String

func (x UpdateDocumentAction) String() string

func (UpdateDocumentAction) Type

type UpdateDocumentServiceRequest

type UpdateDocumentServiceRequest struct {

	// DID
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// 服务端点
	Service *core.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	// 操作
	Action UpdateDocumentAction `protobuf:"varint,3,opt,name=action,proto3,enum=did.UpdateDocumentAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

生成更新Document外部DID绑定 请求

func (*UpdateDocumentServiceRequest) Descriptor deprecated

func (*UpdateDocumentServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDocumentServiceRequest.ProtoReflect.Descriptor instead.

func (*UpdateDocumentServiceRequest) GetAction

func (*UpdateDocumentServiceRequest) GetDid

func (*UpdateDocumentServiceRequest) GetService

func (x *UpdateDocumentServiceRequest) GetService() *core.Service

func (*UpdateDocumentServiceRequest) ProtoMessage

func (*UpdateDocumentServiceRequest) ProtoMessage()

func (*UpdateDocumentServiceRequest) ProtoReflect

func (*UpdateDocumentServiceRequest) Reset

func (x *UpdateDocumentServiceRequest) Reset()

func (*UpdateDocumentServiceRequest) String

type VcIssueLogRequest

type VcIssueLogRequest struct {

	// 持证人
	Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"`
	// 发证人
	Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// 证件ID
	VcId string `protobuf:"bytes,3,opt,name=vcId,proto3" json:"vcId,omitempty"`
	// 证件类型
	TemplateId string `protobuf:"bytes,4,opt,name=templateId,proto3" json:"templateId,omitempty"`
	// contains filtered or unexported fields
}

机构签发VC关系映射请求

func (*VcIssueLogRequest) Descriptor deprecated

func (*VcIssueLogRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueLogRequest.ProtoReflect.Descriptor instead.

func (*VcIssueLogRequest) GetHolder

func (x *VcIssueLogRequest) GetHolder() string

func (*VcIssueLogRequest) GetIssuer

func (x *VcIssueLogRequest) GetIssuer() string

func (*VcIssueLogRequest) GetTemplateId

func (x *VcIssueLogRequest) GetTemplateId() string

func (*VcIssueLogRequest) GetVcId

func (x *VcIssueLogRequest) GetVcId() string

func (*VcIssueLogRequest) ProtoMessage

func (*VcIssueLogRequest) ProtoMessage()

func (*VcIssueLogRequest) ProtoReflect

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

func (*VcIssueLogRequest) Reset

func (x *VcIssueLogRequest) Reset()

func (*VcIssueLogRequest) String

func (x *VcIssueLogRequest) String() string

type VcIssueLogResponse

type VcIssueLogResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

VcIssueResponse 机构签发VC关系映射响应

func (*VcIssueLogResponse) Descriptor deprecated

func (*VcIssueLogResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueLogResponse.ProtoReflect.Descriptor instead.

func (*VcIssueLogResponse) GetCode

func (x *VcIssueLogResponse) GetCode() int32

func (*VcIssueLogResponse) GetMsg

func (x *VcIssueLogResponse) GetMsg() string

func (*VcIssueLogResponse) ProtoMessage

func (*VcIssueLogResponse) ProtoMessage()

func (*VcIssueLogResponse) ProtoReflect

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

func (*VcIssueLogResponse) Reset

func (x *VcIssueLogResponse) Reset()

func (*VcIssueLogResponse) String

func (x *VcIssueLogResponse) String() string

type VcIssueLogsDetail

type VcIssueLogsDetail struct {

	// id
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 持证人
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// 发证人
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// 证件ID
	VcId string `protobuf:"bytes,4,opt,name=vcId,proto3" json:"vcId,omitempty"`
	// 证件类型
	TemplateId string `protobuf:"bytes,5,opt,name=templateId,proto3" json:"templateId,omitempty"`
	// contains filtered or unexported fields
}

func (*VcIssueLogsDetail) Descriptor deprecated

func (*VcIssueLogsDetail) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueLogsDetail.ProtoReflect.Descriptor instead.

func (*VcIssueLogsDetail) GetHolder

func (x *VcIssueLogsDetail) GetHolder() string

func (*VcIssueLogsDetail) GetId

func (x *VcIssueLogsDetail) GetId() int32

func (*VcIssueLogsDetail) GetIssuer

func (x *VcIssueLogsDetail) GetIssuer() string

func (*VcIssueLogsDetail) GetTemplateId

func (x *VcIssueLogsDetail) GetTemplateId() string

func (*VcIssueLogsDetail) GetVcId

func (x *VcIssueLogsDetail) GetVcId() string

func (*VcIssueLogsDetail) ProtoMessage

func (*VcIssueLogsDetail) ProtoMessage()

func (*VcIssueLogsDetail) ProtoReflect

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

func (*VcIssueLogsDetail) Reset

func (x *VcIssueLogsDetail) Reset()

func (*VcIssueLogsDetail) String

func (x *VcIssueLogsDetail) String() string

type VcIssueLogsResponseData

type VcIssueLogsResponseData struct {

	// 总条数
	Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// VC模板详情
	List []*VcIssueLogsDetail `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*VcIssueLogsResponseData) Descriptor deprecated

func (*VcIssueLogsResponseData) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueLogsResponseData.ProtoReflect.Descriptor instead.

func (*VcIssueLogsResponseData) GetList

func (*VcIssueLogsResponseData) GetTotal

func (x *VcIssueLogsResponseData) GetTotal() int32

func (*VcIssueLogsResponseData) ProtoMessage

func (*VcIssueLogsResponseData) ProtoMessage()

func (*VcIssueLogsResponseData) ProtoReflect

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

func (*VcIssueLogsResponseData) Reset

func (x *VcIssueLogsResponseData) Reset()

func (*VcIssueLogsResponseData) String

func (x *VcIssueLogsResponseData) String() string

type VcIssueRequest

type VcIssueRequest struct {
	TemplateId        string       `protobuf:"bytes,1,opt,name=templateId,proto3" json:"templateId,omitempty"`
	Holder            string       `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	ExpirationDate    string       `protobuf:"bytes,3,opt,name=expirationDate,proto3" json:"expirationDate,omitempty"`
	IssuanceDate      string       `protobuf:"bytes,4,opt,name=issuanceDate,proto3" json:"issuanceDate,omitempty"`
	CredentialSubject []byte       `protobuf:"bytes,5,opt,name=credentialSubject,proto3" json:"credentialSubject,omitempty"`
	Proof             []*LongProof `protobuf:"bytes,6,rep,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*VcIssueRequest) Descriptor deprecated

func (*VcIssueRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueRequest.ProtoReflect.Descriptor instead.

func (*VcIssueRequest) GetCredentialSubject

func (x *VcIssueRequest) GetCredentialSubject() []byte

func (*VcIssueRequest) GetExpirationDate

func (x *VcIssueRequest) GetExpirationDate() string

func (*VcIssueRequest) GetHolder

func (x *VcIssueRequest) GetHolder() string

func (*VcIssueRequest) GetIssuanceDate

func (x *VcIssueRequest) GetIssuanceDate() string

func (*VcIssueRequest) GetProof

func (x *VcIssueRequest) GetProof() []*LongProof

func (*VcIssueRequest) GetTemplateId

func (x *VcIssueRequest) GetTemplateId() string

func (*VcIssueRequest) ProtoMessage

func (*VcIssueRequest) ProtoMessage()

func (*VcIssueRequest) ProtoReflect

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

func (*VcIssueRequest) Reset

func (x *VcIssueRequest) Reset()

func (*VcIssueRequest) String

func (x *VcIssueRequest) String() string

type VcIssueResponse

type VcIssueResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VC
	Data *VcIssueResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VcIssueResponse) Descriptor deprecated

func (*VcIssueResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueResponse.ProtoReflect.Descriptor instead.

func (*VcIssueResponse) GetCode

func (x *VcIssueResponse) GetCode() int32

func (*VcIssueResponse) GetData

func (x *VcIssueResponse) GetData() *VcIssueResponseData

func (*VcIssueResponse) GetMsg

func (x *VcIssueResponse) GetMsg() string

func (*VcIssueResponse) ProtoMessage

func (*VcIssueResponse) ProtoMessage()

func (*VcIssueResponse) ProtoReflect

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

func (*VcIssueResponse) Reset

func (x *VcIssueResponse) Reset()

func (*VcIssueResponse) String

func (x *VcIssueResponse) String() string

type VcIssueResponseData

type VcIssueResponseData struct {
	Vc string `protobuf:"bytes,1,opt,name=vc,proto3" json:"vc,omitempty"`
	// contains filtered or unexported fields
}

func (*VcIssueResponseData) Descriptor deprecated

func (*VcIssueResponseData) Descriptor() ([]byte, []int)

Deprecated: Use VcIssueResponseData.ProtoReflect.Descriptor instead.

func (*VcIssueResponseData) GetVc

func (x *VcIssueResponseData) GetVc() string

func (*VcIssueResponseData) ProtoMessage

func (*VcIssueResponseData) ProtoMessage()

func (*VcIssueResponseData) ProtoReflect

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

func (*VcIssueResponseData) Reset

func (x *VcIssueResponseData) Reset()

func (*VcIssueResponseData) String

func (x *VcIssueResponseData) String() string

type VcIssuerLogServiceClient

type VcIssuerLogServiceClient interface {
	// 机构签发VC关系映射接口,记录vc发行日志
	VcIssuerLog(ctx context.Context, in *VcIssueLogRequest, opts ...grpc.CallOption) (*VcIssueLogResponse, error)
	// 机构签发VC关系映射接口,获取vc发行日志
	GetVcIssueLogs(ctx context.Context, in *GetVcIssueLogsRequest, opts ...grpc.CallOption) (*GetVcIssueLogsResponse, error)
	// 根据持证人DID获取vc发行者DID列表
	GetVcIssuers(ctx context.Context, in *GetVcIssuersRequest, opts ...grpc.CallOption) (*GetVcIssuersResponse, error)
}

VcIssuerLogServiceClient is the client API for VcIssuerLogService 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 NewVcIssuerLogServiceClient

func NewVcIssuerLogServiceClient(cc grpc.ClientConnInterface) VcIssuerLogServiceClient

type VcIssuerLogServiceServer

type VcIssuerLogServiceServer interface {
	// 机构签发VC关系映射接口,记录vc发行日志
	VcIssuerLog(context.Context, *VcIssueLogRequest) (*VcIssueLogResponse, error)
	// 机构签发VC关系映射接口,获取vc发行日志
	GetVcIssueLogs(context.Context, *GetVcIssueLogsRequest) (*GetVcIssueLogsResponse, error)
	// 根据持证人DID获取vc发行者DID列表
	GetVcIssuers(context.Context, *GetVcIssuersRequest) (*GetVcIssuersResponse, error)
	// contains filtered or unexported methods
}

VcIssuerLogServiceServer is the server API for VcIssuerLogService service. All implementations must embed UnimplementedVcIssuerLogServiceServer for forward compatibility

type VcListRequest

type VcListRequest struct {

	// 分页
	Page *page.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 持证人
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// 签发者
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// 模板ID
	TemplateId string `protobuf:"bytes,4,opt,name=templateId,proto3" json:"templateId,omitempty"`
	// Vc状态
	Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*VcListRequest) Descriptor deprecated

func (*VcListRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcListRequest.ProtoReflect.Descriptor instead.

func (*VcListRequest) GetHolder

func (x *VcListRequest) GetHolder() string

func (*VcListRequest) GetIssuer

func (x *VcListRequest) GetIssuer() string

func (*VcListRequest) GetPage

func (x *VcListRequest) GetPage() *page.Page

func (*VcListRequest) GetStatus

func (x *VcListRequest) GetStatus() int32

func (*VcListRequest) GetTemplateId

func (x *VcListRequest) GetTemplateId() string

func (*VcListRequest) ProtoMessage

func (*VcListRequest) ProtoMessage()

func (*VcListRequest) ProtoReflect

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

func (*VcListRequest) Reset

func (x *VcListRequest) Reset()

func (*VcListRequest) String

func (x *VcListRequest) String() string

type VcListResponse

type VcListResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VC列表
	Data *VcListResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VcListResponse) Descriptor deprecated

func (*VcListResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcListResponse.ProtoReflect.Descriptor instead.

func (*VcListResponse) GetCode

func (x *VcListResponse) GetCode() int32

func (*VcListResponse) GetData

func (x *VcListResponse) GetData() *VcListResponseData

func (*VcListResponse) GetMsg

func (x *VcListResponse) GetMsg() string

func (*VcListResponse) ProtoMessage

func (*VcListResponse) ProtoMessage()

func (*VcListResponse) ProtoReflect

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

func (*VcListResponse) Reset

func (x *VcListResponse) Reset()

func (*VcListResponse) String

func (x *VcListResponse) String() string

type VcListResponseData

type VcListResponseData struct {

	// 分页
	Page *page.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// VC列表
	List []*VcListResponseItem `protobuf:"bytes,5,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*VcListResponseData) Descriptor deprecated

func (*VcListResponseData) Descriptor() ([]byte, []int)

Deprecated: Use VcListResponseData.ProtoReflect.Descriptor instead.

func (*VcListResponseData) GetList

func (x *VcListResponseData) GetList() []*VcListResponseItem

func (*VcListResponseData) GetPage

func (x *VcListResponseData) GetPage() *page.Page

func (*VcListResponseData) ProtoMessage

func (*VcListResponseData) ProtoMessage()

func (*VcListResponseData) ProtoReflect

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

func (*VcListResponseData) Reset

func (x *VcListResponseData) Reset()

func (*VcListResponseData) String

func (x *VcListResponseData) String() string

type VcListResponseItem

type VcListResponseItem struct {

	// Vc状态
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// VC
	Vc *core.VerifiableCredential `protobuf:"bytes,2,opt,name=vc,proto3" json:"vc,omitempty"`
	// contains filtered or unexported fields
}

func (*VcListResponseItem) Descriptor deprecated

func (*VcListResponseItem) Descriptor() ([]byte, []int)

Deprecated: Use VcListResponseItem.ProtoReflect.Descriptor instead.

func (*VcListResponseItem) GetStatus

func (x *VcListResponseItem) GetStatus() int32

func (*VcListResponseItem) GetVc

func (*VcListResponseItem) ProtoMessage

func (*VcListResponseItem) ProtoMessage()

func (*VcListResponseItem) ProtoReflect

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

func (*VcListResponseItem) Reset

func (x *VcListResponseItem) Reset()

func (*VcListResponseItem) String

func (x *VcListResponseItem) String() string

type VcRevokeData

type VcRevokeData struct {
	VcId   string `protobuf:"bytes,1,opt,name=vcId,proto3" json:"vcId,omitempty"`
	Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// contains filtered or unexported fields
}

func (*VcRevokeData) Descriptor deprecated

func (*VcRevokeData) Descriptor() ([]byte, []int)

Deprecated: Use VcRevokeData.ProtoReflect.Descriptor instead.

func (*VcRevokeData) GetIssuer

func (x *VcRevokeData) GetIssuer() string

func (*VcRevokeData) GetVcId

func (x *VcRevokeData) GetVcId() string

func (*VcRevokeData) ProtoMessage

func (*VcRevokeData) ProtoMessage()

func (*VcRevokeData) ProtoReflect

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

func (*VcRevokeData) Reset

func (x *VcRevokeData) Reset()

func (*VcRevokeData) String

func (x *VcRevokeData) String() string

type VcRevokeListServiceClient

type VcRevokeListServiceClient interface {
	CheckVcRevokeList(ctx context.Context, in *CheckVcRevokeListRequest, opts ...grpc.CallOption) (*CheckVcRevokeListResponse, error)
}

VcRevokeListServiceClient is the client API for VcRevokeListService 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 NewVcRevokeListServiceClient

func NewVcRevokeListServiceClient(cc grpc.ClientConnInterface) VcRevokeListServiceClient

type VcRevokeListServiceServer

type VcRevokeListServiceServer interface {
	CheckVcRevokeList(context.Context, *CheckVcRevokeListRequest) (*CheckVcRevokeListResponse, error)
	// contains filtered or unexported methods
}

VcRevokeListServiceServer is the server API for VcRevokeListService service. All implementations must embed UnimplementedVcRevokeListServiceServer for forward compatibility

type VcRevokeRequest

type VcRevokeRequest struct {

	// 分页
	VcIds []*VcRevokeData `protobuf:"bytes,1,rep,name=vcIds,proto3" json:"vcIds,omitempty"`
	// contains filtered or unexported fields
}

func (*VcRevokeRequest) Descriptor deprecated

func (*VcRevokeRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcRevokeRequest.ProtoReflect.Descriptor instead.

func (*VcRevokeRequest) GetVcIds

func (x *VcRevokeRequest) GetVcIds() []*VcRevokeData

func (*VcRevokeRequest) ProtoMessage

func (*VcRevokeRequest) ProtoMessage()

func (*VcRevokeRequest) ProtoReflect

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

func (*VcRevokeRequest) Reset

func (x *VcRevokeRequest) Reset()

func (*VcRevokeRequest) String

func (x *VcRevokeRequest) String() string

type VcRevokeResponse

type VcRevokeResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*VcRevokeResponse) Descriptor deprecated

func (*VcRevokeResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcRevokeResponse.ProtoReflect.Descriptor instead.

func (*VcRevokeResponse) GetCode

func (x *VcRevokeResponse) GetCode() int32

func (*VcRevokeResponse) GetMsg

func (x *VcRevokeResponse) GetMsg() string

func (*VcRevokeResponse) ProtoMessage

func (*VcRevokeResponse) ProtoMessage()

func (*VcRevokeResponse) ProtoReflect

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

func (*VcRevokeResponse) Reset

func (x *VcRevokeResponse) Reset()

func (*VcRevokeResponse) String

func (x *VcRevokeResponse) String() string

type VcServiceClient

type VcServiceClient interface {
	// 签发凭证
	Issue(ctx context.Context, in *VcIssueRequest, opts ...grpc.CallOption) (*VcIssueResponse, error)
	// 获得凭证列表
	List(ctx context.Context, in *VcListRequest, opts ...grpc.CallOption) (*VcListResponse, error)
	// 吊销凭证
	Revoke(ctx context.Context, in *VcRevokeRequest, opts ...grpc.CallOption) (*VcRevokeResponse, error)
	// 根据公司名称查询DID
	FindDIDByCompanyName(ctx context.Context, in *FindDIDByCompanyNameRequest, opts ...grpc.CallOption) (*FindDIDByCompanyNameResponse, error)
	// 根据公司名称查询DID
	FindCompanyNameByDID(ctx context.Context, in *FindCompanyNameByDIDRequest, opts ...grpc.CallOption) (*FindCompanyNameByDIDResponse, error)
}

VcServiceClient is the client API for VcService 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 NewVcServiceClient

func NewVcServiceClient(cc grpc.ClientConnInterface) VcServiceClient

type VcServiceServer

type VcServiceServer interface {
	// 签发凭证
	Issue(context.Context, *VcIssueRequest) (*VcIssueResponse, error)
	// 获得凭证列表
	List(context.Context, *VcListRequest) (*VcListResponse, error)
	// 吊销凭证
	Revoke(context.Context, *VcRevokeRequest) (*VcRevokeResponse, error)
	// 根据公司名称查询DID
	FindDIDByCompanyName(context.Context, *FindDIDByCompanyNameRequest) (*FindDIDByCompanyNameResponse, error)
	// 根据公司名称查询DID
	FindCompanyNameByDID(context.Context, *FindCompanyNameByDIDRequest) (*FindCompanyNameByDIDResponse, error)
	// contains filtered or unexported methods
}

VcServiceServer is the server API for VcService service. All implementations must embed UnimplementedVcServiceServer for forward compatibility

type VcTemplateDetail

type VcTemplateDetail struct {

	// VC模板ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// VC模板名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// VC模板版本
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// VC模板Json Schema
	Schema string `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
	// VC模板创建人DID
	Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"`
	// VC模板创建时间
	Created string `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	// VC模板状态
	Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

VC模板

func (*VcTemplateDetail) Descriptor deprecated

func (*VcTemplateDetail) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateDetail.ProtoReflect.Descriptor instead.

func (*VcTemplateDetail) GetCreated

func (x *VcTemplateDetail) GetCreated() string

func (*VcTemplateDetail) GetCreator

func (x *VcTemplateDetail) GetCreator() string

func (*VcTemplateDetail) GetId

func (x *VcTemplateDetail) GetId() string

func (*VcTemplateDetail) GetName

func (x *VcTemplateDetail) GetName() string

func (*VcTemplateDetail) GetSchema

func (x *VcTemplateDetail) GetSchema() string

func (*VcTemplateDetail) GetStatus

func (x *VcTemplateDetail) GetStatus() int32

func (*VcTemplateDetail) GetVersion

func (x *VcTemplateDetail) GetVersion() string

func (*VcTemplateDetail) ProtoMessage

func (*VcTemplateDetail) ProtoMessage()

func (*VcTemplateDetail) ProtoReflect

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

func (*VcTemplateDetail) Reset

func (x *VcTemplateDetail) Reset()

func (*VcTemplateDetail) String

func (x *VcTemplateDetail) String() string

type VcTemplateEnableRequest

type VcTemplateEnableRequest struct {

	// VC模板ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// 弃用停用
	Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
	// contains filtered or unexported fields
}

启用/停用 请求

func (*VcTemplateEnableRequest) Descriptor deprecated

func (*VcTemplateEnableRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateEnableRequest.ProtoReflect.Descriptor instead.

func (*VcTemplateEnableRequest) GetEnable

func (x *VcTemplateEnableRequest) GetEnable() bool

func (*VcTemplateEnableRequest) GetId

func (x *VcTemplateEnableRequest) GetId() string

func (*VcTemplateEnableRequest) ProtoMessage

func (*VcTemplateEnableRequest) ProtoMessage()

func (*VcTemplateEnableRequest) ProtoReflect

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

func (*VcTemplateEnableRequest) Reset

func (x *VcTemplateEnableRequest) Reset()

func (*VcTemplateEnableRequest) String

func (x *VcTemplateEnableRequest) String() string

type VcTemplateEnableResponse

type VcTemplateEnableResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

Vc模板启用/停用 响应

func (*VcTemplateEnableResponse) Descriptor deprecated

func (*VcTemplateEnableResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateEnableResponse.ProtoReflect.Descriptor instead.

func (*VcTemplateEnableResponse) GetCode

func (x *VcTemplateEnableResponse) GetCode() int32

func (*VcTemplateEnableResponse) GetMsg

func (x *VcTemplateEnableResponse) GetMsg() string

func (*VcTemplateEnableResponse) ProtoMessage

func (*VcTemplateEnableResponse) ProtoMessage()

func (*VcTemplateEnableResponse) ProtoReflect

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

func (*VcTemplateEnableResponse) Reset

func (x *VcTemplateEnableResponse) Reset()

func (*VcTemplateEnableResponse) String

func (x *VcTemplateEnableResponse) String() string

type VcTemplateId

type VcTemplateId struct {

	// VC模板ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*VcTemplateId) Descriptor deprecated

func (*VcTemplateId) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateId.ProtoReflect.Descriptor instead.

func (*VcTemplateId) GetId

func (x *VcTemplateId) GetId() string

func (*VcTemplateId) ProtoMessage

func (*VcTemplateId) ProtoMessage()

func (*VcTemplateId) ProtoReflect

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

func (*VcTemplateId) Reset

func (x *VcTemplateId) Reset()

func (*VcTemplateId) String

func (x *VcTemplateId) String() string

type VcTemplateOneResponse

type VcTemplateOneResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 模板详情
	Data *VcTemplateDetail `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VcTemplateOneResponse) Descriptor deprecated

func (*VcTemplateOneResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateOneResponse.ProtoReflect.Descriptor instead.

func (*VcTemplateOneResponse) GetCode

func (x *VcTemplateOneResponse) GetCode() int32

func (*VcTemplateOneResponse) GetData

func (*VcTemplateOneResponse) GetMsg

func (x *VcTemplateOneResponse) GetMsg() string

func (*VcTemplateOneResponse) ProtoMessage

func (*VcTemplateOneResponse) ProtoMessage()

func (*VcTemplateOneResponse) ProtoReflect

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

func (*VcTemplateOneResponse) Reset

func (x *VcTemplateOneResponse) Reset()

func (*VcTemplateOneResponse) String

func (x *VcTemplateOneResponse) String() string

type VcTemplatePageRequest

type VcTemplatePageRequest struct {

	// 分页对象
	Page *page.Page `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// 模板ID
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// 模板名称
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 模板版本
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

分页请求VcTemplate

func (*VcTemplatePageRequest) Descriptor deprecated

func (*VcTemplatePageRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplatePageRequest.ProtoReflect.Descriptor instead.

func (*VcTemplatePageRequest) GetId

func (x *VcTemplatePageRequest) GetId() string

func (*VcTemplatePageRequest) GetName

func (x *VcTemplatePageRequest) GetName() string

func (*VcTemplatePageRequest) GetPage

func (x *VcTemplatePageRequest) GetPage() *page.Page

func (*VcTemplatePageRequest) GetVersion

func (x *VcTemplatePageRequest) GetVersion() string

func (*VcTemplatePageRequest) ProtoMessage

func (*VcTemplatePageRequest) ProtoMessage()

func (*VcTemplatePageRequest) ProtoReflect

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

func (*VcTemplatePageRequest) Reset

func (x *VcTemplatePageRequest) Reset()

func (*VcTemplatePageRequest) String

func (x *VcTemplatePageRequest) String() string

type VcTemplatePageResponse

type VcTemplatePageResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 分页请求VcTemplate响应数据
	Data *VcTemplatePageResponseData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

分页请求VcTemplate响应

func (*VcTemplatePageResponse) Descriptor deprecated

func (*VcTemplatePageResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplatePageResponse.ProtoReflect.Descriptor instead.

func (*VcTemplatePageResponse) GetCode

func (x *VcTemplatePageResponse) GetCode() int32

func (*VcTemplatePageResponse) GetData

func (*VcTemplatePageResponse) GetMsg

func (x *VcTemplatePageResponse) GetMsg() string

func (*VcTemplatePageResponse) ProtoMessage

func (*VcTemplatePageResponse) ProtoMessage()

func (*VcTemplatePageResponse) ProtoReflect

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

func (*VcTemplatePageResponse) Reset

func (x *VcTemplatePageResponse) Reset()

func (*VcTemplatePageResponse) String

func (x *VcTemplatePageResponse) String() string

type VcTemplatePageResponseData

type VcTemplatePageResponseData struct {

	// page
	Page *page.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// VC模板详情
	List []*VcTemplateDetail `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

分页请求VcTemplate响应数据

func (*VcTemplatePageResponseData) Descriptor deprecated

func (*VcTemplatePageResponseData) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplatePageResponseData.ProtoReflect.Descriptor instead.

func (*VcTemplatePageResponseData) GetList

func (*VcTemplatePageResponseData) GetPage

func (x *VcTemplatePageResponseData) GetPage() *page.Page

func (*VcTemplatePageResponseData) ProtoMessage

func (*VcTemplatePageResponseData) ProtoMessage()

func (*VcTemplatePageResponseData) ProtoReflect

func (*VcTemplatePageResponseData) Reset

func (x *VcTemplatePageResponseData) Reset()

func (*VcTemplatePageResponseData) String

func (x *VcTemplatePageResponseData) String() string

type VcTemplateSaveRequest

type VcTemplateSaveRequest struct {

	// 模板名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 模板名称
	Versions string `protobuf:"bytes,2,opt,name=versions,proto3" json:"versions,omitempty"`
	// VC模板创建人DID
	Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
	// Vc类型
	VcType string `protobuf:"bytes,4,opt,name=vcType,proto3" json:"vcType,omitempty"`
	// 模板JsonSchema
	Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

VcTemplateSaveRequest 保存模板参数

func (*VcTemplateSaveRequest) Descriptor deprecated

func (*VcTemplateSaveRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateSaveRequest.ProtoReflect.Descriptor instead.

func (*VcTemplateSaveRequest) GetCreator

func (x *VcTemplateSaveRequest) GetCreator() string

func (*VcTemplateSaveRequest) GetName

func (x *VcTemplateSaveRequest) GetName() string

func (*VcTemplateSaveRequest) GetSchema

func (x *VcTemplateSaveRequest) GetSchema() string

func (*VcTemplateSaveRequest) GetVcType

func (x *VcTemplateSaveRequest) GetVcType() string

func (*VcTemplateSaveRequest) GetVersions

func (x *VcTemplateSaveRequest) GetVersions() string

func (*VcTemplateSaveRequest) ProtoMessage

func (*VcTemplateSaveRequest) ProtoMessage()

func (*VcTemplateSaveRequest) ProtoReflect

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

func (*VcTemplateSaveRequest) Reset

func (x *VcTemplateSaveRequest) Reset()

func (*VcTemplateSaveRequest) String

func (x *VcTemplateSaveRequest) String() string

type VcTemplateSaveResponse

type VcTemplateSaveResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// VC模板ID
	Data *VcTemplateId `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

VcTemplateSaveResponse 保存模板参数返回值

func (*VcTemplateSaveResponse) Descriptor deprecated

func (*VcTemplateSaveResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateSaveResponse.ProtoReflect.Descriptor instead.

func (*VcTemplateSaveResponse) GetCode

func (x *VcTemplateSaveResponse) GetCode() int32

func (*VcTemplateSaveResponse) GetData

func (x *VcTemplateSaveResponse) GetData() *VcTemplateId

func (*VcTemplateSaveResponse) GetMsg

func (x *VcTemplateSaveResponse) GetMsg() string

func (*VcTemplateSaveResponse) ProtoMessage

func (*VcTemplateSaveResponse) ProtoMessage()

func (*VcTemplateSaveResponse) ProtoReflect

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

func (*VcTemplateSaveResponse) Reset

func (x *VcTemplateSaveResponse) Reset()

func (*VcTemplateSaveResponse) String

func (x *VcTemplateSaveResponse) String() string

type VcTemplateServiceClient

type VcTemplateServiceClient interface {
	// 创建模板
	Create(ctx context.Context, in *VcTemplateSaveRequest, opts ...grpc.CallOption) (*VcTemplateSaveResponse, error)
	// 查询一条
	One(ctx context.Context, in *VcTemplateId, opts ...grpc.CallOption) (*VcTemplateOneResponse, error)
	// 分页查询
	List(ctx context.Context, in *VcTemplatePageRequest, opts ...grpc.CallOption) (*VcTemplatePageResponse, error)
	// 升级VcTemplate
	Upgrade(ctx context.Context, in *VcTemplateUpgradeRequest, opts ...grpc.CallOption) (*VcTemplateUpgradeResponse, error)
}

VcTemplateServiceClient is the client API for VcTemplateService 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 NewVcTemplateServiceClient

func NewVcTemplateServiceClient(cc grpc.ClientConnInterface) VcTemplateServiceClient

type VcTemplateServiceServer

type VcTemplateServiceServer interface {
	// 创建模板
	Create(context.Context, *VcTemplateSaveRequest) (*VcTemplateSaveResponse, error)
	// 查询一条
	One(context.Context, *VcTemplateId) (*VcTemplateOneResponse, error)
	// 分页查询
	List(context.Context, *VcTemplatePageRequest) (*VcTemplatePageResponse, error)
	// 升级VcTemplate
	Upgrade(context.Context, *VcTemplateUpgradeRequest) (*VcTemplateUpgradeResponse, error)
	// contains filtered or unexported methods
}

VcTemplateServiceServer is the server API for VcTemplateService service. All implementations must embed UnimplementedVcTemplateServiceServer for forward compatibility

type VcTemplateUpgradeRequest

type VcTemplateUpgradeRequest struct {

	// 模版id
	Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
	// 模板名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 模板名称
	Versions string `protobuf:"bytes,2,opt,name=versions,proto3" json:"versions,omitempty"`
	// VC模板创建人DID
	Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
	// Vc类型
	VcType string `protobuf:"bytes,4,opt,name=vcType,proto3" json:"vcType,omitempty"`
	// 模板JsonSchema
	Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

func (*VcTemplateUpgradeRequest) Descriptor deprecated

func (*VcTemplateUpgradeRequest) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateUpgradeRequest.ProtoReflect.Descriptor instead.

func (*VcTemplateUpgradeRequest) GetCreator

func (x *VcTemplateUpgradeRequest) GetCreator() string

func (*VcTemplateUpgradeRequest) GetId

func (x *VcTemplateUpgradeRequest) GetId() string

func (*VcTemplateUpgradeRequest) GetName

func (x *VcTemplateUpgradeRequest) GetName() string

func (*VcTemplateUpgradeRequest) GetSchema

func (x *VcTemplateUpgradeRequest) GetSchema() string

func (*VcTemplateUpgradeRequest) GetVcType

func (x *VcTemplateUpgradeRequest) GetVcType() string

func (*VcTemplateUpgradeRequest) GetVersions

func (x *VcTemplateUpgradeRequest) GetVersions() string

func (*VcTemplateUpgradeRequest) ProtoMessage

func (*VcTemplateUpgradeRequest) ProtoMessage()

func (*VcTemplateUpgradeRequest) ProtoReflect

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

func (*VcTemplateUpgradeRequest) Reset

func (x *VcTemplateUpgradeRequest) Reset()

func (*VcTemplateUpgradeRequest) String

func (x *VcTemplateUpgradeRequest) String() string

type VcTemplateUpgradeResponse

type VcTemplateUpgradeResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// 模板详情
	Data *VcTemplateDetail `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VcTemplateUpgradeResponse) Descriptor deprecated

func (*VcTemplateUpgradeResponse) Descriptor() ([]byte, []int)

Deprecated: Use VcTemplateUpgradeResponse.ProtoReflect.Descriptor instead.

func (*VcTemplateUpgradeResponse) GetCode

func (x *VcTemplateUpgradeResponse) GetCode() int32

func (*VcTemplateUpgradeResponse) GetData

func (*VcTemplateUpgradeResponse) GetMsg

func (x *VcTemplateUpgradeResponse) GetMsg() string

func (*VcTemplateUpgradeResponse) ProtoMessage

func (*VcTemplateUpgradeResponse) ProtoMessage()

func (*VcTemplateUpgradeResponse) ProtoReflect

func (*VcTemplateUpgradeResponse) Reset

func (x *VcTemplateUpgradeResponse) Reset()

func (*VcTemplateUpgradeResponse) String

func (x *VcTemplateUpgradeResponse) String() string

type VerifyResponse

type VerifyResponse struct {

	// 错误码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误信息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

验证相关返回

func (*VerifyResponse) Descriptor deprecated

func (*VerifyResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.

func (*VerifyResponse) GetCode

func (x *VerifyResponse) GetCode() int32

func (*VerifyResponse) GetMsg

func (x *VerifyResponse) GetMsg() string

func (*VerifyResponse) ProtoMessage

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) ProtoReflect

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

func (*VerifyResponse) Reset

func (x *VerifyResponse) Reset()

func (*VerifyResponse) String

func (x *VerifyResponse) String() string

type VerifyServiceClient

type VerifyServiceClient interface {
	// 验证Vp
	Vp(ctx context.Context, in *VpRequestWrapper, opts ...grpc.CallOption) (*VerifyResponse, error)
}

VerifyServiceClient is the client API for VerifyService 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 NewVerifyServiceClient

func NewVerifyServiceClient(cc grpc.ClientConnInterface) VerifyServiceClient

type VerifyServiceServer

type VerifyServiceServer interface {
	// 验证Vp
	Vp(context.Context, *VpRequestWrapper) (*VerifyResponse, error)
	// contains filtered or unexported methods
}

VerifyServiceServer is the server API for VerifyService service. All implementations must embed UnimplementedVerifyServiceServer for forward compatibility

type VpId

type VpId struct {

	// 可验证凭证ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

VpId

func (*VpId) Descriptor deprecated

func (*VpId) Descriptor() ([]byte, []int)

Deprecated: Use VpId.ProtoReflect.Descriptor instead.

func (*VpId) GetId

func (x *VpId) GetId() string

func (*VpId) ProtoMessage

func (*VpId) ProtoMessage()

func (*VpId) ProtoReflect

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

func (*VpId) Reset

func (x *VpId) Reset()

func (*VpId) String

func (x *VpId) String() string

type VpRequestWrapper

type VpRequestWrapper struct {
	Vp *core.VerifiablePresentation `protobuf:"bytes,1,opt,name=vp,proto3" json:"vp,omitempty"`
	// contains filtered or unexported fields
}

func (*VpRequestWrapper) Descriptor deprecated

func (*VpRequestWrapper) Descriptor() ([]byte, []int)

Deprecated: Use VpRequestWrapper.ProtoReflect.Descriptor instead.

func (*VpRequestWrapper) GetVp

func (*VpRequestWrapper) ProtoMessage

func (*VpRequestWrapper) ProtoMessage()

func (*VpRequestWrapper) ProtoReflect

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

func (*VpRequestWrapper) Reset

func (x *VpRequestWrapper) Reset()

func (*VpRequestWrapper) String

func (x *VpRequestWrapper) String() string

type VpServiceClient

type VpServiceClient interface {
	// 查询一个Vp
	One(ctx context.Context, in *VpId, opts ...grpc.CallOption) (*OneVpResponse, error)
}

VpServiceClient is the client API for VpService 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 NewVpServiceClient

func NewVpServiceClient(cc grpc.ClientConnInterface) VpServiceClient

type VpServiceServer

type VpServiceServer interface {
	// 查询一个Vp
	One(context.Context, *VpId) (*OneVpResponse, error)
	// contains filtered or unexported methods
}

VpServiceServer is the server API for VpService service. All implementations must embed UnimplementedVpServiceServer for forward compatibility

Source Files

  • did_c.pb.go
  • did_c_grpc.pb.go

Jump to

Keyboard shortcuts

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