From d40b00c3b71f75304e0c442874938a1509b733a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Haudebourg?= Date: Fri, 20 Sep 2024 12:49:20 +0200 Subject: [PATCH 1/2] Update `ssi` to commit `d06273c`. --- Cargo.toml | 12 ++++++------ src/core/profiles/w3c/jwt.rs | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dcba400..bd0ef6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,9 @@ repository = "https://github.com/spruceid/oidc4vci-rs/" # TODO feature-gate isomdl = { git = "https://github.com/spruceid/isomdl", rev = "90ce218" } -ssi-claims = "0.1.0" -ssi-dids-core = "0.1.0" -ssi-jwk = "0.2.1" +ssi-claims = { version = "0.1.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } +ssi-dids-core = { version = "0.1.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } +ssi-jwk = { version = "0.2.1", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_with = "3.3.0" @@ -31,7 +31,7 @@ serde_urlencoded = "0.7.1" [dev-dependencies] assert-json-diff = "2.0.2" -did-jwk = "0.2.0" -did-method-key = "0.3.0" -ssi-verification-methods = "0.1.1" +did-jwk = { version = "0.2.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } +did-method-key = { version = "0.3.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } +ssi-verification-methods = { version = "0.1.1", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } tokio = { version = "1.25.0", features = ["macros"] } diff --git a/src/core/profiles/w3c/jwt.rs b/src/core/profiles/w3c/jwt.rs index 5748c33..fb49ab1 100644 --- a/src/core/profiles/w3c/jwt.rs +++ b/src/core/profiles/w3c/jwt.rs @@ -1,5 +1,5 @@ use serde::{Deserialize, Serialize}; -use ssi_claims::CompactJWSString; +use ssi_claims::JwsBuf; use crate::profiles::{ AuthorizationDetailsProfile, CredentialConfigurationProfile, CredentialOfferProfile, @@ -118,16 +118,16 @@ impl CredentialRequestProfile for Request { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Response { - credential: CompactJWSString, + credential: JwsBuf, } impl Response { - pub fn new(credential: CompactJWSString) -> Self { + pub fn new(credential: JwsBuf) -> Self { Self { credential } } field_getters_setters![ pub self [self] ["JWT VC response value"] { - set_credential -> credential[CompactJWSString], + set_credential -> credential[JwsBuf], } ]; } From 81201384589cfa4ebbf24cd9be551fae9621b4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Haudebourg?= Date: Fri, 20 Sep 2024 17:48:14 +0200 Subject: [PATCH 2/2] Use `ssi` 0.9. --- Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bd0ef6e..2fcb242 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,9 @@ repository = "https://github.com/spruceid/oidc4vci-rs/" # TODO feature-gate isomdl = { git = "https://github.com/spruceid/isomdl", rev = "90ce218" } -ssi-claims = { version = "0.1.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } -ssi-dids-core = { version = "0.1.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } -ssi-jwk = { version = "0.2.1", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } +ssi-claims = "0.1.1" +ssi-dids-core = "0.1.1" +ssi-jwk = "0.3.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_with = "3.3.0" @@ -31,7 +31,7 @@ serde_urlencoded = "0.7.1" [dev-dependencies] assert-json-diff = "2.0.2" -did-jwk = { version = "0.2.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } -did-method-key = { version = "0.3.0", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } -ssi-verification-methods = { version = "0.1.1", git = "https://github.com/spruceid/ssi.git", rev = "d06273c" } +did-jwk = "0.2.1" +did-method-key = "0.3.1" +ssi-verification-methods = "0.1.2" tokio = { version = "1.25.0", features = ["macros"] }