-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading wallet with exsiting indy
creds from askar
to askar-anoncreds
#3516
Comments
Relevant code ( class IndyPresExchangeHandler(V20PresFormatHandler):
"""Indy presentation format handler."""
format = V20PresFormat.Format.INDY
anoncreds_handler = None
def __init__(self, profile: Profile):
"""Shim initialization to check for new AnonCreds library."""
super().__init__(profile)
# Temporary shim while the new anoncreds library integration is in progress
wallet_type = profile.settings.get_value("wallet.type")
if wallet_type == "askar-anoncreds":
self.anoncreds_handler = AnonCredsPresExchangeHandler(profile)
...
async def create_pres(
self,
pres_ex_record: V20PresExRecord,
request_data: Optional[dict] = None,
) -> Tuple[V20PresFormat, AttachDecorator]:
"""Create a presentation."""
if self.anoncreds_handler:
return await self.anoncreds_handler.create_pres(
pres_ex_record,
request_data,
) |
That error is saying that the The indy presentation request should work. There is tests for this scenario in https://github.com/openwallet-foundation/acapy/blob/main/scenarios/examples/anoncreds_issuance_and_revocation/example.py I'm having a hard time understanding why that schema isn't resolving to the aoncreds registry. |
I am testing upgrading holder wallets from
askar
toaskar-anoncreds
with existingindy
credentials in them.We run 2 agents in our stack, author (
ACAPY_MULTITENANT: true
,ACAPY_MULTITENANCY_CONFIGURATION: '{ "wallet_type":"single-wallet-askar", "wallet_name":"multitenant" }'
,ACAPY_AUTO_VERIFY_PRESENTATION: true
) and endorser.I am able to issue creds into the holder's wallet,
askar
toaskar
. (Endorser created theschema
used forcred_def
)Calling
POST /anoncreds/wallet/upgrade?wallet_name=Holder
succeeds with:Then doing an
indy presentation request
against the credential attribs in the holder'saskar-anoncreds
wallet fails with the following error.I am expecting these to still be
indy
credentials. It's not like I need to change my presentation request to anAnoncredsPresentationRequest
... Right?The text was updated successfully, but these errors were encountered: