Skip to content

Commit

Permalink
Merge pull request #192 from openid/c2bo/fix-indentation
Browse files Browse the repository at this point in the history
fix indentation to use 2 spaces everywhere
  • Loading branch information
jogu committed Jun 13, 2024
2 parents 376c57e + bdb31d9 commit fde2131
Show file tree
Hide file tree
Showing 43 changed files with 1,550 additions and 1,550 deletions.
38 changes: 19 additions & 19 deletions examples/client_metadata/client_client_id_did.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"client_id": "did:example:123",
"redirect_uri": "https://client.example.org/callback",
"response_type": "vp_token id_token",
"client_metadata": {
"vp_formats": {
"jwt_vp_json": {
"alg": [
"EdDSA",
"ES256K"
]
},
"ldp_vp": {
"proof_type": [
"Ed25519Signature2018"
]
}
"client_id": "did:example:123",
"redirect_uri": "https://client.example.org/callback",
"response_type": "vp_token id_token",
"client_metadata": {
"vp_formats": {
"jwt_vp_json": {
"alg": [
"EdDSA",
"ES256K"
]
},
"client_name": "My Example (SIOP)",
"application_type": "web"
}
"ldp_vp": {
"proof_type": [
"Ed25519Signature2018"
]
}
},
"client_name": "My Example (SIOP)",
"application_type": "web"
}
}
40 changes: 20 additions & 20 deletions examples/client_metadata/client_code_format.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"client_id": "s6BhdRkqt3",
"redirect_uri": "https://client.example.org/callback",
"token_endpoint_auth_method": "client_secret_basic",
"response_type": "code",
"grant_type": "authorization_code",
"vp_formats": {
"jwt_vp_json": {
"alg": [
"EdDSA",
"ES256K"
]
},
"ldp_vp": {
"proof_type": [
"Ed25519Signature2018"
]
},
"client_name": "My Example",
"application_type": "web"
}
"client_id": "s6BhdRkqt3",
"redirect_uri": "https://client.example.org/callback",
"token_endpoint_auth_method": "client_secret_basic",
"response_type": "code",
"grant_type": "authorization_code",
"vp_formats": {
"jwt_vp_json": {
"alg": [
"EdDSA",
"ES256K"
]
},
"ldp_vp": {
"proof_type": [
"Ed25519Signature2018"
]
},
"client_name": "My Example",
"application_type": "web"
}
}
58 changes: 29 additions & 29 deletions examples/credentials/ac_vc.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"schema_id": "3QowxFtwciWceMFr7WbwnM:2:BasicScheme:0.1",
"cred_def_id": "CsiDLAiFkQb9N4NDJKUagd:3:CL:4687:awesome_cred",
"rev_reg_id": null,
"values": {
"given_name": {
"raw": "Alice",
"encoded": "6874ecdbdb214ee888e37c8c983e2f1c9c0ed16907b519704db42bb6"
},
"family_name": {
"raw": "Wonderland",
"encoded": "f5e16db78511f23bf2bcf0f450f20180951557cd75efe88b276988fd"
},
"email": {
"raw": "[email protected]",
"encoded": "0fbaa7f92a47fe3c5201e97f063983c702432e90dd7bf0c723386543"
}
"schema_id": "3QowxFtwciWceMFr7WbwnM:2:BasicScheme:0.1",
"cred_def_id": "CsiDLAiFkQb9N4NDJKUagd:3:CL:4687:awesome_cred",
"rev_reg_id": null,
"values": {
"given_name": {
"raw": "Alice",
"encoded": "6874ecdbdb214ee888e37c8c983e2f1c9c0ed16907b519704db42bb6"
},
"signature": {
"p_credential": {
"m_2": "99219524012997799443220800218760023447537107640621419137185629243278403921312",
"a": "54855652574677988116650236306088516361537734570414909367032672219103444197205489674846545082012012711261249754371310495367475614729209653850720034913398482184757254920537051297936910125023613323255317515823974231493572903991640659741108603715378490408836507643191051986137793268856316333600932915078337920001692235029278931184173692694366223663131943657834349339828618978436402973046999961539444380116581314372906598415014528562207334745774098097000567515212222894771357044500544552372314335894883000614144994856702181141090905033428221403654636324918343808136750040908443212492359485782471636294013062295153997068252",
"e": "259344723055062059907025491480697571938277889515152306249728583105665800713306759149981690559193987143012367913206299323899696942213235956742930239825562861075148170278284639129199",
"v": "9774232256179658261610308745866736090602538333363396375105120427156273261155207775732400073422905045147609169788952804683922921383859274758479842100138659865591976937215264032734277416744113491766616076612368115891637834588143840477778776159325514034900968730327459279564615858068472282705529798808334108833124505594371791348317639533993310391511620579199112357959170076753792711700533312522910797352842323445933004238048599164039686432144165884599052061538014126710866075791210006585893465085621395503182710866197817129408546193805893321161372355187962990595781339533851533077334790530438016817333603675910702146635975282253747819810788129751055728368937483121363992748831475139233180853145906108476753713239644943541916540123456371366974874702598201796929261151925643543132170495933035112012082080893049915977209167597"
},
"r_credential": null
"family_name": {
"raw": "Wonderland",
"encoded": "f5e16db78511f23bf2bcf0f450f20180951557cd75efe88b276988fd"
},
"signature_correctness_proof": {
"se": "8986500246928105545119249693120482606913996376875337975817228090569777886100120575851444392132175485176800946276729875298747664099989412623249056022784348808658577491758644556594901203598819936532435225959211617545841036816799892165118015169512229910557670483101499028188851318984001732266955939801843049852569586066803442690248386970226324039561954050567607010646624132392374280640663854092050106203821468403658338788408023014151088931308776669398184180228869449717267624484235796469721889284094131533549692106113602342932288350356591343546227828642494647872633442330361211149649432468143339518371824496555067302935",
"c": "93582993140981799598406702841334282100000866001274710165299804498679784215598"
"email": {
"raw": "[email protected]",
"encoded": "0fbaa7f92a47fe3c5201e97f063983c702432e90dd7bf0c723386543"
}
},
"signature": {
"p_credential": {
"m_2": "99219524012997799443220800218760023447537107640621419137185629243278403921312",
"a": "54855652574677988116650236306088516361537734570414909367032672219103444197205489674846545082012012711261249754371310495367475614729209653850720034913398482184757254920537051297936910125023613323255317515823974231493572903991640659741108603715378490408836507643191051986137793268856316333600932915078337920001692235029278931184173692694366223663131943657834349339828618978436402973046999961539444380116581314372906598415014528562207334745774098097000567515212222894771357044500544552372314335894883000614144994856702181141090905033428221403654636324918343808136750040908443212492359485782471636294013062295153997068252",
"e": "259344723055062059907025491480697571938277889515152306249728583105665800713306759149981690559193987143012367913206299323899696942213235956742930239825562861075148170278284639129199",
"v": "9774232256179658261610308745866736090602538333363396375105120427156273261155207775732400073422905045147609169788952804683922921383859274758479842100138659865591976937215264032734277416744113491766616076612368115891637834588143840477778776159325514034900968730327459279564615858068472282705529798808334108833124505594371791348317639533993310391511620579199112357959170076753792711700533312522910797352842323445933004238048599164039686432144165884599052061538014126710866075791210006585893465085621395503182710866197817129408546193805893321161372355187962990595781339533851533077334790530438016817333603675910702146635975282253747819810788129751055728368937483121363992748831475139233180853145906108476753713239644943541916540123456371366974874702598201796929261151925643543132170495933035112012082080893049915977209167597"
},
"rev_reg": null,
"witness": null
"r_credential": null
},
"signature_correctness_proof": {
"se": "8986500246928105545119249693120482606913996376875337975817228090569777886100120575851444392132175485176800946276729875298747664099989412623249056022784348808658577491758644556594901203598819936532435225959211617545841036816799892165118015169512229910557670483101499028188851318984001732266955939801843049852569586066803442690248386970226324039561954050567607010646624132392374280640663854092050106203821468403658338788408023014151088931308776669398184180228869449717267624484235796469721889284094131533549692106113602342932288350356591343546227828642494647872633442330361211149649432468143339518371824496555067302935",
"c": "93582993140981799598406702841334282100000866001274710165299804498679784215598"
},
"rev_reg": null,
"witness": null
}
48 changes: 24 additions & 24 deletions examples/credentials/jwt_vc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"iss": "https://example.gov/issuers/565049",
"nbf": 1262304000,
"jti": "http://example.gov/credentials/3732",
"sub": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"vc": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"type": [
"VerifiableCredential",
"IDCredential"
],
"credentialSubject": {
"given_name": "Max",
"family_name": "Mustermann",
"birthdate": "1998-01-11",
"address": {
"street_address": "Sandanger 25",
"locality": "Musterstadt",
"postal_code": "123456",
"country": "DE"
}
}
"iss": "https://example.gov/issuers/565049",
"nbf": 1262304000,
"jti": "http://example.gov/credentials/3732",
"sub": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"vc": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"type": [
"VerifiableCredential",
"IDCredential"
],
"credentialSubject": {
"given_name": "Max",
"family_name": "Mustermann",
"birthdate": "1998-01-11",
"address": {
"street_address": "Sandanger 25",
"locality": "Musterstadt",
"postal_code": "123456",
"country": "DE"
}
}
}
}
60 changes: 30 additions & 30 deletions examples/credentials/ldp_vc.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "https://example.com/credentials/1872",
"type": [
"VerifiableCredential",
"IDCredential"
],
"issuer": {
"id": "did:example:issuer"
},
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Max",
"family_name": "Mustermann",
"birthdate": "1998-01-11",
"address": {
"street_address": "Sandanger 25",
"locality": "Musterstadt",
"postal_code": "123456",
"country": "DE"
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"jws": "eyJhb...JQdBw",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:issuer#keys-1"
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "https://example.com/credentials/1872",
"type": [
"VerifiableCredential",
"IDCredential"
],
"issuer": {
"id": "did:example:issuer"
},
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"given_name": "Max",
"family_name": "Mustermann",
"birthdate": "1998-01-11",
"address": {
"street_address": "Sandanger 25",
"locality": "Musterstadt",
"postal_code": "123456",
"country": "DE"
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2021-03-19T15:30:15Z",
"jws": "eyJhb...JQdBw",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:issuer#keys-1"
}
}
50 changes: 25 additions & 25 deletions examples/request/pd_ac_vc.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"id": "example_vc_ac",
"input_descriptors": [
{
"id": "id_credential",
"format": {
"ac_vc": {
"proof_type": [
"CLSignature2019"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.schema_id"
],
"filter": {
"type": "string",
"const": "did:indy:idu:test:3QowxFtwciWceMFr7WbwnM:2:BasicScheme:0\\.1"
}
}
]
}
"id": "example_vc_ac",
"input_descriptors": [
{
"id": "id_credential",
"format": {
"ac_vc": {
"proof_type": [
"CLSignature2019"
]
}
]
},
"constraints": {
"fields": [
{
"path": [
"$.schema_id"
],
"filter": {
"type": "string",
"const": "did:indy:idu:test:3QowxFtwciWceMFr7WbwnM:2:BasicScheme:0\\.1"
}
}
]
}
}
]
}
68 changes: 34 additions & 34 deletions examples/request/pd_ac_vc_sd.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"id": "example_vc_ac_sd",
"input_descriptors": [
{
"id": "id_credential",
"format": {
"ac_vc": {
"proof_type": [
"CLSignature2019"
]
"id": "example_vc_ac_sd",
"input_descriptors": [
{
"id": "id_credential",
"format": {
"ac_vc": {
"proof_type": [
"CLSignature2019"
]
}
},
"constraints": {
"limit_disclosure": "required",
"fields": [
{
"path": [
"$.schema_id"
],
"filter": {
"type": "string",
"const": "did:indy:idu:test:3QowxFtwciWceMFr7WbwnM:2:BasicScheme:0\\.1"
}
},
"constraints": {
"limit_disclosure": "required",
"fields": [
{
"path": [
"$.schema_id"
],
"filter": {
"type": "string",
"const": "did:indy:idu:test:3QowxFtwciWceMFr7WbwnM:2:BasicScheme:0\\.1"
}
},
{
"path": [
"$.values.given_name"
]
},
{
"path": [
"$.values.family_name"
]
}
},
{
"path": [
"$.values.given_name"
]
}
},
{
"path": [
"$.values.family_name"
]
}
]
}
]
}
]
}
Loading

0 comments on commit fde2131

Please sign in to comment.