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

bugfix for incorrect disclosing of SD objects in arrays #25

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

alexsdsr
Copy link
Contributor

@alexsdsr alexsdsr commented Feb 2, 2024

No description provided.

@alexsdsr alexsdsr requested a review from jovfer as a code owner February 2, 2024 11:16
Copy link
Contributor

@jovfer jovfer left a comment

Choose a reason for hiding this comment

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

LGTM. It would be nice to rework the pair of unpack_from_digest/unpack_from_digests later.

@@ -305,6 +333,38 @@ impl SDJWTVerifier {

Ok(())
}

fn unpack_from_digest(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
fn unpack_from_digest(
fn unpack_array_item_from_digest(

value_for_digest.to_string(),
))?;

let value = disclosure[1].clone();
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's check here the length of the disclosure array. And let's add similar change in upack_from_digests

@jovfer jovfer merged commit 29a2c24 into openwallet-foundation-labs:main Feb 5, 2024
2 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