From cd6db41fe30dafaeb61f17ec710f698086b65d58 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 31 Jul 2020 17:31:58 +0300 Subject: [PATCH] [#22] Add signature field to container delete request Signed-off-by: Alex Vanin --- container/service.proto | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/container/service.proto b/container/service.proto index 4cce245..be06170 100644 --- a/container/service.proto +++ b/container/service.proto @@ -55,9 +55,10 @@ message PutResponse { } message DeleteRequest { - // CID (container id) is a SHA256 hash of the container structure - bytes CID = 1 [(gogoproto.customtype) = "CID", (gogoproto.nullable) = false]; - + // ContainerID of container to delete from NeoFS. + bytes ContainerID = 1; + // Signature of container id according to RFC-6979. + bytes Signature = 2; // RequestMetaHeader contains information about request meta headers (should be embedded into message) service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; // RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)