This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bob.ippolito
Recipients anders.rundgren.net@gmail.com, bob.ippolito, ethan.furman, rhettinger
Date 2014-12-29.20:42:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419885746.33.0.207937380377.issue23123@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, that's the hack I was suggesting.

I suppose I don't see the point of having a protocol that normalizes *almost* everything. Normalization should be all or nothing. Other options would be to define the signature at the encoded byte level with no normalization (in which case you could use any off the shelf signing), or at the value level and prescribe a specific interpretation for data types. I would've done it at the value level and prescribed that dictionaries should be key sorted, strings dealt with as UTF-8, and numbers as IEEE 754. I would make sure not to depend on the decimal conversion of numbers, and just work with the serialized bit representation in a particular endian (which you can even do efficiently in modern browser JS with Float64Array, DataView and ArrayBuffer). For JS portability it'd probably treat *all* numbers as floats in the same way, whether they had a decimal to begin with or not.
History
Date User Action Args
2014-12-29 20:42:26bob.ippolitosetrecipients: + bob.ippolito, rhettinger, ethan.furman, anders.rundgren.net@gmail.com
2014-12-29 20:42:26bob.ippolitosetmessageid: <1419885746.33.0.207937380377.issue23123@psf.upfronthosting.co.za>
2014-12-29 20:42:26bob.ippolitolinkissue23123 messages
2014-12-29 20:42:25bob.ippolitocreate