[#143] reputation: Define peer-to-peer trust message

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-04-09 10:49:20 +03:00 committed by Alex Vanin
parent 453beb8c34
commit 6d572e78ff

View file

@ -34,6 +34,15 @@ message Trust {
double value = 2 [json_name = "value"];
}
// Trust value of a peer to a peer.
message PeerToPeerTrust {
// Identifier of the trusting peer.
PeerID trusting_peer = 1 [json_name = "trustingPeer"];
// Trust value.
Trust trust = 2 [json_name = "trust"];
}
// Global trust value to NeoFS network peer.
message GlobalTrust {
// Message format version. Effectively the version of API library used to create