Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not sorting the dictionary entries. #4

Open
issuefiler opened this issue May 27, 2023 · 0 comments
Open

It is not sorting the dictionary entries. #4

issuefiler opened this issue May 27, 2023 · 0 comments

Comments

@issuefiler
Copy link

Your encoder implementation is not specification-compliant in that it does not sort dictionary entries.

BEP 52 — The BitTorrent protocol specification version 2

Keys must be strings and appear in sorted order (sorted as raw strings, not alphanumerics).
Note that, in the context of bencoding, strings, including dictionary keys, are arbitrary byte sequences (uint8_t[]).

See webtorrent/node-bencode#142.

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

No branches or pull requests

1 participant