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
3aef1ba2
Commit
3aef1ba2
authored
Oct 21, 2022
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update p2p proto.
parent
debb3759
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
31 deletions
+42
-31
resource.pb.go
meta/p2p/v1/resource.pb.go
+40
-31
resource.proto
meta/p2p/v1/resource.proto
+2
-0
No files found.
meta/p2p/v1/resource.pb.go
View file @
3aef1ba2
...
@@ -61,6 +61,7 @@ type MessageHeader struct {
...
@@ -61,6 +61,7 @@ type MessageHeader struct {
CreateTime
*
timestamp
.
Timestamp
`protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
CreateTime
*
timestamp
.
Timestamp
`protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// 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))
NodeId
string
`protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
NodeId
string
`protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Gossip
bool
`protobuf:"varint,6,opt,name=gossip,proto3" json:"gossip,omitempty"`
// Authoring node Secp256k1 public key (32bytes) - protobufs serielized
// Authoring node Secp256k1 public key (32bytes) - protobufs serielized
NodePubkey
[]
byte
`protobuf:"bytes,7,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"`
NodePubkey
[]
byte
`protobuf:"bytes,7,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"`
// signature of full message data.
// signature of full message data.
...
@@ -129,6 +130,13 @@ func (m *MessageHeader) GetNodeId() string {
...
@@ -129,6 +130,13 @@ func (m *MessageHeader) GetNodeId() string {
return
""
return
""
}
}
func
(
m
*
MessageHeader
)
GetGossip
()
bool
{
if
m
!=
nil
{
return
m
.
Gossip
}
return
false
}
func
(
m
*
MessageHeader
)
GetNodePubkey
()
[]
byte
{
func
(
m
*
MessageHeader
)
GetNodePubkey
()
[]
byte
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
NodePubkey
return
m
.
NodePubkey
...
@@ -499,35 +507,36 @@ func init() {
...
@@ -499,35 +507,36 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"meta/p2p/v1/resource.proto"
,
fileDescriptor_6d4e04ddec946f90
)
}
func
init
()
{
proto
.
RegisterFile
(
"meta/p2p/v1/resource.proto"
,
fileDescriptor_6d4e04ddec946f90
)
}
var
fileDescriptor_6d4e04ddec946f90
=
[]
byte
{
var
fileDescriptor_6d4e04ddec946f90
=
[]
byte
{
// 472 bytes of a gzipped FileDescriptorProto
// 483 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xb4
,
0x93
,
0xdf
,
0x6e
,
0xda
,
0x30
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xb4
,
0x93
,
0x5f
,
0x6f
,
0xda
,
0x30
,
0x14
,
0xc6
,
0x17
,
0xd6
,
0xc2
,
0x7a
,
0x42
,
0x19
,
0x58
,
0xfb
,
0x13
,
0x71
,
0x53
,
0x16
,
0x69
,
0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
,
0xfd
,
0x98
,
0x4c
,
0xe7
,
0x97
,
0xef
,
0x3f
,
0x4d
,
0xc7
,
0xdd
,
0x47
,
0xe4
,
0x39
,
0xf4
,
0xee
,
0xec
,
0x00
,
0x85
,
0x97
,
0x61
,
0x10
,
0xc6
,
0xb3
,
0xcb
,
0x49
,
0xbc
,
0xf8
,
0x16
,
0x7e
,
0x8e
,
0xa7
,
0x38
,
0x74
,
0x3a
,
0x9f
,
0x74
,
0x9d
,
0xff
,
0xe5
,
0xcf
,
0xf3
,
0x49
,
0xb7
,
0xf1
,
0xa1
,
0xf5
,
0xf5
,
0xf3
,
0xab
,
0x8f
,
0x5f
,
0xa6
,
0xe3
,
0xf6
,
0x33
,
0xf2
,
0x0a
,
0x3a
,
0x0f
,
0x3a
,
0xe1
,
0x74
,
0x3e
,
0x58
,
0x45
,
0x6a
,
0x33
,
0x5a
,
0x36
,
0xed
,
0x8f
,
0xfc
,
0xf6
,
0x5f
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x69
,
0x3b
,
0xff
,
0xcb
,
0x5f
,
0xe7
,
0x93
,
0x76
,
0xed
,
0x53
,
0xe3
,
0x7b
,
0x5d
,
0x05
,
0x6a
,
0x33
,
0x4c
,
0x36
,
0xb3
,
0x3c
,
0xa2
,
0x04
,
0x00
,
0x00
,
0x5a
,
0xba
,
0xf6
,
0x81
,
0xbf
,
0xff
,
0x17
,
0x00
,
0x00
,
0xff
,
0xff
,
0x64
,
0x95
,
0x75
,
0x6d
,
0xba
,
0x04
,
0x00
,
0x00
,
}
}
meta/p2p/v1/resource.proto
View file @
3aef1ba2
...
@@ -23,6 +23,8 @@ message MessageHeader {
...
@@ -23,6 +23,8 @@ message MessageHeader {
// 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
;
bool
gossip
=
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.
...
...
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