From 6014665fa65ff93214bc2e7ac1833bf932f467ca Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Fri, 4 Sep 2020 15:50:18 +0300 Subject: [PATCH] [#67] Typo fixes Signed-off-by: Stanislav Bogatyrev --- object/service.proto | 2 +- proto-docs/object.md | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/object/service.proto b/object/service.proto index 1a12d4e..020e1d5 100644 --- a/object/service.proto +++ b/object/service.proto @@ -258,7 +258,7 @@ message HeadResponse { // Carries the requested object header or it's part oneof head{ // Full object header with object ID signature - Header HeaderWithSignature = 1; + HeaderWithSignature header = 1; // Short object header ShortHeader short_header = 2; diff --git a/proto-docs/object.md b/proto-docs/object.md index 5ac2bbb..941bca9 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -29,6 +29,7 @@ - [HeadRequest.Body](#neo.fs.v2.object.HeadRequest.Body) - [HeadResponse](#neo.fs.v2.object.HeadResponse) - [HeadResponse.Body](#neo.fs.v2.object.HeadResponse.Body) + - [HeaderWithSignature](#neo.fs.v2.object.HeaderWithSignature) - [PutRequest](#neo.fs.v2.object.PutRequest) - [PutRequest.Body](#neo.fs.v2.object.PutRequest.Body) - [PutRequest.Body.Init](#neo.fs.v2.object.PutRequest.Body.Init) @@ -406,8 +407,19 @@ Response body | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| header | [Header](#neo.fs.v2.object.Header) | | Full object header | +| header | [HeaderWithSignature](#neo.fs.v2.object.HeaderWithSignature) | | Full object header with object ID signature | | short_header | [ShortHeader](#neo.fs.v2.object.ShortHeader) | | Short object header | + + + + +### Message HeaderWithSignature +Tuple of full object header and signature of object ID. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| header | [Header](#neo.fs.v2.object.Header) | | Full object header | | signature | [neo.fs.v2.refs.Signature](#neo.fs.v2.refs.Signature) | | Signed object_id to verify full header's authenticity through following steps: 1. Calculate SHA-256 of marshalled Headers structure. 2. Check if the resulting hash matched ObjectID 3. Check if ObjectID's signature in signature field is correct. |