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

[Update] Update to anoncreds-rs 0.2 #1213

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

gmulhearn-anonyome
Copy link
Contributor

@gmulhearn-anonyome gmulhearn-anonyome commented Jun 5, 2024

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.

Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
@gmulhearn-anonyome gmulhearn-anonyome marked this pull request as draft June 5, 2024 04:09
@gmulhearn-anonyome gmulhearn-anonyome changed the title Draft: [Update] Switch to anoncreds-rs 0.2 [Update] Update to anoncreds-rs 0.2 Jun 5, 2024
Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
@gmulhearn-anonyome
Copy link
Contributor Author

@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 anoncreds_types that we discussed in #1212

@gmulhearn-anonyome gmulhearn-anonyome marked this pull request as ready for review June 5, 2024 04:28
JamesKEbert
JamesKEbert previously approved these changes Jun 5, 2024
Copy link
Contributor

@JamesKEbert JamesKEbert left a 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!

@JamesKEbert
Copy link
Contributor

DCO check is broken as noted here--https://discord.com/channels/905194001349627914/1156961689971998782/1247613586638110894
I can take a look at the workaround tomorrow morning

@gmulhearn
Copy link
Contributor

@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>
Copy link
Contributor

@JamesKEbert JamesKEbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JamesKEbert JamesKEbert merged commit ca35f08 into hyperledger:main Jun 5, 2024
21 checks passed
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 this pull request may close these issues.

None yet

3 participants