Skip to content

Commit 852baea

Browse files
committed
fix: add assertionMethod to dynamic_context
1 parent 98de42a commit 852baea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/apmodel/vocab/actor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def to_json(self):
4949
# Add Actor-specific contexts based on properties
5050
if result.get("publicKey"):
5151
dynamic_context.add("https://w3id.org/security/v1")
52+
if result.get("assertionMethod"):
53+
dynamic_context.add("https://w3id.org/did/v1")
5254
if result.get("manuallyApprovesFollowers"):
5355
dynamic_context.add({"manuallyApprovesFollowers": "as:manuallyApprovesFollowers"})
5456
if result.get("sensitive"):

0 commit comments

Comments
 (0)