https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme is a decent attempt at JSON canonicalization (and an appendix lists a few other attempts). This one sorts object members based on their UTF-16 encoding (without escapes), and assumes double precision floats is the model for numbers.
-- James Manger From: jose [mailto:[email protected]] On Behalf Of Bret Jordan Sent: Thursday, 11 October 2018 11:02 AM To: Jim Schaad <[email protected]> Cc: Nathaniel McCallum <[email protected]>; [email protected] Subject: Re: [jose] Canonical JSON form Other implementations say that you should preserver the order of the fields you read when serialized which is part of JSON for the browser implementations but not necessarily elsewhere. Preserving order is hard. Depending on your programming language you might be deserializing the content in to a struct or you may be using a map. What I need is a way for individuals and organizations to be able to pass around and share JSON data and collaboratively work on that JSON data and sign the parts that they have done. Thanks, Bret PGP Fingerprint: 63B4 FC53 680A 6B7D 1447 F2C0 74F8 ACAE 7415 0050 "Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not be unscrambled is an egg."
_______________________________________________ jose mailing list [email protected] https://www.ietf.org/mailman/listinfo/jose
