Skip to content

Commit

Permalink
Support for draft 20 and refactor API
Browse files Browse the repository at this point in the history
Broad refactor of the API and support for draft 20.

---------

Co-authored-by: Arjen van Veen <[email protected]>
  • Loading branch information
cobward and justAnIdentity authored Aug 1, 2024
1 parent dd06e4e commit 8f5b573
Show file tree
Hide file tree
Showing 36 changed files with 3,619 additions and 107 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -18,5 +19,5 @@ jobs:
run: cargo test
- name: Fmt
run: cargo fmt -- --check
# - name: Clippy
# run: RUSTFLAGS="-Dwarnings" cargo clippy
- name: Clippy
run: cargo clippy
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "test/presentation-exchange"]
path = test/presentation-exchange
[submodule "presentation-exchange"]
path = tests/presentation-exchange
url = https://github.com/decentralized-identity/presentation-exchange
39 changes: 27 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
[package]
name = "oidc4vp"
name = "oid4vp"
version = "0.1.0"
edition = "2021"
authors = ["Spruce Systems, Inc."]
license = "MIT OR Apache-2.0"
description = "OpenID Connect for Verifiable Presentations"
repository = "https://github.com/spruceid/oidc4vp-rs/"
documentation = "https://docs.rs/oidc4vp/"
documentation = "https://docs.rs/oid4vp/"

[features]
reqwest = ["dep:reqwest"]
p256 = ["dep:p256"]

[dependencies]
# openidconnect = { version = "2.4.0", default-features = false }
jsonpath-rust = "0.2.0"
serde = { version = "1.0.147", features = ["derive"] }
serde_json = "1.0.87"
ssi = { version = "0.6.0", default-features = false }
thiserror = "1.0.37"
# jsonschema = { version = "0.16.1", default-features = false }
lazy_static = "1.4.0"
# schemars = { version = "0.8.11", default-features = false }
anyhow = "1.0.75"
async-trait = "0.1.73"
base64 = "0.21.4"
did-web = "0.2.2"
http = "1.1.0"
p256 = { version = "0.13.2", features = ["jwk"], 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.0"
thiserror = "1.0.49"
tokio = "1.32.0"
tracing = "0.1.37"
url = { version = "2.4.1", features = ["serde"] }
x509-cert = "0.2.4"

[dev-dependencies]
serde_path_to_error = "0.1.8"

tokio = { version = "1.32.0", features = ["macros"] }
did-method-key = "0.2"
oid4vp = { path = ".", features = ["p256"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
uuid = { version = "1.2", features = ["v4", "serde", "js"] }
Expand Down
Loading

0 comments on commit 8f5b573

Please sign in to comment.