mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 10:11:19 +00:00
* Revert "Remove old protoc scripts and artifacts (#262)" This reverts commit 32ef50b8222fa30e3706c90c24e84e821f3fd84f. * Revert "Use pure-rust protoc (#255)" This reverts commit 217fae405f6565d10e010e9e8b5dfd19045120d0.
22 lines
504 B
Protocol Buffer
22 lines
504 B
Protocol Buffer
syntax = "proto2";
|
|
package record.pb;
|
|
|
|
// Record represents a dht record that contains a value
|
|
// for a key value pair
|
|
message Record {
|
|
// The key that references this record
|
|
optional string key = 1;
|
|
|
|
// The actual value this record is storing
|
|
optional bytes value = 2;
|
|
|
|
// hash of the authors public key
|
|
optional string author = 3;
|
|
|
|
// A PKI signature for the key+value+author
|
|
optional bytes signature = 4;
|
|
|
|
// Time the record was received, set by receiver
|
|
optional string timeReceived = 5;
|
|
}
|