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

Remove II's direct dependency on identity.rs library for handling VCs #2378

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

przydatek
Copy link
Collaborator

@przydatek przydatek commented Mar 22, 2024

Until now II's code was depending on a fork of identity.rs in two ways: directly, to create id-alias VCs, and indirectly, via the dependency on vc_util-crate. This PR removes the first (direct) dependency, by extending vc_util, and changing the format of the id-alias VCs, to follow the recommended convention for general VCs. This completes the removal of direct dependency on identity.rs for II and VC-issuers -- now the dependency is encapsulated in vc_util-crate.

NOTE: a side-effect of this PR is that once it is deployed in production, II will start issuing id-alias VCs in the new format, so any dapp that verifies these VCs should be updated as well. If a dapp is using vc_util to verify these VCs, it should be re-compiled with the updated version of vc_util.


🟡 Some screens were changed

@przydatek przydatek marked this pull request as ready for review March 22, 2024 15:23
Copy link
Member

@frederikrothenberger frederikrothenberger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. Two minor comments.

Ok(encoder.into_jws(sig))
}

/// Extracts the canister signature public key from the given signing_input.

Choose a reason for hiding this comment

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

Maybe expand the comment a bit on what signing input is? I.e. a JWT without signature.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

src/internet_identity/Cargo.toml Show resolved Hide resolved
Copy link
Collaborator Author

@przydatek przydatek left a comment

Choose a reason for hiding this comment

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

Thanks!

Ok(encoder.into_jws(sig))
}

/// Extracts the canister signature public key from the given signing_input.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

src/internet_identity/Cargo.toml Show resolved Hide resolved
@przydatek przydatek added this pull request to the merge queue Mar 25, 2024
Merged via the queue into main with commit ce71c93 Mar 25, 2024
65 checks passed
@przydatek przydatek deleted the bartosz/ii-vc-util-deps branch March 25, 2024 14:51
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