1 | 'use strict'
|
2 | module.exports = `// Record represents a dht record that contains a value
|
3 | // for a key value pair
|
4 | message Record {
|
5 | // The key that references this record
|
6 | bytes key = 1;
|
7 |
|
8 | // The actual value this record is storing
|
9 | bytes value = 2;
|
10 |
|
11 | // Note: These fields were removed from the Record message
|
12 | // hash of the authors public key
|
13 | // optional bytes author = 3;
|
14 | // A PKI signature for the key+value+author
|
15 | // optional bytes signature = 4;
|
16 |
|
17 | // Time the record was received, set by receiver
|
18 | optional string timeReceived = 5;
|
19 | }`
|