Don't use safe mode when normalizing
This commit is contained in:
parent
914af0d9e4
commit
edacb64033
1 changed files with 5 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue