News for hackers. Stuff that matters.
Re:Scuttlebot: Peer-to-peer database, identity provider, and... by SyrupThinker on Saturday April 18, 2020 @04:46PM (#22910972)
After reading about the protocol I came to a similar conclusion as you. Although it needs to be noted that the JSON serialization is defined as JSON.stringify as defined in ECMA-262 6th Ed. plus some more.

To me it's worse that key order must be preserved, which this standard does not specify the way I understand it.

Source: https://ssbc.github.io/scuttlebutt-protocol-guide/#message-f...

Re:Scuttlebot: Peer-to-peer database, identity provider, and... by kbumsik on Sunday April 19, 2020 @06:46AM (#22914886)
> In brief, the rules are:

- Two spaces for indentation.

- Dictionary entries and list elements each on their own line.

- etc...

This is so weird to me. Why a protocol needs a strict, opinionated format of JSON? If they really need a very specific format of JSON, why they even bother JSON? There are better options like protobuf.

This seems the worst example of "Use JSON for everything".

Re:Scuttlebot: Peer-to-peer database, identity provider, and... by jitschlit on Monday April 20, 2020 @02:03PM (#22926553)
Just a guess, but maybe so they can reliable hash it?
Re:Scuttlebot: Peer-to-peer database, identity provider, and... by viraptor on Saturday April 18, 2020 @07:55PM (#22912166)
This is terrible. It's basically not JSON anymore. It's some custom text protocol with similar value escaping...

If they wanted both the descriptions to be visible and the order to be preserved, they could use:

    [ ["previous", "..."], ["author", "..."], ...
Re:Scuttlebot: Peer-to-peer database, identity provider, and... by tptacek on Saturday April 18, 2020 @09:11PM (#22912603)
lvh at Latacora wrote a blog post about this problem.

https://latacora.micro.blog/2019/07/24/how-not-to.html