# FE Tech Assessment
```json=
"comment": "VP, OIDC, DIDComm, or CHAPI outer wrapper here",
"presentation_definition": {
"id": "32f54163-7166-48f1-93d8-ff217bdb0653",
"submission_requirements": [{
"name": "Citizenship Information",
"rule": "pick",
"count": 1,
"from": "A"
}],
"input_descriptors": [
{
"id": "citizenship_input_1",
"name": "EU Driver's License",
"group": ["A"],
"constraints": {
"fields": [
{
"path": ["$.credentialSchema.id", "$.vc.credentialSchema.id"],
"filter": {
"type": "string",
"const": "https://eu.com/claims/DriversLicense.json"
}
},
{
"path": ["$.issuer", "$.vc.issuer", "$.iss"],
"purpose": "We can only accept digital driver's licenses issued by national authorities of member states or trusted notarial auditors.",
"filter": {
"type": "string",
"pattern": "did:example:gov1|did:example:gov2"
}
},
{
"path": ["$.credentialSubject.dob", "$.vc.credentialSubject.dob", "$.dob"],
"filter": {
"type": "string",
"format": "date"
}
}
]
}
},
{
"id": "citizenship_input_2",
"name": "US Passport",
"group": ["A"],
"constraints": {
"fields": [
{
"path": ["$.credentialSchema.id", "$.vc.credentialSchema.id"],
"filter": {
"type": "string",
"const": "hub://did:foo:123/Collections/schema.us.gov/passport.json"
}
},
{
"path": ["$.credentialSubject.birth_date", "$.vc.credentialSubject.birth_date", "$.birth_date"],
"filter": {
"type": "string",
"format": "date"
}
}
]
}
}
]
}
```
## Credential Manifest Example
```json=
{
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"spec_version": "https://identity.foundation/credential-manifest/spec/v1.0.0/",
"output_descriptors": [
{
"id": "kyc_credential",
"schema": "https://compliance-is-kewl.com/json-schemas/kyc.json"
}
],
"presentation_definition": {
"id": "32f54163-7166-48f1-93d8-ff217bdb0653",
"name": "KYC Requirements",
"purpose": "TBD. i donno rn",
"format": {
"jwt": {
"alg": [
"EdDSA"
]
}
},
"input_descriptors": [
{
"id": "kyc1",
"name": "Personal Info",
"constraints": {
"subject_is_issuer": "required"
"fields": [
{
"id": "kycSchema",
"path": [
"$.vc.credentialSchema.id"
],
"filter": {
"type": "string",
"const": "https://compliance-is-kewl.com/json-schemas/kyc.json"
}
},
{
"id": "givenName",
"path": [
"$.vc.credentialSubject.givenName"
],
"filter": {
"type": "string",
"pattern": "[a-zA-Z \\-\\.].+"
}
},
{
"id": "additionalName",
"path": [
"$.vc.credentialSubject.additionalName"
],
"filter": {
"type": "string",
"pattern": "[a-zA-Z \\-\\.].+"
}
},
{
"id": "familyName",
"path": [
"$.vc.credentialSubject.familyName"
],
"filter": {
"type": "string",
"pattern": "[a-zA-Z \\-\\.].+"
}
},
{
"id": "birthDate",
"path": [
"$.vc.credentialSubject.birthDate"
],
"filter": {
"type": "string",
"format": "date"
}
},
{
"id": "postalAddress",
"path": [
"$.vc.credentialSubject.postalAddress"
],
"filter": {
"type": "string"
}
},
{
"id": "taxID",
"path": [
"$.vc.credentialSubject.taxID"
],
"filter": {
"type": "string"
}
}
]
}
}
]
}
}
```
## Verifiable Credential Example
```javascript=
const vcs = []
```