aries_cloudagent.protocols.present_proof.v1_0.util package¶
Submodules¶
aries_cloudagent.protocols.present_proof.v1_0.util.indy module¶
Utilities for dealing with indy conventions.
-
aries_cloudagent.protocols.present_proof.v1_0.util.indy.
indy_proof_req2non_revoc_intervals
(indy_proof_req: dict)[source]¶ Return non-revocation intervals by requested item referent in proof request.
-
aries_cloudagent.protocols.present_proof.v1_0.util.indy.
indy_proof_req_preview2indy_requested_creds
(indy_proof_req: dict, preview: aries_cloudagent.protocols.present_proof.v1_0.messages.inner.presentation_preview.PresentationPreview = None, *, holder: aries_cloudagent.indy.holder.IndyHolder)[source]¶ Build indy requested-credentials structure.
Given input proof request and presentation preview, use credentials in holder’s wallet to build indy requested credentials structure for input to proof creation.
Parameters: - indy_proof_req – indy proof request
- pres_preview – preview from presentation proposal, if applicable
- holder – holder injected into current context
aries_cloudagent.protocols.present_proof.v1_0.util.predicate module¶
Utilities for dealing with predicates.
-
class
aries_cloudagent.protocols.present_proof.v1_0.util.predicate.
Predicate
[source]¶ Bases:
enum.Enum
Enum for predicate types that indy-sdk supports.
-
GE
= Relation(fortran='GE', wql='$gte', math='>=', yes=<function Predicate.<lambda>>, no=<function Predicate.<lambda>>)¶
-
GT
= Relation(fortran='GT', wql='$gt', math='>', yes=<function Predicate.<lambda>>, no=<function Predicate.<lambda>>)¶
-
LE
= Relation(fortran='LE', wql='$lte', math='<=', yes=<function Predicate.<lambda>>, no=<function Predicate.<lambda>>)¶
-
LT
= Relation(fortran='LT', wql='$lt', math='<', yes=<function Predicate.<lambda>>, no=<function Predicate.<lambda>>)¶
-