From 19ff253083be8292ebf8a7e358b3ce3e843d61ee Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 6 Jun 2024 17:20:41 +0200 Subject: [PATCH] fix sign presentation --- oidc4vp/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oidc4vp/forms.py b/oidc4vp/forms.py index bc91fd4..84d1d99 100644 --- a/oidc4vp/forms.py +++ b/oidc4vp/forms.py @@ -86,5 +86,6 @@ class AuthorizeForm(forms.Form): vp_str = json.dumps(vp) key_material = did.get_key_material() - self.vp = sign(vp_str, key_material, did.did) + vp = sign(vp_str, key_material, did.did) + self.vp = json.dumps(vp)