-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9d92f7
commit bc24e02
Showing
18 changed files
with
592 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,3 @@ module.exports = { | |
'/node_modules/(?!@polkadot|@babel|@docknetwork|@digitalbazaar)', | ||
], | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/core/src/fixtures/any-credential-proof-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"qr": "https://creds-testnet.dock.io/proof/6de279ba-caf3-4979-a067-553284b40767", | ||
"id": "6de279ba-caf3-4979-a067-553284b40767", | ||
"name": "Any credential", | ||
"nonce": "b75fab9a5006216173500bfd3df5d0c5", | ||
"created": "2023-08-09T20:19:46.278Z", | ||
"updated": "2023-08-09T20:19:46.278Z", | ||
"verified": false, | ||
"response_url": "https://api-testnet.dock.io/proof-requests/6de279ba-caf3-4979-a067-553284b40767/send-presentation", | ||
"request": { | ||
"id": "6de279ba-caf3-4979-a067-553284b40767", | ||
"input_descriptors": [ | ||
{ | ||
"id": "Credential 1", | ||
"name": "Any credential", | ||
"purpose": "Any credential", | ||
"constraints": { | ||
"fields": [ | ||
{ | ||
"path": [ | ||
"$.id" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"type": "proof-request" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"qr": "https://creds-staging.dock.io/proof/f6b0c6a7-ae27-4044-80a3-07f5af6e61c8", | ||
"id": "f6b0c6a7-ae27-4044-80a3-07f5af6e61c8", | ||
"name": "boolean", | ||
"nonce": "e2cb13292035d73e97543c8f463c3f06", | ||
"created": "2023-08-17T17:38:38.276Z", | ||
"updated": "2023-08-17T17:38:38.276Z", | ||
"verified": false, | ||
"response_url": "https://api-staging.dock.io/proof-requests/f6b0c6a7-ae27-4044-80a3-07f5af6e61c8/send-presentation", | ||
"request": { | ||
"id": "f6b0c6a7-ae27-4044-80a3-07f5af6e61c8", | ||
"input_descriptors": [ | ||
{ | ||
"id": "Credential 1", | ||
"name": "boolean", | ||
"constraints": { | ||
"fields": [ | ||
{ | ||
"path": [ | ||
"$.credentialSubject.booleanYesNO", | ||
"$.credentialSubject.name", | ||
"$.credentialSubject.id", | ||
"$.credentialSubject.email", | ||
"$.issuer.name" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"type": "proof-request" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
{ | ||
"dk": "https://ld.dock.io/credentials#", | ||
"UniversityDegree": "dk:UniversityDegree", | ||
"degreeName": "dk:degreeName", | ||
"degreeType": "dk:degreeType", | ||
"dateEarned": "dk:dateEarned", | ||
"name": "dk:name", | ||
"email": "dk:email", | ||
"dateOfBirth": "dk:dateOfBirth", | ||
"description": "dk:description", | ||
"logo": "dk:logo" | ||
} | ||
], | ||
"id": "https://creds-testnet.dock.io/cc2e0be92a9533ca68466ad011ea916216fedac6473d17b1bd0fc3a01b623b09", | ||
"type": [ | ||
"VerifiableCredential", | ||
"UniversityDegree" | ||
], | ||
"credentialSubject": { | ||
"id": "recipient id", | ||
"degreeName": "degree name", | ||
"degreeType": "degree type", | ||
"dateEarned": "2023-02-07", | ||
"name": "full name", | ||
"email": "[email protected]", | ||
"dateOfBirth": "2023-02-08" | ||
}, | ||
"issuanceDate": "2023-02-06T11:15:19.995Z", | ||
"name": "University Degree", | ||
"proof": { | ||
"@context": [ | ||
{ | ||
"sec": "https://w3id.org/security#", | ||
"proof": { | ||
"@id": "sec:proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
} | ||
}, | ||
"https://ld.dock.io/security/bbs/v1" | ||
], | ||
"type": "Bls12381BBS+SignatureDock2022", | ||
"created": "2023-02-06T11:42:24Z", | ||
"verificationMethod": "did:dock:5GAFgFX6dUMYzZKiRKHvV4nK92X64D5ekfy3WVpNEeMUnu38#keys-2", | ||
"proofPurpose": "assertionMethod", | ||
"proofValue": "znokfKbFLiBqTjuZVkg3FGftrogKGm47DKDSNRjwqd8SBQiw7iqeYpTdapL9cRGhax4R9pVwrDicWrm4P9fAmAAVjSHz79jZGnX9AVWesbn7HFssbguZgx2ZzXS6ySyfPfDa8qhUuMsepV6oDcydhEA4Hd" | ||
}, | ||
"issuer": { | ||
"name": "My New DID", | ||
"description": "", | ||
"logo": "", | ||
"id": "did:dock:5GAFgFX6dUMYzZKiRKHvV4nK92X64D5ekfy3WVpNEeMUnu38" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
packages/core/src/fixtures/university-degree-proof-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"qr": "https://creds-testnet.dock.io/proof/6de279ba-caf3-4979-a067-553284b40767", | ||
"id": "6de279ba-caf3-4979-a067-553284b40767", | ||
"name": "University Degree Credential", | ||
"nonce": "b75fab9a5006216173500bfd3df5d0c5", | ||
"created": "2023-08-09T20:19:46.278Z", | ||
"updated": "2023-08-09T20:19:46.278Z", | ||
"verified": false, | ||
"response_url": "https://api-testnet.dock.io/proof-requests/6de279ba-caf3-4979-a067-553284b40767/send-presentation", | ||
"request": { | ||
"id": "6de279ba-caf3-4979-a067-553284b40767", | ||
"input_descriptors": [ | ||
{ | ||
"id": "Credential 1", | ||
"name": "University Degree Credential", | ||
"purpose": "Any University Degree Credential", | ||
"constraints": { | ||
"fields": [ | ||
{ | ||
"path": ["$.name"], | ||
"filter": { | ||
"type": "string", | ||
"pattern": "University Degree" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"type": "proof-request" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.