Skip to content

Commit 5990328

Browse files
committed
added presentation_parser.py usage example
1 parent f04670b commit 5990328

File tree

3 files changed

+1592
-50
lines changed

3 files changed

+1592
-50
lines changed

libs/aries-basic-controller/aries_basic_controller/helpers/presentation_parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@ def get_presxid(self):
4848
return self.verify['presentation_exchange_id']
4949

5050
def is_verified(self):
51+
"""
52+
Note that verify['state'] is ALWAYS going to be 'verified'.
53+
verify['verified'] is the actual indicator of whether this proof
54+
has succeeded, or if it has already been revoked and the
55+
proof has failed.
56+
"""
5157
return bool(self.verify['verified'])

0 commit comments

Comments
 (0)