mirror of
https://github.com/nspcc-dev/neofs-api.git
synced 2026-03-01 04:28:54 +00:00
Payload checksum type is not fixed #115
Labels
No labels
I0
I1
I2
I3
I4
S0
S1
S2
S3
S3
S4
U2
U3
U4
bug
discussion
discussion
documentation
enhancement
enhancement
enhancement
feature
good first issue
question
task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-api#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carpawell on GitHub (Aug 20, 2024).
Object header has payload checksums (not a homomorphic one) and there is no restriction about hashing algorithm. However, in practice, it is fixed and there is no sense in using TZ hash in regular hashing.
Current Behavior
Hash is not fixed and our nodes' behavior is undefined if we meet such objects. E.g., it is impossible to search by such hashes:
nspcc-dev/neofs-sdk-go@256513c1b2/object/search.go (L336-L341).Expected Behavior
Objects hashing with any algo that is not sha256 should be prohibited.
Possible Solution
Add comments to this field.
Steps to Reproduce
Use your eyes, look at
nspcc-dev/neofs-api@01229b49e9/object/types.proto (L87-L88).Regression
No.
@roman-khimov commented on GitHub (Dec 27, 2024):
Fixed in #316.