[#56] Add separate checksum type

NeoFS uses different checksum algorithms. It looks like we need to explicitly
define what algorithm is used in each particular case.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-08-18 18:26:51 +03:00 committed by Stanislav Bogatyrev
parent 579a618f72
commit 526792324d
4 changed files with 29 additions and 5 deletions

View file

@ -67,13 +67,13 @@ message Header {
uint64 payload_length = 5;
// Hash of payload bytes
bytes payload_hash = 6;
Checksum payload_hash = 6;
// Special object type
ObjectType object_type = 7;
// Homomorphic hash of the object payload.
bytes homomorphic_hash = 8;
Checksum homomorphic_hash = 8;
// Session token, if it was used during Object creation.
// Need it to verify integrity and authenticity out of Request scope.