Skip to content

Commit

Permalink
Fix VC test
Browse files Browse the repository at this point in the history
This test was purely a regression test. k256 version change in #385
changed the recoverable/ethereum signatures generated (both variants
are valid and verify successfully).
Ref: RustCrypto/elliptic-curves#552
  • Loading branch information
sbihel committed Oct 18, 2022
1 parent 8cfa5b5 commit e066501
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ssi-vc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3413,7 +3413,6 @@ _:c14n0 <https://w3id.org/security#verificationMethod> <https://example.org/foo/

#[cfg(feature = "eip")]
#[async_std::test]
#[ignore]
async fn verify_typed_data() {
use ssi_ldp::eip712::TypedData;
let proof: Proof = serde_json::from_value(json!({
Expand Down Expand Up @@ -3638,6 +3637,6 @@ _:c14n0 <https://w3id.org/security#verificationMethod> <https://example.org/foo/
println!("{:#?}", verification_result);
assert!(verification_result.errors.is_empty());

assert_eq!(sig_hex, "0x5fb8f18f21f54c2df8a2720d0afcee7dbbb18e4b7a22ce6e8183633d63b076d329122584db769cd78b6cd5a7094ede5ceaa43317907539187f1f0d8875f99e051b");
assert_eq!(sig_hex, "0xd9a03af99298b50303343ae7b89e14eb7622d64023ddb2df6c220bd5b017fa2b48ab09a6754042eeeb3785ab64f3eab1dd4fd89dbbbbd0181f135b1b938b99841c");
}
}

0 comments on commit e066501

Please sign in to comment.