diff --git a/lib/create.js b/lib/create.js index 5f79e4a..0a907a7 100644 --- a/lib/create.js +++ b/lib/create.js @@ -35,7 +35,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