Don't use safe mode when normalizing

pull/5250/head
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
1 changed files with 5 additions and 6 deletions

View File

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