-
Notifications
You must be signed in to change notification settings - Fork 81
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
[Update] Update to anoncreds-rs 0.2 #1213
Conversation
Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
@JamesKEbert thoughts on this? it gets us off the forked version of anoncreds-rs, but continues to lean into the potential longer-term issues with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, and aligns with our previous discussion. Thanks for making this PR!
DCO check is broken as noted here--https://discord.com/channels/905194001349627914/1156961689971998782/1247613586638110894 |
@JamesKEbert ow yea yes please. didn't notice it was stuck 😅. i'll leave this PR unmerged for now |
Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In order to migrate off of mirgee's fork and onto 0.2.0, we lose the following patches made on 0.2.0: hyperledger/anoncreds-rs@v0.2.0...mirgee:anoncreds-rs:refactor/public-api-changes.
However we can get around those public APIs being missing by using into our
Convert
layer: we can switch between the anoncreds-rs definition of RevocationStatusList, and our own anoncreds_types definition of RevocationStatusList. These definitions are exactly the same, and JSON de/serialize the exact same way, however our version has the public APIs we need. So we can switch between theirs and ours when we need to.Note that it is not perfectly efficient, as we are converting to JSON Value as an intermediate type (as we do for some other anoncreds types too), but this could potentially be cleaned up if we fully move to using the real types from anoncreds-rs crate.