Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OdysseusProtocol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
OdysseusProtocol
Commits
a934bfb6
Commit
a934bfb6
authored
Jan 15, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update proto
parent
73d4928d
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
334 additions
and
386 deletions
+334
-386
odysseus.proto
baseapi/base/v1/odysseus.proto
+1
-1
odysseus.pb.go
gen/proto/go/base/v1/odysseus.pb.go
+105
-100
request_response.pb.go
gen/proto/go/nodemanager/v1/request_response.pb.go
+89
-137
resource.pb.go
gen/proto/go/nodemanager/v1/resource.pb.go
+32
-31
request_response.pb.go
gen/proto/go/witness/v1/request_response.pb.go
+44
-43
service.pb.go
gen/proto/go/witness/v1/service.pb.go
+22
-23
service_grpc.pb.go
gen/proto/go/witness/v1/service_grpc.pb.go
+11
-11
request_response.proto
nodemanager/nodemanager/v1/request_response.proto
+11
-21
resource.proto
nodemanager/nodemanager/v1/resource.proto
+2
-2
request_response.proto
witness/witness/v1/request_response.proto
+11
-11
service.proto
witness/witness/v1/service.proto
+6
-6
No files found.
baseapi/base/v1/odysseus.proto
View file @
a934bfb6
...
...
@@ -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
;
...
...
gen/proto/go/base/v1/odysseus.pb.go
View file @
a934bfb6
This diff is collapsed.
Click to expand it.
gen/proto/go/nodemanager/v1/request_response.pb.go
View file @
a934bfb6
This diff is collapsed.
Click to expand it.
gen/proto/go/nodemanager/v1/resource.pb.go
View file @
a934bfb6
...
...
@@ -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:"work
er_pubkey,omitempty"`
MinerPubkey
string
`protobuf:"bytes,1,opt,name=miner_pubkey,json=minerPubkey,proto3" json:"min
er_pubkey,omitempty"`
Devices
[]
*
DeviceInfo
`protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"`
Device
Proof
[]
byte
`protobuf:"bytes,3,opt,name=device_proof,json=deviceProof,proto3" json:"device_proof
,omitempty"`
Device
Signature
[]
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
)
Get
Work
erPubkey
()
string
{
func
(
m
*
WorkerContent
)
Get
Min
erPubkey
()
string
{
if
m
!=
nil
{
return
m
.
Work
erPubkey
return
m
.
Min
erPubkey
}
return
""
}
...
...
@@ -175,9 +175,9 @@ func (m *WorkerContent) GetDevices() []*DeviceInfo {
return
nil
}
func
(
m
*
WorkerContent
)
GetDevice
Proof
()
[]
byte
{
func
(
m
*
WorkerContent
)
GetDevice
Signature
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Device
Proof
return
m
.
Device
Signature
}
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
,
0x7a
,
0xfc
,
0x07
,
0x5a
,
0x09
,
0xd3
,
0x52
,
0xd7
,
0xdd
,
0x78
,
0x53
,
0x09
,
0xb5
,
0x5d
,
0xb9
,
0x3b
,
0xb7
,
0x50
,
0x4a
,
0xb1
,
0x2b
,
0x4c
,
0x71
,
0x4c
,
0x30
,
0x18
,
0xfd
,
0x5c
,
0x2b
,
0xc2
,
0xd6
,
0x5c
,
0x31
,
0x1a
,
0xc9
,
0xe8
,
0x21
,
0xb2
,
0xcd
,
0x03
,
0x64
,
0x99
,
0x47
,
0x09
,
0xe4
,
0x25
,
0xb2
,
0xcc
,
0x53
,
0x04
,
0x8d
,
0x14
,
0x79
,
0x94
,
0x9d
,
0xce
,
0x77
,
0x8f
,
0xce
,
0xdc
,
0x99
,
0x43
,
0x3e
,
0x50
,
0xf4
,
0x21
,
0x72
,
0xa8
,
0x13
,
0x00
,
0x33
,
0x33
,
0xcb
,
0x64
,
0x90
,
0x60
,
0xca
,
0x3c
,
0x30
,
0x62
,
0x86
,
0x1c
,
0xb5
,
0x81
,
0x34
,
0x36
,
0x32
,
0x6b
,
0xf2
,
0x97
,
0x0c
,
0x97
,
0xe8
,
0xc3
,
0xa2
,
0x24
,
0x7f
,
0xe8
,
0x1e
,
0xb5
,
0xf7
,
0xa4
,
0x13
,
0xa7
,
0xee
,
0x31
,
0xf4
,
0x0e
,
0x90
,
0xeb
,
0xca
,
0x58
,
0x99
,
0x76
,
0x56
,
0x67
,
0xa0
,
0x8d
,
0xc8
,
0x3b
,
0xa0
,
0x7e
,
0x8c
,
0x21
,
0x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
,
0x88
,
0x98
,
0xc1
,
0x27
,
0x83
,
0x02
,
0x00
,
0x00
,
}
gen/proto/go/witness/v1/request_response.pb.go
View file @
a934bfb6
...
...
@@ -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
)
Get
Nm
Signature
()
string
{
func
(
m
*
PushProofRequest
)
Get
Manager
Signature
()
string
{
if
m
!=
nil
{
return
m
.
Nm
Signature
return
m
.
Manager
Signature
}
return
""
}
...
...
@@ -465,50 +465,51 @@ func (m *GetWithdrawProofResponse) GetMerkleProof() []string {
}
func
init
()
{
proto
.
RegisterType
((
*
WitnessStatusRequest
)(
nil
),
"witness.v1.
w
itnessStatusRequest"
)
proto
.
RegisterType
((
*
WitnessStatusResponse
)(
nil
),
"witness.v1.
w
itnessStatusResponse"
)
proto
.
RegisterType
((
*
PushProofRequest
)(
nil
),
"witness.v1.
p
ushProofRequest"
)
proto
.
RegisterType
((
*
PushProofResponse
)(
nil
),
"witness.v1.
p
ushProofResponse"
)
proto
.
RegisterType
((
*
GetMinerProofRequest
)(
nil
),
"witness.v1.
g
etMinerProofRequest"
)
proto
.
RegisterType
((
*
GetMinerProofResponse
)(
nil
),
"witness.v1.
g
etMinerProofResponse"
)
proto
.
RegisterType
((
*
GetProofRequest
)(
nil
),
"witness.v1.
g
etProofRequest"
)
proto
.
RegisterType
((
*
GetProofResponse
)(
nil
),
"witness.v1.
g
etProofResponse"
)
proto
.
RegisterType
((
*
GetWithdrawProofRequest
)(
nil
),
"witness.v1.
g
etWithdrawProofRequest"
)
proto
.
RegisterType
((
*
GetWithdrawProofResponse
)(
nil
),
"witness.v1.
g
etWithdrawProofResponse"
)
proto
.
RegisterType
((
*
WitnessStatusRequest
)(
nil
),
"witness.v1.
W
itnessStatusRequest"
)
proto
.
RegisterType
((
*
WitnessStatusResponse
)(
nil
),
"witness.v1.
W
itnessStatusResponse"
)
proto
.
RegisterType
((
*
PushProofRequest
)(
nil
),
"witness.v1.
P
ushProofRequest"
)
proto
.
RegisterType
((
*
PushProofResponse
)(
nil
),
"witness.v1.
P
ushProofResponse"
)
proto
.
RegisterType
((
*
GetMinerProofRequest
)(
nil
),
"witness.v1.
G
etMinerProofRequest"
)
proto
.
RegisterType
((
*
GetMinerProofResponse
)(
nil
),
"witness.v1.
G
etMinerProofResponse"
)
proto
.
RegisterType
((
*
GetProofRequest
)(
nil
),
"witness.v1.
G
etProofRequest"
)
proto
.
RegisterType
((
*
GetProofResponse
)(
nil
),
"witness.v1.
G
etProofResponse"
)
proto
.
RegisterType
((
*
GetWithdrawProofRequest
)(
nil
),
"witness.v1.
G
etWithdrawProofRequest"
)
proto
.
RegisterType
((
*
GetWithdrawProofResponse
)(
nil
),
"witness.v1.
G
etWithdrawProofResponse"
)
}
func
init
()
{
proto
.
RegisterFile
(
"witness/v1/request_response.proto"
,
fileDescriptor_fcd71b26d9e7af56
)
}
var
fileDescriptor_fcd71b26d9e7af56
=
[]
byte
{
// 48
0
bytes of a gzipped FileDescriptorProto
// 48
3
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0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
,
0x03
,
0x00
,
0x00
,
}
gen/proto/go/witness/v1/service.pb.go
View file @
a934bfb6
...
...
@@ -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
,
0xbf
,
0xa6
,
0xf0
,
0xa1
,
0xab
,
0x2d
,
0x92
,
0x83
,
0x48
,
0xad
,
0x60
,
0xd5
,
0xab
,
0x59
,
0x56
,
0x6f
,
0xf5
,
0xd6
,
0xcb
,
0x82
,
0x50
,
0x08
,
0x0a
,
0x69
,
0x91
,
0x42
,
0x49
,
0xd3
,
0x31
,
0x0d
,
0xd8
,
0x6c
,
0xdd
,
0x9d
,
0xa4
,
0xf8
,
0x3a
,
0x1e
,
0x3d
,
0x79
,
0xf2
,
0x21
,
0x7c
,
0x0c
,
0x8f
,
0x3e
,
0x85
,
0xd8
,
0xdd
,
0xa4
,
0x49
,
0xa8
,
0xbd
,
0xcd
,
0xcc
,
0xff
,
0x3f
,
0xbf
,
0x19
,
0x98
,
0x21
,
0x47
,
0xcb
,
0x08
,
0x63
,
0x50
,
0x8a
,
0xa6
,
0x8c
,
0x2a
,
0x90
,
0x69
,
0x14
,
0x80
,
0xb3
,
0x90
,
0x02
,
0x85
,
0x4d
,
0x8c
,
0xe2
,
0xa4
,
0xac
,
0xd5
,
0x29
,
0xb8
,
0x24
,
0x3c
,
0x27
,
0xa0
,
0x70
,
0x2c
,
0x41
,
0x2d
,
0x44
,
0xac
,
0x8c
,
0xfd
,
0xea
,
0xa3
,
0x4e
,
0x9a
,
0xc6
,
0x75
,
0xaf
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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
,
}
gen/proto/go/witness/v1/service_grpc.pb.go
View file @
a934bfb6
...
...
@@ -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.
w
itnessService/WitnessStatus"
,
in
,
out
,
opts
...
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/witness.v1.
W
itnessService/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.
w
itnessService/PushProof"
,
in
,
out
,
opts
...
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/witness.v1.
W
itnessService/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.
w
itnessService/GetMinerProof"
,
in
,
out
,
opts
...
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/witness.v1.
W
itnessService/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.
w
itnessService/GetProof"
,
in
,
out
,
opts
...
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/witness.v1.
W
itnessService/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.
w
itnessService/GetWithdrawProof"
,
in
,
out
,
opts
...
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/witness.v1.
W
itnessService/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.
w
itnessService/WitnessStatus"
,
FullMethod
:
"/witness.v1.
W
itnessService/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.
w
itnessService/PushProof"
,
FullMethod
:
"/witness.v1.
W
itnessService/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.
w
itnessService/GetMinerProof"
,
FullMethod
:
"/witness.v1.
W
itnessService/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.
w
itnessService/GetProof"
,
FullMethod
:
"/witness.v1.
W
itnessService/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.
w
itnessService/GetWithdrawProof"
,
FullMethod
:
"/witness.v1.
W
itnessService/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.
w
itnessService"
,
ServiceName
:
"witness.v1.
W
itnessService"
,
HandlerType
:
(
*
WitnessServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
...
...
nodemanager/nodemanager/v1/request_response.proto
View file @
a934bfb6
...
...
@@ -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
work
er_signature
=
3
;
// worker 签名
bytes
container_signature
=
2
;
// 容器签名
bytes
min
er_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
{
}
...
...
nodemanager/nodemanager/v1/resource.proto
View file @
a934bfb6
...
...
@@ -16,7 +16,7 @@ message DeviceInfo {
}
message
WorkerContent
{
string
work
er_pubkey
=
1
;
string
min
er_pubkey
=
1
;
repeated
DeviceInfo
devices
=
2
;
bytes
device_
proof
=
3
;
// 由测试程序对设备信息进行签名
bytes
device_
signature
=
3
;
// 由测试程序对设备信息进行签名
}
\ No newline at end of file
witness/witness/v1/request_response.proto
View file @
a934bfb6
...
...
@@ -2,49 +2,49 @@ syntax = "proto3";
package
witness
.
v1
;
message
w
itnessStatusRequest
{
message
W
itnessStatusRequest
{
}
message
w
itnessStatusResponse
{
message
W
itnessStatusResponse
{
string
witness_id
=
1
;
repeated
string
peers
=
2
;
}
message
p
ushProofRequest
{
message
P
ushProofRequest
{
uint64
workload
=
1
;
string
task_id
=
2
;
string
nm
_signature
=
3
;
string
manager
_signature
=
3
;
string
container_signature
=
4
;
string
miner_signature
=
5
;
}
message
p
ushProofResponse
{
message
P
ushProofResponse
{
uint64
workload
=
1
;
}
message
g
etMinerProofRequest
{
message
G
etMinerProofRequest
{
string
ymd
=
1
;
string
miner
=
2
;
}
message
g
etMinerProofResponse
{
message
G
etMinerProofResponse
{
uint64
workload
=
1
;
string
amount
=
2
;
}
message
g
etProofRequest
{
message
G
etProofRequest
{
string
ymd
=
1
;
}
message
g
etProofResponse
{
message
G
etProofResponse
{
uint64
workload
=
1
;
}
message
g
etWithdrawProofRequest
{
message
G
etWithdrawProofRequest
{
string
address
=
1
;
}
message
g
etWithdrawProofResponse
{
message
G
etWithdrawProofResponse
{
string
address
=
1
;
string
amount
=
2
;
repeated
string
merkleProof
=
3
;
...
...
witness/witness/v1/service.proto
View file @
a934bfb6
...
...
@@ -5,12 +5,12 @@ package witness.v1;
import
"witness/v1/request_response.proto"
;
service
w
itnessService
{
rpc
WitnessStatus
(
witnessStatusRequest
)
returns
(
w
itnessStatusResponse
)
{};
// witness status
rpc
PushProof
(
pushProofRequest
)
returns
(
p
ushProofResponse
)
{};
// miner push proof
service
W
itnessService
{
rpc
WitnessStatus
(
WitnessStatusRequest
)
returns
(
W
itnessStatusResponse
)
{};
// witness status
rpc
PushProof
(
PushProofRequest
)
returns
(
P
ushProofResponse
)
{};
// miner push proof
rpc
GetMinerProof
(
getMinerProofRequest
)
returns
(
g
etMinerProofResponse
)
{};
// proof of a miner per day
rpc
GetProof
(
getProofRequest
)
returns
(
g
etProofResponse
)
{};
// proof per day
rpc
GetMinerProof
(
GetMinerProofRequest
)
returns
(
G
etMinerProofResponse
)
{};
// proof of a miner per day
rpc
GetProof
(
GetProofRequest
)
returns
(
G
etProofResponse
)
{};
// proof per day
rpc
GetWithdrawProof
(
getWithdrawProofRequest
)
returns
(
g
etWithdrawProofResponse
)
{};
// get merkle proof of withdraw token
rpc
GetWithdrawProof
(
GetWithdrawProofRequest
)
returns
(
G
etWithdrawProofResponse
)
{};
// get merkle proof of withdraw token
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment