2 ms·
Use Bencoding, like bittorrent does: https://en.wikipedia.org/wiki/Bencode https://en.wikipedia.org/wiki/Bencode As I put in another comment, a torrent id is a
by rakoo 7y ago
Use Bencoding, like bittorrent does: https://en.wikipedia.org/wiki/Bencode https://en.wikipedia.org/wiki/Bencode
As I put in another comment, a torrent id is a hash of a map, where one of the keys contains binary data. bencoding solved that decades ago already.
- aabbcc1241 7y agoIt looks similar to stackish and BON (binary object notation) https://github.com/bon-org/bon-doc/blob/master/README.asciidoc https://github.com/bon-org/bon-doc/blob/master/README.asciid... BON is compatible with json+ and erlang data type, in specific, it allows any data type for the map key. Json only allows string as map key.
- sneak 7y agoWhy bencoding and not BSON or CBOR or any of the other serialization options?