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

Add secp256k1 signer & verifier, fix serde deserialize optional timestamp bug, add vc verify test vector #350

Merged
merged 6 commits into from
Sep 10, 2024

Conversation

KendallWeihe
Copy link
Contributor

@KendallWeihe KendallWeihe commented Sep 10, 2024

We need to first merge this PR TBD54566975/web5-spec#173 and then update our web5-spec commit

Edit: done

@@ -22,13 +22,15 @@ pub struct JwtPayloadVerifiableCredential {
#[serde(
rename = "issuanceDate",
serialize_with = "serialize_optional_system_time",
deserialize_with = "deserialize_optional_system_time"
deserialize_with = "deserialize_optional_system_time",
default
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was that serde deserialize bug -- turns out if you bring a custom deserializer then the Option<T> doesn't pick it up so you have to make it explicit

}

#[test]
fn verify() {
Copy link
Contributor

Choose a reason for hiding this comment

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

aweomse!

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

🥇 good stuff, looks good!

@KendallWeihe KendallWeihe merged commit bb75678 into main Sep 10, 2024
16 of 17 checks passed
@KendallWeihe KendallWeihe deleted the kendall/test-vec-cred-verify branch September 10, 2024 18:52
diehuxx added a commit that referenced this pull request Sep 10, 2024
* main:
  Add secp256k1 signer & verifier, fix serde deserialize optional timestamp bug, add vc verify test vector (#350)
  implementation of create_presentation_from_credentials (#347)
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