Commit e47ee4db authored by vicotor's avatar vicotor

update protocol

parent 422eba15
...@@ -37,7 +37,7 @@ message TaskContent { ...@@ -37,7 +37,7 @@ message TaskContent {
} }
message TaskResponse { message TaskResponse {
string task_id = 1; string task_uuid = 1;
bytes task_result = 2; bytes task_result = 2;
string task_uid = 3; string task_uid = 3;
string task_fee = 4; string task_fee = 4;
......
...@@ -202,7 +202,7 @@ func (*TaskContent) XXX_MessageName() string { ...@@ -202,7 +202,7 @@ func (*TaskContent) XXX_MessageName() string {
} }
type TaskResponse struct { type TaskResponse struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"`
TaskResult []byte `protobuf:"bytes,2,opt,name=task_result,json=taskResult,proto3" json:"task_result,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"` 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"` TaskFee string `protobuf:"bytes,4,opt,name=task_fee,json=taskFee,proto3" json:"task_fee,omitempty"`
...@@ -237,9 +237,9 @@ func (m *TaskResponse) XXX_DiscardUnknown() { ...@@ -237,9 +237,9 @@ func (m *TaskResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_TaskResponse proto.InternalMessageInfo var xxx_messageInfo_TaskResponse proto.InternalMessageInfo
func (m *TaskResponse) GetTaskId() string { func (m *TaskResponse) GetTaskUuid() string {
if m != nil { if m != nil {
return m.TaskId return m.TaskUuid
} }
return "" return ""
} }
...@@ -292,43 +292,43 @@ func init() { ...@@ -292,43 +292,43 @@ func init() {
func init() { proto.RegisterFile("base/v1/odysseus.proto", fileDescriptor_91b466c680c1fa25) } func init() { proto.RegisterFile("base/v1/odysseus.proto", fileDescriptor_91b466c680c1fa25) }
var fileDescriptor_91b466c680c1fa25 = []byte{ var fileDescriptor_91b466c680c1fa25 = []byte{
// 601 bytes of a gzipped FileDescriptorProto // 594 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcb, 0x6e, 0xd3, 0x4c, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
0x14, 0xc7, 0x3b, 0x4e, 0xbf, 0x26, 0x99, 0x24, 0x4d, 0x3a, 0x9f, 0x00, 0x53, 0x04, 0x8d, 0x8a, 0x10, 0xc7, 0xbb, 0x4e, 0x69, 0x92, 0x4d, 0xd2, 0xa4, 0x8b, 0x00, 0x53, 0x04, 0x8d, 0x8a, 0x40,
0x40, 0xa1, 0x12, 0xb1, 0x02, 0xbb, 0x76, 0x85, 0x03, 0x45, 0x45, 0xaa, 0x88, 0xd2, 0x0b, 0x15, 0xa1, 0x12, 0xb1, 0x02, 0xb7, 0xf6, 0x84, 0x03, 0x45, 0x45, 0xaa, 0x88, 0xd2, 0x0f, 0x2a, 0x54,
0xaa, 0x14, 0x4d, 0xec, 0x53, 0xd7, 0x8a, 0xed, 0xb1, 0xe6, 0x52, 0xe4, 0xb7, 0x41, 0x2c, 0x79, 0x29, 0xda, 0xd8, 0x53, 0xd7, 0x8a, 0xed, 0xb5, 0xf6, 0xa3, 0xc8, 0x6f, 0x83, 0x38, 0xf2, 0x24,
0x0f, 0x24, 0xc4, 0x63, 0xc0, 0x8e, 0x97, 0x00, 0xcd, 0x8c, 0xe3, 0x2a, 0x0b, 0x56, 0x99, 0xfc, 0xc0, 0x63, 0xc0, 0x8d, 0x97, 0x00, 0xed, 0xae, 0xe3, 0xaa, 0x07, 0x38, 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 0x9a, 0x7f, 0x76, 0xf6, 0xd5, 0xa9,
0x6a, 0xfe, 0xc5, 0xc5, 0x57, 0xa7, 0xee, 0x6b, 0x8f, 0xf3, 0xd1, 0x0f, 0x7b, 0xba, 0x3c, 0x1f, 0xfb, 0x3a, 0xc7, 0xe9, 0xe8, 0x87, 0xb5, 0xce, 0x4f, 0x47, 0x3f, 0x9d, 0xdb, 0xa5, 0x75, 0xfe,
0xfd, 0x74, 0xfe, 0x2f, 0x4f, 0x97, 0x6f, 0x27, 0xfe, 0x31, 0x48, 0x1a, 0x52, 0x49, 0x7f, 0x3b, 0x76, 0xe2, 0x1f, 0x82, 0xa4, 0x21, 0x95, 0xf4, 0xb7, 0xd3, 0xd0, 0x74, 0x77, 0xf7, 0x74, 0x34,
0x0d, 0x4d, 0xf7, 0xf7, 0xcf, 0x47, 0xf3, 0x0d, 0x13, 0xf3, 0xe5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0x5f, 0x33, 0x31, 0x5f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xdb, 0x48, 0x1a, 0xed, 0x03,
0xff, 0xbc, 0x9b, 0x79, 0xf1, 0xe9, 0x03, 0x00, 0x00, 0x00, 0x00,
} }
...@@ -24,7 +24,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package ...@@ -24,7 +24,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type WorkerMessage struct { type WorkerMessage struct {
// Types that are valid to be assigned to Message: // Types that are valid to be assigned to Message:
//
// *WorkerMessage_HeartbeatResponse // *WorkerMessage_HeartbeatResponse
// *WorkerMessage_SubmitTaskResult // *WorkerMessage_SubmitTaskResult
// *WorkerMessage_Status // *WorkerMessage_Status
...@@ -154,7 +153,6 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} { ...@@ -154,7 +153,6 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
type ManagerMessage struct { type ManagerMessage struct {
// Types that are valid to be assigned to Message: // Types that are valid to be assigned to Message:
//
// *ManagerMessage_HeartbeatRequest // *ManagerMessage_HeartbeatRequest
// *ManagerMessage_PushTaskMessage // *ManagerMessage_PushTaskMessage
// *ManagerMessage_ProofTaskResult // *ManagerMessage_ProofTaskResult
...@@ -539,8 +537,9 @@ var xxx_messageInfo_DeviceInfoRequest proto.InternalMessageInfo ...@@ -539,8 +537,9 @@ var xxx_messageInfo_DeviceInfoRequest proto.InternalMessageInfo
type DeviceInfoResponse struct { type DeviceInfoResponse struct {
MinerPubkey string `protobuf:"bytes,1,opt,name=miner_pubkey,json=minerPubkey,proto3" json:"miner_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"` BenefitAddress string `protobuf:"bytes,2,opt,name=benefit_address,json=benefitAddress,proto3" json:"benefit_address,omitempty"`
DeviceSignature []byte `protobuf:"bytes,3,opt,name=device_signature,json=deviceSignature,proto3" json:"device_signature,omitempty"` Devices []*DeviceInfo `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"`
DeviceSignature []byte `protobuf:"bytes,4,opt,name=device_signature,json=deviceSignature,proto3" json:"device_signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -577,6 +576,13 @@ func (m *DeviceInfoResponse) GetMinerPubkey() string { ...@@ -577,6 +576,13 @@ func (m *DeviceInfoResponse) GetMinerPubkey() string {
return "" return ""
} }
func (m *DeviceInfoResponse) GetBenefitAddress() string {
if m != nil {
return m.BenefitAddress
}
return ""
}
func (m *DeviceInfoResponse) GetDevices() []*DeviceInfo { func (m *DeviceInfoResponse) GetDevices() []*DeviceInfo {
if m != nil { if m != nil {
return m.Devices return m.Devices
...@@ -676,7 +682,7 @@ func (m *StatusResponse) GetDeviceStatus() []byte { ...@@ -676,7 +682,7 @@ func (m *StatusResponse) GetDeviceStatus() []byte {
} }
type PushTaskMessage struct { type PushTaskMessage struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"`
TaskType v1.TaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=base.v1.TaskType" json:"task_type,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"` 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"` TaskCmd string `protobuf:"bytes,4,opt,name=task_cmd,json=taskCmd,proto3" json:"task_cmd,omitempty"`
...@@ -710,9 +716,9 @@ func (m *PushTaskMessage) XXX_DiscardUnknown() { ...@@ -710,9 +716,9 @@ func (m *PushTaskMessage) XXX_DiscardUnknown() {
var xxx_messageInfo_PushTaskMessage proto.InternalMessageInfo var xxx_messageInfo_PushTaskMessage proto.InternalMessageInfo
func (m *PushTaskMessage) GetTaskId() string { func (m *PushTaskMessage) GetTaskUuid() string {
if m != nil { if m != nil {
return m.TaskId return m.TaskUuid
} }
return "" return ""
} }
...@@ -746,7 +752,7 @@ func (m *PushTaskMessage) GetTaskParam() []byte { ...@@ -746,7 +752,7 @@ func (m *PushTaskMessage) GetTaskParam() []byte {
} }
type SubmitTaskResult struct { type SubmitTaskResult struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"`
ContainerSignature []byte `protobuf:"bytes,2,opt,name=container_signature,json=containerSignature,proto3" json:"container_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"` 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"` TaskResult []byte `protobuf:"bytes,4,opt,name=task_result,json=taskResult,proto3" json:"task_result,omitempty"`
...@@ -780,9 +786,9 @@ func (m *SubmitTaskResult) XXX_DiscardUnknown() { ...@@ -780,9 +786,9 @@ func (m *SubmitTaskResult) XXX_DiscardUnknown() {
var xxx_messageInfo_SubmitTaskResult proto.InternalMessageInfo var xxx_messageInfo_SubmitTaskResult proto.InternalMessageInfo
func (m *SubmitTaskResult) GetTaskId() string { func (m *SubmitTaskResult) GetTaskUuid() string {
if m != nil { if m != nil {
return m.TaskId return m.TaskUuid
} }
return "" return ""
} }
...@@ -816,7 +822,7 @@ func (m *SubmitTaskResult) GetIsSuccessed() bool { ...@@ -816,7 +822,7 @@ func (m *SubmitTaskResult) GetIsSuccessed() bool {
} }
type ProofTaskResult struct { type ProofTaskResult struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"`
ManagerSignature []byte `protobuf:"bytes,2,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"` ManagerSignature []byte `protobuf:"bytes,2,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"`
ContainerPubkey []byte `protobuf:"bytes,3,opt,name=container_pubkey,json=containerPubkey,proto3" json:"container_pubkey,omitempty"` ContainerPubkey []byte `protobuf:"bytes,3,opt,name=container_pubkey,json=containerPubkey,proto3" json:"container_pubkey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -848,9 +854,9 @@ func (m *ProofTaskResult) XXX_DiscardUnknown() { ...@@ -848,9 +854,9 @@ func (m *ProofTaskResult) XXX_DiscardUnknown() {
var xxx_messageInfo_ProofTaskResult proto.InternalMessageInfo var xxx_messageInfo_ProofTaskResult proto.InternalMessageInfo
func (m *ProofTaskResult) GetTaskId() string { func (m *ProofTaskResult) GetTaskUuid() string {
if m != nil { if m != nil {
return m.TaskId return m.TaskUuid
} }
return "" return ""
} }
...@@ -916,7 +922,7 @@ func (m *DispatchTaskRequest) GetMiner() string { ...@@ -916,7 +922,7 @@ func (m *DispatchTaskRequest) GetMiner() string {
} }
type DispatchTaskResponse struct { type DispatchTaskResponse struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"`
Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"` Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -947,9 +953,9 @@ func (m *DispatchTaskResponse) XXX_DiscardUnknown() { ...@@ -947,9 +953,9 @@ func (m *DispatchTaskResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_DispatchTaskResponse proto.InternalMessageInfo var xxx_messageInfo_DispatchTaskResponse proto.InternalMessageInfo
func (m *DispatchTaskResponse) GetTaskId() string { func (m *DispatchTaskResponse) GetTaskUuid() string {
if m != nil { if m != nil {
return m.TaskId return m.TaskUuid
} }
return "" return ""
} }
...@@ -1056,71 +1062,73 @@ func init() { ...@@ -1056,71 +1062,73 @@ func init() {
} }
var fileDescriptor_810ae261dc8e2975 = []byte{ var fileDescriptor_810ae261dc8e2975 = []byte{
// 1054 bytes of a gzipped FileDescriptorProto // 1080 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x4f, 0x6f, 0xe3, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdf, 0x6e, 0xe3, 0xc4,
0x14, 0xdf, 0xa4, 0x7f, 0xf3, 0xd2, 0x3a, 0xc9, 0x34, 0x5a, 0x42, 0xa1, 0xb4, 0xf5, 0x0a, 0xd1, 0x1b, 0x6d, 0x92, 0xfe, 0xcb, 0x97, 0xd6, 0x49, 0xa6, 0xd1, 0x2a, 0xbf, 0xee, 0xaf, 0xb4, 0xf5,
0x15, 0x22, 0xc1, 0x05, 0x24, 0xb4, 0x7b, 0xeb, 0x76, 0x69, 0x8a, 0x68, 0x37, 0xb8, 0x4b, 0x59, 0x0a, 0xd1, 0x15, 0x22, 0x21, 0x05, 0x24, 0xb4, 0x7b, 0x45, 0xb7, 0xd0, 0x14, 0xd1, 0x6e, 0x70,
0xa1, 0x15, 0xd1, 0xc4, 0x9e, 0x3a, 0x56, 0x6b, 0x8f, 0xf1, 0x8c, 0x8b, 0x7a, 0xe5, 0x53, 0x70, 0x77, 0xcb, 0x0a, 0xad, 0x88, 0x26, 0xf1, 0x34, 0xb1, 0x5a, 0x7b, 0x8c, 0x67, 0x5c, 0xd4, 0x17,
0xe6, 0xc8, 0x09, 0xf1, 0x2d, 0xe0, 0x8c, 0xf8, 0x00, 0x1c, 0xf9, 0x14, 0xc8, 0x6f, 0xc6, 0x8e, 0xe0, 0x41, 0xb8, 0xe4, 0x12, 0xf1, 0x02, 0x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e, 0xad, 0x1b, 0xa7, 0x85, 0xfd, 0xcf, 0xad, 0x3f, 0x7f, 0xff, 0xd2, 0x1f, 0x1f, 0xe0, 0x1f, 0xbd, 0x31, 0xbf, 0xe9, 0x4e, 0x58, 0xd0, 0xc5, 0x41,
0x4b, 0xc0, 0xeb, 0x73, 0xeb, 0x9f, 0xfa, 0x66, 0x19, 0x78, 0x7d, 0x34, 0x3a, 0x38, 0x61, 0x92, 0x77, 0xc2, 0xbb, 0xf9, 0xbf, 0x85, 0x4f, 0x33, 0xc3, 0xdb, 0xde, 0x4f, 0xe5, 0xca, 0xf9, 0xab,
0xa6, 0x8a, 0xfd, 0x5b, 0x6f, 0x15, 0x26, 0x9f, 0x3c, 0x39, 0xb7, 0x26, 0xcb, 0xb8, 0xfb, 0x27, 0x57, 0x3f, 0x97, 0xad, 0xf3, 0xcc, 0xfe, 0x97, 0xbd, 0xdf, 0x73, 0xc0, 0xeb, 0xcb, 0xde, 0xdf,
0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xef, 0xd2, 0x4b, 0x93, 0xbb, 0x0a, 0x00, 0x00, 0xe5, 0xed, 0x3c, 0xf0, 0xfa, 0x64, 0x70, 0x74, 0xc6, 0x24, 0x55, 0xa9, 0xfd, 0x53, 0xae, 0x67,
0x26, 0x9f, 0x3c, 0xb9, 0xec, 0x8d, 0x56, 0x71, 0xf7, 0x8f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff,
0x38, 0x53, 0xb2, 0x3e, 0xf4, 0x0a, 0x00, 0x00,
} }
...@@ -55,8 +55,9 @@ message DeviceInfoRequest { ...@@ -55,8 +55,9 @@ message DeviceInfoRequest {
message DeviceInfoResponse { message DeviceInfoResponse {
string miner_pubkey = 1; string miner_pubkey = 1;
repeated DeviceInfo devices = 2; string benefit_address = 2;
bytes device_signature = 3; // 由测试程序对设备信息进行签名 repeated DeviceInfo devices = 3;
bytes device_signature = 4; // 由测试程序对设备信息进行签名
} }
message DeviceUsage { message DeviceUsage {
...@@ -69,7 +70,7 @@ message StatusResponse { ...@@ -69,7 +70,7 @@ message StatusResponse {
} }
message PushTaskMessage { message PushTaskMessage {
string task_id = 1; string task_uuid = 1;
base.v1.TaskType task_type = 2; base.v1.TaskType task_type = 2;
uint64 workload = 3; uint64 workload = 3;
string task_cmd = 4; // string task_cmd = 4; //
...@@ -81,7 +82,7 @@ message PushTaskMessage { ...@@ -81,7 +82,7 @@ message PushTaskMessage {
// manager_signature = sign(hash((task_id+hash(task_param)+hash(task_result)+container_signature+miner_signature+workload)) // manager_signature = sign(hash((task_id+hash(task_param)+hash(task_result)+container_signature+miner_signature+workload))
message SubmitTaskResult { message SubmitTaskResult {
string task_id = 1; string task_uuid = 1;
bytes container_signature = 2; // 容器签名 bytes container_signature = 2; // 容器签名
bytes miner_signature = 3; // worker 签名 bytes miner_signature = 3; // worker 签名
bytes task_result = 4; // 任务结果 bytes task_result = 4; // 任务结果
...@@ -89,7 +90,7 @@ message SubmitTaskResult { ...@@ -89,7 +90,7 @@ message SubmitTaskResult {
} }
message ProofTaskResult { message ProofTaskResult {
string task_id = 1; string task_uuid = 1;
bytes manager_signature = 2; // nodemanager 签名 bytes manager_signature = 2; // nodemanager 签名
bytes container_pubkey = 3; bytes container_pubkey = 3;
} }
...@@ -100,7 +101,7 @@ message DispatchTaskRequest { ...@@ -100,7 +101,7 @@ message DispatchTaskRequest {
} }
message DispatchTaskResponse { message DispatchTaskResponse {
string task_id = 1; string task_uuid = 1;
string miner = 2; string miner = 2;
} }
......
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