Skip to content

Commit

Permalink
Add Presentation Definition and use test vectors (#192)
Browse files Browse the repository at this point in the history
* Pure rust impl of PEX select_credentials

* Test vectors

* Use uuid

* Rename test

* Clean up code a bit

* Remove file nesting

* Lint

* Add submodule to CI

* woops --force

* Lint
  • Loading branch information
Diane Huxley authored May 10, 2024
1 parent b847389 commit dcc0283
Show file tree
Hide file tree
Showing 12 changed files with 316 additions and 211 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Init Hermit
uses: cashapp/activate-hermit@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "web5-spec"]
path = web5-spec
url = [email protected]:TBD54566975/web5-spec.git
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ license-file = "LICENSE"
base64 = "0.22.0"
chrono = { version = "0.4.37", features = ["std"] }
thiserror = "1.0.50"
rand = "0.8.5"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
serde_with = "3.4.0"
4 changes: 2 additions & 2 deletions binded/kt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>web5.sdk</groupId>
<artifactId>web5-kt</artifactId>
<groupId>web5.sdk.core</groupId>
<artifactId>web5-core-kt</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
Expand Down
3 changes: 3 additions & 0 deletions crates/credentials/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ base64 = { workspace = true }
chrono = { workspace = true }
keys = { path = "../keys" }
dids = { path = "../dids" }
hex = "0.4"
jsonpath-rust = "0.5.1"
jsonschema = "0.17.1"
jwt = { path = "../jwt" }
jws = { path = "../jws" }
rand = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_with = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/credentials/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod pex;
pub mod presentation_definition;
pub mod vc;
1 change: 0 additions & 1 deletion crates/credentials/src/pex/mod.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/credentials/src/pex/v2/mod.rs

This file was deleted.

204 changes: 0 additions & 204 deletions crates/credentials/src/pex/v2/presentation_definition.rs

This file was deleted.

Loading

0 comments on commit dcc0283

Please sign in to comment.