diff --git a/object/types.proto b/object/types.proto index c2e9b71..67e142a 100644 --- a/object/types.proto +++ b/object/types.proto @@ -92,8 +92,6 @@ enum MatchType { // payload_hash // * $Object:objectType \ // object_type -// * $Object:homomorphicHash \ -// homomorphic_hash // * $Object:split.parent \ // object_id of parent // * $Object:split.splitID \ @@ -193,6 +191,7 @@ message Header { ObjectType object_type = 7 [json_name = "objectType"]; // Homomorphic hash of the object payload (Tillich-Zemor). + // DEPRECATED. Objects of 2.23+ version must have it empty. neo.fs.v2.refs.Checksum homomorphic_hash = 8 [json_name = "homomorphicHash"]; // Session token, if it was used during Object creation. Need it to verify diff --git a/proto-docs/object.md b/proto-docs/object.md index de54de7..591cf50 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -951,7 +951,7 @@ Object Header | payload_length | [uint64](#uint64) | | Size of payload in bytes. `0xFFFFFFFFFFFFFFFF` means `payload_length` is unknown. | | payload_hash | [neo.fs.v2.refs.Checksum](#neo.fs.v2.refs.Checksum) | | SHA256 hash of payload bytes | | object_type | [ObjectType](#neo.fs.v2.object.ObjectType) | | Type of the object payload content | -| homomorphic_hash | [neo.fs.v2.refs.Checksum](#neo.fs.v2.refs.Checksum) | | Homomorphic hash of the object payload (Tillich-Zemor). | +| homomorphic_hash | [neo.fs.v2.refs.Checksum](#neo.fs.v2.refs.Checksum) | | Homomorphic hash of the object payload (Tillich-Zemor). DEPRECATED. Objects of 2.23+ version must have it empty. | | session_token | [neo.fs.v2.session.SessionToken](#neo.fs.v2.session.SessionToken) | | Session token, if it was used during Object creation. Need it to verify integrity and authenticity out of Request scope. Only one of `session_token` or `session_token_v2` can be set. | | attributes | [Header.Attribute](#neo.fs.v2.object.Header.Attribute) | repeated | User-defined object attributes. Attributes vary in length from object to object, so keep an eye on the entire Header limit depending on the context. | | split | [Header.Split](#neo.fs.v2.object.Header.Split) | | Position of the object in the split hierarchy | @@ -1098,8 +1098,6 @@ prefix to the name. Here is the list of fields available via this prefix: payload_hash * $Object:objectType \ object_type -* $Object:homomorphicHash \ - homomorphic_hash * $Object:split.parent \ object_id of parent * $Object:split.splitID \ diff --git a/proto-docs/refs.md b/proto-docs/refs.md index 9630595..d0305a3 100644 --- a/proto-docs/refs.md +++ b/proto-docs/refs.md @@ -208,7 +208,7 @@ Checksum algorithm type. | Name | Number | Description | | ---- | ------ | ----------- | | CHECKSUM_TYPE_UNSPECIFIED | 0 | Unknown. Not used | -| TZ | 1 | Tillich-Zemor homomorphic hash function | +| TZ | 1 | Tillich-Zemor homomorphic hash function DEPRECATED starting from 2.23 API version. | | SHA256 | 2 | SHA-256 | diff --git a/refs/types.proto b/refs/types.proto index 3b7d153..a70f6c2 100644 --- a/refs/types.proto +++ b/refs/types.proto @@ -147,6 +147,7 @@ enum ChecksumType { CHECKSUM_TYPE_UNSPECIFIED = 0; // Tillich-Zemor homomorphic hash function + // DEPRECATED starting from 2.23 API version. TZ = 1; // SHA-256