@cef-ebsi/cli 1.5.0 → 1.6.1

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 (110) hide show
  1. package/dist/app.js +32 -6
  2. package/dist/app.js.map +1 -1
  3. package/dist/buildParam/didr.js +1 -2
  4. package/dist/buildParam/didr.js.map +1 -1
  5. package/dist/buildParam/index.js.map +1 -1
  6. package/dist/buildParam/ptr.js +1 -1
  7. package/dist/buildParam/ptr.js.map +1 -1
  8. package/dist/buildParam/tcr.js.map +1 -1
  9. package/dist/buildParam/timestamp.js +6 -15
  10. package/dist/buildParam/timestamp.js.map +1 -1
  11. package/dist/buildParam/tir.js.map +1 -1
  12. package/dist/buildParam/tnt.js.map +1 -1
  13. package/dist/buildParam/tpr.js +0 -2
  14. package/dist/buildParam/tpr.js.map +1 -1
  15. package/dist/buildParam/tsr.js.map +1 -1
  16. package/dist/commands/authorisation.js +3 -3
  17. package/dist/commands/authorisation.js.map +1 -1
  18. package/dist/commands/compute.js +109 -38
  19. package/dist/commands/compute.js.map +1 -1
  20. package/dist/commands/conformance.js +8 -8
  21. package/dist/commands/conformance.js.map +1 -1
  22. package/dist/commands/ledger.js +41 -8
  23. package/dist/commands/ledger.js.map +1 -1
  24. package/dist/commands/ptr.js +3 -4
  25. package/dist/commands/ptr.js.map +1 -1
  26. package/dist/commands/tcr.js +4 -4
  27. package/dist/commands/tcr.js.map +1 -1
  28. package/dist/commands/tir.js +62 -0
  29. package/dist/commands/tir.js.map +1 -0
  30. package/dist/commands/tnl.js +1 -3
  31. package/dist/commands/tnl.js.map +1 -1
  32. package/dist/commands/tsr.js +4 -4
  33. package/dist/commands/tsr.js.map +1 -1
  34. package/dist/commands/view.js +1 -1
  35. package/dist/commands/view.js.map +1 -1
  36. package/dist/config.js.map +1 -1
  37. package/dist/interfaces/contracts/ProxyFactory.js +2 -0
  38. package/dist/interfaces/contracts/ProxyFactory.js.map +1 -0
  39. package/dist/interfaces/contracts/ProxyTemplateRegistry.js +2 -0
  40. package/dist/interfaces/contracts/ProxyTemplateRegistry.js.map +1 -0
  41. package/dist/interfaces/contracts/SchemaSCRegistry.js +2 -0
  42. package/dist/interfaces/contracts/SchemaSCRegistry.js.map +1 -0
  43. package/dist/interfaces/contracts/common.js +2 -0
  44. package/dist/interfaces/contracts/common.js.map +1 -0
  45. package/dist/scripts/accreditAndAuthorize/conformance/step1 +1 -1
  46. package/dist/scripts/accreditAndAuthorize/test/step1 +1 -1
  47. package/dist/scripts/accreditTI +3 -3
  48. package/dist/scripts/assets/vcdm1.1/Nodes.json +27 -0
  49. package/dist/scripts/assets/vcdm2.0/CredentialToAttestVerifiableAuthorisationForTrustChain.json +29 -0
  50. package/dist/scripts/assets/vcdm2.0/TrustedNodesList.json +36 -0
  51. package/dist/scripts/assets/vcdm2.0/VerifiableAccreditationToAccredit.json +40 -0
  52. package/dist/scripts/assets/vcdm2.0/VerifiableAccreditationToAttest.json +38 -0
  53. package/dist/scripts/assets/vcdm2.0/VerifiableAuthorisationForTrustChain.json +30 -0
  54. package/dist/scripts/assets/vcdm2.0/VerifiableAuthorisationToInvoke.json +24 -0
  55. package/dist/scripts/assets/vcdm2.0/VerifiableAuthorisationToOnboard.json +23 -0
  56. package/dist/scripts/bootstrap/0b-loadAdmin +2 -1
  57. package/dist/scripts/issueVcInvoke +2 -2
  58. package/dist/scripts/issueVcOnboard +2 -2
  59. package/dist/scripts/issueVcRootTAO +2 -2
  60. package/dist/scripts/issueVcTAO +2 -2
  61. package/dist/scripts/issueVcTI +2 -2
  62. package/dist/scripts/issueVcTnl +2 -2
  63. package/dist/scripts/issue_CTRevocableCredential +2 -2
  64. package/dist/scripts/issue_SelfAttestationSupportOffice +2 -2
  65. package/dist/scripts/issue_VerifiableAccreditationToAccredit +2 -2
  66. package/dist/scripts/issue_VerifiableAccreditationToAttest +2 -2
  67. package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +2 -2
  68. package/dist/scripts/issue_VerifiableAuthorisationToOnboard +2 -2
  69. package/dist/scripts/preregisterIssuer +1 -1
  70. package/dist/scripts/{registerDidDocument_ES256K_ES256 → registerDidDocument} +2 -2
  71. package/dist/scripts/registerIssuer +1 -1
  72. package/dist/scripts/updateVcRootTAO +2 -2
  73. package/dist/scripts/updateVcTAO +2 -2
  74. package/dist/scripts/updateVcTI +2 -2
  75. package/dist/scripts/vcdm2.0/issueSelfAttestationSupportOffice +10 -0
  76. package/dist/scripts/vcdm2.0/issueVcInvoke +12 -0
  77. package/dist/scripts/vcdm2.0/issueVcOnboard +11 -0
  78. package/dist/scripts/vcdm2.0/issueVcRootTAO +14 -0
  79. package/dist/scripts/vcdm2.0/issueVcTAO +15 -0
  80. package/dist/scripts/vcdm2.0/issueVcTI +15 -0
  81. package/dist/scripts/vcdm2.0/issueVcTnl +34 -0
  82. package/dist/scripts/vcdm2.0/registerDidDocument +13 -0
  83. package/dist/scripts/vcdm2.0/updateVcRootTAO +13 -0
  84. package/dist/scripts/vcdm2.0/updateVcTAO +14 -0
  85. package/dist/scripts/vcdm2.0/updateVcTI +14 -0
  86. package/dist/scripts/vcdm2.0/verifyVcTnl +10 -0
  87. package/dist/scripts/verifyVcTnl +1 -1
  88. package/dist/scripts/wct/accreditAndAuthorize +3 -3
  89. package/dist/scripts/wct/holderWallet +1 -1
  90. package/dist/tsconfig.build.tsbuildinfo +1 -1
  91. package/dist/utils/Client.js +11 -2
  92. package/dist/utils/Client.js.map +1 -1
  93. package/dist/utils/http.js +1 -1
  94. package/dist/utils/http.js.map +1 -1
  95. package/dist/utils/jsonrpc.js +10 -5
  96. package/dist/utils/jsonrpc.js.map +1 -1
  97. package/dist/utils/print.js +3 -0
  98. package/dist/utils/print.js.map +1 -1
  99. package/dist/utils/utils.js +78 -21
  100. package/dist/utils/utils.js.map +1 -1
  101. package/package.json +23 -23
  102. package/dist/scripts/registerDidDocument_ES256K +0 -5
  103. /package/dist/scripts/assets/{CTRevocableCredential.json → vcdm1.1/CTRevocableCredential.json} +0 -0
  104. /package/dist/scripts/assets/{CredentialToAttestVerifiableAuthorisationForTrustChain.json → vcdm1.1/CredentialToAttestVerifiableAuthorisationForTrustChain.json} +0 -0
  105. /package/dist/scripts/assets/{TrustedNodesList.json → vcdm1.1/TrustedNodesList.json} +0 -0
  106. /package/dist/scripts/assets/{VerifiableAccreditationToAccredit.json → vcdm1.1/VerifiableAccreditationToAccredit.json} +0 -0
  107. /package/dist/scripts/assets/{VerifiableAccreditationToAttest.json → vcdm1.1/VerifiableAccreditationToAttest.json} +0 -0
  108. /package/dist/scripts/assets/{VerifiableAuthorisationForTrustChain.json → vcdm1.1/VerifiableAuthorisationForTrustChain.json} +0 -0
  109. /package/dist/scripts/assets/{VerifiableAuthorisationToInvoke.json → vcdm1.1/VerifiableAuthorisationToInvoke.json} +0 -0
  110. /package/dist/scripts/assets/{VerifiableAuthorisationToOnboard.json → vcdm1.1/VerifiableAuthorisationToOnboard.json} +0 -0
@@ -0,0 +1,10 @@
1
+ # the Service Ops Manager loads his user, verifies the
2
+ # credential and creates a VP with a generic audience
3
+
4
+ set jwtPayload {"aud":"any"}
5
+ set jwtPayload.exp # undefined: no expiration
6
+ vpTnl: compute createVpJwt vcTnl {} jwtPayload ES256 2.0
7
+
8
+ # verify VC and VP
9
+ compute verifyVcJwt vcTnl
10
+ compute verifyVpJwt vpTnl any
@@ -3,7 +3,7 @@
3
3
 
4
4
  set jwtPayload {"aud":"any"}
5
5
  set jwtPayload.exp # undefined: no expiration
6
- vpTnl: compute createVpJwt vcTnl {} jwtPayload ES256
6
+ vpTnl: compute createVpJwt vcTnl {} jwtPayload ES256 1.1
7
7
 
8
8
  # verify VC and VP
9
9
  compute verifyVcJwt vcTnl
@@ -11,7 +11,7 @@ set myIssuer user
11
11
  conformance check ti_request_verifiable_authorisation_to_onboard
12
12
 
13
13
  # register did document
14
- run registerDidDocument_ES256K_ES256 vcOnboard.vc
14
+ run registerDidDocument vcOnboard.vc
15
15
  conformance check ti_register_did
16
16
 
17
17
  # request VerifiableAccreditationToAttest (TI)
@@ -19,7 +19,7 @@ vcTI: conformance getCredential ti
19
19
  conformance check ti_request_verifiable_accreditation_to_attest
20
20
 
21
21
  # register the credential for TI
22
- t: authorisation auth tir_invite_presentation ES256 vcTI.vc
22
+ t: authorisation auth tir_invite_presentation ES256 vcTI.vc 1.1
23
23
  using token t.access_token
24
24
  tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
25
25
  set vcTI.url tirUrl /issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
@@ -89,7 +89,7 @@ tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did v
89
89
  conformance check tao_revoke_rights_subaccount
90
90
 
91
91
  # request VerifiableAuthorisationForTrustChain (Root TAO)
92
- vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc
92
+ vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc "" 1.1
93
93
  conformance check rtao_request_verifiableauthorisationfortrustchain
94
94
 
95
95
  # register the credential for RootTAO
@@ -35,5 +35,5 @@ set credentials.5 c5
35
35
  set credentials.6 c6
36
36
  set credentials.7 c7
37
37
 
38
- conformance holder CTWalletQualificationCredential authorisedInTime ES256 credentials
38
+ conformance holder CTWalletQualificationCredential authorisedInTime ES256 credentials "" "" 1.1
39
39
  conformance check request_ct_wallet_qualification_credential