Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MetaProtocol
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
Nebula
MetaProtocol
Commits
debb3759
Commit
debb3759
authored
Oct 20, 2022
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update p2p proto.
parent
285445a0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
418 additions
and
34 deletions
+418
-34
resource.pb.go
meta/p2p/v1/resource.pb.go
+379
-32
resource.proto
meta/p2p/v1/resource.proto
+39
-2
No files found.
meta/p2p/v1/resource.pb.go
View file @
debb3759
This diff is collapsed.
Click to expand it.
meta/p2p/v1/resource.proto
View file @
debb3759
...
@@ -22,11 +22,48 @@ message MessageHeader {
...
@@ -22,11 +22,48 @@ message MessageHeader {
google.protobuf.Timestamp
create_time
=
4
;
google.protobuf.Timestamp
create_time
=
4
;
// id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
// id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
string
node_id
=
5
;
string
node_id
=
5
;
// Message type.
P2PMsgType
msg_type
=
6
;
// Authoring node Secp256k1 public key (32bytes) - protobufs serielized
// Authoring node Secp256k1 public key (32bytes) - protobufs serielized
bytes
node_pubkey
=
7
;
bytes
node_pubkey
=
7
;
// signature of full message data.
// signature of full message data.
bytes
sign
=
8
;
bytes
sign
=
8
;
}
}
// HandShake used for check info when peer connect
message
HandShakeRequest
{
MessageHeader
header
=
1
;
string
message
=
2
;
}
message
HandShakeResponse
{
MessageHeader
header
=
1
;
string
message
=
2
;
}
// PingRequest used for peer keep alive.
message
PingRequest
{
MessageHeader
header
=
1
;
string
message
=
2
;
}
message
PongResponse
{
MessageHeader
header
=
1
;
string
message
=
2
;
}
// Disconnect used for disconnect a peer and give a reason.
message
DisconnectRequest
{
MessageHeader
header
=
1
;
string
reason
=
2
;
}
message
MessageRequest
{
MessageHeader
header
=
1
;
int32
message_type
=
2
;
bytes
message_data
=
3
;
}
message
MessageResponse
{
MessageHeader
header
=
1
;
int32
message_type
=
2
;
bytes
message_data
=
3
;
}
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