From 453beb8c342e25043eb8cf7bc3a1f2b063784dea Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 2 Apr 2021 13:08:37 +0300 Subject: [PATCH] [#143] reputation: Add version field to GlobalTrust message Add `version` field as a first field of `GlobalTrust` message. This field will allow you to quickly extract the version of the message from the binary representation. Additionally fix `signature` field's package format. Signed-off-by: Leonard Lyubich --- reputation/types.proto | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reputation/types.proto b/reputation/types.proto index 36d6147..4f614d1 100644 --- a/reputation/types.proto +++ b/reputation/types.proto @@ -36,6 +36,10 @@ message Trust { // Global trust value to NeoFS network peer. message GlobalTrust { + // Message format version. Effectively the version of API library used to create + // the message. + neo.fs.v2.refs.Version version = 1 [json_name = "version"]; + // Message body structure. message Body { // Node manager ID. @@ -46,8 +50,8 @@ message GlobalTrust { } // Message body. - Body body = 1 [json_name = "body"]; + Body body = 2 [json_name = "body"]; // Signature of the binary `body` field by the manager. - refs.Signature signature = 2 [json_name = "signature"]; + neo.fs.v2.refs.Signature signature = 3 [json_name = "signature"]; }