Skip to content

Commit afaf1ac

Browse files
committed
fix: incorrect check of proof.created
Signed-off-by: Timo Glastra <[email protected]>
1 parent 00ab69b commit afaf1ac

File tree

1 file changed

+1
-1
lines changed
  • aries_cloudagent/protocols/issue_credential/v2_0/formats/ld_proof

1 file changed

+1
-1
lines changed

aries_cloudagent/protocols/issue_credential/v2_0/formats/ld_proof/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ async def receive_credential(
445445
# TODO: if created wasn't present in the detail options, should we verify
446446
# it is ~now (e.g. some time in the past + future)?
447447
# Check if created property matches
448-
if vc.proof.created != detail.options.created:
448+
if detail.options.created and vc.proof.created != detail.options.created:
449449
raise V20CredFormatError(
450450
"Received credential proof.created does not"
451451
" match options.created from credential request"

0 commit comments

Comments
 (0)