<p dir="ltr">The specific format is not a requirement, just that it be external to the JSON. Something friendlier to extensions would be fine too.</p>
<div class="gmail_quote">On Jun 10, 2014 1:57 PM, "Yan Zhu" <<a href="mailto:yan@eff.org">yan@eff.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 06/10/2014 01:40 PM, Jacob Hoffman-Andrews wrote:<br>
>     How about just sticking to the format we have now for update.json and<br>
>     going with the decision to serve multiple versions from different URLs<br>
>     depending on the release type?<br>
><br>
><br>
> This sounds good to me. Yan, sound good to you?<br>
<br>
Sounds good, though I think we still need to deal with Jacob's point<br>
that JSON-to-string conversion is non-deterministic!<br>
<br>
Originally I had proposed something like verifying the signature over<br>
the string produced by<br>
JSON.stringify(JSON.parse(req.responseText).update) but apparently<br>
JSON.stringify won't reliably preserve ordering of the object properties?<br>
<br>
So perhaps GPG-clearsigning the update file, verifying the signature,<br>
and then parsing the JSON in the update file is the simplest thing. I'm<br>
not sure extensions support GPG signature formats; will leave it up to<br>
Zack to figure out the details there and add them to the spec.<br>
<br>
<br>
><br>
><br>
> _______________________________________________<br>
> HTTPS-Everywhere mailing list<br>
> <a href="mailto:HTTPS-Everywhere@lists.eff.org">HTTPS-Everywhere@lists.eff.org</a><br>
> <a href="https://lists.eff.org/mailman/listinfo/https-everywhere" target="_blank">https://lists.eff.org/mailman/listinfo/https-everywhere</a><br>
><br>
<br>
<br>
--<br>
Yan Zhu  <<a href="mailto:yan@eff.org">yan@eff.org</a>>, <<a href="mailto:yan@torproject.org">yan@torproject.org</a>><br>
Staff Technologist<br>
Electronic Frontier Foundation                  <a href="https://www.eff.org" target="_blank">https://www.eff.org</a><br>
815 Eddy Street, San Francisco, CA  94109       <a href="tel:%2B1%20415%20436%209333%20x134" value="+14154369333">+1 415 436 9333 x134</a><br>
<br>
</blockquote></div>