Skip to content

It is not sorting the dictionary entries. #4

@issuefiler

Description

@issuefiler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions