diff --git a/Cargo.toml b/Cargo.toml index 17bfd7a4e..ccb28d2c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -107,7 +107,7 @@ getrandom = "0.2" contextual = "0.1.6" lazy_static = "1.4.0" indexmap = "2.0.0" -uuid = "0.8" +uuid = "1.9" [features] default = ["w3c", "rsa", "ed25519", "secp256k1", "secp256r1", "ripemd-160", "eip712"] diff --git a/crates/dids/methods/key/src/lib.rs b/crates/dids/methods/key/src/lib.rs index f76d63806..9dadb4695 100644 --- a/crates/dids/methods/key/src/lib.rs +++ b/crates/dids/methods/key/src/lib.rs @@ -846,7 +846,7 @@ mod tests { #[async_std::test] #[cfg(feature = "secp384r1")] async fn fetch_jwk_secp384r1() { - let jwk = JWK::generate_p384().unwrap(); + let jwk = JWK::generate_p384(); fetch_jwk(jwk).await; } } diff --git a/crates/verification-methods/Cargo.toml b/crates/verification-methods/Cargo.toml index c17aa3dab..d8289f076 100644 --- a/crates/verification-methods/Cargo.toml +++ b/crates/verification-methods/Cargo.toml @@ -18,13 +18,13 @@ rsa = [] ed25519 = ["ed25519-dalek", "rand_core", "ssi-jws/ed25519", "ssi-multicodec/ed25519"] ## enable secp256k1 keys -secp256k1 = ["k256", "sha2", "ssi-jws/secp256k1"] +secp256k1 = ["k256", "sha2", "ssi-jws/secp256k1", "ssi-multicodec/k256"] ## enable secp256r1 (p256) keys -secp256r1 = ["p256", "ssi-jws/secp256r1"] +secp256r1 = ["p256", "ssi-jws/secp256r1", "ssi-multicodec/p256"] ## enable secp384r1 (p384) keys -secp384r1 = ["p384", "ssi-jws/secp384r1"] +secp384r1 = ["p384", "ssi-jws/secp384r1", "ssi-multicodec/p384"] tezos = ["ssi-tzkey", "ssi-caips/tezos"] diff --git a/examples/issue.rs b/examples/issue.rs index b40404f53..740df8b8a 100644 --- a/examples/issue.rs +++ b/examples/issue.rs @@ -26,7 +26,7 @@ async fn main() { "issuer": "did:example:foo", "issuanceDate": ssi::xsd_types::DateTime::now(), "credentialSubject": { - "id": uuid::Uuid::new_v4().to_urn().to_string() + "id": uuid::Uuid::new_v4().urn().to_string() } })) .unwrap();