Skip to content

Commit 119054a

Browse files
committed
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 <[email protected]>
1 parent f3ed513 commit 119054a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

object/service.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,7 @@ message ReplicateRequest {
717717
// Object to be replicated.
718718
neo.fs.v2.object.Object object = 1;
719719

720-
// Signature of all other request fields serialized in Protocol Buffers v3
721-
// format in ascending order of fields.
720+
// Signature of `object.object_id.value` field.
722721
neo.fs.v2.refs.Signature signature = 2;
723722
}
724723

proto-docs/object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ Replicate RPC request
720720
| Field | Type | Label | Description |
721721
| ----- | ---- | ----- | ----------- |
722722
| object | [Object](#neo.fs.v2.object.Object) | | Object to be replicated. |
723-
| 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. |
723+
| signature | [neo.fs.v2.refs.Signature](#neo.fs.v2.refs.Signature) | | Signature of `object.object_id.value` field. |
724724

725725

726726
<a name="neo.fs.v2.object.ReplicateResponse"></a>

0 commit comments

Comments
 (0)