@cef-ebsi/cli 0.0.0-alpha.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/abi/pilot/DidRegistry.js +1082 -0
  2. package/dist/abi/pilot/DidRegistry.js.map +1 -0
  3. package/dist/abi/pilot/SchemaSCRegistry.js +973 -0
  4. package/dist/abi/pilot/SchemaSCRegistry.js.map +1 -0
  5. package/dist/abi/pilot/Tar.js +1395 -0
  6. package/dist/abi/pilot/Tar.js.map +1 -0
  7. package/dist/abi/pilot/Timestamp.js +1092 -0
  8. package/dist/abi/pilot/Timestamp.js.map +1 -0
  9. package/dist/abi/pilot/Tir.js +897 -0
  10. package/dist/abi/pilot/Tir.js.map +1 -0
  11. package/dist/abi/pilot/Tpr.js +1268 -0
  12. package/dist/abi/pilot/Tpr.js.map +1 -0
  13. package/dist/abi/test/DidRegistry.js +1082 -0
  14. package/dist/abi/test/DidRegistry.js.map +1 -0
  15. package/dist/abi/test/SchemaSCRegistry.js +973 -0
  16. package/dist/abi/test/SchemaSCRegistry.js.map +1 -0
  17. package/dist/abi/test/Tar.js +1395 -0
  18. package/dist/abi/test/Tar.js.map +1 -0
  19. package/dist/abi/test/Timestamp.js +1092 -0
  20. package/dist/abi/test/Timestamp.js.map +1 -0
  21. package/dist/abi/test/Tir.js +897 -0
  22. package/dist/abi/test/Tir.js.map +1 -0
  23. package/dist/abi/test/Tpr.js +1268 -0
  24. package/dist/abi/test/Tpr.js.map +1 -0
  25. package/dist/app.js +34 -714
  26. package/dist/app.js.map +1 -1
  27. package/dist/buildParam/did.js.map +1 -1
  28. package/dist/buildParam/index.js +0 -23
  29. package/dist/buildParam/index.js.map +1 -1
  30. package/dist/buildParam/tar.js.map +1 -1
  31. package/dist/buildParam/timestamp.js.map +1 -1
  32. package/dist/buildParam/tir.js.map +1 -1
  33. package/dist/buildParam/tsr.js.map +1 -1
  34. package/dist/commands/{authorisation-v4.js → authorisation-v2.js} +11 -91
  35. package/dist/commands/authorisation-v2.js.map +1 -0
  36. package/dist/commands/compute.js +13 -49
  37. package/dist/commands/compute.js.map +1 -1
  38. package/dist/commands/index.js +1 -3
  39. package/dist/commands/index.js.map +1 -1
  40. package/dist/commands/ledger-v3.js +1 -16
  41. package/dist/commands/ledger-v3.js.map +1 -1
  42. package/dist/commands/view.js +1 -1
  43. package/dist/commands/view.js.map +1 -1
  44. package/dist/config.js +14 -422
  45. package/dist/config.js.map +1 -1
  46. package/dist/interfaces/index.js +4 -9
  47. package/dist/interfaces/index.js.map +1 -1
  48. package/dist/interfaces/jsonrpc.interface.js.map +1 -0
  49. package/dist/interfaces/paginated-list.interface.js.map +1 -0
  50. package/dist/interfaces/unsigned-transaction.interface.js.map +1 -0
  51. package/dist/interfaces/utils.interface.js.map +1 -0
  52. package/dist/programs/appRegistration.js +4 -4
  53. package/dist/programs/appRegistration.js.map +1 -1
  54. package/dist/scripts/accreditAndAuthorize/conformance/step1 +35 -0
  55. package/dist/scripts/accreditAndAuthorize/conformance/step2 +18 -0
  56. package/dist/scripts/accreditAndAuthorize/conformance/step3 +9 -0
  57. package/dist/scripts/accreditAndAuthorize/conformance/step4 +27 -0
  58. package/dist/scripts/accreditAndAuthorize/conformance/step5 +13 -0
  59. package/dist/scripts/accreditAndAuthorize/conformance/step6 +14 -0
  60. package/dist/scripts/accreditAndAuthorize/conformance/step7 +7 -0
  61. package/dist/scripts/accreditAndAuthorize/test/step1 +35 -0
  62. package/dist/scripts/accreditAndAuthorize/test/step2 +18 -0
  63. package/dist/scripts/accreditAndAuthorize/test/step3 +9 -0
  64. package/dist/scripts/accreditAndAuthorize/test/step4 +27 -0
  65. package/dist/scripts/accreditAndAuthorize/test/step5 +13 -0
  66. package/dist/scripts/accreditAndAuthorize/test/step6 +14 -0
  67. package/dist/scripts/accreditAndAuthorize/test/step7 +7 -0
  68. package/dist/scripts/accreditTI +21 -0
  69. package/dist/scripts/assets/CTRevocableCredential.json +30 -0
  70. package/dist/scripts/assets/CredentialToAttestVerifiableAuthorisationForTrustChain.json +29 -0
  71. package/dist/scripts/assets/VerifiableAccreditationToAccredit.json +35 -0
  72. package/dist/scripts/assets/VerifiableAccreditationToAttest.json +33 -0
  73. package/dist/scripts/assets/VerifiableAuthorisationForTrustChain.json +22 -0
  74. package/dist/scripts/assets/VerifiableAuthorisationToOnboard.json +24 -0
  75. package/dist/scripts/bootstrap/0a-loadTPROperator +5 -0
  76. package/dist/scripts/bootstrap/0b-loadAdmin +6 -0
  77. package/dist/scripts/bootstrap/1-populateTPR +115 -0
  78. package/dist/scripts/bootstrap/2-populateDID +21 -0
  79. package/dist/scripts/bootstrap/3-populateTAR +92 -0
  80. package/dist/scripts/bootstrap/4-populateTimestamp +10 -0
  81. package/dist/scripts/bootstrap/5-populateTIR +9 -0
  82. package/dist/scripts/bootstrap/6-populateTSR +22 -0
  83. package/dist/scripts/bootstrap/7-setupConformanceIssuer +35 -0
  84. package/dist/scripts/initializeContracts +5 -0
  85. package/dist/scripts/issue_CTRevocableCredential +13 -0
  86. package/dist/scripts/issue_SelfAttestationSupportOffice +11 -0
  87. package/dist/scripts/issue_VerifiableAccreditationToAccredit +12 -0
  88. package/dist/scripts/issue_VerifiableAccreditationToAttest +12 -0
  89. package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +11 -0
  90. package/dist/scripts/issue_VerifiableAuthorisationToOnboard +10 -0
  91. package/dist/scripts/registerDidDocument_ES256K_ES256 +13 -0
  92. package/dist/scripts/wctv3/accreditAndAuthorize +106 -0
  93. package/dist/scripts/wctv3/holderWallet +29 -0
  94. package/dist/scripts/wctv3/issueToHolder +27 -0
  95. package/dist/scripts/wctv3/pda1 +2 -0
  96. package/dist/scripts/wctv3/verifier +7 -0
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/dist/utils/index.js +0 -3
  99. package/dist/utils/index.js.map +1 -1
  100. package/dist/utils/utils.js +3 -7
  101. package/dist/utils/utils.js.map +1 -1
  102. package/package.json +5 -23
  103. package/dist/abi/pilot/DidRegistry-old.json +0 -2192
  104. package/dist/abi/pilot/DidRegistry.json +0 -1081
  105. package/dist/abi/pilot/DidRegistryV3.json +0 -1081
  106. package/dist/abi/pilot/SchemaSCRegistry.json +0 -972
  107. package/dist/abi/pilot/SchemaSCRegistryV2.json +0 -473
  108. package/dist/abi/pilot/Tar.json +0 -1394
  109. package/dist/abi/pilot/TarV3.json +0 -1107
  110. package/dist/abi/pilot/Timestamp.json +0 -1091
  111. package/dist/abi/pilot/TimestampV2.json +0 -1127
  112. package/dist/abi/pilot/Tir.json +0 -896
  113. package/dist/abi/pilot/TirV3.json +0 -495
  114. package/dist/abi/pilot/Tpr.json +0 -1267
  115. package/dist/abi/pilot/TprV2.json +0 -888
  116. package/dist/abi/test/DidRegistry-old.json +0 -2192
  117. package/dist/abi/test/DidRegistry.json +0 -1081
  118. package/dist/abi/test/DidRegistryV3.json +0 -1088
  119. package/dist/abi/test/SchemaSCRegistry.json +0 -972
  120. package/dist/abi/test/SchemaSCRegistryV2.json +0 -473
  121. package/dist/abi/test/Tar.json +0 -1394
  122. package/dist/abi/test/TarV3.json +0 -1107
  123. package/dist/abi/test/Timestamp.json +0 -1091
  124. package/dist/abi/test/TimestampV2.json +0 -1127
  125. package/dist/abi/test/Tir.json +0 -896
  126. package/dist/abi/test/TirV3.json +0 -495
  127. package/dist/abi/test/Tpr.json +0 -1267
  128. package/dist/abi/test/TprV2.json +0 -888
  129. package/dist/buildParam/didOld.js +0 -275
  130. package/dist/buildParam/didOld.js.map +0 -1
  131. package/dist/buildParam/didV3.js +0 -353
  132. package/dist/buildParam/didV3.js.map +0 -1
  133. package/dist/buildParam/tarV3.js +0 -193
  134. package/dist/buildParam/tarV3.js.map +0 -1
  135. package/dist/buildParam/timestampV2.js +0 -317
  136. package/dist/buildParam/timestampV2.js.map +0 -1
  137. package/dist/buildParam/tirV3.js +0 -104
  138. package/dist/buildParam/tirV3.js.map +0 -1
  139. package/dist/buildParam/tprV2.js +0 -82
  140. package/dist/buildParam/tprV2.js.map +0 -1
  141. package/dist/buildParam/tsrV2.js +0 -110
  142. package/dist/buildParam/tsrV2.js.map +0 -1
  143. package/dist/commands/authorisation-v4.js.map +0 -1
  144. package/dist/commands/conformance-v4.js +0 -767
  145. package/dist/commands/conformance-v4.js.map +0 -1
  146. package/dist/commands/ledger-v4.js +0 -188
  147. package/dist/commands/ledger-v4.js.map +0 -1
  148. package/dist/interfaces/authorisation/authorisation.interface.js +0 -2
  149. package/dist/interfaces/authorisation/authorisation.interface.js.map +0 -1
  150. package/dist/interfaces/authorisation/index.js +0 -2
  151. package/dist/interfaces/authorisation/index.js.map +0 -1
  152. package/dist/interfaces/ledger/besu.interface.js +0 -2
  153. package/dist/interfaces/ledger/besu.interface.js.map +0 -1
  154. package/dist/interfaces/ledger/index.js +0 -2
  155. package/dist/interfaces/ledger/index.js.map +0 -1
  156. package/dist/interfaces/notifications/index.js +0 -2
  157. package/dist/interfaces/notifications/index.js.map +0 -1
  158. package/dist/interfaces/notifications/notifications.interface.js +0 -2
  159. package/dist/interfaces/notifications/notifications.interface.js.map +0 -1
  160. package/dist/interfaces/proxy-data-hub/attributes.interface.js +0 -2
  161. package/dist/interfaces/proxy-data-hub/attributes.interface.js.map +0 -1
  162. package/dist/interfaces/proxy-data-hub/index.js +0 -2
  163. package/dist/interfaces/proxy-data-hub/index.js.map +0 -1
  164. package/dist/interfaces/shared/index.js +0 -5
  165. package/dist/interfaces/shared/index.js.map +0 -1
  166. package/dist/interfaces/shared/jsonrpc.interface.js.map +0 -1
  167. package/dist/interfaces/shared/paginated-list.interface.js.map +0 -1
  168. package/dist/interfaces/shared/unsigned-transaction.interface.js.map +0 -1
  169. package/dist/interfaces/shared/utils.interface.js.map +0 -1
  170. package/dist/interfaces/timestamp/hash-algorithms.interface.js +0 -2
  171. package/dist/interfaces/timestamp/hash-algorithms.interface.js.map +0 -1
  172. package/dist/interfaces/timestamp/index.js +0 -4
  173. package/dist/interfaces/timestamp/index.js.map +0 -1
  174. package/dist/interfaces/timestamp/records.interface.js +0 -2
  175. package/dist/interfaces/timestamp/records.interface.js.map +0 -1
  176. package/dist/interfaces/timestamp/timestamps.interface.js +0 -2
  177. package/dist/interfaces/timestamp/timestamps.interface.js.map +0 -1
  178. package/dist/interfaces/trusted-apps-registry/apps.interface.js +0 -2
  179. package/dist/interfaces/trusted-apps-registry/apps.interface.js.map +0 -1
  180. package/dist/interfaces/trusted-apps-registry/index.js +0 -3
  181. package/dist/interfaces/trusted-apps-registry/index.js.map +0 -1
  182. package/dist/interfaces/trusted-apps-registry/policies.interface.js +0 -2
  183. package/dist/interfaces/trusted-apps-registry/policies.interface.js.map +0 -1
  184. package/dist/interfaces/trusted-issuers-registry/index.js +0 -2
  185. package/dist/interfaces/trusted-issuers-registry/index.js.map +0 -1
  186. package/dist/interfaces/trusted-issuers-registry/issuers.interface.js +0 -2
  187. package/dist/interfaces/trusted-issuers-registry/issuers.interface.js.map +0 -1
  188. package/dist/interfaces/users-onboarding/authentication.js +0 -2
  189. package/dist/interfaces/users-onboarding/authentication.js.map +0 -1
  190. package/dist/interfaces/users-onboarding/index.js +0 -2
  191. package/dist/interfaces/users-onboarding/index.js.map +0 -1
  192. package/dist/utils/authorisation.js +0 -118
  193. package/dist/utils/authorisation.js.map +0 -1
  194. package/dist/utils/notification.js +0 -51
  195. package/dist/utils/notification.js.map +0 -1
  196. package/dist/utils/storage.js +0 -97
  197. package/dist/utils/storage.js.map +0 -1
  198. /package/dist/interfaces/{shared/jsonrpc.interface.js → jsonrpc.interface.js} +0 -0
  199. /package/dist/interfaces/{shared/paginated-list.interface.js → paginated-list.interface.js} +0 -0
  200. /package/dist/interfaces/{shared/unsigned-transaction.interface.js → unsigned-transaction.interface.js} +0 -0
  201. /package/dist/interfaces/{shared/utils.interface.js → utils.interface.js} +0 -0
@@ -0,0 +1,24 @@
1
+ {
2
+ "@context": [
3
+ "https://www.w3.org/2018/credentials/v1"
4
+ ],
5
+ "type": [
6
+ "VerifiableCredential",
7
+ "VerifiableAttestation",
8
+ "VerifiableAuthorisationToOnboard"
9
+ ],
10
+ "issuer": "",
11
+ "credentialSubject": {
12
+ "id": "",
13
+ "accreditedFor": []
14
+ },
15
+ "termsOfUse": {
16
+ "id": "",
17
+ "type": "IssuanceCertificate"
18
+
19
+ },
20
+ "credentialSchema": {
21
+ "id": "https://api-pilot.ebsi.eu/trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM",
22
+ "type": "FullJsonSchemaValidator2021"
23
+ }
24
+ }
@@ -0,0 +1,5 @@
1
+ # Script to load the admin with the ROLE OPERATOR in the Trusted Apps Registry
2
+ # This role is granted by the multisignature wallet
3
+ env SET_ENV
4
+ using user null
5
+ using user ES256K did1 PRIVATE_KEY_TPR_OPERATOR DID_TPR_OPERATOR
@@ -0,0 +1,6 @@
1
+ # Script to load a user with admin attributes in the Trusted Policies Registry
2
+ # (example: "TIR:insertIssuer" -> attribute to insert issuers in the Trusted Issuers Registry)
3
+ env SET_ENV
4
+ using user null
5
+ using user ES256K did1 PRIVATE_KEY_ES256K_SUPPORT_OFFICE DID_SUPPORT_OFFICE
6
+ using user ES256 did1 PRIVATE_KEY_ES256_SUPPORT_OFFICE DID_SUPPORT_OFFICE
@@ -0,0 +1,115 @@
1
+ run bootstrap/0a-loadTPROperator
2
+
3
+ # New Policies
4
+
5
+ # DID
6
+ proxyledger tpr insertPolicy DIDR:insertHashAlgorithm true ["insertHashAlgorithm in DID Registry"]
7
+ proxyledger tpr insertPolicy DIDR:updateHashAlgorithm true ["updateHashAlgorithm in DID Registry"]
8
+ proxyledger tpr insertPolicy DID:updateBaseDocument true ["updateBaseDocument in DID Registry"]
9
+ proxyledger tpr insertPolicy DID:addController true ["addController in DID Registry"]
10
+ proxyledger tpr insertPolicy DID:revokeController true ["revokeController in DID Registry"]
11
+ proxyledger tpr insertPolicy DID:addVerificationMethod true ["addVerificationMethod in DID Registry"]
12
+ proxyledger tpr insertPolicy DID:addVerificationRelationship true ["addVerificationRelationship in DID Registry"]
13
+ proxyledger tpr insertPolicy DID:revokeVerificationMethod true ["revokeVerificationMethod in DID Registry"]
14
+ proxyledger tpr insertPolicy DID:expireVerificationMethod true ["expireVerificationMethod in DID Registry"]
15
+ proxyledger tpr insertPolicy DID:rollVerificationMethod true ["rollVerificationMethod in DID Registry"]
16
+
17
+ #TIR
18
+ proxyledger tpr insertPolicy TIR:insertIssuer true ["insertIssuer in Trusted Issuers Registry"]
19
+ proxyledger tpr insertPolicy TIR:updateIssuer true ["updateIssuer in Trusted Issuers Registry"]
20
+ proxyledger tpr insertPolicy TIR:setAttributeMetadata true ["setAttributeMetadata in Trusted Issuers Registry"]
21
+
22
+ #Timestamp
23
+ proxyledger tpr insertPolicy TS:insertHashAlgorithm true ["insertHashAlgorithm in Timestamp"]
24
+ proxyledger tpr insertPolicy TS:updateHashAlgorithm true ["updateHashAlgorithm in Timestamp"]
25
+
26
+ #TSR
27
+ proxyledger tpr insertPolicy TSR:insertSchema true ["insertSchema in Trusted Schemas Registry"]
28
+ proxyledger tpr insertPolicy TSR:updateSchema true ["updateSchema in Trusted Schemas Registry"]
29
+ proxyledger tpr insertPolicy TSR:updateMetadata true ["updateMetadata in Trusted Schemas Registry"]
30
+
31
+ #TAR
32
+ proxyledger tpr insertPolicy TAR:insertApp true ["insertApp in Trusted Apps Registry"]
33
+ proxyledger tpr insertPolicy TAR:insertRevocation true ["insertRevocation in Trusted Apps Registry"]
34
+ proxyledger tpr insertPolicy TAR:updateApp true ["updateApp in Trusted Apps Registry"]
35
+ proxyledger tpr insertPolicy TAR:insertAppInfo true ["insertAppInfo in Trusted Apps Registry"]
36
+ proxyledger tpr insertPolicy TAR:insertAuthorization true ["insertAuthorization in Trusted Apps Registry"]
37
+ proxyledger tpr insertPolicy TAR:updateAuthorization true ["updateAuthorization in Trusted Apps Registry"]
38
+ proxyledger tpr insertPolicy TAR:insertAppPublicKey true ["insertAppPublicKey in Trusted Apps Registry"]
39
+ proxyledger tpr insertPolicy TAR:updateAppPublicKey true ["updateAppPublicKey in Trusted Apps Registry"]
40
+ proxyledger tpr insertPolicy TAR:insertAppAdministrator true ["insertAppAdministrator in Trusted Apps Registry"]
41
+ proxyledger tpr insertPolicy TAR:deleteAppAdministrator true ["deleteAppAdministrator in Trusted Apps Registry"]
42
+
43
+
44
+ # User Attributes
45
+ # List taken from https://ec.europa.eu/digital-building-blocks/wikis/display/BLOCKCHAININT/RFC+-+Procedure+for+multisig+wallet+maintenance
46
+
47
+ # Iulian Florin NITA
48
+ proxyledger tpr insertUserAttributes 0x1CBE1945fa323F5C5CeD4ec560C2D1600b4b4364 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
49
+ proxyledger tpr insertUserAttributes 0x1CBE1945fa323F5C5CeD4ec560C2D1600b4b4364 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
50
+ proxyledger tpr insertUserAttributes 0x1CBE1945fa323F5C5CeD4ec560C2D1600b4b4364 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
51
+ proxyledger tpr insertUserAttributes 0x1CBE1945fa323F5C5CeD4ec560C2D1600b4b4364 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
52
+ proxyledger tpr insertUserAttributes 0x1CBE1945fa323F5C5CeD4ec560C2D1600b4b4364 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
53
+
54
+ # Alen Horvat
55
+ proxyledger tpr insertUserAttributes 0x30dE361706Ddc9D5D0B19AFe9B89212CcD453566 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
56
+ proxyledger tpr insertUserAttributes 0x30dE361706Ddc9D5D0B19AFe9B89212CcD453566 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
57
+ proxyledger tpr insertUserAttributes 0x30dE361706Ddc9D5D0B19AFe9B89212CcD453566 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
58
+ proxyledger tpr insertUserAttributes 0x30dE361706Ddc9D5D0B19AFe9B89212CcD453566 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
59
+ proxyledger tpr insertUserAttributes 0x30dE361706Ddc9D5D0B19AFe9B89212CcD453566 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
60
+
61
+ # Julian GONZALEZ AGUDELO
62
+ proxyledger tpr insertUserAttributes 0x69e48d89bf5e09588E858D757323b4abBBB3f814 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
63
+ proxyledger tpr insertUserAttributes 0x69e48d89bf5e09588E858D757323b4abBBB3f814 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
64
+ proxyledger tpr insertUserAttributes 0x69e48d89bf5e09588E858D757323b4abBBB3f814 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
65
+ proxyledger tpr insertUserAttributes 0x69e48d89bf5e09588E858D757323b4abBBB3f814 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
66
+ proxyledger tpr insertUserAttributes 0x69e48d89bf5e09588E858D757323b4abBBB3f814 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
67
+
68
+ # wesley DEGLISE
69
+ proxyledger tpr insertUserAttributes 0x37daE23C7C8915E6b8FA13b32BBA00c6b6f35993 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
70
+ proxyledger tpr insertUserAttributes 0x37daE23C7C8915E6b8FA13b32BBA00c6b6f35993 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
71
+ proxyledger tpr insertUserAttributes 0x37daE23C7C8915E6b8FA13b32BBA00c6b6f35993 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
72
+ proxyledger tpr insertUserAttributes 0x37daE23C7C8915E6b8FA13b32BBA00c6b6f35993 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
73
+ proxyledger tpr insertUserAttributes 0x37daE23C7C8915E6b8FA13b32BBA00c6b6f35993 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
74
+
75
+ # Arnaud RIESS
76
+ proxyledger tpr insertUserAttributes 0x9faB1fF75B0309e4dF4360331ed630F963a30869 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
77
+ proxyledger tpr insertUserAttributes 0x9faB1fF75B0309e4dF4360331ed630F963a30869 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
78
+ proxyledger tpr insertUserAttributes 0x9faB1fF75B0309e4dF4360331ed630F963a30869 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
79
+ proxyledger tpr insertUserAttributes 0x9faB1fF75B0309e4dF4360331ed630F963a30869 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
80
+ proxyledger tpr insertUserAttributes 0x9faB1fF75B0309e4dF4360331ed630F963a30869 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
81
+
82
+ # Guillermo Liarte Cano
83
+ proxyledger tpr insertUserAttributes 0x108d42f3C66DB73E70B3fFe6Dd1F3ABb0f5C83A0 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
84
+ proxyledger tpr insertUserAttributes 0x108d42f3C66DB73E70B3fFe6Dd1F3ABb0f5C83A0 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
85
+ proxyledger tpr insertUserAttributes 0x108d42f3C66DB73E70B3fFe6Dd1F3ABb0f5C83A0 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
86
+ proxyledger tpr insertUserAttributes 0x108d42f3C66DB73E70B3fFe6Dd1F3ABb0f5C83A0 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
87
+ proxyledger tpr insertUserAttributes 0x108d42f3C66DB73E70B3fFe6Dd1F3ABb0f5C83A0 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
88
+
89
+ # Pablo STAIANO
90
+ proxyledger tpr insertUserAttributes 0x3d47cfAeF18364586C9cCAF70F6ED79b2eA38429 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
91
+ proxyledger tpr insertUserAttributes 0x3d47cfAeF18364586C9cCAF70F6ED79b2eA38429 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
92
+ proxyledger tpr insertUserAttributes 0x3d47cfAeF18364586C9cCAF70F6ED79b2eA38429 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
93
+ proxyledger tpr insertUserAttributes 0x3d47cfAeF18364586C9cCAF70F6ED79b2eA38429 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
94
+ proxyledger tpr insertUserAttributes 0x3d47cfAeF18364586C9cCAF70F6ED79b2eA38429 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
95
+
96
+ # Yannick HUARD
97
+ proxyledger tpr insertUserAttributes 0xfa8adA8Bd7CEbC130F455f5683ae173B3a3AC365 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
98
+ proxyledger tpr insertUserAttributes 0xfa8adA8Bd7CEbC130F455f5683ae173B3a3AC365 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
99
+ proxyledger tpr insertUserAttributes 0xfa8adA8Bd7CEbC130F455f5683ae173B3a3AC365 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
100
+ proxyledger tpr insertUserAttributes 0xfa8adA8Bd7CEbC130F455f5683ae173B3a3AC365 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
101
+ proxyledger tpr insertUserAttributes 0xfa8adA8Bd7CEbC130F455f5683ae173B3a3AC365 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
102
+
103
+ # Stefan-Adrian Bancu
104
+ proxyledger tpr insertUserAttributes 0xaA61dA5CbC1E563F065Af74f278abd55c399353D ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
105
+ proxyledger tpr insertUserAttributes 0xaA61dA5CbC1E563F065Af74f278abd55c399353D ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
106
+ proxyledger tpr insertUserAttributes 0xaA61dA5CbC1E563F065Af74f278abd55c399353D ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
107
+ proxyledger tpr insertUserAttributes 0xaA61dA5CbC1E563F065Af74f278abd55c399353D ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
108
+ proxyledger tpr insertUserAttributes 0xaA61dA5CbC1E563F065Af74f278abd55c399353D ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
109
+
110
+ # Support EBSI
111
+ proxyledger tpr insertUserAttributes 0xA4B6C8710f6bF233b8b480498916DEC224A5a891 ["DID:updateBaseDocument", "DID:addController", "DID:revokeController", "DID:addVerificationMethod", "DID:addVerificationRelationship", "DID:revokeVerificationMethod", "DID:expireVerificationMethod", "DID:rollVerificationMethod"] [true, true, true, true, true, true, true, true]
112
+ proxyledger tpr insertUserAttributes 0xA4B6C8710f6bF233b8b480498916DEC224A5a891 ["TIR:insertIssuer", "TIR:updateIssuer", "TIR:setAttributeMetadata"] [true, true, true]
113
+ proxyledger tpr insertUserAttributes 0xA4B6C8710f6bF233b8b480498916DEC224A5a891 ["TS:insertHashAlgorithm", "TS:updateHashAlgorithm"] [true, true]
114
+ proxyledger tpr insertUserAttributes 0xA4B6C8710f6bF233b8b480498916DEC224A5a891 ["TSR:insertSchema", "TSR:updateSchema", "TSR:updateMetadata"] [true, true, true]
115
+ proxyledger tpr insertUserAttributes 0xA4B6C8710f6bF233b8b480498916DEC224A5a891 ["TAR:insertApp", "TAR:insertRevocation", "TAR:updateApp", "TAR:insertAppInfo", "TAR:insertAuthorization", "TAR:updateAuthorization", "TAR:insertAppPublicKey", "TAR:updateAppPublicKey", "TAR:insertAppAdministrator", "TAR:deleteAppAdministrator"] [true, true, true, true, true, true, true, true, true, true]
@@ -0,0 +1,21 @@
1
+ # DID of TPR Role Operator
2
+ run bootstrap/0a-loadTPROperator
3
+ proxyledger did insertDidDocument
4
+ proxyledger did addVerificationMethod user.did ES256
5
+ proxyledger did addVerificationRelationship user.did authentication ES256
6
+ proxyledger did addVerificationRelationship user.did assertionMethod ES256
7
+
8
+ # DID admin
9
+ run bootstrap/0b-loadAdmin
10
+ proxyledger did insertDidDocument
11
+ proxyledger did addVerificationMethod user.did ES256
12
+ proxyledger did addVerificationRelationship user.did authentication ES256
13
+ proxyledger did addVerificationRelationship user.did assertionMethod ES256
14
+
15
+ # DID users-onboarding-api_pilot-temp-01
16
+ using user null
17
+ using user ES256K did1 <PRIVATE-KEY> <DID>
18
+ proxyledger did insertDidDocument
19
+ proxyledger did addVerificationMethod user.did ES256
20
+ proxyledger did addVerificationRelationship user.did authentication ES256
21
+ proxyledger did addVerificationRelationship user.did assertionMethod ES256
@@ -0,0 +1,92 @@
1
+ run bootstrap/0b-loadAdmin
2
+
3
+ ## Insert generic apps
4
+ proxyledger tar insertApp ledger-api
5
+ proxyledger tar insertApp did-registry-api
6
+ proxyledger tar insertApp timestamp-api
7
+ proxyledger tar insertApp trusted-issuers-registry-api
8
+ proxyledger tar insertApp trusted-policies-registry-api
9
+ proxyledger tar insertApp trusted-schemas-registry-api
10
+ proxyledger tar insertApp storage-api
11
+ proxyledger tar insertApp notifications-api
12
+ proxyledger tar insertApp proxy-data-hub-api
13
+ proxyledger tar insertApp ebsi-core-services
14
+ proxyledger tar insertApp authorisation-api
15
+
16
+ ## Insert specific apps
17
+ proxyledger tar insertApp did-registry-api_pilot-temp-01
18
+ proxyledger tar insertApp timestamp-api_pilot-temp-01
19
+ proxyledger tar insertApp trusted-issuers-registry-api_pilot-temp-01
20
+ proxyledger tar insertApp trusted-policies-registry-api_pilot-temp-01
21
+ proxyledger tar insertApp trusted-schemas-registry-api_pilot-temp-01
22
+ proxyledger tar insertApp notifications-api_pilot-temp-01
23
+ proxyledger tar insertApp proxy-data-hub-api_pilot-temp-01
24
+ proxyledger tar insertApp authorisation-api_pilot-temp-01
25
+ proxyledger tar insertApp users-onboarding-api_pilot-temp-01
26
+ proxyledger tar insertApp test-app-pilot1
27
+ proxyledger tar insertApp test-app-pilot2
28
+
29
+ ## Insert apps for e2e tests
30
+ proxyledger tar insertApp did-registry-api_pilot-test-01
31
+ proxyledger tar insertApp notifications-api_pilot-test-01
32
+ proxyledger tar insertApp proxy-data-hub-api_pilot-test-01
33
+ proxyledger tar insertApp timestamp-api_pilot-test-01
34
+ proxyledger tar insertApp trusted-issuers-registry-api_pilot-test-01
35
+ proxyledger tar insertApp trusted-policies-registry-api_pilot-test-01
36
+ proxyledger tar insertApp trusted-schemas-registry-api_pilot-test-01
37
+
38
+ ## Authorizations between apps
39
+
40
+ # APIs that need to access the blockchain through ledger-api
41
+ # Note: trusted-apps-registry-api doesn't require
42
+ # authorization because it connects directly to besu
43
+ proxyledger tar insertAuthorization ledger-api did-registry-api
44
+ proxyledger tar insertAuthorization ledger-api timestamp-api
45
+ proxyledger tar insertAuthorization ledger-api trusted-issuers-registry-api
46
+ proxyledger tar insertAuthorization ledger-api trusted-policies-registry-api
47
+ proxyledger tar insertAuthorization ledger-api trusted-schemas-registry-api
48
+
49
+ # APIs that need to access cassandra through storage-api
50
+ proxyledger tar insertAuthorization storage-api notifications-api
51
+ proxyledger tar insertAuthorization storage-api proxy-data-hub-api
52
+
53
+ # With regarding users, each API will authorize tokens issued by
54
+ # authorisation-api, and the set of API is defined as ebsi-core-services
55
+ proxyledger tar insertAuthorization ebsi-core-services authorisation-api
56
+
57
+ # Authorisations for testing purposes
58
+ proxyledger tar insertAuthorization test-app-pilot1 test-app-pilot2
59
+ proxyledger tar insertAuthorization storage-api test-app-pilot2
60
+ proxyledger tar insertAuthorization ledger-api test-app-pilot2
61
+
62
+ ## Define public keys for APIs using the old version (generic apps)
63
+ proxyledger tar insertAppPublicKey 0x8d508a564259616f0f035a5ac6b5f8c3f4223163261b2b3a07c8f3df9b08cbdd <PRIVATE-KEY> # did-registry-api
64
+ proxyledger tar insertAppPublicKey 0xee52082af8acb4a3d78b668bb6ec2809e58e2b5c0c6612c92d872e18289951fc <PRIVATE-KEY> # timestamp-api
65
+ proxyledger tar insertAppPublicKey 0x1795ede2b64392744b86bcf7d5af61aa783def0dbab758ed3b2670d6be130268 <PRIVATE-KEY> # trusted-issuers-registry-api
66
+ proxyledger tar insertAppPublicKey 0xbeed83fa6ecc88546cb8cba6c370ad12b1136fc54cb347b583adf8446594d33f <PRIVATE-KEY> # trusted-policies-registry-api
67
+ proxyledger tar insertAppPublicKey 0x462230ee44ba7f75752d829e359f7fc6dc495038440a0767e62d93dc30c98c47 <PRIVATE-KEY> # trusted-schemas-registry-api
68
+ proxyledger tar insertAppPublicKey 0xb2317e0eec5efd96eccace2740b31850a437189caa378e5ca162a86e3a6379f8 <PRIVATE-KEY> # notifications-api
69
+ proxyledger tar insertAppPublicKey 0xaf06f0c2b3fc140dd3d461e073aa9588806a48e3e54c6f5a3caa99fa8f6e6167 <PRIVATE-KEY> # proxy-data-hub-api
70
+ proxyledger tar insertAppPublicKey 0x559c4f32dc35566e4b92b697499c38f3847a6c53f8344821c24354ead1f2ab1e <PRIVATE-KEY> # authorisation-api
71
+
72
+ ## Define public keys for APIs using the latest version
73
+ proxyledger tar insertAppPublicKey 0xf8e19211b5255735c5264eda71b3fb52586503c4a48b0a727745fc618682043b <PRIVATE-KEY> # did-registry-api_pilot-temp-01
74
+ proxyledger tar insertAppPublicKey 0x270321e53c610ec9a13e2fd823c393820960cf32a37309ec98808bffa69c7147 <PRIVATE-KEY> # timestamp-api_pilot-temp-01
75
+ proxyledger tar insertAppPublicKey 0xe385c4eb306b7a46798638cf63bd6ceceee470861d1d74490b0e624e93000756 <PRIVATE-KEY> # trusted-issuers-registry-api_pilot-temp-01
76
+ proxyledger tar insertAppPublicKey 0xa5bbd1dee2410ac8da4a998aec3ee0226ede6a0ad5b62207e053e7e4567e6a12 <PRIVATE-KEY> # trusted-policies-registry-api_pilot-temp-01
77
+ proxyledger tar insertAppPublicKey 0xdb53a0e9d547bb4ce64099d755a75bd2f0f07462c7b56e9dcc8c4710766cd2cb <PRIVATE-KEY> # trusted-schemas-registry-api_pilot-temp-01
78
+ proxyledger tar insertAppPublicKey 0x0d757c80b54f5f3496aa20498e7e4ebc6ff23c877f053d4f89afcb00479d6a6d <PRIVATE-KEY> # notifications-api_pilot-temp-01
79
+ proxyledger tar insertAppPublicKey 0x58f6362154f607e99925959d62acffc4089b83a07ffea2484c296729e3393f33 <PRIVATE-KEY> # proxy-data-hub-api_pilot-temp-01
80
+ proxyledger tar insertAppPublicKey 0x6295c85baca8d6957cc975c100535eeae0086f768e79829f548ce981393557c8 <PRIVATE-KEY> # authorisation-api_pilot-temp-01
81
+ proxyledger tar insertAppPublicKey 0x0cfa02df489fd0fa197468ee0919023e1b393e2fb15edaf3feb9a32924d8e9fa <PRIVATE-KEY> # users-onboarding-api_pilot-temp-01
82
+ proxyledger tar insertAppPublicKey 0x6e59a3303d47da29eac1ab6bd90244845fe8dbb8b82ab95baaee30f0a6d2b045 <PRIVATE-KEY> # test-app-pilot1
83
+ proxyledger tar insertAppPublicKey 0x7b2506e8d27a8b26566e25b109302ffafc5c1972e484d568906b74eff606f275 <PRIVATE-KEY> # test-app-pilot2
84
+
85
+ ## Define public keys for APIs used in e2e tests
86
+ proxyledger tar insertAppPublicKey 0xde146ccd61b7f99abd9b7da87df81f03cb2ff313a43d29c68262e0862c4ba7ba <PRIVATE-KEY> # did-registry-api_pilot-test-01
87
+ proxyledger tar insertAppPublicKey 0x3e0dc63b97b1e7cb3a7d0b2da8f04ea956bc88e26423b3f1e94fdb0f0511d397 <PRIVATE-KEY> # notifications-api_pilot-test-01
88
+ proxyledger tar insertAppPublicKey 0x52b71dd9660af6450d8fdc02767b1cad77bac742fb92eca94adfc993e747b875 <PRIVATE-KEY> # proxy-data-hub-api_pilot-test-01
89
+ proxyledger tar insertAppPublicKey 0x38c974c33a877f2725046b05ff9d762809d3f8c0392bd3be31803ca2ddecf86b <PRIVATE-KEY> # timestamp-api_pilot-test-01
90
+ proxyledger tar insertAppPublicKey 0x62c2b561c7f8c98795b8db9dff1c304c83ba5988664a40c561d92fe146009848 <PRIVATE-KEY> # trusted-issuers-registry-api_pilot-test-01
91
+ proxyledger tar insertAppPublicKey 0xdf1f9efa300761aae5b586c6e8775ff3413cab87caf412e9e0876e84371d68cf <PRIVATE-KEY> # trusted-policies-registry-api_pilot-test-01
92
+ proxyledger tar insertAppPublicKey 0x16b7cf8141898ad870d8342c5b79e46bb550f139462dda6da99742b63032ba22 <PRIVATE-KEY> # trusted-schemas-registry-api_pilot-test-01
@@ -0,0 +1,10 @@
1
+ run bootstrap/0b-loadAdmin
2
+
3
+ proxyledger timestamp insertHashAlgorithm 256 sha-256 2.16.840.1.101.3.4.2.1 1 sha2-256
4
+ proxyledger timestamp insertHashAlgorithm 256 sha-256 2.16.840.1.101.3.4.2.1 1 sha2-256
5
+ proxyledger timestamp insertHashAlgorithm 384 sha-384 2.16.840.1.101.3.4.2.2 1 sha2-384
6
+ proxyledger timestamp insertHashAlgorithm 512 sha-512 2.16.840.1.101.3.4.2.3 1 sha2-512
7
+ proxyledger timestamp insertHashAlgorithm 224 sha3-224 2.16.840.1.101.3.4.2.7 1 sha3-224
8
+ proxyledger timestamp insertHashAlgorithm 256 sha3-256 2.16.840.1.101.3.4.2.8 1 sha3-256
9
+ proxyledger timestamp insertHashAlgorithm 384 sha3-384 2.16.840.1.101.3.4.2.9 1 sha3-384
10
+ proxyledger timestamp insertHashAlgorithm 512 sha3-512 2.16.840.1.101.3.4.2.10 1 sha3-512
@@ -0,0 +1,9 @@
1
+ run bootstrap/0b-loadAdmin
2
+
3
+ # support office
4
+ set domain SET_DOMAIN
5
+ reservedAttributeId: compute randomID
6
+ vc: run issue_SelfAttestationSupportOffice user.did reservedAttributeId
7
+ proxyledger tir setAttributeMetadata user.did reservedAttributeId roottao
8
+ proxyledger tir setAttributeData user.did reservedAttributeId vc
9
+
@@ -0,0 +1,22 @@
1
+ # before running the script download the schemas and put them in scripts/local/schemas
2
+ run bootstrap/0b-loadAdmin
3
+
4
+ attestation_2022-11: load local/schemas/ebsi-attestation/2022-11/schema.json
5
+ attestation_2022-11_01: load local/schemas/ebsi-attestation/2022-11_01/schema.json
6
+ id_attestation_2022-11_01: compute schemaId attestation_2022-11_01
7
+ presentation_2022-11: load local/schemas/ebsi-presentation/2022-11/schema.json
8
+
9
+ accreditation_2022-11_01: load local/schemas/ebsi-accreditation/2022-11_01/schema.json
10
+ set accreditation_2022-11_01.allOf.0.$ref SET_DOMAIN /trusted-schemas-registry/v3/schemas/ id_attestation_2022-11_01
11
+
12
+ accreditation_2023-04: load local/schemas/ebsi-accreditation/2023-04-11/schema.json
13
+ set accreditation_2023-04.allOf.0.$ref SET_DOMAIN /trusted-schemas-registry/v3/schemas/ id_attestation_2022-11_01
14
+
15
+ proxyledger tsr insertSchema attestation_2022-11 {}
16
+ proxyledger tsr insertSchema attestation_2022-11_01 {}
17
+
18
+ # skip these commands for later if TSR API v3 is not ready
19
+ proxyledger tsr insertSchema accreditation_2022-11_01 {}
20
+ proxyledger tsr insertSchema accreditation_2023-04 {}
21
+
22
+ # the rest of the schemas can be inserted from the json-schema repository
@@ -0,0 +1,35 @@
1
+ # create keys for conformance
2
+ using user null
3
+ using user ES256K did1
4
+ using user ES256 did1 user.privateKeyHex
5
+ set confIssuer user
6
+
7
+ # register conformance in the DID Registry
8
+ proxyledger did insertDidDocument
9
+ proxyledger did addVerificationMethod user.did ES256
10
+ proxyledger did addVerificationRelationship user.did authentication ES256
11
+ proxyledger did addVerificationRelationship user.did assertionMethod ES256
12
+
13
+ # conformance service can authorize Root TAOs then it needs to be registered in TPR
14
+ run bootstrap/0a-loadTPROperator
15
+ proxyledger tpr insertUserAttributes confIssuer.address ["TIR:setAttributeMetadata"]
16
+ using user confIssuer
17
+
18
+ # registration in the TIR
19
+ reservedAttributeId: compute randomID
20
+ vc: run issue_SelfAttestationSupportOffice user.did reservedAttributeId
21
+ proxyledger tir setAttributeMetadata user.did reservedAttributeId roottao
22
+ proxyledger tir setAttributeData user.did reservedAttributeId vc
23
+
24
+ # register a proxy
25
+ set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
26
+ set proxyData.prefix SET_CONFORMANCE_DOMAIN /conformance/v4/issuer-mock
27
+ proxyledger tir addIssuerProxy user.did proxyData
28
+ proxyId: compute sha256 proxyData
29
+
30
+ set user.accreditationUrl SET_DOMAIN /trusted-issuers-registry/v5/issuers/ user.did /attributes/ reservedAttributeId
31
+ set proxyUrl SET_DOMAIN /trusted-issuers-registry/v5/issuers/ user.did /proxies/ proxyId
32
+ set user.proxyId proxyId
33
+
34
+ view user
35
+ view proxyUrl
@@ -0,0 +1,5 @@
1
+ proxyledger did setTrustedPoliciesRegistryAddress
2
+ proxyledger tar setRegistryAddresses
3
+ proxyledger timestamp setTrustedPoliciesRegistryAddress
4
+ proxyledger tir setRegistryAddresses
5
+ proxyledger tsr setTrustedPoliciesRegistryAddress
@@ -0,0 +1,13 @@
1
+ # way of use:
2
+ # ==> set domain https://api-test.ebsi.eu
3
+ # ==> run issue_CTRevocableCredential <didIssuer> <didSubject> <issuerAttributeIdUrl> <issuerProxyId> <statusIndex> <statusListIndex>
4
+
5
+ payloadCTRevocableCredential: load assets/CTRevocableCredential.json
6
+ set payloadCTRevocableCredential.issuer $1
7
+ set payloadCTRevocableCredential.credentialSubject.id $2
8
+ set payloadCTRevocableCredential.termsOfUse.id $3
9
+ set payloadCTRevocableCredential.credentialSchema.id domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
10
+ set payloadCTRevocableCredential.credentialStatus.id domain /trusted-issuers-registry/v4/issuers/ user.did /proxies/ $4 /credentials/status/ $5
11
+ set payloadCTRevocableCredential.credentialStatus.statusListIndex $6
12
+ set payloadCTRevocableCredential.credentialStatus.statusListCredential domain /trusted-issuers-registry/v4/issuers/ user.did /proxies/ $4 /credentials/status/ $5
13
+ compute createVcJwt payloadCTRevocableCredential {} ES256
@@ -0,0 +1,11 @@
1
+ # way of use:
2
+ # ==> set domain https://api-test.ebsi.eu
3
+ # ==> run issue_SelfAttestationSupportOffice <didIssuer> <reservedAttributeId>
4
+
5
+ payloadVc: load assets/CredentialToAttestVerifiableAuthorisationForTrustChain.json
6
+ set payloadVc.issuer $1
7
+ set payloadVc.credentialSubject.id $1
8
+ set payloadVc.credentialSubject.accreditedFor[0].schemaId domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
9
+ set payloadVc.credentialSchema.id domain /trusted-schemas-registry/v2/schemas/zjVFNvbEBPAr3a724DttioZpgZmNr75BBtRzZqk7pkDe
10
+ set payloadVc.credentialSubject.reservedAttributeId $2
11
+ compute createVcJwt payloadVc {} ES256
@@ -0,0 +1,12 @@
1
+ # way of use:
2
+ # ==> set domain https://api-test.ebsi.eu
3
+ # ==> run issue_VerifiableAccreditationToAccredit <didIssuer> <didSubject> <issuerAttributeIdUrl> <reservedAttributeId>
4
+
5
+ payloadVcTAO: load assets/VerifiableAccreditationToAccredit.json
6
+ set payloadVcTAO.issuer $1
7
+ set payloadVcTAO.credentialSubject.id $2
8
+ set payloadVcTAO.credentialSubject.accreditedFor.0.schemaId domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
9
+ set payloadVcTAO.termsOfUse.0.id $3
10
+ set payloadVcTAO.credentialSchema.id domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
11
+ set payloadVcTAO.credentialSubject.reservedAttributeId $4
12
+ compute createVcJwt payloadVcTAO {} ES256
@@ -0,0 +1,12 @@
1
+ # way of use:
2
+ # ==> set domain https://api-test.ebsi.eu
3
+ # ==> run issue_VerifiableAccreditationToAttest <didIssuer> <didSubject> <issuerAttributeIdUrl> <reservedAttributeId>
4
+
5
+ payloadVcTI: load assets/VerifiableAccreditationToAttest.json
6
+ set payloadVcTI.issuer $1
7
+ set payloadVcTI.credentialSubject.id $2
8
+ set payloadVcTI.credentialSubject.accreditedFor.0.schemaId domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
9
+ set payloadVcTI.termsOfUse.id $3
10
+ set payloadVcTI.credentialSchema.id domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
11
+ set payloadVcTI.credentialSubject.reservedAttributeId $4
12
+ compute createVcJwt payloadVcTI {} ES256
@@ -0,0 +1,11 @@
1
+ # way of use:
2
+ # ==> set domain https://api-test.ebsi.eu
3
+ # ==> run issue_VerifiableAuthorisationForTrustChain <didIssuer> <didSubject> <issuerAttributeIdUrl> <reservedAttributeId>
4
+
5
+ payloadVcRootTAO: load assets/VerifiableAuthorisationForTrustChain.json
6
+ set payloadVcRootTAO.issuer $1
7
+ set payloadVcRootTAO.credentialSubject.id $2
8
+ set payloadVcRootTAO.termsOfUse.id $3
9
+ set payloadVcRootTAO.credentialSchema.id domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
10
+ set payloadVcRootTAO.credentialSubject.reservedAttributeId $4
11
+ compute createVcJwt payloadVcRootTAO {} ES256
@@ -0,0 +1,10 @@
1
+ # way of use:
2
+ # ==> set domain https://api-test.ebsi.eu
3
+ # ==> run issue_VerifiableAuthorisationToOnboard <didIssuer> <didSubject> <issuerAttributeIdUrl>
4
+
5
+ payloadVcOnboard: load assets/VerifiableAuthorisationToOnboard.json
6
+ set payloadVcOnboard.issuer $1
7
+ set payloadVcOnboard.credentialSubject.id $2
8
+ set payloadVcOnboard.termsOfUse.id $3
9
+ set payloadVcOnboard.credentialSchema.id domain /trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM
10
+ compute createVcJwt payloadVcOnboard {} ES256
@@ -0,0 +1,13 @@
1
+ # register first part of DID document
2
+ resAuthDIDRInvite: authorisation auth didr_invite_presentation ES256 $1
3
+ using token resAuthDIDRInvite.access_token
4
+
5
+ did insertDidDocument
6
+
7
+ # complete DID document
8
+ resAuthDIDRWrite: authorisation auth didr_write_presentation ES256K
9
+ using token resAuthDIDRWrite.access_token
10
+
11
+ did addVerificationMethod user.did ES256
12
+ did addVerificationRelationship user.did authentication ES256
13
+ did addVerificationRelationship user.did assertionMethod ES256
@@ -0,0 +1,106 @@
1
+ env test
2
+ set domain https://api-test.ebsi.eu
3
+
4
+ # create new issuer
5
+ using user null
6
+ using user
7
+ using user ES256
8
+
9
+ # request credential to onboard
10
+ vcOnboard: conformance getCredential onboard
11
+ set myIssuer user
12
+ conformance check ti_request_verifiable_authorisation_to_onboard
13
+
14
+ # register did document
15
+ run registerDidDocument_ES256K_ES256 vcOnboard.vc
16
+ conformance check ti_register_did
17
+
18
+ # request VerifiableAccreditationToAttest (TI)
19
+ vcTI: conformance getCredential ti
20
+ conformance check ti_request_verifiable_accreditation_to_attest
21
+
22
+ # register the credential for TI
23
+ t: authorisation auth tir_invite_presentation ES256 vcTI.vc
24
+ using token t.access_token
25
+ tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
26
+ set vcTI.url https://api-test.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
27
+ conformance check ti_register_verifiable_accreditation_to_attest
28
+
29
+ # create a proxy
30
+ conformance clientMockUpdateList 1 0 0
31
+ t: authorisation auth tir_write_presentation ES256
32
+ using token t.access_token
33
+ set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
34
+ set proxyData.prefix myIssuer.clientId
35
+ tir addIssuerProxy myIssuer.did proxyData
36
+ proxies: tir get /issuers/ myIssuer.did /proxies
37
+ set user.proxyId proxies.items.0.proxyId
38
+ set user.accreditationUrl vcTI.url
39
+ conformance clientMockInitiate
40
+
41
+ # issue CTRevocable with credentialStatus StatusList2021
42
+ conformance check ti_request_ctrevocable
43
+
44
+ # Validate the issued credential details
45
+ conformance check ti_validate_ctrevocable
46
+
47
+ # revoke credential
48
+ statusListIndex: compute statusListIndex did:ebsi:zy8jAhPDbhwKN74YFWAUzD5
49
+ conformance clientMockUpdateList 1 statusListIndex 1
50
+ conformance check ti_revoke_ctrevocable
51
+
52
+ # request VerifiableAccreditationToAccredit (TAO)
53
+ vcTAO: conformance getCredential tao
54
+ conformance check tao_request_verifiable_accreditation_to_accredit
55
+
56
+ # register the credential for TAO
57
+ t: authorisation auth tir_write_presentation ES256
58
+ using token t.access_token
59
+ tir setAttributeData myIssuer.did vcTAO.reservedAttributeId vcTAO.vc
60
+ set vcTAO.url https://api-test.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTAO.reservedAttributeId
61
+ set user.accreditationUrl vcTAO.url
62
+ conformance clientMockInitiate
63
+ conformance check tao_register_verifiable_accreditation_to_accredit
64
+
65
+ # request credential to onboard sub-account
66
+ conformance check tao_request_verifiable_authorisation_to_onboard_subaccount
67
+
68
+ # validate credential and register sub-account
69
+ conformance check tao_validate_verifiable_authorisation_to_onboard_subaccount
70
+
71
+ # request VerifiableAccreditationToAttest for sub-account (TI)
72
+ conformance check tao_request_verifiable_accreditation_to_attest_subaccount
73
+
74
+ # validate and register credential for sub-account
75
+ conformance check tao_validate_verifiable_accreditation_to_attest_subaccount
76
+
77
+ # request VerifiableAccreditationToAccredit for sub-account (TAO)
78
+ conformance check tao_request_verifiable_accreditation_to_accredit_subaccount
79
+
80
+ # validate and register credential for sub-account
81
+ conformance check tao_validate_verifiable_accreditation_to_accredit_subaccount
82
+
83
+ # revoke credentials issued to subaccount
84
+ subaccount: compute subaccountDid myIssuer.did
85
+ attributes: tir get /issuers/ subaccount /attributes
86
+ t: authorisation auth tir_write_presentation ES256
87
+ using token t.access_token
88
+ tir setAttributeMetadata subaccount attributes.items.0.id revoked myIssuer.did vcTAO.reservedAttributeId
89
+ tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did vcTAO.reservedAttributeId
90
+ conformance check tao_revoke_rights_subaccount
91
+
92
+ # request VerifiableAuthorisationForTrustChain (Root TAO)
93
+ vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc
94
+ conformance check rtao_request_verifiableauthorisationfortrustchain
95
+
96
+ # register the credential for RootTAO
97
+ t: authorisation auth tir_write_presentation ES256
98
+ using token t.access_token
99
+ tir setAttributeData myIssuer.did vcRootTAO.reservedAttributeId vcRootTAO.vc
100
+ conformance check rtao_register_verifiableauthorisationfortrustchain
101
+
102
+ # request CTAAQualificationCredential
103
+ ctaaQualification: conformance getCredential qualification
104
+ conformance check request_ctaaqualificationcredential
105
+
106
+ # ACCREDIT AND AUTHORIZE TESTS FINISHED!!
@@ -0,0 +1,29 @@
1
+ using user ES256 did2
2
+
3
+ c0: conformance holder CTWalletCrossInTime inTime
4
+ conformance check ct_wallet_cross_in_time
5
+
6
+ c1: conformance holder CTWalletCrossDeferred deferred
7
+ conformance check ct_wallet_cross_deferred
8
+
9
+ c2: conformance holder CTWalletCrossPreAuthorised preAuthorised
10
+ conformance check ct_wallet_cross_pre_authorised
11
+
12
+ c3: conformance holder CTWalletSameInTime inTime
13
+ conformance check ct_wallet_same_in_time
14
+
15
+ c4: conformance holder CTWalletSameDeferred deferred
16
+ conformance check ct_wallet_same_deferred
17
+
18
+ c5: conformance holder CTWalletSamePreAuthorised preAuthorised
19
+ conformance check ct_wallet_same_pre_authorised
20
+
21
+ set credentials []
22
+ set credentials.0 c0
23
+ set credentials.1 c1
24
+ set credentials.2 c2
25
+ set credentials.3 c3
26
+ set credentials.4 c4
27
+ set credentials.5 c5
28
+ conformance holder CTWalletQualificationCredential inTime ES256 credentials
29
+ conformance check request_ct_wallet_qualification_credential
@@ -0,0 +1,27 @@
1
+ using user ES256 did2
2
+ set user.issuerState issuer-state
3
+ conformance clientMockInitiate
4
+
5
+ jwks: conformance get /issuer-mock/jwks
6
+ issuerMockDidNP: compute did2 jwks.keys.0
7
+
8
+ set preAuthPayload {"authorization_details":[{"type":"openid_credential","format":"jwt_vc","types":["VerifiableCredential","VerifiableAttestation","CTWalletSamePreAuthorised"],"locations":[""]}]}
9
+ set preAuthPayload.iss user.clientId
10
+ set preAuthPayload.sub issuerMockDidNP
11
+ set preAuthPayload.client_id issuerMockDidNP
12
+ set preAuthPayload.authorization_details[0].locations[0] user.clientId
13
+ set preAuthHeaders {}
14
+ set preAuthHeaders.kid user.keys.ES256.id
15
+ preAuthorizedCode: compute signJwt preAuthPayload ES256 preAuthHeaders
16
+ userPin: compute userPin issuerMockDidNP
17
+
18
+ conformance check issue_to_holder_initiate_ct_wallet_same_in_time
19
+ conformance check issue_to_holder_validate_ct_wallet_same_in_time
20
+ conformance check issue_to_holder_initiate_ct_wallet_same_deferred
21
+ conformance check issue_to_holder_validate_ct_wallet_same_deferred
22
+ conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised preAuthorizedCode userPin
23
+ conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised preAuthorizedCode userPin
24
+
25
+ compute wait 11
26
+ conformance holder CTIssueQualificationCredential inTime ES256 empty skip-credential-offer
27
+ conformance check request_ct_issue_to_holder_qualification_credential