bcgov / trustdidweb

Trust DID Web (did:tdw)
https://bcgov.github.io/trustdidweb/
Apache License 2.0
12 stars 6 forks source link

Best way to process JSON data for use when generating a hash or signature #7

Closed swcurran closed 3 months ago

swcurran commented 4 months ago

What canonicalization technique can/should be used when we need a hash or signature across a given chunk of JSON?

swcurran commented 3 months ago

Per #20 -- we're going to use hash = sha256(JCS(json)). That will be used to generate the SCID and the entryHash for a given log entry.