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

[INJIMOB-2471] set UUID as vc identifier #1745

Merged

Conversation

KiruthikaJeyashankar
Copy link
Contributor

@KiruthikaJeyashankar KiruthikaJeyashankar commented Dec 17, 2024

Description

Previously, credential ID was used as a unique identifier of the VC in the wallet. But as per spec credential ID field is optional, to remove this dependency, Wallet will use a generated UUID as the unique identifier for the VC. A UUID is generated on download which serves as identifier

VC id = ${UUID}_${issuer}

Issue ticket number and link

INJIMOB-2471

Note: Tested VC download, Activation, QR login, backup / restore, share scenarios for sanity

@KiruthikaJeyashankar KiruthikaJeyashankar marked this pull request as ready for review December 18, 2024 07:03
Previously, we were relying on the id feild of the Vc to construct the unique identifier for VC component and file name for storing VC, this identifier in now replaced with random generated UUID. This was made since id property of VC is optional field as per w3c data-model 1.1.

We are using UUID version 4 to ensure randomness and collision-resistance.

Signed-off-by: KiruthikaJeyashankar <[email protected]>
This VC key will be used for storing file name, component key & other identifier for VCs

Signed-off-by: KiruthikaJeyashankar <[email protected]>
The identitifier in credentialWrapper having the value "$issuer:$protocol:$UUID" was used to construct VC metadata id, issuer and protocol field which is already available in context param. This is now replaced with constructing VC metadata with the required fields available in machine context.

Signed-off-by: KiruthikaJeyashankar <[email protected]>
… accessing in issuersMachine

Signed-off-by: KiruthikaJeyashankar <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
@KiruthikaJeyashankar KiruthikaJeyashankar force-pushed the injimob-2471-set-uuid-as-vc-identifier branch from 2f37986 to de38181 Compare December 23, 2024 10:51
@swatigoel swatigoel merged commit 82740bc into mosip:develop Dec 24, 2024
3 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.

2 participants