aries_cloudagent.holder package¶
Submodules¶
aries_cloudagent.holder.base module¶
Base holder class.
aries_cloudagent.holder.indy module¶
Indy issuer implementation.
-
class
aries_cloudagent.holder.indy.
IndyHolder
(wallet)[source]¶ Bases:
aries_cloudagent.holder.base.BaseHolder
Indy holder class.
-
RECORD_TYPE_MIME_TYPES
= 'attribute-mime-types'¶
-
create_credential_request
(credential_offer, credential_definition, did)[source]¶ Create a credential offer for the given credential definition id.
Parameters: - credential_offer – The credential offer to create request for
- credential_definition – The credential definition to create an offer for
Returns: A credential request
-
create_presentation
(presentation_request: dict, requested_credentials: dict, schemas: dict, credential_definitions: dict)[source]¶ Get credentials stored in the wallet.
Parameters: - presentation_request – Valid indy format presentation request
- requested_credentials – Indy format requested_credentials
- schemas – Indy formatted schemas_json
- credential_definitions – Indy formatted schemas_json
-
delete_credential
(credential_id: str)[source]¶ Remove a credential stored in the wallet.
Parameters: credential_id – Credential id to remove
-
get_credential
(credential_id: str)[source]¶ Get a credential stored in the wallet.
Parameters: credential_id – Credential id to retrieve
-
get_credentials
(start: int, count: int, wql: dict)[source]¶ Get credentials stored in the wallet.
Parameters: - start – Starting index
- count – Number of records to return
- wql – wql query dict
-
get_credentials_for_presentation_request_by_referent
(presentation_request: dict, referents: Sequence[str], start: int, count: int, extra_query: dict = {})[source]¶ Get credentials stored in the wallet.
Parameters: - presentation_request – Valid presentation request from issuer
- referents – Presentation request referents to use to search for creds
- start – Starting index
- count – Maximum number of records to return
- extra_query – wql query dict
-
get_mime_type
(credential_id: str, attr: str = None) → Union[dict, str][source]¶ Get MIME type per attribute (or for all attributes).
Parameters: - credential_id – credential id
- attr – attribute of interest or omit for all
- Returns: Attribute MIME type or dict mapping attribute names to MIME types
- attr_meta_json = all_meta.tags.get(attr)
-
store_credential
(credential_definition, credential_data, credential_request_metadata, credential_attr_mime_types=None, credential_id=None)[source]¶ Store a credential in the wallet.
Parameters: - credential_definition – Credential definition for this credential
- credential_data – Credential data generated by the issuer
- credential_request_metadata – credential request metadata generated by the issuer
- credential_attr_mime_types – dict mapping attribute names to (optional) MIME types to store as non-secret record, if specified
-