Commit a934bfb6 authored by vicotor's avatar vicotor

update proto

parent 73d4928d
...@@ -23,7 +23,7 @@ enum BillingMethod { ...@@ -23,7 +23,7 @@ enum BillingMethod {
message TaskContent { message TaskContent {
string task_id = 1; string task_id = 1;
string task_type = 2; TaskType task_type = 2;
string task_cmd =3; string task_cmd =3;
bytes task_param = 4; bytes task_param = 4;
uint64 task_timestamp = 5; uint64 task_timestamp = 5;
......
This diff is collapsed.
...@@ -129,9 +129,9 @@ func (m *DeviceInfo) GetDevicePower() uint64 { ...@@ -129,9 +129,9 @@ func (m *DeviceInfo) GetDevicePower() uint64 {
} }
type WorkerContent struct { 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"` 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_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -161,9 +161,9 @@ func (m *WorkerContent) XXX_DiscardUnknown() { ...@@ -161,9 +161,9 @@ func (m *WorkerContent) XXX_DiscardUnknown() {
var xxx_messageInfo_WorkerContent proto.InternalMessageInfo var xxx_messageInfo_WorkerContent proto.InternalMessageInfo
func (m *WorkerContent) GetWorkerPubkey() string { func (m *WorkerContent) GetMinerPubkey() string {
if m != nil { if m != nil {
return m.WorkerPubkey return m.MinerPubkey
} }
return "" return ""
} }
...@@ -175,9 +175,9 @@ func (m *WorkerContent) GetDevices() []*DeviceInfo { ...@@ -175,9 +175,9 @@ func (m *WorkerContent) GetDevices() []*DeviceInfo {
return nil return nil
} }
func (m *WorkerContent) GetDeviceProof() []byte { func (m *WorkerContent) GetDeviceSignature() []byte {
if m != nil { if m != nil {
return m.DeviceProof return m.DeviceSignature
} }
return nil return nil
} }
...@@ -191,29 +191,30 @@ func init() { ...@@ -191,29 +191,30 @@ func init() {
func init() { proto.RegisterFile("nodemanager/v1/resource.proto", fileDescriptor_462e4441103de524) } func init() { proto.RegisterFile("nodemanager/v1/resource.proto", fileDescriptor_462e4441103de524) }
var fileDescriptor_462e4441103de524 = []byte{ var fileDescriptor_462e4441103de524 = []byte{
// 383 bytes of a gzipped FileDescriptorProto // 393 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcd, 0x6a, 0xdb, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xcf, 0x6e, 0x9b, 0x40,
0x14, 0x85, 0x91, 0x6c, 0xda, 0x7a, 0xfc, 0x07, 0x5a, 0x09, 0xd3, 0x52, 0xd7, 0xdd, 0x78, 0x53, 0x10, 0xc6, 0x05, 0xb6, 0xda, 0x7a, 0xfd, 0xaf, 0xe2, 0x84, 0xac, 0x56, 0x75, 0x7d, 0x72, 0x0f,
0x09, 0xb5, 0x5d, 0xb9, 0x3b, 0xb7, 0x50, 0x4a, 0xb1, 0x2b, 0x4c, 0x71, 0x4c, 0x30, 0x18, 0xfd, 0x05, 0xd1, 0xf6, 0xe4, 0xde, 0xdc, 0x4a, 0x55, 0x55, 0xd9, 0x45, 0xb4, 0x72, 0xac, 0xc8, 0x92,
0x5c, 0x2b, 0xc2, 0xd6, 0x5c, 0x31, 0x1a, 0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x01, 0x30, 0x53, 0x0a, 0x33, 0x40, 0xb3, 0xf9, 0x0a, 0xbe, 0xd7, 0x64, 0x66,
0xe0, 0xb5, 0x75, 0xdf, 0x00, 0xdb, 0xb5, 0xf5, 0xa8, 0x8e, 0x9a, 0x60, 0xfb, 0xdb, 0x9e, 0x2f, 0xdd, 0xaa, 0xad, 0xe5, 0x7a, 0x7d, 0xa7, 0x0e, 0x96, 0xb5, 0x8b, 0x57, 0xd6, 0x7d, 0x03, 0x6c,
0x80, 0x3b, 0xbe, 0xc3, 0x9d, 0x27, 0x75, 0x28, 0x0d, 0x67, 0xb3, 0xb5, 0xe5, 0xbe, 0x11, 0xa7, 0x56, 0xd6, 0xa3, 0x3a, 0x6a, 0x82, 0xcd, 0x2f, 0x7b, 0xbe, 0x00, 0x41, 0x7d, 0x2a, 0xe8, 0x93,
0x7f, 0x7b, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x9b, 0xeb, 0x03, 0x7d, 0x02, 0x00, 0x00, 0x3a, 0xac, 0x15, 0x67, 0xb3, 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 { ...@@ -99,7 +99,7 @@ func (m *WitnessStatusResponse) GetPeers() []string {
type PushProofRequest struct { type PushProofRequest struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"` 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"` 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"` 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"` MinerSignature string `protobuf:"bytes,5,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -145,9 +145,9 @@ func (m *PushProofRequest) GetTaskId() string { ...@@ -145,9 +145,9 @@ func (m *PushProofRequest) GetTaskId() string {
return "" return ""
} }
func (m *PushProofRequest) GetNmSignature() string { func (m *PushProofRequest) GetManagerSignature() string {
if m != nil { if m != nil {
return m.NmSignature return m.ManagerSignature
} }
return "" return ""
} }
...@@ -465,50 +465,51 @@ func (m *GetWithdrawProofResponse) GetMerkleProof() []string { ...@@ -465,50 +465,51 @@ func (m *GetWithdrawProofResponse) GetMerkleProof() []string {
} }
func init() { func init() {
proto.RegisterType((*WitnessStatusRequest)(nil), "witness.v1.witnessStatusRequest") proto.RegisterType((*WitnessStatusRequest)(nil), "witness.v1.WitnessStatusRequest")
proto.RegisterType((*WitnessStatusResponse)(nil), "witness.v1.witnessStatusResponse") proto.RegisterType((*WitnessStatusResponse)(nil), "witness.v1.WitnessStatusResponse")
proto.RegisterType((*PushProofRequest)(nil), "witness.v1.pushProofRequest") proto.RegisterType((*PushProofRequest)(nil), "witness.v1.PushProofRequest")
proto.RegisterType((*PushProofResponse)(nil), "witness.v1.pushProofResponse") proto.RegisterType((*PushProofResponse)(nil), "witness.v1.PushProofResponse")
proto.RegisterType((*GetMinerProofRequest)(nil), "witness.v1.getMinerProofRequest") proto.RegisterType((*GetMinerProofRequest)(nil), "witness.v1.GetMinerProofRequest")
proto.RegisterType((*GetMinerProofResponse)(nil), "witness.v1.getMinerProofResponse") proto.RegisterType((*GetMinerProofResponse)(nil), "witness.v1.GetMinerProofResponse")
proto.RegisterType((*GetProofRequest)(nil), "witness.v1.getProofRequest") proto.RegisterType((*GetProofRequest)(nil), "witness.v1.GetProofRequest")
proto.RegisterType((*GetProofResponse)(nil), "witness.v1.getProofResponse") proto.RegisterType((*GetProofResponse)(nil), "witness.v1.GetProofResponse")
proto.RegisterType((*GetWithdrawProofRequest)(nil), "witness.v1.getWithdrawProofRequest") proto.RegisterType((*GetWithdrawProofRequest)(nil), "witness.v1.GetWithdrawProofRequest")
proto.RegisterType((*GetWithdrawProofResponse)(nil), "witness.v1.getWithdrawProofResponse") proto.RegisterType((*GetWithdrawProofResponse)(nil), "witness.v1.GetWithdrawProofResponse")
} }
func init() { proto.RegisterFile("witness/v1/request_response.proto", fileDescriptor_fcd71b26d9e7af56) } func init() { proto.RegisterFile("witness/v1/request_response.proto", fileDescriptor_fcd71b26d9e7af56) }
var fileDescriptor_fcd71b26d9e7af56 = []byte{ 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, 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, 0x10, 0xc5, 0x52, 0xe2, 0xd4, 0x13, 0x48, 0x9c, 0xad, 0xe3, 0x88, 0x42, 0xc1, 0x55, 0x0f, 0x0d,
0x4b, 0x25, 0x44, 0x6e, 0x29, 0xf4, 0xe0, 0x4b, 0x08, 0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23, 0x0b, 0x34, 0x08, 0x62, 0x1e, 0x1e, 0xdf, 0x49, 0x89, 0xb9, 0x5c, 0x07, 0xef, 0xf4, 0x25, 0x4d, 0xf8, 0xdc, 0x4f, 0x90, 0xf9,
0x54, 0x1b, 0xf7, 0xde, 0x1c, 0x17, 0xe1, 0x37, 0xdb, 0x19, 0xde, 0xde, 0x7e, 0xb7, 0x61, 0x68, 0x1a, 0xf8, 0x09, 0xf7, 0xeb, 0xdb, 0x7b, 0x6f, 0xc2, 0x65, 0xf0, 0xcd, 0xb2, 0x47, 0xd7, 0xd7,
0x3c, 0x07, 0xe1, 0xaf, 0x15, 0xb8, 0x1b, 0x84, 0xbf, 0xed, 0x76, 0x05, 0xee, 0x2e, 0x7b, 0xdd, 0xdf, 0x2d, 0x30, 0xf7, 0xe4, 0x0d, 0x83, 0x9f, 0x6b, 0x70, 0x33, 0x0c, 0x7e, 0x5b, 0xdd, 0x1a,
0x6b, 0x54, 0x34, 0xa2, 0x8a, 0xfe, 0xb1, 0x1b, 0xe6, 0xe2, 0xe2, 0x62, 0x10, 0xde, 0xd7, 0xb4, 0xdc, 0x84, 0x51, 0xff, 0x12, 0x15, 0x8d, 0xa9, 0xa2, 0x7f, 0xac, 0x7d, 0x53, 0x38, 0x3f, 0x1f,
0xcb, 0xf9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0x72, 0x70, 0x2a, 0xd7, 0x03, 0x00, 0x00, 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 ...@@ -23,27 +23,26 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("witness/v1/service.proto", fileDescriptor_687af857651c0e7f) } func init() { proto.RegisterFile("witness/v1/service.proto", fileDescriptor_687af857651c0e7f) }
var fileDescriptor_687af857651c0e7f = []byte{ var fileDescriptor_687af857651c0e7f = []byte{
// 337 bytes of a gzipped FileDescriptorProto // 335 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4a, 0xf3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4a, 0xfb, 0x40,
0x10, 0xc7, 0xbf, 0xa6, 0xf0, 0xa1, 0xab, 0x2d, 0x92, 0x83, 0x48, 0xad, 0x60, 0xd5, 0xab, 0x59, 0x10, 0xc6, 0xff, 0x4d, 0xe1, 0x8f, 0xae, 0xb6, 0x48, 0x0e, 0x22, 0xb5, 0x82, 0x55, 0xaf, 0x66,
0x56, 0x6f, 0xf5, 0xd6, 0xcb, 0x82, 0x50, 0x08, 0x0a, 0x69, 0x91, 0x42, 0x49, 0xd3, 0x31, 0x0d, 0x59, 0xbd, 0xd5, 0x5b, 0x2f, 0x0b, 0x42, 0x21, 0x28, 0xa4, 0x45, 0x0a, 0x25, 0x4d, 0xc7, 0x36,
0xd8, 0x6c, 0xdd, 0x9d, 0xa4, 0xf8, 0x3a, 0x1e, 0x3d, 0x79, 0xf2, 0x21, 0x7c, 0x0c, 0x8f, 0x3e, 0x60, 0xb3, 0x75, 0x77, 0x92, 0xe2, 0xeb, 0x78, 0xf4, 0xe4, 0xc9, 0x87, 0xf0, 0x31, 0x3c, 0xfa,
0x85, 0xd8, 0xdd, 0xa4, 0x49, 0xa8, 0xbd, 0xcd, 0xcc, 0xff, 0x3f, 0xbf, 0x19, 0x98, 0x21, 0x47, 0x14, 0x62, 0x77, 0xb3, 0x6d, 0x42, 0xed, 0x6d, 0x67, 0xbe, 0x6f, 0x7e, 0x33, 0xf0, 0x2d, 0x39,
0xcb, 0x08, 0x63, 0x50, 0x8a, 0x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0xf9, 0x47, 0xe2, 0x89, 0x4e, 0x20, 0xa1, 0xcb, 0x82, 0x4e,
0x42, 0x43, 0x41, 0xd7, 0x1f, 0x73, 0x63, 0xc2, 0x94, 0xbd, 0x5a, 0xf5, 0xc1, 0x70, 0xf8, 0x66, 0x04, 0x5d, 0xfd, 0x98, 0x1b, 0xf3, 0xcc, 0xd8, 0xab, 0x53, 0xed, 0xf5, 0xfb, 0x6f, 0x0e, 0x31,
0x11, 0xf3, 0x16, 0x8e, 0xc7, 0x3e, 0xf3, 0x64, 0xe4, 0xb1, 0x2f, 0xeb, 0x70, 0x9d, 0x8c, 0xb8, 0xc9, 0x7a, 0x01, 0xfb, 0xb4, 0xc5, 0x20, 0x60, 0x5f, 0xce, 0xe1, 0xaa, 0x18, 0x70, 0xbf, 0xd3,
0xdb, 0xeb, 0x03, 0xfa, 0x53, 0x1f, 0xfd, 0x6f, 0x6b, 0xcf, 0x08, 0xdd, 0xae, 0xc7, 0x26, 0xff, 0x05, 0x0c, 0xc7, 0x21, 0x86, 0xdf, 0xce, 0x9e, 0x11, 0xda, 0xed, 0x80, 0x8d, 0xfe, 0x2f, 0xb7,
0x57, 0x53, 0xae, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x30, 0x98, 0x73, 0xbd, 0x02, 0x00, 0x5c, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x7f, 0x10, 0x74, 0xbd, 0x02, 0x00, 0x00,
0x00,
} }
...@@ -39,7 +39,7 @@ func NewWitnessServiceClient(cc grpc.ClientConnInterface) WitnessServiceClient { ...@@ -39,7 +39,7 @@ func NewWitnessServiceClient(cc grpc.ClientConnInterface) WitnessServiceClient {
func (c *witnessServiceClient) WitnessStatus(ctx context.Context, in *WitnessStatusRequest, opts ...grpc.CallOption) (*WitnessStatusResponse, error) { func (c *witnessServiceClient) WitnessStatus(ctx context.Context, in *WitnessStatusRequest, opts ...grpc.CallOption) (*WitnessStatusResponse, error) {
out := new(WitnessStatusResponse) 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 { if err != nil {
return nil, err return nil, err
} }
...@@ -48,7 +48,7 @@ func (c *witnessServiceClient) WitnessStatus(ctx context.Context, in *WitnessSta ...@@ -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) { func (c *witnessServiceClient) PushProof(ctx context.Context, in *PushProofRequest, opts ...grpc.CallOption) (*PushProofResponse, error) {
out := new(PushProofResponse) 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 { if err != nil {
return nil, err return nil, err
} }
...@@ -57,7 +57,7 @@ func (c *witnessServiceClient) PushProof(ctx context.Context, in *PushProofReque ...@@ -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) { func (c *witnessServiceClient) GetMinerProof(ctx context.Context, in *GetMinerProofRequest, opts ...grpc.CallOption) (*GetMinerProofResponse, error) {
out := new(GetMinerProofResponse) 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 { if err != nil {
return nil, err return nil, err
} }
...@@ -66,7 +66,7 @@ func (c *witnessServiceClient) GetMinerProof(ctx context.Context, in *GetMinerPr ...@@ -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) { func (c *witnessServiceClient) GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error) {
out := new(GetProofResponse) 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 { if err != nil {
return nil, err return nil, err
} }
...@@ -75,7 +75,7 @@ func (c *witnessServiceClient) GetProof(ctx context.Context, in *GetProofRequest ...@@ -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) { func (c *witnessServiceClient) GetWithdrawProof(ctx context.Context, in *GetWithdrawProofRequest, opts ...grpc.CallOption) (*GetWithdrawProofResponse, error) {
out := new(GetWithdrawProofResponse) 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 { if err != nil {
return nil, err return nil, err
} }
...@@ -136,7 +136,7 @@ func _WitnessService_WitnessStatus_Handler(srv interface{}, ctx context.Context, ...@@ -136,7 +136,7 @@ func _WitnessService_WitnessStatus_Handler(srv interface{}, ctx context.Context,
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/witness.v1.witnessService/WitnessStatus", FullMethod: "/witness.v1.WitnessService/WitnessStatus",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).WitnessStatus(ctx, req.(*WitnessStatusRequest)) return srv.(WitnessServiceServer).WitnessStatus(ctx, req.(*WitnessStatusRequest))
...@@ -154,7 +154,7 @@ func _WitnessService_PushProof_Handler(srv interface{}, ctx context.Context, dec ...@@ -154,7 +154,7 @@ func _WitnessService_PushProof_Handler(srv interface{}, ctx context.Context, dec
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/witness.v1.witnessService/PushProof", FullMethod: "/witness.v1.WitnessService/PushProof",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).PushProof(ctx, req.(*PushProofRequest)) return srv.(WitnessServiceServer).PushProof(ctx, req.(*PushProofRequest))
...@@ -172,7 +172,7 @@ func _WitnessService_GetMinerProof_Handler(srv interface{}, ctx context.Context, ...@@ -172,7 +172,7 @@ func _WitnessService_GetMinerProof_Handler(srv interface{}, ctx context.Context,
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/witness.v1.witnessService/GetMinerProof", FullMethod: "/witness.v1.WitnessService/GetMinerProof",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).GetMinerProof(ctx, req.(*GetMinerProofRequest)) return srv.(WitnessServiceServer).GetMinerProof(ctx, req.(*GetMinerProofRequest))
...@@ -190,7 +190,7 @@ func _WitnessService_GetProof_Handler(srv interface{}, ctx context.Context, dec ...@@ -190,7 +190,7 @@ func _WitnessService_GetProof_Handler(srv interface{}, ctx context.Context, dec
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/witness.v1.witnessService/GetProof", FullMethod: "/witness.v1.WitnessService/GetProof",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).GetProof(ctx, req.(*GetProofRequest)) return srv.(WitnessServiceServer).GetProof(ctx, req.(*GetProofRequest))
...@@ -208,7 +208,7 @@ func _WitnessService_GetWithdrawProof_Handler(srv interface{}, ctx context.Conte ...@@ -208,7 +208,7 @@ func _WitnessService_GetWithdrawProof_Handler(srv interface{}, ctx context.Conte
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/witness.v1.witnessService/GetWithdrawProof", FullMethod: "/witness.v1.WitnessService/GetWithdrawProof",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WitnessServiceServer).GetWithdrawProof(ctx, req.(*GetWithdrawProofRequest)) return srv.(WitnessServiceServer).GetWithdrawProof(ctx, req.(*GetWithdrawProofRequest))
...@@ -220,7 +220,7 @@ func _WitnessService_GetWithdrawProof_Handler(srv interface{}, ctx context.Conte ...@@ -220,7 +220,7 @@ func _WitnessService_GetWithdrawProof_Handler(srv interface{}, ctx context.Conte
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
var WitnessService_ServiceDesc = grpc.ServiceDesc{ var WitnessService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "witness.v1.witnessService", ServiceName: "witness.v1.WitnessService",
HandlerType: (*WitnessServiceServer)(nil), HandlerType: (*WitnessServiceServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{ {
......
...@@ -28,15 +28,10 @@ message ManagerMessage { ...@@ -28,15 +28,10 @@ message ManagerMessage {
} }
} }
enum TaskType {
SystemTask = 0;
UserTask = 1;
CustomTask = 2;
}
message GoodbyeMessage { message GoodbyeMessage {
string reason = 1; string reason = 1;
} }
message HeartbeatRequest { message HeartbeatRequest {
uint64 timestamp = 1; uint64 timestamp = 1;
} }
...@@ -49,7 +44,6 @@ message StatusRequest { ...@@ -49,7 +44,6 @@ message StatusRequest {
} }
message DeviceUsageRequest { message DeviceUsageRequest {
} }
message DeviceUsageResponse { message DeviceUsageResponse {
...@@ -74,20 +68,20 @@ message StatusResponse { ...@@ -74,20 +68,20 @@ message StatusResponse {
message PushTaskMessage { message PushTaskMessage {
string task_id = 1; string task_id = 1;
TaskType task_type = 2; base.v1.TaskType task_type = 2;
uint64 work_load = 3; uint64 workload = 3;
string task_cmd = 4; // string task_cmd = 4; //
bytes task_param = 5; bytes task_param = 5;
} }
// 容器签名 (task_id+hash(task_param)+hash(task_result)) // container_signature = sign(hash(task_id+hash(task_param)+hash(task_result)))
// 矿工签名 (task_id+hash(task_param)+hash(task_result)) // miner_signature = sign(hash((task_id+hash(task_param)+hash(task_result)))
// nodemanager签名 (task_id+hash(task_param)+hash(task_result)+docker_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_id = 1;
bytes task_proof = 2; // 容器签名 bytes container_signature = 2; // 容器签名
bytes worker_signature = 3; // worker 签名 bytes miner_signature = 3; // worker 签名
bytes task_result = 4; // 任务结果 bytes task_result = 4; // 任务结果
} }
...@@ -96,20 +90,16 @@ message ProofTaskResult { ...@@ -96,20 +90,16 @@ message ProofTaskResult {
bytes manager_signature = 2; // nodemanager 签名 bytes manager_signature = 2; // nodemanager 签名
} }
message DispatchTaskRequest { message DispatchTaskRequest {
string task_id = 1; base.v1.TaskContent task_data = 1;
TaskType task_type = 2; string miner = 2;
base.v1.TaskContent task_data = 3;
string worker = 4;
} }
message DispatchTaskResponse { message DispatchTaskResponse {
string task_id = 1; string task_id = 1;
string worker_id = 2; string miner = 2;
} }
message ManagerListRequest { message ManagerListRequest {
} }
......
...@@ -16,7 +16,7 @@ message DeviceInfo { ...@@ -16,7 +16,7 @@ message DeviceInfo {
} }
message WorkerContent { message WorkerContent {
string worker_pubkey = 1; string miner_pubkey = 1;
repeated DeviceInfo devices = 2; repeated DeviceInfo devices = 2;
bytes device_proof = 3; // 由测试程序对设备信息进行签名 bytes device_signature = 3; // 由测试程序对设备信息进行签名
} }
\ No newline at end of file
...@@ -2,49 +2,49 @@ syntax = "proto3"; ...@@ -2,49 +2,49 @@ syntax = "proto3";
package witness.v1; package witness.v1;
message witnessStatusRequest { message WitnessStatusRequest {
} }
message witnessStatusResponse { message WitnessStatusResponse {
string witness_id = 1; string witness_id = 1;
repeated string peers = 2; repeated string peers = 2;
} }
message pushProofRequest { message PushProofRequest {
uint64 workload = 1; uint64 workload = 1;
string task_id = 2; string task_id = 2;
string nm_signature = 3; string manager_signature = 3;
string container_signature = 4; string container_signature = 4;
string miner_signature = 5; string miner_signature = 5;
} }
message pushProofResponse { message PushProofResponse {
uint64 workload = 1; uint64 workload = 1;
} }
message getMinerProofRequest { message GetMinerProofRequest {
string ymd = 1; string ymd = 1;
string miner = 2; string miner = 2;
} }
message getMinerProofResponse { message GetMinerProofResponse {
uint64 workload = 1; uint64 workload = 1;
string amount = 2; string amount = 2;
} }
message getProofRequest { message GetProofRequest {
string ymd = 1; string ymd = 1;
} }
message getProofResponse { message GetProofResponse {
uint64 workload = 1; uint64 workload = 1;
} }
message getWithdrawProofRequest { message GetWithdrawProofRequest {
string address = 1; string address = 1;
} }
message getWithdrawProofResponse { message GetWithdrawProofResponse {
string address = 1; string address = 1;
string amount = 2; string amount = 2;
repeated string merkleProof = 3; repeated string merkleProof = 3;
......
...@@ -5,12 +5,12 @@ package witness.v1; ...@@ -5,12 +5,12 @@ package witness.v1;
import "witness/v1/request_response.proto"; import "witness/v1/request_response.proto";
service witnessService { service WitnessService {
rpc WitnessStatus(witnessStatusRequest) returns (witnessStatusResponse) {}; // witness status rpc WitnessStatus(WitnessStatusRequest) returns (WitnessStatusResponse) {}; // witness status
rpc PushProof(pushProofRequest) returns (pushProofResponse) {}; // miner push proof rpc PushProof(PushProofRequest) returns (PushProofResponse) {}; // miner push proof
rpc GetMinerProof(getMinerProofRequest) returns (getMinerProofResponse) {}; // proof of a miner per day rpc GetMinerProof(GetMinerProofRequest) returns (GetMinerProofResponse) {}; // proof of a miner per day
rpc GetProof(getProofRequest) returns (getProofResponse) {}; // proof 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