-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix the presentation submission in the oid4vp-rs e2e test. #8
Changes from 44 commits
10611a8
7ea4c50
7b3ced0
4a77347
48e152e
26e62f1
8c47808
de5db7d
24845c7
5036a69
ac8e904
6fe4d46
6d29442
e885a4c
3996946
4e841cc
edcc8a2
23e589a
1527933
8ed8828
97b3462
dcdde5c
1a2af67
61043a9
24497dd
3423d13
7bd0660
ce60c03
cd22624
26dda42
d188434
89db3b2
0ec29b3
d478103
5e65c4e
e276d6a
3d93a0e
0843f66
b7d8083
096d383
f82fa26
b07b715
fcb4ed9
1398cad
be2bbed
32a49b7
d050355
4a0217b
9997486
2a93750
f490b8b
347259d
05d550e
129d22c
a3bf215
7733f65
54c0f79
efd5773
a7aed11
2e453ca
a3bfdcb
7a337ae
76e3a3a
51e11e8
65e1b11
d0c7439
033fd5e
d98d2a4
915b922
3d7b1f5
e9b33df
64f87eb
d3dce7f
458ff5f
165b1c7
0e0f985
b8e9141
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,27 +9,28 @@ repository = "https://github.com/spruceid/oidc4vp-rs/" | |
documentation = "https://docs.rs/oid4vp/" | ||
|
||
[features] | ||
default = [] | ||
reqwest = ["dep:reqwest"] | ||
p256 = ["dep:p256"] | ||
rand = ["dep:rand"] | ||
|
||
[dependencies] | ||
anyhow = "1.0.75" | ||
async-trait = "0.1.73" | ||
base64 = "0.21.4" | ||
did-web = "0.2.2" | ||
http = "1.1.0" | ||
jsonpath_lib = "0.3.0" | ||
jsonschema = "0.18.0" | ||
p256 = { version = "0.13.2", features = ["jwk"], optional = true } | ||
regex = "1.10.6" | ||
rand = { version = "0.8.5", optional = true } | ||
reqwest = { version = "0.12.5", features = ["rustls-tls"], optional = true } | ||
serde = "1.0.188" | ||
serde_cbor = "0.11.2" | ||
serde_json = "1.0.107" | ||
serde_qs = "0.12.0" | ||
serde_urlencoded = "0.7.1" | ||
ssi = "0.7" | ||
thiserror = "1.0.49" | ||
ssi-claims = "0.1.0" | ||
ssi-dids = "0.2.0" | ||
ssi-jwk = { version = "0.2.1", features = ["secp256r1"] } | ||
ssi-verification-methods = "0.1.1" | ||
tokio = "1.32.0" | ||
tracing = "0.1.37" | ||
url = { version = "2.4.1", features = ["serde"] } | ||
|
@@ -46,3 +47,9 @@ uuid = { version = "1.2", features = ["v4", "serde", "js"] } | |
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
uuid = { version = "1.2", features = ["v4", "serde"] } | ||
|
||
# For Development Purpose, patch the ssi* crates to use the local versions | ||
# [patch.crates-io] | ||
# ssi-claims = { path = "../ssi/crates/claims" } | ||
# ssi-dids = { path = "../ssi/crates/dids" } | ||
# ssi-jwk = { path = "../ssi/crates/jwk" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My preference is to keep this out of the Cargo.toml, as it makes assumptions about the developer's directory structure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you have another preference for patching libs? Or just remove the commented code from the Cargo.toml and let the developer add it as necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep the latter. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod verifiable_presentation_builder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary feature overhead,
rand
is already in the dependency tree through the ssi crates. Andreqwest
is too as of addingjsonschema
, so we can remove that feature too.p256
should be optional, but with the ssi refactor it looks like that is always imported throughssi-dids
, even with --no-default-features. I think that is a bug, but we can remove it as a feature for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we want the ability to pass in a reference to an existing RNG? e.g.
I don't know if this is a common case where an RNG is already initialized and could be passed in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see
p256
as a re-export fromssi-dids
for0.2.0
: https://docs.rs/ssi-dids/latest/ssi_dids/#reexportsI also don't see
rand
as a re-export fromjsonschema
: https://docs.rs/jsonschema/latest/jsonschema/#reexportsHow are these libraries used from dependencies, if they are not re-exported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to use the crates from those dependencies, there's just no point gating them behind features if they're already in the dependency tree.