Skip to content

Commit

Permalink
pass documentLoader to canonize
Browse files Browse the repository at this point in the history
  • Loading branch information
wes-smith committed Feb 13, 2024
1 parent ac22f10 commit 4fba85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function _createSignData({cryptosuite, document, proof, documentLoader}) {
const proofHash = await hashCanonizedProof({document, proof, options});

// canonize and hash document
const docCanon = await canonize(document);
const docCanon = await canonize(document, options);
const docHash = await hasher.hash(stringToUtf8Bytes(docCanon));

// current order of hashing: proof hash + document hash + external hash
Expand Down

0 comments on commit 4fba85a

Please sign in to comment.