go-libp2p-core/peer/pb/peer_record.proto
Yusef Napora 1ff557877c comments for PeerRecord proto message
also removes the seq field from PeerMessage proto,
since it was moved to the SignedEnvelope
2020-01-17 10:42:26 -05:00

26 lines
961 B
Protocol Buffer

syntax = "proto3";
package peer.pb;
// PeerRecord messages contain information that is useful to share with other peers.
// Currently, a PeerRecord contains the public listen addresses for a peer, but this
// is expected to expand to include other information in the future.
//
// PeerRecords are designed to be serialized to bytes and placed inside of
// SignedEnvelopes before sharing with other peers.
// See https://github.com/libp2p/go-libp2p-core/record/pb/envelope.proto for
// the SignedEnvelope definition.
message PeerRecord {
// AddressInfo is a wrapper around a binary multiaddr. It is defined as a
// separate message to allow us to add per-address metadata in the future.
message AddressInfo {
bytes multiaddr = 1;
}
// peerId contains a libp2p peer id in its binary representation.
bytes peerId = 1;
// addresses is a list of public listen addresses for the peer.
repeated AddressInfo addresses = 3;
}