From 8faf85e553d577ade425d28992ad41b60648bd51 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 23 Jun 2024 12:19:13 +0100 Subject: [PATCH] Allow privacyHeaders context --- context.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/context.py b/context.py index 7ef7b14c1..67021d39b 100644 --- a/context.py +++ b/context.py @@ -24,7 +24,8 @@ VALID_CONTEXTS = ( "https://w3id.org/security/multikey/v1", "*/vc-data-integrity/contexts/multikey/v1.jsonld", "https://w3id.org/security/data-integrity/v1", - "*/contexts/data-integrity/v1.jsonld" + "*/contexts/data-integrity/v1.jsonld", + "*/ns/privacyHeaders" ) @@ -64,7 +65,7 @@ def _has_valid_context_list(post_json_object: {}) -> bool: wildcard_found = True break if not wildcard_found: - print('Unrecognized @context: ' + url) + print('Unrecognized @context 1: ' + url) return False return True @@ -82,7 +83,7 @@ def _has_valid_context_str(post_json_object: {}) -> bool: wildcard_found = True break if not wildcard_found: - print('Unrecognized @context: ' + url) + print('Unrecognized @context 2: ' + url) return False return True