Allow privacyHeaders context

main
Bob Mottram 2024-06-23 12:19:13 +01:00
parent 8a517a566e
commit 8faf85e553
1 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,8 @@ VALID_CONTEXTS = (
"https://w3id.org/security/multikey/v1", "https://w3id.org/security/multikey/v1",
"*/vc-data-integrity/contexts/multikey/v1.jsonld", "*/vc-data-integrity/contexts/multikey/v1.jsonld",
"https://w3id.org/security/data-integrity/v1", "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 wildcard_found = True
break break
if not wildcard_found: if not wildcard_found:
print('Unrecognized @context: ' + url) print('Unrecognized @context 1: ' + url)
return False return False
return True return True
@ -82,7 +83,7 @@ def _has_valid_context_str(post_json_object: {}) -> bool:
wildcard_found = True wildcard_found = True
break break
if not wildcard_found: if not wildcard_found:
print('Unrecognized @context: ' + url) print('Unrecognized @context 2: ' + url)
return False return False
return True return True