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

fix: change the way of converting blank node ids #129

Merged
merged 1 commit into from
May 22, 2021

Conversation

yamdan
Copy link
Contributor

@yamdan yamdan commented May 21, 2021

Description

This fix improves the way of converting blank node ids before signing and verification, just using regexp-based string replacement. It enables us to make credentialSubject.id to be blank node identifier, which would be useful in privacy-preserving applications of BBS+.

  • Tests for the changes have been added (for bug fixes / features)
  • The commit message(s) follow conventional commits
  • Documentation has been added / updated (for bug fixes / features)
  • Changes follow the contributing document.

Motivation and Context

fixes #128

Does this PR introduce a breaking change?

  • Yes
  • No

Which merge strategy will you use?

  • Squash
  • Rebase (REVIEW COMMITS)

This fix improves the way of converting blank node ids before signing and verification, just using regexp-based string replacement. It enables us to make `credentialSubject.id` to be blank node identifier, which would be useful in privacy-preserving applications of BBS+.

fixes mattrglobal#128
@tplooker
Copy link
Member

@yamdan thanks this PR looks great! I'll just have to fix the code-coverage bot first, then I'll approve and merge this

Copy link
Contributor

@kdenhartog kdenhartog left a comment

Choose a reason for hiding this comment

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

Looks like a much better solution. Thanks for the addition!

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

Successfully merging this pull request may close these issues.

Removing credentialSubject.id causes null credentialSubject
3 participants