5 ms·
Wow, that hurts. What solutions have you suggested to the project?
by hathawsh 9y ago
Wow, that hurts. What solutions have you suggested to the project?
- Vendan 9y agoI had expressed interest in changing it, but it would require changing the core data structure the network is built on, and basically be a breaking change that would almost inevitably result in having to start the entire social web over from scratch. Didn't see huge interest from the devs in doing so.
- hathawsh 9y agoIt sounds like the best path forward might be to document the NodeJS serialization format in perfect detail and create a test suite to verify all known corner cases. Until that's done, alternative implementations will be unreliable.
- 3eto 9y agoWhat are the potential downsides of not changing it?
- Vendan 9y agoMakes it difficult to implement the protocol in anything but node.js (and potentially version specific, if node.js ever decides to tweak json serialization stuff)
- lgierth 9y agoObjects in JSON are per the spec unordered, while the signature scheme here most likely relies on the order of the object's key-value pairs. Other data formats that are ordered, and serialize somewhat more deterministically, are CBOR, Protobufs, or s-exp.