Skip to content

Commit

Permalink
Remove dependency on serde_jcs crate (unmaintained) (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe authored Oct 17, 2024
1 parent e462167 commit 0822577
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 1 addition & 1 deletion src/tests/claim_aggregation/test_issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fn sign_bytes(signer: &Jwk, payload: &[u8]) -> Vec<u8> {

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()
}

0 comments on commit 0822577

Please sign in to comment.