From 082257712cc4ecbaba85f39e17a016f4f5c07f1f Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Thu, 17 Oct 2024 12:49:02 -0700 Subject: [PATCH] Remove dependency on serde_jcs crate (unmaintained) (#57) --- Cargo.toml | 1 - src/tests/claim_aggregation/test_issuer.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4d52076..e88d290 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,5 @@ c2pa = { version = "0.33.0", features = ["file_io", "openssl_sign", "openssl_ffi futures = "0.3.30" hyper = { version = "0.14.30", features = ["client", "http1", "server", "stream"] } serde = { version = "1.0.197", features = ["derive"] } -serde_jcs = "0.1.0" # unmaintained, try to remove tempfile = "3.10.1" tokio = { version = "1.40", features = ["macros"] } diff --git a/src/tests/claim_aggregation/test_issuer.rs b/src/tests/claim_aggregation/test_issuer.rs index 6c249de..eb1f1f9 100644 --- a/src/tests/claim_aggregation/test_issuer.rs +++ b/src/tests/claim_aggregation/test_issuer.rs @@ -305,7 +305,7 @@ fn sign_bytes(signer: &Jwk, payload: &[u8]) -> Vec { fn generate_did_jwk_url(key: &Jwk) -> DidBuf { let key = key.to_public(); - let normalized = serde_jcs::to_string(&key).unwrap(); + let normalized = serde_json::to_string(&key).unwrap(); let method_id = multibase::Base::Base64Url.encode(normalized); DidBuf::new(format!("did:jwk:{method_id}#0")).unwrap() }