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

Issue #33 fix different algorithms matching #35

Conversation

AzizMukhtorjonov
Copy link
Contributor

@AzizMukhtorjonov AzizMukhtorjonov commented Sep 10, 2024

Signed-off-by: Aziz Mukhtorjonov [email protected]

@AzizMukhtorjonov AzizMukhtorjonov deleted the issue-33-fix-different-algorithms-matching branch September 10, 2024 12:46
@AzizMukhtorjonov AzizMukhtorjonov restored the issue-33-fix-different-algorithms-matching branch September 10, 2024 12:46
src/verifier.rs Outdated Show resolved Hide resolved
src/verifier.rs Outdated Show resolved Hide resolved
src/verifier.rs Outdated Show resolved Hide resolved
src/verifier.rs Outdated Show resolved Hide resolved
@AzizMukhtorjonov AzizMukhtorjonov force-pushed the issue-33-fix-different-algorithms-matching branch 3 times, most recently from a4064d5 to bdf1498 Compare September 10, 2024 14:02
src/verifier.rs Outdated Show resolved Hide resolved
src/verifier.rs Outdated Show resolved Hide resolved
@AzizMukhtorjonov AzizMukhtorjonov force-pushed the issue-33-fix-different-algorithms-matching branch 2 times, most recently from 1703544 to e16becd Compare September 11, 2024 05:35
@AzizMukhtorjonov AzizMukhtorjonov force-pushed the issue-33-fix-different-algorithms-matching branch from e16becd to 53ef9b8 Compare September 11, 2024 05:37
src/verifier.rs Outdated
@@ -69,6 +69,13 @@ impl SDJWTVerifier {
verifier.verified_claims = verifier.extract_sd_claims()?;

if let (Some(expected_aud), Some(expected_nonce)) = (&expected_aud, &expected_nonce) {
let sign_alg = verifier.sd_jwt_engine.unverified_input_key_binding_jwt
.clone()
Copy link
Contributor

Choose a reason for hiding this comment

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

cloned value here is used by ref below. Can it be siplified?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed cloning & use reference instead

@Abdulbois Abdulbois merged commit 638afbc into openwallet-foundation-labs:main Oct 3, 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.

4 participants