Skip to content
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

Include only one format on each presentation definition input descriptor #112

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { PublicKeyResolverChain } from "../../vp_token/PublicKeyResolverChain";

const verifiableIdDescriptor = {
"id": "VerifiableId",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"constraints": {
"fields": [
{
Expand Down Expand Up @@ -45,6 +46,7 @@ const verifiableIdDescriptor = {

const bachelorDescriptor = {
"id": "Bachelor",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"constraints": {
"fields": [
{
Expand Down Expand Up @@ -78,6 +80,7 @@ const bachelorDescriptor = {

const europeanHealthInsuranceCardDescriptor = {
"id": "EuropeanHealthInsuranceCard",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"constraints": {
"fields": [
{
Expand Down Expand Up @@ -146,7 +149,7 @@ export class VerifierConfigurationService implements VerifierConfigurationInterf
"id": "VerifiableId",
"title": "Verifiable ID",
"description": "Required Fields: VC type, Given Name, Family Name & Birthdate",
"format": { "vc+sd-jwt": { alg: ['ES256'] }, jwt_vc_json: { alg: ['ES256'] }, jwt_vp: { alg: ['ES256'] } },
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"input_descriptors": [
verifiableIdDescriptor
]
Expand All @@ -155,7 +158,7 @@ export class VerifierConfigurationService implements VerifierConfigurationInterf
"id": "Bachelor",
"title": "Bachelor Diploma",
"description": "Required Fields: VC type, Grade, EQF Level & Diploma Title",
"format": { "vc+sd-jwt": { alg: ['ES256'] }, jwt_vc_json: { alg: ['ES256'] }, jwt_vp: { alg: ['ES256'] } },
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"input_descriptors": [
bachelorDescriptor
]
Expand All @@ -164,7 +167,7 @@ export class VerifierConfigurationService implements VerifierConfigurationInterf
"id": "EuropeanHealthInsuranceCard",
"title": "European HealthInsurance Card",
"description": "Required Fields: VC type, SSN, Family Name, Given Name & Birth Date",
"format": { "vc+sd-jwt": { alg: ['ES256'] }, jwt_vc_json: { alg: ['ES256'] }, jwt_vp: { alg: ['ES256'] } },
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"input_descriptors": [
europeanHealthInsuranceCardDescriptor
]
Expand All @@ -173,7 +176,7 @@ export class VerifierConfigurationService implements VerifierConfigurationInterf
"id": "VIDAndEuropeanHealthInsuranceCard",
"title": "VID + EHIC",
"description": "",
"format": { "vc+sd-jwt": { alg: ['ES256'] }, jwt_vc_json: { alg: ['ES256'] }, jwt_vp: { alg: ['ES256'] } },
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"input_descriptors": [
verifiableIdDescriptor,
europeanHealthInsuranceCardDescriptor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ export class VerifierConfigurationService implements VerifierConfigurationInterf
return [
{
"id": "vid",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] }, jwt_vp: { alg: [ 'ES256' ] } },
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"input_descriptors": [
{
"id": "VID",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"constraints": {
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ export class VerifierConfigurationService implements VerifierConfigurationInterf
return [
{
"id": "vid",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] }, jwt_vp: { alg: [ 'ES256' ] } },
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"input_descriptors": [
{
"id": "VID",
"format": { "vc+sd-jwt": { alg: [ 'ES256' ] } },
"constraints": {
"fields": [
{
Expand Down