News for hackers. Stuff that matters.
Re:Scuttlebot: Peer-to-peer database, identity provider, and... by rakoo on Saturday April 18, 2020 @10:22PM (#22912932)
Use Bencoding, like bittorrent does: 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.

Re:Scuttlebot: Peer-to-peer database, identity provider, and... by aabbcc1241 on Saturday April 18, 2020 @11:07PM (#22913177)
It looks similar to stackish and BON (binary object notation) 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.

Re:Scuttlebot: Peer-to-peer database, identity provider, and... by sneak on Sunday April 19, 2020 @11:21AM (#22916483)
Why bencoding and not BSON or CBOR or any of the other serialization options?