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: Adding statement entry before signing VC #19

Merged
merged 6 commits into from
Feb 4, 2025

Conversation

Vikastc
Copy link
Contributor

@Vikastc Vikastc commented Dec 4, 2024

No description provided.

@Vikastc Vikastc requested a review from amarts December 4, 2024 10:10
@Vikastc Vikastc requested review from amarts and removed request for amarts December 8, 2024 16:26
src/vc.ts Outdated
if (options.type === 'affinidi') {
delete vc.credentialHash;
// Add statement as id in VC
const vcId = oldStmt.split(':').slice(0, 3).join(':');
Copy link
Member

Choose a reason for hiding this comment

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

may be this will need to keep the changes as is? they need a ':' in the ID? If not, then OK. Because at least Inji code needed some ':' in ID.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried it with keeping the digest in the statement, but it was not getting verfied in affinidi portal.
Hence, removed the digest from statement

@Vikastc
Copy link
Contributor Author

Vikastc commented Dec 10, 2024

TODO: Not able to find compatible package for Ed25519Signature2020 suite , tried @digitalbazaar/ed25519-signature-2020 but is conflicting with secp256k1 lib.

@Vikastc Vikastc requested review from amarts and vatsa287 December 10, 2024 06:23
@Vikastc
Copy link
Contributor Author

Vikastc commented Jan 15, 2025

TODO: Will format the code to seperate secp256k1 and ed25519 making ed25519 as default

@amarts amarts merged commit f4d9905 into dhiway:main Feb 4, 2025
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.

2 participants