From 6d572e78ff64752285883c01c7f9a9768bc6e273 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 9 Apr 2021 10:49:20 +0300 Subject: [PATCH] [#143] reputation: Define peer-to-peer trust message Signed-off-by: Leonard Lyubich --- reputation/types.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reputation/types.proto b/reputation/types.proto index 4f614d1..253f803 100644 --- a/reputation/types.proto +++ b/reputation/types.proto @@ -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