Skip to content
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

[Bug] Python Wrapper LinkSecret Invalid object handle #194

Closed
PatStLouis opened this issue Apr 14, 2023 · 3 comments · Fixed by #197
Closed

[Bug] Python Wrapper LinkSecret Invalid object handle #194

PatStLouis opened this issue Apr 14, 2023 · 3 comments · Fixed by #197

Comments

@PatStLouis
Copy link

When attempting to transform a LinkSecret to json I get the following error:
anoncreds.error.AnoncredsError: Invalid object handle

Steps to reproduce:

link_secret = LinkSecret()
print(link_secret.to_dict())
@TimoGlastra
Copy link
Member

Link secret is now a string. It should probably be updated in the python wrapper as well. @blu3beri do you know what needs to be chaned?

@PatStLouis
Copy link
Author

Ok good to know. Ideally there should be a way to serialize the object and load it back. The LinkSecret.load() method expects a json as input and throws undefined symbol: anoncreds_link_secret_from_json. This makes it difficult to store/restore the link secret in-between data-flows such as creating a credential request and/or deriving a presentation.

@TimoGlastra
Copy link
Member

There's no need anymore to serialize/dezerialize it. If you look at the JS wrapper it has a single LinkSecret.create which returns a string. All other methods now expect a string when you need to pass the link secret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants