Skip to content

[refactor] bencode: remove the hack for info hash computation#430

Merged
ikatson merged 5 commits intomainfrom
bencode-no-info-hash
Jun 24, 2025
Merged

[refactor] bencode: remove the hack for info hash computation#430
ikatson merged 5 commits intomainfrom
bencode-no-info-hash

Conversation

@ikatson
Copy link
Copy Markdown
Owner

@ikatson ikatson commented Jun 24, 2025

This removes a nasty hack in bencode crate where we needed to compute torrent info_hash from the serializer.

Now it's a special type WithRawValue that contains both the inner data and the raw bytes.

@ikatson ikatson merged commit 64601b1 into main Jun 24, 2025
5 checks passed
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.

1 participant