From 119054a26b6894fd0f254008aa4c9683fdf83069 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 5 Mar 2024 14:18:57 +0400 Subject: [PATCH] object: Switch to object ID signature in `Replicate` request Previously, `ReplicateRequest` carried signature of the full object field. Since IDs are object checksums, it's enough to sign the ID. Signed-off-by: Leonard Lyubich --- object/service.proto | 3 +-- proto-docs/object.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/object/service.proto b/object/service.proto index 01d11c8..4e51f6d 100644 --- a/object/service.proto +++ b/object/service.proto @@ -717,8 +717,7 @@ message ReplicateRequest { // Object to be replicated. neo.fs.v2.object.Object object = 1; - // Signature of all other request fields serialized in Protocol Buffers v3 - // format in ascending order of fields. + // Signature of `object.object_id.value` field. neo.fs.v2.refs.Signature signature = 2; } diff --git a/proto-docs/object.md b/proto-docs/object.md index 9240e6c..074ae9b 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -720,7 +720,7 @@ Replicate RPC request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | object | [Object](#neo.fs.v2.object.Object) | | Object to be replicated. | -| signature | [neo.fs.v2.refs.Signature](#neo.fs.v2.refs.Signature) | | Signature of all other request fields serialized in Protocol Buffers v3 format in ascending order of fields. | +| signature | [neo.fs.v2.refs.Signature](#neo.fs.v2.refs.Signature) | | Signature of `object.object_id.value` field. |