1
0
Fork 0

Don't use safe mode when normalizing

This commit is contained in:
Chocobozzz 2022-09-09 11:46:58 +02:00
parent 914af0d9e4
commit edacb64033
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -135,12 +135,11 @@ export {
// ---------------------------------------------------------------------------
function hashObject (obj: any): Promise<any> {
return jsonld.promises
.normalize(obj, {
return jsonld.promises.normalize(obj, {
safe: false,
algorithm: 'URDNA2015',
format: 'application/n-quads'
})
.then(res => sha256(res))
}).then(res => sha256(res))
}
function createSignatureHash (signature: any) {