Skip to content

Commit

Permalink
object/replicate: Add signature to the replication RPC
Browse files Browse the repository at this point in the history
Object signing now may be requested to ensure a replication copy was received.
Closes #299.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Jul 5, 2024
1 parent 62e4ae0 commit 7f0744e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions object/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,20 @@ message ReplicateRequest {

// Signature of `object.object_id.value` field.
neo.fs.v2.refs.Signature signature = 2;

// Optional flag that requires server side to attach signature of just
// replicated object to ensure it has been received correctly. Signature
// must be calculated with an exposed to network map public key that
// corresponds to the object receiver.
bool create = 3;
}

// Replicate RPC response
message ReplicateResponse {
// Operation execution status with one of the enumerated codes.
neo.fs.v2.status.Status status = 1;

// Signature of replicated object. Must be attached if a request was
// made with `create` flag set.
bytes objectSignature = 2;
}

0 comments on commit 7f0744e

Please sign in to comment.