Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ssi 0.9 #21

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "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"
Expand All @@ -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 = "0.2.1"
did-method-key = "0.3.1"
ssi-verification-methods = "0.1.2"
tokio = { version = "1.25.0", features = ["macros"] }
8 changes: 4 additions & 4 deletions src/core/profiles/w3c/jwt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use serde::{Deserialize, Serialize};
use ssi_claims::CompactJWSString;
use ssi_claims::JwsBuf;

use crate::profiles::{
AuthorizationDetailsProfile, CredentialConfigurationProfile, CredentialOfferProfile,
Expand Down Expand Up @@ -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],
}
];
}
Expand Down