Commit a934bfb6 authored by vicotor's avatar vicotor

update proto

parent 73d4928d
......@@ -23,7 +23,7 @@ enum BillingMethod {
message TaskContent {
string task_id = 1;
string task_type = 2;
TaskType task_type = 2;
string task_cmd =3;
bytes task_param = 4;
uint64 task_timestamp = 5;
......
......@@ -79,14 +79,17 @@ func (BillingMethod) EnumDescriptor() ([]byte, []int) {
}
type TaskContent struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskType TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=base.v1.TaskType" json:"task_type,omitempty"`
TaskParam []byte `protobuf:"bytes,3,opt,name=task_param,json=taskParam,proto3" json:"task_param,omitempty"`
MaxExecuteDuration uint64 `protobuf:"varint,4,opt,name=max_execute_duration,json=maxExecuteDuration,proto3" json:"max_execute_duration,omitempty"`
Model *ModelContent `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskType TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=base.v1.TaskType" json:"task_type,omitempty"`
TaskCmd string `protobuf:"bytes,3,opt,name=task_cmd,json=taskCmd,proto3" json:"task_cmd,omitempty"`
TaskParam []byte `protobuf:"bytes,4,opt,name=task_param,json=taskParam,proto3" json:"task_param,omitempty"`
TaskTimestamp uint64 `protobuf:"varint,5,opt,name=task_timestamp,json=taskTimestamp,proto3" json:"task_timestamp,omitempty"`
TaskCallback string `protobuf:"bytes,6,opt,name=task_callback,json=taskCallback,proto3" json:"task_callback,omitempty"`
TaskUid string `protobuf:"bytes,7,opt,name=task_uid,json=taskUid,proto3" json:"task_uid,omitempty"`
TaskFee string `protobuf:"bytes,8,opt,name=task_fee,json=taskFee,proto3" json:"task_fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskContent) Reset() { *m = TaskContent{} }
......@@ -127,6 +130,13 @@ func (m *TaskContent) GetTaskType() TaskType {
return TaskType_SystemTask
}
func (m *TaskContent) GetTaskCmd() string {
if m != nil {
return m.TaskCmd
}
return ""
}
func (m *TaskContent) GetTaskParam() []byte {
if m != nil {
return m.TaskParam
......@@ -134,149 +144,144 @@ func (m *TaskContent) GetTaskParam() []byte {
return nil
}
func (m *TaskContent) GetMaxExecuteDuration() uint64 {
func (m *TaskContent) GetTaskTimestamp() uint64 {
if m != nil {
return m.MaxExecuteDuration
return m.TaskTimestamp
}
return 0
}
func (m *TaskContent) GetModel() *ModelContent {
func (m *TaskContent) GetTaskCallback() string {
if m != nil {
return m.Model
return m.TaskCallback
}
return nil
return ""
}
func (m *TaskContent) GetTaskUid() string {
if m != nil {
return m.TaskUid
}
return ""
}
func (m *TaskContent) GetTaskFee() string {
if m != nil {
return m.TaskFee
}
return ""
}
func (*TaskContent) XXX_MessageName() string {
return "base.v1.TaskContent"
}
type ModelContent struct {
ModelName string `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
ModelType string `protobuf:"bytes,2,opt,name=model_type,json=modelType,proto3" json:"model_type,omitempty"`
ModelInstance string `protobuf:"bytes,3,opt,name=model_instance,json=modelInstance,proto3" json:"model_instance,omitempty"`
RequirePower string `protobuf:"bytes,4,opt,name=require_power,json=requirePower,proto3" json:"require_power,omitempty"`
Billing BillingMethod `protobuf:"varint,5,opt,name=billing,proto3,enum=base.v1.BillingMethod" json:"billing,omitempty"`
Cost uint64 `protobuf:"varint,6,opt,name=cost,proto3" json:"cost,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
type TaskResponse struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskResult []byte `protobuf:"bytes,2,opt,name=task_result,json=taskResult,proto3" json:"task_result,omitempty"`
TaskUid string `protobuf:"bytes,3,opt,name=task_uid,json=taskUid,proto3" json:"task_uid,omitempty"`
TaskFee string `protobuf:"bytes,4,opt,name=task_fee,json=taskFee,proto3" json:"task_fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ModelContent) Reset() { *m = ModelContent{} }
func (m *ModelContent) String() string { return proto.CompactTextString(m) }
func (*ModelContent) ProtoMessage() {}
func (*ModelContent) Descriptor() ([]byte, []int) {
func (m *TaskResponse) Reset() { *m = TaskResponse{} }
func (m *TaskResponse) String() string { return proto.CompactTextString(m) }
func (*TaskResponse) ProtoMessage() {}
func (*TaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_91b466c680c1fa25, []int{1}
}
func (m *ModelContent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModelContent.Unmarshal(m, b)
func (m *TaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskResponse.Unmarshal(m, b)
}
func (m *ModelContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModelContent.Marshal(b, m, deterministic)
func (m *TaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskResponse.Marshal(b, m, deterministic)
}
func (m *ModelContent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModelContent.Merge(m, src)
func (m *TaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskResponse.Merge(m, src)
}
func (m *ModelContent) XXX_Size() int {
return xxx_messageInfo_ModelContent.Size(m)
func (m *TaskResponse) XXX_Size() int {
return xxx_messageInfo_TaskResponse.Size(m)
}
func (m *ModelContent) XXX_DiscardUnknown() {
xxx_messageInfo_ModelContent.DiscardUnknown(m)
func (m *TaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_TaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ModelContent proto.InternalMessageInfo
var xxx_messageInfo_TaskResponse proto.InternalMessageInfo
func (m *ModelContent) GetModelName() string {
func (m *TaskResponse) GetTaskId() string {
if m != nil {
return m.ModelName
return m.TaskId
}
return ""
}
func (m *ModelContent) GetModelType() string {
func (m *TaskResponse) GetTaskResult() []byte {
if m != nil {
return m.ModelType
return m.TaskResult
}
return ""
return nil
}
func (m *ModelContent) GetModelInstance() string {
func (m *TaskResponse) GetTaskUid() string {
if m != nil {
return m.ModelInstance
return m.TaskUid
}
return ""
}
func (m *ModelContent) GetRequirePower() string {
func (m *TaskResponse) GetTaskFee() string {
if m != nil {
return m.RequirePower
return m.TaskFee
}
return ""
}
func (m *ModelContent) GetBilling() BillingMethod {
if m != nil {
return m.Billing
}
return BillingMethod_BillingFree
}
func (m *ModelContent) GetCost() uint64 {
if m != nil {
return m.Cost
}
return 0
}
func (*ModelContent) XXX_MessageName() string {
return "base.v1.ModelContent"
func (*TaskResponse) XXX_MessageName() string {
return "base.v1.TaskResponse"
}
func init() {
proto.RegisterEnum("base.v1.TaskType", TaskType_name, TaskType_value)
proto.RegisterEnum("base.v1.BillingMethod", BillingMethod_name, BillingMethod_value)
proto.RegisterType((*TaskContent)(nil), "base.v1.TaskContent")
proto.RegisterType((*ModelContent)(nil), "base.v1.ModelContent")
proto.RegisterType((*TaskResponse)(nil), "base.v1.TaskResponse")
}
func init() { proto.RegisterFile("base/v1/odysseus.proto", fileDescriptor_91b466c680c1fa25) }
var fileDescriptor_91b466c680c1fa25 = []byte{
// 545 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0xcd, 0x6e, 0xd3, 0x40,
0x14, 0x85, 0x3b, 0xee, 0x4f, 0x9a, 0x49, 0x93, 0x26, 0x03, 0x2d, 0x56, 0x25, 0x20, 0x2a, 0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, 0xf9, 0xdf, 0x51, 0xea, 0x0b, 0x03, 0x5e, 0xe4, 0x00, 0xed, 0x0d, 0xd2,
0xa9, 0x1c, 0xfe, 0x6a, 0x9c, 0x30, 0x68, 0x23, 0x72, 0x80, 0x3b, 0x15, 0x5a, 0xff, 0x94, 0xb6,
0xe5, 0x7f, 0x42, 0x5f, 0x7f, 0xdd, 0x43, 0xb8, 0x11, 0x72, 0xb6, 0xce, 0xe1, 0x37, 0xdf, 0x98,
0xbd, 0x1d, 0xa9, 0x1d, 0x1b, 0xa1, 0x77, 0x4f, 0xe3, 0x44, 0x5e, 0x17, 0x33, 0x27, 0xe4, 0xac,
0xda, 0xe9, 0xaa, 0x78, 0xac, 0x37, 0x31, 0xe4, 0x73, 0x37, 0x86, 0xb4, 0x5c, 0x69, 0x37, 0xe6,
0xae, 0xd9, 0xe0, 0x73, 0xf5, 0x5c, 0x78, 0x9f, 0xad, 0x4d, 0xff, 0xf2, 0xf2, 0x8b, 0x55, 0xf3,
0xd5, 0x19, 0x13, 0xef, 0x5b, 0x59, 0x5d, 0x4d, 0xbc, 0x9f, 0xd6, 0x2d, 0x53, 0x5d, 0xbd, 0x1c,
0xf9, 0x43, 0x90, 0x34, 0xa2, 0x92, 0xfe, 0xb6, 0x76, 0x15, 0x3d, 0x3b, 0x9b, 0x78, 0xb3, 0x1d,
0xdd, 0xf3, 0xc9, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0xd0, 0x53, 0x45, 0x57, 0x03, 0x00,
0x00,
// 509 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xdf, 0x6a, 0xd4, 0x40,
0x14, 0xc6, 0x3b, 0xd9, 0x75, 0x77, 0x3b, 0xfb, 0xa7, 0xbb, 0x23, 0x6a, 0x2c, 0x68, 0x97, 0x8a,
0xb0, 0x14, 0x4c, 0x88, 0xde, 0xb5, 0x57, 0x66, 0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x5f, 0xbb, 0xc3, 0x4f, 0x75, 0x28, 0x17,
0x2a, 0x40, 0x0b, 0xf4, 0xf5, 0x6d, 0x14, 0x8b, 0x1b, 0xe9, 0x5b, 0x01, 0x4b, 0x9b, 0xc0, 0x36,
0xc5, 0x2b, 0x1d, 0xb3, 0x80, 0x25, 0x76, 0x04, 0x59, 0x95, 0x57, 0x3b, 0x62, 0x76, 0x1d, 0xcf,
0x13, 0xf5, 0x5c, 0x3b, 0x3f, 0x8d, 0x96, 0x7b, 0x71, 0xf1, 0xcb, 0xe8, 0xba, 0xca, 0x63, 0xe9,
0xfc, 0xa9, 0xaa, 0xcb, 0xa5, 0xf3, 0xd7, 0x78, 0x58, 0x57, 0x97, 0xef, 0x17, 0xee, 0x19, 0x08,
0x1a, 0x52, 0x41, 0xff, 0x1b, 0x3d, 0x45, 0x8f, 0x8f, 0x97, 0x8e, 0xdf, 0xd1, 0x9a, 0x6f, 0x6e,
0x03, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x9b, 0x95, 0x41, 0x34, 0x03, 0x00, 0x00,
}
......@@ -22,34 +22,6 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type TaskType int32
const (
TaskType_SystemTask TaskType = 0
TaskType_UserTask TaskType = 1
TaskType_CustomTask TaskType = 2
)
var TaskType_name = map[int32]string{
0: "SystemTask",
1: "UserTask",
2: "CustomTask",
}
var TaskType_value = map[string]int32{
"SystemTask": 0,
"UserTask": 1,
"CustomTask": 2,
}
func (x TaskType) String() string {
return proto.EnumName(TaskType_name, int32(x))
}
func (TaskType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_810ae261dc8e2975, []int{0}
}
type WorkerMessage struct {
// Types that are valid to be assigned to Message:
// *WorkerMessage_HeartbeatResponse
......@@ -686,14 +658,14 @@ func (m *StatusResponse) GetDeviceStatus() []byte {
}
type PushTaskMessage struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskType TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=nodemanager.v1.TaskType" json:"task_type,omitempty"`
WorkLoad uint64 `protobuf:"varint,3,opt,name=work_load,json=workLoad,proto3" json:"work_load,omitempty"`
TaskCmd string `protobuf:"bytes,4,opt,name=task_cmd,json=taskCmd,proto3" json:"task_cmd,omitempty"`
TaskParam []byte `protobuf:"bytes,5,opt,name=task_param,json=taskParam,proto3" json:"task_param,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskType v1.TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=base.v1.TaskType" json:"task_type,omitempty"`
Workload uint64 `protobuf:"varint,3,opt,name=workload,proto3" json:"workload,omitempty"`
TaskCmd string `protobuf:"bytes,4,opt,name=task_cmd,json=taskCmd,proto3" json:"task_cmd,omitempty"`
TaskParam []byte `protobuf:"bytes,5,opt,name=task_param,json=taskParam,proto3" json:"task_param,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PushTaskMessage) Reset() { *m = PushTaskMessage{} }
......@@ -727,16 +699,16 @@ func (m *PushTaskMessage) GetTaskId() string {
return ""
}
func (m *PushTaskMessage) GetTaskType() TaskType {
func (m *PushTaskMessage) GetTaskType() v1.TaskType {
if m != nil {
return m.TaskType
}
return TaskType_SystemTask
return v1.TaskType_SystemTask
}
func (m *PushTaskMessage) GetWorkLoad() uint64 {
func (m *PushTaskMessage) GetWorkload() uint64 {
if m != nil {
return m.WorkLoad
return m.Workload
}
return 0
}
......@@ -757,8 +729,8 @@ func (m *PushTaskMessage) GetTaskParam() []byte {
type SubmitTaskResult struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskProof []byte `protobuf:"bytes,2,opt,name=task_proof,json=taskProof,proto3" json:"task_proof,omitempty"`
WorkerSignature []byte `protobuf:"bytes,3,opt,name=worker_signature,json=workerSignature,proto3" json:"worker_signature,omitempty"`
ContainerSignature []byte `protobuf:"bytes,2,opt,name=container_signature,json=containerSignature,proto3" json:"container_signature,omitempty"`
MinerSignature []byte `protobuf:"bytes,3,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"`
TaskResult []byte `protobuf:"bytes,4,opt,name=task_result,json=taskResult,proto3" json:"task_result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
......@@ -796,16 +768,16 @@ func (m *SubmitTaskResult) GetTaskId() string {
return ""
}
func (m *SubmitTaskResult) GetTaskProof() []byte {
func (m *SubmitTaskResult) GetContainerSignature() []byte {
if m != nil {
return m.TaskProof
return m.ContainerSignature
}
return nil
}
func (m *SubmitTaskResult) GetWorkerSignature() []byte {
func (m *SubmitTaskResult) GetMinerSignature() []byte {
if m != nil {
return m.WorkerSignature
return m.MinerSignature
}
return nil
}
......@@ -864,10 +836,8 @@ func (m *ProofTaskResult) GetManagerSignature() []byte {
}
type DispatchTaskRequest struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskType TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=nodemanager.v1.TaskType" json:"task_type,omitempty"`
TaskData *v1.TaskContent `protobuf:"bytes,3,opt,name=task_data,json=taskData,proto3" json:"task_data,omitempty"`
Worker string `protobuf:"bytes,4,opt,name=worker,proto3" json:"worker,omitempty"`
TaskData *v1.TaskContent `protobuf:"bytes,1,opt,name=task_data,json=taskData,proto3" json:"task_data,omitempty"`
Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -897,20 +867,6 @@ func (m *DispatchTaskRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_DispatchTaskRequest proto.InternalMessageInfo
func (m *DispatchTaskRequest) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *DispatchTaskRequest) GetTaskType() TaskType {
if m != nil {
return m.TaskType
}
return TaskType_SystemTask
}
func (m *DispatchTaskRequest) GetTaskData() *v1.TaskContent {
if m != nil {
return m.TaskData
......@@ -918,16 +874,16 @@ func (m *DispatchTaskRequest) GetTaskData() *v1.TaskContent {
return nil
}
func (m *DispatchTaskRequest) GetWorker() string {
func (m *DispatchTaskRequest) GetMiner() string {
if m != nil {
return m.Worker
return m.Miner
}
return ""
}
type DispatchTaskResponse struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
WorkerId string `protobuf:"bytes,2,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -964,9 +920,9 @@ func (m *DispatchTaskResponse) GetTaskId() string {
return ""
}
func (m *DispatchTaskResponse) GetWorkerId() string {
func (m *DispatchTaskResponse) GetMiner() string {
if m != nil {
return m.WorkerId
return m.Miner
}
return ""
}
......@@ -1040,7 +996,6 @@ func (m *ManagerListResponse) GetManagers() []NodeManagerInfo {
}
func init() {
proto.RegisterEnum("nodemanager.v1.TaskType", TaskType_name, TaskType_value)
proto.RegisterType((*WorkerMessage)(nil), "nodemanager.v1.WorkerMessage")
proto.RegisterType((*ManagerMessage)(nil), "nodemanager.v1.ManagerMessage")
proto.RegisterType((*GoodbyeMessage)(nil), "nodemanager.v1.GoodbyeMessage")
......@@ -1067,71 +1022,68 @@ func init() {
}
var fileDescriptor_810ae261dc8e2975 = []byte{
// 1044 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xe3, 0xc4,
0x1b, 0xce, 0xbf, 0xa6, 0xc9, 0xdb, 0xd4, 0x49, 0xa6, 0xd5, 0xfe, 0xf2, 0xeb, 0x52, 0xda, 0xf5,
0x0a, 0xa9, 0x80, 0x48, 0x70, 0x61, 0xa5, 0xd5, 0x72, 0x22, 0x2d, 0x34, 0x5d, 0xb5, 0xdd, 0xe0,
0xee, 0x76, 0x2b, 0xb4, 0x52, 0x34, 0x89, 0xa7, 0x4e, 0xd4, 0xda, 0x63, 0x3c, 0xe3, 0xac, 0xf2,
0x45, 0xf8, 0x00, 0x1c, 0x39, 0x21, 0x4e, 0x7c, 0x04, 0xc4, 0x19, 0x71, 0xe4, 0xc0, 0x91, 0x4f,
0x81, 0xe6, 0x8f, 0x53, 0xdb, 0x69, 0xba, 0x07, 0xb8, 0x79, 0x9e, 0x79, 0xe7, 0x99, 0x67, 0xe6,
0x79, 0xdf, 0xd7, 0x03, 0x1f, 0xf8, 0xd4, 0x21, 0x1e, 0xf6, 0xb1, 0x4b, 0xc2, 0xce, 0xd4, 0xea,
0x84, 0xe4, 0xbb, 0x88, 0x30, 0x3e, 0x08, 0x09, 0x0b, 0xa8, 0xcf, 0x48, 0x3b, 0x08, 0x29, 0xa7,
0xc8, 0x48, 0x84, 0xb5, 0xa7, 0xd6, 0x56, 0x7d, 0x88, 0x19, 0xe9, 0xb8, 0xd4, 0xa5, 0x2a, 0x60,
0xeb, 0x81, 0x04, 0xa6, 0x56, 0x87, 0x3a, 0x33, 0xc6, 0x48, 0xc4, 0x34, 0xbe, 0xbd, 0xc0, 0xcf,
0x68, 0x14, 0x8e, 0x34, 0xaf, 0xf9, 0x47, 0x11, 0xd6, 0x5f, 0xd3, 0xf0, 0x9a, 0x84, 0xa7, 0x84,
0x31, 0xec, 0x12, 0x64, 0x03,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xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x95, 0xde, 0xda, 0x23, 0x0a, 0x00,
0x00,
}
......@@ -129,9 +129,9 @@ func (m *DeviceInfo) GetDevicePower() uint64 {
}
type WorkerContent struct {
WorkerPubkey string `protobuf:"bytes,1,opt,name=worker_pubkey,json=workerPubkey,proto3" json:"worker_pubkey,omitempty"`
MinerPubkey string `protobuf:"bytes,1,opt,name=miner_pubkey,json=minerPubkey,proto3" json:"miner_pubkey,omitempty"`
Devices []*DeviceInfo `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"`
DeviceProof []byte `protobuf:"bytes,3,opt,name=device_proof,json=deviceProof,proto3" json:"device_proof,omitempty"`
DeviceSignature []byte `protobuf:"bytes,3,opt,name=device_signature,json=deviceSignature,proto3" json:"device_signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -161,9 +161,9 @@ func (m *WorkerContent) XXX_DiscardUnknown() {
var xxx_messageInfo_WorkerContent proto.InternalMessageInfo
func (m *WorkerContent) GetWorkerPubkey() string {
func (m *WorkerContent) GetMinerPubkey() string {
if m != nil {
return m.WorkerPubkey
return m.MinerPubkey
}
return ""
}
......@@ -175,9 +175,9 @@ func (m *WorkerContent) GetDevices() []*DeviceInfo {
return nil
}
func (m *WorkerContent) GetDeviceProof() []byte {
func (m *WorkerContent) GetDeviceSignature() []byte {
if m != nil {
return m.DeviceProof
return m.DeviceSignature
}
return nil
}
......@@ -191,29 +191,30 @@ func init() {
func init() { proto.RegisterFile("nodemanager/v1/resource.proto", fileDescriptor_462e4441103de524) }
var fileDescriptor_462e4441103de524 = []byte{
// 383 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcd, 0x6a, 0xdb, 0x40,
0x14, 0x85, 0x91, 0x6c, 0xda, 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x63, 0x65,
0xda, 0xae, 0x2d, 0x05, 0x9a, 0x5c, 0x2b, 0xa4, 0x7f, 0x81, 0xec, 0x00, 0xec, 0x27, 0x52, 0x0e,
0x94, 0x6b, 0x9f, 0x49, 0xff, 0x24, 0xc0, 0x2e, 0x4e, 0xdd, 0xf3, 0x45, 0x7b, 0x25, 0xb4, 0x05,
0xd3, 0xbe, 0x93, 0xb7, 0x65, 0x4a, 0xa2, 0xab, 0xe3, 0xd6, 0xb4, 0xfb, 0x75, 0x64, 0x34, 0x9f,
0xcf, 0x38, 0xdf, 0x76, 0xf5, 0x62, 0x95, 0xf7, 0x61, 0x88, 0x7b, 0xb1, 0x72, 0xaf, 0xde, 0xa7,
0x40, 0xf3, 0x07, 0x85, 0x68, 0x1e, 0x46, 0xaf, 0xd2, 0xe6, 0xfd, 0x55, 0x55, 0x96, 0x5d, 0x74,
0x65, 0x2b, 0x97, 0xff, 0x82, 0x90, 0x5f, 0xa5, 0xae, 0xe1, 0x61, 0x64, 0xa2, 0x9f, 0x27, 0x09,
0xa4, 0x49, 0xfd, 0xf1, 0x45, 0x34, 0xea, 0xe1, 0xd1, 0x0c, 0x80, 0x9a, 0x42, 0x98, 0x01, 0x9a,
0xcd, 0xfe, 0x7f, 0x48, 0x32, 0xb3, 0x6e, 0xd5, 0xd6, 0x72, 0xb3, 0xb9, 0x53, 0x07, 0x4b, 0xe9,
0xe0, 0xb5, 0x75, 0xdf, 0x00, 0xdb, 0xb5, 0xf5, 0xa8, 0x8e, 0x9a, 0x60, 0xfb, 0xdb, 0x9e, 0x2f,
0x80, 0x3b, 0xbe, 0xc3, 0x9d, 0x27, 0x75, 0x28, 0x0d, 0x67, 0xb3, 0xb5, 0xe5, 0xbe, 0x11, 0xa7,
0x7f, 0x7b, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x9b, 0xeb, 0x03, 0x7d, 0x02, 0x00, 0x00,
// 393 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00,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0x95, 0xe5, 0xbe, 0x92, 0xb7, 0x7f, 0x7d, 0x0e, 0x00, 0x00, 0xff,
0xff, 0x88, 0x98, 0xc1, 0x27, 0x83, 0x02, 0x00, 0x00,
}
......@@ -99,7 +99,7 @@ func (m *WitnessStatusResponse) GetPeers() []string {
type PushProofRequest struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"`
TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
NmSignature string `protobuf:"bytes,3,opt,name=nm_signature,json=nmSignature,proto3" json:"nm_signature,omitempty"`
ManagerSignature string `protobuf:"bytes,3,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"`
ContainerSignature string `protobuf:"bytes,4,opt,name=container_signature,json=containerSignature,proto3" json:"container_signature,omitempty"`
MinerSignature string `protobuf:"bytes,5,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -145,9 +145,9 @@ func (m *PushProofRequest) GetTaskId() string {
return ""
}
func (m *PushProofRequest) GetNmSignature() string {
func (m *PushProofRequest) GetManagerSignature() string {
if m != nil {
return m.NmSignature
return m.ManagerSignature
}
return ""
}
......@@ -465,50 +465,51 @@ func (m *GetWithdrawProofResponse) GetMerkleProof() []string {
}
func init() {
proto.RegisterType((*WitnessStatusRequest)(nil), "witness.v1.witnessStatusRequest")
proto.RegisterType((*WitnessStatusResponse)(nil), "witness.v1.witnessStatusResponse")
proto.RegisterType((*PushProofRequest)(nil), "witness.v1.pushProofRequest")
proto.RegisterType((*PushProofResponse)(nil), "witness.v1.pushProofResponse")
proto.RegisterType((*GetMinerProofRequest)(nil), "witness.v1.getMinerProofRequest")
proto.RegisterType((*GetMinerProofResponse)(nil), "witness.v1.getMinerProofResponse")
proto.RegisterType((*GetProofRequest)(nil), "witness.v1.getProofRequest")
proto.RegisterType((*GetProofResponse)(nil), "witness.v1.getProofResponse")
proto.RegisterType((*GetWithdrawProofRequest)(nil), "witness.v1.getWithdrawProofRequest")
proto.RegisterType((*GetWithdrawProofResponse)(nil), "witness.v1.getWithdrawProofResponse")
proto.RegisterType((*WitnessStatusRequest)(nil), "witness.v1.WitnessStatusRequest")
proto.RegisterType((*WitnessStatusResponse)(nil), "witness.v1.WitnessStatusResponse")
proto.RegisterType((*PushProofRequest)(nil), "witness.v1.PushProofRequest")
proto.RegisterType((*PushProofResponse)(nil), "witness.v1.PushProofResponse")
proto.RegisterType((*GetMinerProofRequest)(nil), "witness.v1.GetMinerProofRequest")
proto.RegisterType((*GetMinerProofResponse)(nil), "witness.v1.GetMinerProofResponse")
proto.RegisterType((*GetProofRequest)(nil), "witness.v1.GetProofRequest")
proto.RegisterType((*GetProofResponse)(nil), "witness.v1.GetProofResponse")
proto.RegisterType((*GetWithdrawProofRequest)(nil), "witness.v1.GetWithdrawProofRequest")
proto.RegisterType((*GetWithdrawProofResponse)(nil), "witness.v1.GetWithdrawProofResponse")
}
func init() { proto.RegisterFile("witness/v1/request_response.proto", fileDescriptor_fcd71b26d9e7af56) }
var fileDescriptor_fcd71b26d9e7af56 = []byte{
// 480 bytes of a gzipped FileDescriptorProto
// 483 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xc1, 0x6a, 0xdb, 0x40,
0x10, 0x45, 0x52, 0xe2, 0xd4, 0xe3, 0x92, 0xb8, 0x5b, 0xc7, 0x11, 0x85, 0x82, 0xa3, 0x1e, 0x9a,
0x4b, 0x25, 0x44, 0x6e, 0x29, 0xf4, 0xe0, 0x4b, 0x08, 0x6d, 0xc0, 0x38, 0x60, 0x87, 0x12, 0x30,
0x1b, 0x6b, 0x2a, 0x0b, 0x5b, 0xbb, 0xee, 0xee, 0xca, 0x26, 0xbf, 0xd3, 0x63, 0xbf, 0xa0, 0x1f,
0xd0, 0x53, 0x3f, 0xa3, 0xc7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x05, 0x5d, 0x06, 0xce, 0xbf, 0x22, 0x63, 0xf6, 0xa0,
0xea, 0xa1, 0xb9, 0x48, 0x0f, 0xf6, 0x33, 0x14, 0xb3, 0x39, 0xea, 0x46, 0x8e, 0xad, 0xbf, 0xe0,
0xfd, 0x54, 0xff, 0x47, 0x03, 0x0e, 0x26, 0x3c, 0xf3, 0xea, 0x0b, 0xe8, 0x77, 0xcc, 0x2b, 0x2b,
0xdf, 0xa8, 0xb8, 0x91, 0xa8, 0xf1, 0x39, 0x4c, 0x52, 0x35, 0xcd, 0x6f, 0xbd, 0x09, 0xcf, 0x7c,
0x1e, 0xdf, 0x49, 0x89, 0xb9, 0x5c, 0x07, 0xef, 0xf4, 0x25, 0x4d, 0xf8, 0xdc, 0x4f, 0x90, 0xf9,
0x1a, 0xf8, 0x09, 0xf7, 0xeb, 0xdb, 0x7b, 0x6f, 0xc2, 0x65, 0xf0, 0xcd, 0xb2, 0x47, 0xd7, 0xd7,
0xdf, 0x2d, 0x30, 0xf7, 0xe4, 0x0d, 0x83, 0x9f, 0x6b, 0x70, 0x33, 0x0c, 0x7e, 0x5b, 0xdd, 0x1a,
0xdc, 0x84, 0x51, 0xff, 0x12, 0x15, 0x8d, 0xa9, 0xa2, 0x7f, 0xac, 0x7d, 0x53, 0x38, 0x3f, 0x1f,
0x06, 0xb7, 0x4d, 0xed, 0x72, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xf5, 0x84, 0x7f, 0xe1,
0x03, 0x00, 0x00,
}
......@@ -23,27 +23,26 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("witness/v1/service.proto", fileDescriptor_687af857651c0e7f) }
var fileDescriptor_687af857651c0e7f = []byte{
// 337 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4a, 0xf3, 0x40,
0x10, 0xc7, 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x9b, 0xc5, 0x1c, 0x34, 0x26, 0x07,
0x1c, 0x70, 0x10, 0xe1, 0x6c, 0x2a, 0xfd, 0xa5, 0x06, 0x9e, 0x57, 0x7a, 0x4a, 0x6a, 0x06, 0xbe,
0xd8, 0x6e, 0xca, 0x06, 0xf4, 0xde, 0x6b, 0xa4, 0x19, 0x88, 0x79, 0xc1, 0xdd, 0xdb, 0x37, 0x17,
0x74, 0x7f, 0x2f, 0xeb, 0xd6, 0x1e, 0x78, 0x18, 0xe1, 0x2c, 0x99, 0x38, 0x81, 0x98, 0x53, 0x31,
0x7d, 0x51, 0x0a, 0x12, 0x95, 0x07, 0x97, 0xab, 0xfb, 0x07, 0xe2, 0x89, 0x86, 0x10, 0xd3, 0x55,
0x42, 0x43, 0x41, 0xd7, 0x1f, 0x73, 0x63, 0xc2, 0x94, 0xbd, 0x5a, 0xf5, 0xc1, 0x70, 0xf8, 0x66,
0x11, 0xf3, 0x16, 0x8e, 0xc7, 0x3e, 0xf3, 0x64, 0xe4, 0xb1, 0x2f, 0xeb, 0x70, 0x9d, 0x8c, 0xb8,
0xdb, 0xeb, 0x03, 0xfa, 0x53, 0x1f, 0xfd, 0x6f, 0x6b, 0xcf, 0x08, 0xdd, 0xae, 0xc7, 0x26, 0xff,
0x57, 0x53, 0xae, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x30, 0x98, 0x73, 0xbd, 0x02, 0x00,
0x00,
// 335 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4a, 0xfb, 0x40,
0x10, 0xc6, 0xff, 0x4d, 0xe1, 0x8f, 0xae, 0xb6, 0x48, 0x0e, 0x22, 0xb5, 0x82, 0x55, 0xaf, 0x66,
0x59, 0xbd, 0xd5, 0x5b, 0x2f, 0x0b, 0x42, 0x21, 0x28, 0xa4, 0x45, 0x0a, 0x25, 0x4d, 0xc7, 0x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, 0x12, 0xb3, 0x35, 0x77, 0x67, 0xdf, 0x24, 0xe8, 0xff,
0x26, 0xeb, 0x57, 0x1e, 0xf8, 0x24, 0xc6, 0x69, 0x3a, 0xf2, 0x22, 0x31, 0xa3, 0x62, 0xfc, 0xa2,
0x14, 0xa4, 0xca, 0x3e, 0x2e, 0x97, 0xf9, 0x47, 0xe2, 0x89, 0x4e, 0x20, 0xa1, 0xcb, 0x82, 0x4e,
0x04, 0x5d, 0xfd, 0x98, 0x1b, 0xf3, 0xcc, 0xd8, 0xab, 0x53, 0xed, 0xf5, 0xfb, 0x6f, 0x0e, 0x31,
0xc9, 0x7a, 0x01, 0xfb, 0xb4, 0xc5, 0x20, 0x60, 0x5f, 0xce, 0xe1, 0xaa, 0x18, 0x70, 0xbf, 0xd3,
0x05, 0x0c, 0xc7, 0x21, 0x86, 0xdf, 0xce, 0x9e, 0x11, 0xda, 0xed, 0x80, 0x8d, 0xfe, 0x2f, 0xb7,
0x5c, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x7f, 0x10, 0x74, 0xbd, 0x02, 0x00, 0x00,
}
......@@ -39,7 +39,7 @@ func NewWitnessServiceClient(cc grpc.ClientConnInterface) WitnessServiceClient {
func (c *witnessServiceClient) WitnessStatus(ctx context.Context, in *WitnessStatusRequest, opts ...grpc.CallOption) (*WitnessStatusResponse, error) {
out := new(WitnessStatusResponse)
err := c.cc.Invoke(ctx, "/witness.v1.witnessService/WitnessStatus", in, out, opts...)
err := c.cc.Invoke(ctx, "/witness.v1.WitnessService/WitnessStatus", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -48,7 +48,7 @@ func (c *witnessServiceClient) WitnessStatus(ctx context.Context, in *WitnessSta
func (c *witnessServiceClient) PushProof(ctx context.Context, in *PushProofRequest, opts ...grpc.CallOption) (*PushProofResponse, error) {
out := new(PushProofResponse)
err := c.cc.Invoke(ctx, "/witness.v1.witnessService/PushProof", in, out, opts...)
err := c.cc.Invoke(ctx, "/witness.v1.WitnessService/PushProof", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -57,7 +57,7 @@ func (c *witnessServiceClient) PushProof(ctx context.Context, in *PushProofReque
func (c *witnessServiceClient) GetMinerProof(ctx context.Context, in *GetMinerProofRequest, opts ...grpc.CallOption) (*GetMinerProofResponse, error) {
out := new(GetMinerProofResponse)
err := c.cc.Invoke(ctx, "/witness.v1.witnessService/GetMinerProof", in, out, opts...)
err := c.cc.Invoke(ctx, "/witness.v1.WitnessService/GetMinerProof", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -66,7 +66,7 @@ func (c *witnessServiceClient) GetMinerProof(ctx context.Context, in *GetMinerPr
func (c *witnessServiceClient) GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error) {
out := new(GetProofResponse)
err := c.cc.Invoke(ctx, "/witness.v1.witnessService/GetProof", in, out, opts...)
err := c.cc.Invoke(ctx, "/witness.v1.WitnessService/GetProof", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -75,7 +75,7 @@ func (c *witnessServiceClient) GetProof(ctx context.Context, in *GetProofRequest
func (c *witnessServiceClient) GetWithdrawProof(ctx context.Context, in *GetWithdrawProofRequest, opts ...grpc.CallOption) (*GetWithdrawProofResponse, error) {
out := new(GetWithdrawProofResponse)
err := c.cc.Invoke(ctx, "/witness.v1.witnessService/GetWithdrawProof", in, out, opts...)
err := c.cc.Invoke(ctx, "/witness.v1.WitnessService/GetWithdrawProof", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -136,7 +136,7 @@ func _WitnessService_WitnessStatus_Handler(srv interface{}, ctx context.Context,
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/witness.v1.witnessService/WitnessStatus",
FullMethod: "/witness.v1.WitnessService/WitnessStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).WitnessStatus(ctx, req.(*WitnessStatusRequest))
......@@ -154,7 +154,7 @@ func _WitnessService_PushProof_Handler(srv interface{}, ctx context.Context, dec
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/witness.v1.witnessService/PushProof",
FullMethod: "/witness.v1.WitnessService/PushProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).PushProof(ctx, req.(*PushProofRequest))
......@@ -172,7 +172,7 @@ func _WitnessService_GetMinerProof_Handler(srv interface{}, ctx context.Context,
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/witness.v1.witnessService/GetMinerProof",
FullMethod: "/witness.v1.WitnessService/GetMinerProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).GetMinerProof(ctx, req.(*GetMinerProofRequest))
......@@ -190,7 +190,7 @@ func _WitnessService_GetProof_Handler(srv interface{}, ctx context.Context, dec
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/witness.v1.witnessService/GetProof",
FullMethod: "/witness.v1.WitnessService/GetProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).GetProof(ctx, req.(*GetProofRequest))
......@@ -208,7 +208,7 @@ func _WitnessService_GetWithdrawProof_Handler(srv interface{}, ctx context.Conte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/witness.v1.witnessService/GetWithdrawProof",
FullMethod: "/witness.v1.WitnessService/GetWithdrawProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).GetWithdrawProof(ctx, req.(*GetWithdrawProofRequest))
......@@ -220,7 +220,7 @@ func _WitnessService_GetWithdrawProof_Handler(srv interface{}, ctx context.Conte
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var WitnessService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "witness.v1.witnessService",
ServiceName: "witness.v1.WitnessService",
HandlerType: (*WitnessServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
......
......@@ -28,15 +28,10 @@ message ManagerMessage {
}
}
enum TaskType {
SystemTask = 0;
UserTask = 1;
CustomTask = 2;
}
message GoodbyeMessage {
string reason = 1;
}
message HeartbeatRequest {
uint64 timestamp = 1;
}
......@@ -49,7 +44,6 @@ message StatusRequest {
}
message DeviceUsageRequest {
}
message DeviceUsageResponse {
......@@ -74,20 +68,20 @@ message StatusResponse {
message PushTaskMessage {
string task_id = 1;
TaskType task_type = 2;
uint64 work_load = 3;
base.v1.TaskType task_type = 2;
uint64 workload = 3;
string task_cmd = 4; //
bytes task_param = 5;
}
// 容器签名 (task_id+hash(task_param)+hash(task_result))
// 矿工签名 (task_id+hash(task_param)+hash(task_result))
// nodemanager签名 (task_id+hash(task_param)+hash(task_result)+docker_signature+miner_signature+workload)
// container_signature = sign(hash(task_id+hash(task_param)+hash(task_result)))
// miner_signature = sign(hash((task_id+hash(task_param)+hash(task_result)))
// manager_signature = sign(hash((task_id+hash(task_param)+hash(task_result)+container_signature+miner_signature+workload))
message SubmitTaskResult {
string task_id = 1;
bytes task_proof = 2; // 容器签名
bytes worker_signature = 3; // worker 签名
bytes container_signature = 2; // 容器签名
bytes miner_signature = 3; // worker 签名
bytes task_result = 4; // 任务结果
}
......@@ -96,20 +90,16 @@ message ProofTaskResult {
bytes manager_signature = 2; // nodemanager 签名
}
message DispatchTaskRequest {
string task_id = 1;
TaskType task_type = 2;
base.v1.TaskContent task_data = 3;
string worker = 4;
base.v1.TaskContent task_data = 1;
string miner = 2;
}
message DispatchTaskResponse {
string task_id = 1;
string worker_id = 2;
string miner = 2;
}
message ManagerListRequest {
}
......
......@@ -16,7 +16,7 @@ message DeviceInfo {
}
message WorkerContent {
string worker_pubkey = 1;
string miner_pubkey = 1;
repeated DeviceInfo devices = 2;
bytes device_proof = 3; // 由测试程序对设备信息进行签名
bytes device_signature = 3; // 由测试程序对设备信息进行签名
}
\ No newline at end of file
......@@ -2,49 +2,49 @@ syntax = "proto3";
package witness.v1;
message witnessStatusRequest {
message WitnessStatusRequest {
}
message witnessStatusResponse {
message WitnessStatusResponse {
string witness_id = 1;
repeated string peers = 2;
}
message pushProofRequest {
message PushProofRequest {
uint64 workload = 1;
string task_id = 2;
string nm_signature = 3;
string manager_signature = 3;
string container_signature = 4;
string miner_signature = 5;
}
message pushProofResponse {
message PushProofResponse {
uint64 workload = 1;
}
message getMinerProofRequest {
message GetMinerProofRequest {
string ymd = 1;
string miner = 2;
}
message getMinerProofResponse {
message GetMinerProofResponse {
uint64 workload = 1;
string amount = 2;
}
message getProofRequest {
message GetProofRequest {
string ymd = 1;
}
message getProofResponse {
message GetProofResponse {
uint64 workload = 1;
}
message getWithdrawProofRequest {
message GetWithdrawProofRequest {
string address = 1;
}
message getWithdrawProofResponse {
message GetWithdrawProofResponse {
string address = 1;
string amount = 2;
repeated string merkleProof = 3;
......
......@@ -5,12 +5,12 @@ package witness.v1;
import "witness/v1/request_response.proto";
service witnessService {
rpc WitnessStatus(witnessStatusRequest) returns (witnessStatusResponse) {}; // witness status
rpc PushProof(pushProofRequest) returns (pushProofResponse) {}; // miner push proof
service WitnessService {
rpc WitnessStatus(WitnessStatusRequest) returns (WitnessStatusResponse) {}; // witness status
rpc PushProof(PushProofRequest) returns (PushProofResponse) {}; // miner push proof
rpc GetMinerProof(getMinerProofRequest) returns (getMinerProofResponse) {}; // proof of a miner per day
rpc GetProof(getProofRequest) returns (getProofResponse) {}; // proof per day
rpc GetMinerProof(GetMinerProofRequest) returns (GetMinerProofResponse) {}; // proof of a miner per day
rpc GetProof(GetProofRequest) returns (GetProofResponse) {}; // proof per day
rpc GetWithdrawProof(getWithdrawProofRequest) returns (getWithdrawProofResponse) {}; // get merkle proof of withdraw token
rpc GetWithdrawProof(GetWithdrawProofRequest) returns (GetWithdrawProofResponse) {}; // get merkle proof of withdraw token
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment