Skip to content

Fix identity hash length constraint - #71

Merged
acul71 merged 1 commit into
masterfrom
fix/issue-50-identity-length
Oct 2, 2026
Merged

acul71 merged 1 commit into
masterfrom
fix/issue-50-identity-length

Conversation

@acul71

@acul71 acul71 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reject identity multihashes when truncation length does not equal data length
  • Apply the same check in _do_digest() and sum_stream()

Closes #50.

Test plan

  • make lint / make typecheck / make test

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@acul71
acul71 merged commit 9edc26d into master Oct 2, 2026
21 checks passed
@acul71
acul71 deleted the fix/issue-50-identity-length branch October 2, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Identity hash doesn't enforce length == len(data) constraint

1 participant