Skip to content

Commit

Permalink
Merge pull request #200 from docknetwork/upgrade-jsonld
Browse files Browse the repository at this point in the history
Upgrade to latest JSON-LD and signatures package versions
  • Loading branch information
cykoder authored Oct 16, 2020
2 parents 0b31a3e + 65a705f commit b893c4e
Show file tree
Hide file tree
Showing 3 changed files with 510 additions and 514 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
"testEnvironment": "node"
},
"resolutions": {
"jsonld-signatures": "https://github.com/docknetwork/jsonld-signatures",
"jsonld": "2.0.2"
"jsonld": "3.2.0"
},
"dependencies": {
"@polkadot/api": "2.1.1",
Expand All @@ -88,7 +87,7 @@
"ethr-did-resolver": "^2.2.0",
"js-sha256": "^0.9.0",
"json-canonicalize": "^1.0.3",
"jsonld": "2.0.2",
"jsonld": "3.2.0",
"jsonld-signatures": "https://github.com/docknetwork/jsonld-signatures",
"jsonschema": "^1.2.6",
"rify": "^0.4.0"
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/claim-deduction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe('Composite claim soundness checker', () => {
{ Iri: 'https://example.com/b' },
],
]);
});
}, 30000);

// Soundness checking fails if and only if one of the following conditions occurs:
// - Proof assumes claims not attested to by the provided credentials and is therefore not verifiable.
Expand Down Expand Up @@ -486,7 +486,7 @@ describe('Composite claim soundness checker', () => {
expect(await checkSoundness(presentation, rules)).not.toContainEqual(compositeClaim);
presentation[expandedLogicProperty] = proof;
expect(await checkSoundness(presentation, rules)).toContainEqual(compositeClaim);
});
}, 30000);
});

// takes a verifiable presentation and rules, returns all claims which are known to be true under
Expand Down Expand Up @@ -672,4 +672,4 @@ function rdf(keyword) {
throw `are you sure ${keyword} is part of the rdf: context?`;
}
return { Iri: `http://www.w3.org/1999/02/22-rdf-syntax-ns#${keyword}` };
}
}
Loading

0 comments on commit b893c4e

Please sign in to comment.