Change unvailable json-ld context url to mirror on GitHub

This commit is contained in:
dzshy 2023-01-11 22:02:55 +08:00 committed by GitHub
parent 3fc567861b
commit 97cbe826d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ def _options_hash(doc: ap.RawObject) -> str:
for k in ["type", "id", "signatureValue"]:
if k in doc:
del doc[k]
doc["@context"] = "https://w3id.org/identity/v1"
doc["@context"] = "https://raw.githubusercontent.com/web-payments/web-payments.org/master/contexts/identity-v1.jsonld"
normalized = jsonld.normalize(
doc, {"algorithm": "URDNA2015", "format": "application/nquads"}
)