diff --git a/web5-test-vectors/did-jwk/README.md b/web5-test-vectors/did_jwk/README.md similarity index 100% rename from web5-test-vectors/did-jwk/README.md rename to web5-test-vectors/did_jwk/README.md diff --git a/web5-test-vectors/did-jwk/resolve.json b/web5-test-vectors/did_jwk/resolve.json similarity index 100% rename from web5-test-vectors/did-jwk/resolve.json rename to web5-test-vectors/did_jwk/resolve.json diff --git a/web5-test-vectors/did-web/resolve.json b/web5-test-vectors/did_web/resolve.json similarity index 100% rename from web5-test-vectors/did-web/resolve.json rename to web5-test-vectors/did_web/resolve.json diff --git a/web5-test-vectors/presentation-exchange/README.md b/web5-test-vectors/presentation_exchange/README.md similarity index 100% rename from web5-test-vectors/presentation-exchange/README.md rename to web5-test-vectors/presentation_exchange/README.md diff --git a/web5-test-vectors/presentation-exchange/wa-license.json b/web5-test-vectors/presentation_exchange/create_presentation_from_credentials.json similarity index 97% rename from web5-test-vectors/presentation-exchange/wa-license.json rename to web5-test-vectors/presentation_exchange/create_presentation_from_credentials.json index 269ca08..e026bb7 100644 --- a/web5-test-vectors/presentation-exchange/wa-license.json +++ b/web5-test-vectors/presentation_exchange/create_presentation_from_credentials.json @@ -1,5 +1,5 @@ { - "description":"Simple Presentation Exchange", + "description":"Create Presentation From Credentials", "vectors":[ { "description":"presentation exchange for wa drivers license", diff --git a/web5-test-vectors/presentation_exchange/select_credentials.json b/web5-test-vectors/presentation_exchange/select_credentials.json new file mode 100644 index 0000000..14e2adc --- /dev/null +++ b/web5-test-vectors/presentation_exchange/select_credentials.json @@ -0,0 +1,59 @@ +{ + "description":"Select Credentials", + "vectors":[ + { + "description":"select credentials for presentation", + "input":{ + "presentationDefinition":{ + "id":"test-pd-id", + "name":"simple PD", + "purpose":"pd for testing", + "input_descriptors":[ + { + "id":"whatever", + "purpose":"id for testing", + "constraints":{ + "fields":[ + { + "path":[ + "$.vc.credentialSubject.btcAddress", + "$.credentialSubject.btcAddress", + "$.btcAddress" + ] + } + ] + } + }, + { + "id":"whatever2", + "purpose":"id for testing2", + "constraints":{ + "fields":[ + { + "path":[ + "$.vc.credentialSubject.dogeAddress", + "$.credentialSubject.dogeAddress", + "$.dogeAddress" + ] + } + ] + } + } + ] + }, + "credentialJwts":[ + "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa2ZIQk5tYzRjQ2hOdER2YXIxOFRaaWdmWHQ3UDY1RkJHd3FRVHR4UW9RUG5HI3o2TWtmSEJObWM0Y0NoTnREdmFyMThUWmlnZlh0N1A2NUZCR3dxUVR0eFFvUVBuRyJ9.eyJpc3MiOiJkaWQ6a2V5Ono2TWtmSEJObWM0Y0NoTnREdmFyMThUWmlnZlh0N1A2NUZCR3dxUVR0eFFvUVBuRyIsInN1YiI6ImRpZDprZXk6ejZNa2ZIQk5tYzRjQ2hOdER2YXIxOFRaaWdmWHQ3UDY1RkJHd3FRVHR4UW9RUG5HIiwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCIsIlN0cmVldENyZWQiXSwiaWQiOiJ1cm46dXVpZDoxM2Q1YTg3YS1kY2Y1LTRmYjktOWUyOS0wZTYyZTI0YzQ0ODYiLCJpc3N1ZXIiOiJkaWQ6a2V5Ono2TWtmSEJObWM0Y0NoTnREdmFyMThUWmlnZlh0N1A2NUZCR3dxUVR0eFFvUVBuRyIsImlzc3VhbmNlRGF0ZSI6IjIwMjMtMTItMDdUMTc6MTk6MTNaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJkaWQ6a2V5Ono2TWtmSEJObWM0Y0NoTnREdmFyMThUWmlnZlh0N1A2NUZCR3dxUVR0eFFvUVBuRyIsIm90aGVydGhpbmciOiJvdGhlcnN0dWZmIn19fQ.FVvL3z8LHJXm7lGX2bGFvH_U-bTyoheRbLzE7zIk_P1BKwRYeW4sbYNzsovFX59tw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