You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTTP, you have Content-Type (e.g. application/json) and Content-Encoding (e.g. gzip). In the data URI, the media-type mixes the two concepts, e.g. application/json and application/gzip. With Orb data URIs the content-type is always JSON but the content encoding can be:
Gzip and base64-encoded (e.g. data:application/gzip;base64,H4sIAAAAA. . .)
I believe that the hash should be on the canonicalized JSON before it is encoded. This way, the hash does not change with the encoding. So, I believe that the current implementation is correct.
In cases where the data URI contains a compressed linkset, should the hash be on the compressed version or the plain-text version?
As a comparison:
So in the data URI, do we treat its type as content-encoding or as content-type?
Currently we are treating as content-encoding, so the hash is on the plain-text.
The text was updated successfully, but these errors were encountered: