github.com/hyperledger/aries-framework-go@v0.3.2/pkg/doc/presexch/testdata/sample_3.json (about) 1 { 2 "id":"32f54163-7166-48f1-93d8-ff217bdb0653", 3 "submission_requirements":[ 4 { 5 "name":"Banking Information", 6 "purpose":"We need to know if you have an established banking history.", 7 "rule":"pick", 8 "count":1, 9 "from":"A" 10 }, 11 { 12 "name":"Employment Information", 13 "purpose":"We need to know that you are currently employed.", 14 "rule":"all", 15 "from":"B" 16 }, 17 { 18 "name":"Citizenship Information", 19 "rule":"pick", 20 "count":1, 21 "from":"C" 22 } 23 ], 24 "input_descriptors":[ 25 { 26 "id":"banking_input_1", 27 "name":"Bank Account Information", 28 "purpose":"We need your bank and account information.", 29 "group":[ 30 "A" 31 ], 32 "schema":[ 33 { 34 "uri":"https://bank-standards.com/customer.json" 35 } 36 ], 37 "constraints":{ 38 "limit_disclosure":"required", 39 "fields":[ 40 { 41 "path":[ 42 "$.issuer", 43 "$.vc.issuer", 44 "$.iss" 45 ], 46 "purpose":"The claim must be from one of the specified issuers", 47 "filter":{ 48 "type":"string", 49 "pattern":"did:example:123|did:example:456" 50 } 51 }, 52 { 53 "path":[ 54 "$.credentialSubject.account[*].account_number", 55 "$.vc.credentialSubject.account[*].account_number", 56 "$.account[*].account_number" 57 ], 58 "purpose":"We need your bank account number for processing purposes", 59 "filter":{ 60 "type":"string", 61 "minLength":10, 62 "maxLength":12 63 } 64 }, 65 { 66 "path":[ 67 "$.credentialSubject.account[*].routing_number", 68 "$.vc.credentialSubject.account[*].routing_number", 69 "$.account[*].routing_number" 70 ], 71 "purpose":"You must have an account with a German, US, or Japanese bank account", 72 "filter":{ 73 "type":"string", 74 "pattern":"^DE|^US|^JP" 75 } 76 } 77 ] 78 } 79 }, 80 { 81 "id":"banking_input_2", 82 "name":"Bank Account Information", 83 "purpose":"We need your bank and account information.", 84 "group":[ 85 "A" 86 ], 87 "schema":[ 88 { 89 "uri":"https://bank-schemas.org/1.0.0/accounts.json" 90 }, 91 { 92 "uri":"https://bank-schemas.org/2.0.0/accounts.json" 93 } 94 ], 95 "constraints":{ 96 "fields":[ 97 { 98 "path":[ 99 "$.issuer", 100 "$.vc.issuer", 101 "$.iss" 102 ], 103 "purpose":"The claim must be from one of the specified issuers", 104 "filter":{ 105 "type":"string", 106 "pattern":"did:example:123|did:example:456" 107 } 108 }, 109 { 110 "path":[ 111 "$.credentialSubject.account[*].id", 112 "$.vc.credentialSubject.account[*].id", 113 "$.account[*].id" 114 ], 115 "purpose":"We need your bank account number for processing purposes", 116 "filter":{ 117 "type":"string", 118 "minLength":10, 119 "maxLength":12 120 } 121 }, 122 { 123 "path":[ 124 "$.credentialSubject.account[*].route", 125 "$.vc.credentialSubject.account[*].route", 126 "$.account[*].route" 127 ], 128 "purpose":"You must have an account with a German, US, or Japanese bank account", 129 "filter":{ 130 "type":"string", 131 "pattern":"^DE|^US|^JP" 132 } 133 } 134 ] 135 } 136 }, 137 { 138 "id":"employment_input", 139 "name":"Employment History", 140 "purpose":"We need to know your work history.", 141 "group":[ 142 "B" 143 ], 144 "schema":[ 145 { 146 "uri":"https://business-standards.org/schemas/employment-history.json" 147 } 148 ], 149 "constraints":{ 150 "fields":[ 151 { 152 "path":[ 153 "$.jobs[*].active" 154 ], 155 "filter":{ 156 "type":"boolean", 157 "pattern":"true" 158 } 159 } 160 ] 161 } 162 }, 163 { 164 "id":"citizenship_input_1", 165 "name":"EU Driver's License", 166 "group":[ 167 "C" 168 ], 169 "schema":[ 170 { 171 "uri":"https://eu.com/claims/DriversLicense.json" 172 } 173 ], 174 "constraints":{ 175 "fields":[ 176 { 177 "path":[ 178 "$.issuer", 179 "$.vc.issuer", 180 "$.iss" 181 ], 182 "purpose":"The claim must be from one of the specified issuers", 183 "filter":{ 184 "type":"string", 185 "pattern":"did:example:gov1|did:example:gov2" 186 } 187 }, 188 { 189 "path":[ 190 "$.credentialSubject.dob", 191 "$.vc.credentialSubject.dob", 192 "$.dob" 193 ], 194 "filter":{ 195 "type":"string", 196 "format":"date", 197 "minimum":"1999-5-16" 198 } 199 } 200 ] 201 } 202 }, 203 { 204 "id":"citizenship_input_2", 205 "name":"US Passport", 206 "group":[ 207 "C" 208 ], 209 "schema":[ 210 { 211 "uri":"hub://did:foo:123/Collections/schema.us.gov/passport.json" 212 } 213 ], 214 "constraints":{ 215 "fields":[ 216 { 217 "path":[ 218 "$.credentialSubject.birth_date", 219 "$.vc.credentialSubject.birth_date", 220 "$.birth_date" 221 ], 222 "filter":{ 223 "type":"string", 224 "format":"date", 225 "minimum":"1999-5-16" 226 } 227 } 228 ] 229 } 230 } 231 ] 232 }