ssi-sdk icon indicating copy to clipboard operation
ssi-sdk copied to clipboard

Generate and validate SRI hashes

Open decentralgabe opened this issue 10 months ago • 0 comments

          We will also need to validate that a VC that's setting the `credentialSchema.digestSRI` property, has a value which matches against the locally calculated digestSRI. This typically involves dereferencing `credentialSchema.id`, and then following the spec of SubResource Integrity. 

I would prefer that we do that in this PR, so that the same mechanism is used for every VC (instead of special casing VCs who's type property is JsonSchemaCredential). That said, I'd understand leaving that for another PR. Up to you.

Originally posted by @andresuribe87 in https://github.com/TBD54566975/ssi-sdk/pull/455#pullrequestreview-1600623871

decentralgabe avatar Aug 29 '23 14:08 decentralgabe