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
01297bbd
Commit
01297bbd
authored
Jan 17, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update witness
parent
e1735cac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
55 deletions
+118
-55
request_response.pb.go
gen/proto/go/witness/v1/request_response.pb.go
+104
-55
request_response.proto
witness/witness/v1/request_response.proto
+5
-0
resource.proto
witness/witness/v1/resource.proto
+9
-0
No files found.
gen/proto/go/witness/v1/request_response.pb.go
View file @
01297bbd
...
...
@@ -97,13 +97,8 @@ 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"`
ReqHash
[]
byte
`protobuf:"bytes,6,opt,name=req_hash,json=reqHash,proto3" json:"req_hash,omitempty"`
RespHash
[]
byte
`protobuf:"bytes,7,opt,name=resp_hash,json=respHash,proto3" json:"resp_hash,omitempty"`
ManagerSignature
[]
byte
`protobuf:"bytes,3,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"`
ContainerSignature
[]
byte
`protobuf:"bytes,4,opt,name=container_signature,json=containerSignature,proto3" json:"container_signature,omitempty"`
MinerSignature
[]
byte
`protobuf:"bytes,5,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"`
Proofs
[]
*
Proof
`protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,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:"-"`
...
...
@@ -133,49 +128,100 @@ func (m *PushProofRequest) XXX_DiscardUnknown() {
var
xxx_messageInfo_PushProofRequest
proto
.
InternalMessageInfo
func
(
m
*
PushProofRequest
)
GetWorkload
()
uint64
{
func
(
m
*
PushProofRequest
)
GetProofs
()
[]
*
Proof
{
if
m
!=
nil
{
return
m
.
Proofs
}
return
nil
}
func
(
m
*
PushProofRequest
)
GetMiner
()
string
{
if
m
!=
nil
{
return
m
.
Miner
}
return
""
}
type
Proof
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"`
ReqHash
[]
byte
`protobuf:"bytes,6,opt,name=req_hash,json=reqHash,proto3" json:"req_hash,omitempty"`
RespHash
[]
byte
`protobuf:"bytes,7,opt,name=resp_hash,json=respHash,proto3" json:"resp_hash,omitempty"`
ManagerSignature
[]
byte
`protobuf:"bytes,3,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"`
ContainerSignature
[]
byte
`protobuf:"bytes,4,opt,name=container_signature,json=containerSignature,proto3" json:"container_signature,omitempty"`
MinerSignature
[]
byte
`protobuf:"bytes,5,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
Proof
)
Reset
()
{
*
m
=
Proof
{}
}
func
(
m
*
Proof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Proof
)
ProtoMessage
()
{}
func
(
*
Proof
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
3
}
}
func
(
m
*
Proof
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Proof
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Proof
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Proof
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Proof
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Proof
.
Merge
(
m
,
src
)
}
func
(
m
*
Proof
)
XXX_Size
()
int
{
return
xxx_messageInfo_Proof
.
Size
(
m
)
}
func
(
m
*
Proof
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Proof
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Proof
proto
.
InternalMessageInfo
func
(
m
*
Proof
)
GetWorkload
()
uint64
{
if
m
!=
nil
{
return
m
.
Workload
}
return
0
}
func
(
m
*
P
ushProofRequest
)
GetTaskId
()
string
{
func
(
m
*
P
roof
)
GetTaskId
()
string
{
if
m
!=
nil
{
return
m
.
TaskId
}
return
""
}
func
(
m
*
P
ushProofRequest
)
GetReqHash
()
[]
byte
{
func
(
m
*
P
roof
)
GetReqHash
()
[]
byte
{
if
m
!=
nil
{
return
m
.
ReqHash
}
return
nil
}
func
(
m
*
P
ushProofRequest
)
GetRespHash
()
[]
byte
{
func
(
m
*
P
roof
)
GetRespHash
()
[]
byte
{
if
m
!=
nil
{
return
m
.
RespHash
}
return
nil
}
func
(
m
*
P
ushProofRequest
)
GetManagerSignature
()
[]
byte
{
func
(
m
*
P
roof
)
GetManagerSignature
()
[]
byte
{
if
m
!=
nil
{
return
m
.
ManagerSignature
}
return
nil
}
func
(
m
*
P
ushProofRequest
)
GetContainerSignature
()
[]
byte
{
func
(
m
*
P
roof
)
GetContainerSignature
()
[]
byte
{
if
m
!=
nil
{
return
m
.
ContainerSignature
}
return
nil
}
func
(
m
*
P
ushProofRequest
)
GetMinerSignature
()
[]
byte
{
func
(
m
*
P
roof
)
GetMinerSignature
()
[]
byte
{
if
m
!=
nil
{
return
m
.
MinerSignature
}
...
...
@@ -193,7 +239,7 @@ func (m *PushProofResponse) Reset() { *m = PushProofResponse{} }
func
(
m
*
PushProofResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PushProofResponse
)
ProtoMessage
()
{}
func
(
*
PushProofResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
3
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
4
}
}
func
(
m
*
PushProofResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_PushProofResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -232,7 +278,7 @@ func (m *GetMinerProofRequest) Reset() { *m = GetMinerProofRequest{} }
func
(
m
*
GetMinerProofRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetMinerProofRequest
)
ProtoMessage
()
{}
func
(
*
GetMinerProofRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
4
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
5
}
}
func
(
m
*
GetMinerProofRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetMinerProofRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -278,7 +324,7 @@ func (m *GetMinerProofResponse) Reset() { *m = GetMinerProofResponse{} }
func
(
m
*
GetMinerProofResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetMinerProofResponse
)
ProtoMessage
()
{}
func
(
*
GetMinerProofResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
5
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
6
}
}
func
(
m
*
GetMinerProofResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetMinerProofResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -323,7 +369,7 @@ func (m *GetProofRequest) Reset() { *m = GetProofRequest{} }
func
(
m
*
GetProofRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetProofRequest
)
ProtoMessage
()
{}
func
(
*
GetProofRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
6
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
7
}
}
func
(
m
*
GetProofRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetProofRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -361,7 +407,7 @@ func (m *GetProofResponse) Reset() { *m = GetProofResponse{} }
func
(
m
*
GetProofResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetProofResponse
)
ProtoMessage
()
{}
func
(
*
GetProofResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
7
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
8
}
}
func
(
m
*
GetProofResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetProofResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -399,7 +445,7 @@ func (m *GetWithdrawProofRequest) Reset() { *m = GetWithdrawProofRequest
func
(
m
*
GetWithdrawProofRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetWithdrawProofRequest
)
ProtoMessage
()
{}
func
(
*
GetWithdrawProofRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
8
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
9
}
}
func
(
m
*
GetWithdrawProofRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetWithdrawProofRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -439,7 +485,7 @@ func (m *GetWithdrawProofResponse) Reset() { *m = GetWithdrawProofRespon
func
(
m
*
GetWithdrawProofResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetWithdrawProofResponse
)
ProtoMessage
()
{}
func
(
*
GetWithdrawProofResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
9
}
return
fileDescriptor_fcd71b26d9e7af56
,
[]
int
{
10
}
}
func
(
m
*
GetWithdrawProofResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetWithdrawProofResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -484,6 +530,7 @@ 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
((
*
Proof
)(
nil
),
"witness.v1.Proof"
)
proto
.
RegisterType
((
*
PushProofResponse
)(
nil
),
"witness.v1.PushProofResponse"
)
proto
.
RegisterType
((
*
GetMinerProofRequest
)(
nil
),
"witness.v1.GetMinerProofRequest"
)
proto
.
RegisterType
((
*
GetMinerProofResponse
)(
nil
),
"witness.v1.GetMinerProofResponse"
)
...
...
@@ -496,38 +543,40 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"witness/v1/request_response.proto"
,
fileDescriptor_fcd71b26d9e7af56
)
}
var
fileDescriptor_fcd71b26d9e7af56
=
[]
byte
{
// 521 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x8c
,
0x53
,
0xcd
,
0x6a
,
0xdb
,
0x4c
,
0x14
,
0xc5
,
0x72
,
0xe2
,
0x9f
,
0x9b
,
0x8f
,
0xc4
,
0x99
,
0xcf
,
0x71
,
0xd4
,
0x96
,
0x82
,
0xab
,
0x2e
,
0x6a
,
0x28
,
0x95
,
0x10
,
0xd9
,
0xa5
,
0xd0
,
0x85
,
0x37
,
0x6e
,
0x68
,
0x03
,
0x46
,
0x01
,
0x3b
,
0x94
,
0x80
,
0x99
,
0x58
,
0xb7
,
0x92
,
0xb0
,
0xa5
,
0xb1
,
0x67
,
0x46
,
0x36
,
0x79
,
0x81
,
0x3e
,
0x48
,
0x97
,
0x7d
,
0x82
,
0x3e
,
0x43
,
0x1f
,
0xa3
,
0xcb
,
0x3e
,
0x45
,
0xd1
,
0x68
,
0x64
,
0xc5
,
0x2e
,
0x49
,
0xbb
,
0x9b
,
0x73
,
0xef
,
0x39
,
0xf7
,
0xe8
,
0x1e
,
0x74
,
0xe1
,
0xc5
,
0x3a
,
0x92
,
0x09
,
0x0a
,
0xe1
,
0xac
,
0x5c
,
0x87
,
0xe3
,
0x32
,
0x45
,
0x21
,
0x27
,
0x1c
,
0xc5
,
0x82
,
0x25
,
0x02
,
0xed
,
0x05
,
0x67
,
0x92
,
0x11
,
0xd0
,
0x14
,
0x7b
,
0xe5
,
0x5a
,
0x1d
,
0x68
,
0x8f
,
0x73
,
0x74
,
0x25
,
0xa9
,
0x4c
,
0x85
,
0x97
,
0x4b
,
0xac
,
0x8f
,
0x70
,
0xb2
,
0x53
,
0xcf
,
0x47
,
0x90
,
0xe7
,
0x50
,
0xc8
,
0x27
,
0x91
,
0x6f
,
0x56
,
0xba
,
0x95
,
0x5e
,
0xd3
,
0x6b
,
0xea
,
0xca
,
0x85
,
0x4f
,
0xda
,
0xb0
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7
,
0xd7
,
0xd7
,
0xdf
,
0x0c
,
0xd0
,
0x77
,
0x68
,
0x8f
,
0xdc
,
0x1f
,
0x1b
,
0x70
,
0x33
,
0x72
,
0x7f
,
0x1a
,
0x9d
,
0x12
,
0xdc
,
0x0c
,
0x86
,
0xfd
,
0x4b
,
0x94
,
0xd4
,
0xa7
,
0x92
,
0xfe
,
0x32
,
0x0e
,
0x74
,
0xe3
,
0xfc
,
0x7c
,
0xe4
,
0xde
,
0xd6
,
0x94
,
0xcb
,
0xd9
,
0xef
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xe1
,
0x31
,
0xc5
,
0x07
,
0x19
,
0x04
,
0x00
,
0x00
,
// 548 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x8c
,
0x53
,
0xcd
,
0x6e
,
0xd3
,
0x40
,
0x10
,
0x96
,
0xed
,
0xe6
,
0x6f
,
0x82
,
0xda
,
0x64
,
0x49
,
0x53
,
0x03
,
0x42
,
0x0a
,
0xe6
,
0x40
,
0x10
,
0xc2
,
0x96
,
0xe9
,
0xad
,
0x48
,
0x1c
,
0x72
,
0x09
,
0x15
,
0x54
,
0x8a
,
0x12
,
0x29
,
0xa9
,
0x50
,
0xa5
,
0x68
,
0x1b
,
0x2f
,
0xb1
,
0x95
,
0xd8
,
0x9b
,
0xec
,
0xae
,
0x13
,
0xf5
,
0x75
,
0x38
,
0xf2
,
0x04
,
0x3c
,
0x03
,
0x8f
,
0xc1
,
0x91
,
0x57
,
0xe0
,
0x82
,
0xbc
,
0x5e
,
0xc7
,
0x49
,
0x50
,
0x4a
,
0x6f
,
0xfb
,
0xcd
,
0x7c
,
0xdf
,
0x7c
,
0xe3
,
0x19
,
0x0f
,
0xbc
,
0x58
,
0x07
,
0x22
,
0x22
,
0x9c
,
0x3b
,
0x2b
,
0xd7
,
0x61
,
0x64
,
0x19
,
0x13
,
0x2e
,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65
,
0x76
,
0x50
,
0x75
,
0xe8
,
0xbb
,
0x50
,
0x0b
,
0xaa
,
0x21
,
0x61
,
0xb3
,
0x39
,
0x91
,
0x85
,
0x4c
,
0x43
,
0x1e
,
0xc1
,
0x76
,
0xa8
,
0xf3
,
0x43
,
0x83
,
0xe3
,
0x09
,
0x0d
,
0xb7
,
0x7e
,
0xf6
,
0x4e
,
0x43
,
0x75
,
0x99
,
0xf9
,
0xf6
,
0x92
,
0x2b
,
0xed
,
0x69
,
0x5f
,
0xba
,
0xd3
,
0x40
,
0xf8
,
0xf1
,
0xad
,
0x3d
,
0xa1
,
0xa1
,
0x43
,
0xbd
,
0x3b
,
0xce
,
0x49
,
0xcc
,
0x37
,
0x8f
,
0xb7
,
0xf2
,
0x96
,
0x27
,
0x74
,
0xee
,
0x4c
,
0x49
,
0xe4
,
0x48
,
0xe0
,
0x4c
,
0xa9
,
0x93
,
0x5f
,
0xff
,
0x7b
,
0xf5
,
0x5c
,
0xb9
,
0xdf
,
0x74
,
0x63
,
0x74
,
0x7d
,
0xfd
,
0x5d
,
0x07
,
0x75
,
0xd1
,
0xf6
,
0xd0
,
0xfd
,
0xb9
,
0x01
,
0x37
,
0x43
,
0xf7
,
0x97
,
0xde
,
0xcc
,
0xc1
,
0x4d
,
0xb7
,
0xd7
,
0xb9
,
0x22
,
0x02
,
0x7b
,
0x58
,
0xe0
,
0xdf
,
0x7a
,
0x55
,
0x25
,
0x2e
,
0x2e
,
0x86
,
0xee
,
0x6d
,
0x51
,
0xba
,
0x9c
,
0xff
,
0x0d
,
0x00
,
0x00
,
0xff
,
0xff
,
0xbf
,
0x71
,
0x5a
,
0x34
,
0x63
,
0x04
,
0x00
,
0x00
,
}
witness/witness/v1/request_response.proto
View file @
01297bbd
...
...
@@ -11,6 +11,11 @@ message WitnessStatusResponse {
}
message
PushProofRequest
{
repeated
Proof
proofs
=
1
;
string
miner
=
2
;
}
message
Proof
{
uint64
workload
=
1
;
string
task_id
=
2
;
bytes
req_hash
=
6
;
...
...
witness/witness/v1/resource.proto
0 → 100644
View file @
01297bbd
syntax
=
"proto3"
;
package
witness
.
v1
;
message
ValidatedProof
{
string
miner
=
1
;
uint64
balance
=
2
;
uint64
workload
=
3
;
}
\ No newline at end of file
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