From e7c6f7cf0a2f24ed513a240a2de58b7efe560ef3 Mon Sep 17 00:00:00 2001 From: Kendall Weihe Date: Thu, 16 May 2024 08:08:18 -0400 Subject: [PATCH] Remove unused credentials/tests, rename vc.rs to verifiable_credential.rs --- crates/credentials/src/lib.rs | 2 +- .../src/{vc.rs => verifiable_credential.rs} | 0 .../tests/resources/pd_sanctions.json | 40 ------------------- 3 files changed, 1 insertion(+), 41 deletions(-) rename crates/credentials/src/{vc.rs => verifiable_credential.rs} (100%) delete mode 100644 crates/credentials/tests/resources/pd_sanctions.json diff --git a/crates/credentials/src/lib.rs b/crates/credentials/src/lib.rs index eb83d563..5c02d6a3 100644 --- a/crates/credentials/src/lib.rs +++ b/crates/credentials/src/lib.rs @@ -1,2 +1,2 @@ pub mod presentation_definition; -pub mod vc; +pub mod verifiable_credential; diff --git a/crates/credentials/src/vc.rs b/crates/credentials/src/verifiable_credential.rs similarity index 100% rename from crates/credentials/src/vc.rs rename to crates/credentials/src/verifiable_credential.rs diff --git a/crates/credentials/tests/resources/pd_sanctions.json b/crates/credentials/tests/resources/pd_sanctions.json deleted file mode 100644 index 15245cf9..00000000 --- a/crates/credentials/tests/resources/pd_sanctions.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "ec11a434-fe24-479b-aae0-511428b37e4f", - "format": { - "jwt_vc": { - "alg": [ - "ES256K", - "EdDSA" - ] - } - }, - "input_descriptors": [ - { - "id": "7b928839-f0b1-4237-893d-b27124b57952", - "constraints": { - "fields": [ - { - "path": [ - "$.iss", - "$.vc.issuer" - ], - "filter": { - "type": "string", - "pattern": "^did:[^:]+:.+" - } - }, - { - "path": [ - "$.vc.type[*]", - "$.type[*]" - ], - "filter": { - "type": "string", - "const": "SanctionsCredential" - } - } - ] - } - } - ] -}