# ACAPY - auto delete presentation exchange https://github.com/hyperledger/aries-cloudagent-python/issues/2126 ## Current State for Credential Exchange ##### argparse.py ###### args.preserve_exchange_records `--preserve-exchange-records` `ACAPY_PRESERVE_EXCHANGE_RECORDS` if args.preserve_exchange_records: settings["preserve_exchange_records"] = True ##### V1_0 issue_credential.v1_0.manager.prepare_send issue_credential.v1_0.manager.create_proposal - has auto_remove parameter ```if auto_remove is None: auto_remove = not self._profile.settings.get("preserve_exchange_records") V10CredentialExchange(auto_remove=auto_remove) ``` issue_credential.v1_0.manager.receive_proposal issue_credential.v1_0.manager.receive_offer - check system setting when creating V10CredentialExchange V10CredentialExchange - has auto_remove: bool = False | API Call | Schema | | -------- | -------- | | `/issue-credential/create` | V10CredentialCreateSchema | | `/issue-credential/send` | | | `/issue-credential/send-proposal` | V10CredentialProposalRequestSchemaBase | | `/issue-credential/create-offer` | V10CredentialConnFreeOfferRequestSchema | | `/issue-credential/send-offer` | V10CredentialFreeOfferRequestSchema | - have auto_remove = fields.Bool, required = False ##### V2_0 issue_credential.v2_0.manager.prepare_send issue_credential.v2_0.manager.create_proposal - has auto_remove parameter ```if auto_remove is None: auto_remove = not self._profile.settings.get("preserve_exchange_records") V20CredExRecord(auto_remove=auto_remove) ``` issue_credential.v2_0.manager.receive_proposal issue_credential.v2_0.manager.receive_offer - check system setting when creating V20CredExRecord V20CredExRecord - has auto_remove: bool = False | API Call | Schema | | -------- | -------- | | `issue-credential-2.0/create` | V20IssueCredSchemaCore | | `/issue-credential-2.0/send` | V20CredExFreeSchema | | `/issue-credential-2.0/send-proposal` | | | `/issue-credential-2.0/send-request` | V20CredRequestRequestSchema | | `/issue-credential-2.0/send-offer` | V20CredBoundOfferRequestSchema | - have auto_remove = fields.Bool, required = False ### Proposal #### Presentation Exchange Changes ##### argparse.py ###### args.preserve_exchange_records `--preserve-pres-exch-records-verifier` `ACAPY_PRESERVE_PRES_EXCH_RECORDS_VERIFIER` if args.preserve_pres_exch_records_verifier: settings["preserve_pres_exch_records_verifier"] = True `--preserve-pres-exch-records-holder` `ACAPY_PRESERVE_PRES_EXCH_RECORDS_HOLDER` if args.preserve_pres_exch_records_holder: settings["preserve_pres_exch_records_holder"] = True Add optional fields to API schemas, models and optional parameters to Manager. ##### V1_0 present_proof.v1_0.manager.create_exchange_for_proposal present_proof.v1_0.manager.create_exchange_for_request - add auto_remove parameter - check system setting (`preserve_pres_exch_records_verifier`) when creating V10PresentationExchange present_proof.v1_0.manager.receive_proposal - check system setting (`preserve_pres_exch_records_holder`) when creating V10PresentationExchange V10PresentationExchange - add auto_remove: bool = False | API Call | Schema | | -------- | -------- | | `/present-proof/send-proposal` | V10PresentationProposalRequestSchema | | `/present-proof/create-request` | V10PresentationCreateRequestRequestSchema | | `/present-proof/send-request` | | - add auto_remove = fields.Bool, required = False ##### V2_0 present_proof.v2_0.manager.create_exchange_for_proposal present_proof.v2_0.manager.create_exchange_for_request - add auto_remove parameter - check system setting (`preserve_pres_exch_records_verifier`) when creating V20PresExRecord present_proof.v2_0.manager.receive_pres_proposal - check system setting when creating V20PresExRecord - check system setting (`preserve_pres_exch_records_holder`) when creating V20PresExRecord V20PresExRecord - add auto_remove: bool = False | API Call | Schema | | -------- | -------- | | `/present-proof-2.0/send-proposal` | V20PresProposalRequestSchema | | `/present-proof-2.0/create-request` | V20PresCreateRequestRequestSchema | | `/present-proof-2.0/send-request` | V20PresSendRequestRequestSchema | - add auto_remove = fields.Bool, required = False #### Credential Exchange Changes Add new configurations for credential exchange that mirror the presentation exchange. Leave old one for backwards compatibility (add deprecation warnings). ##### argparse.py ###### args.preserve_exchange_records `--preserve-cred-exch-records-issuer` `ACAPY_PRESERVE_CRED_EXCHANGE_RECORDS_ISSUER` if args.preserve_cred_exch_records_issuer: settings["preserve_cred_exch_records_issuer"] = True **NOTE**: This setting is equivalent to the current `preserve_exchange_records` setting. `--preserve-cred-exch-records-holder` `ACAPY_PRESERVE_CRED_EXCHANGE_RECORDS_HOLDER` if args.preserve_cred_exch_records_holder: settings["preserve_cred_exch_records_holder"] = True This is a new setting and will need to be incorporated into current workflows. issue_credential.v2_0.manager.receive_proposal issue_credential.v2_0.manager.receive_offer - check system setting (`preserve_cred_exch_records_holder`) when creating V20CredExRecord
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up