@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.
- package/dist/app.js +32 -6
- package/dist/app.js.map +1 -1
- package/dist/buildParam/didr.js +1 -2
- package/dist/buildParam/didr.js.map +1 -1
- package/dist/buildParam/index.js.map +1 -1
- package/dist/buildParam/ptr.js +1 -1
- package/dist/buildParam/ptr.js.map +1 -1
- package/dist/buildParam/tcr.js.map +1 -1
- package/dist/buildParam/timestamp.js +6 -15
- package/dist/buildParam/timestamp.js.map +1 -1
- package/dist/buildParam/tir.js.map +1 -1
- package/dist/buildParam/tnt.js.map +1 -1
- package/dist/buildParam/tpr.js +0 -2
- package/dist/buildParam/tpr.js.map +1 -1
- package/dist/buildParam/tsr.js.map +1 -1
- package/dist/commands/authorisation.js +3 -3
- package/dist/commands/authorisation.js.map +1 -1
- package/dist/commands/compute.js +109 -38
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/conformance.js +8 -8
- package/dist/commands/conformance.js.map +1 -1
- package/dist/commands/ledger.js +41 -8
- package/dist/commands/ledger.js.map +1 -1
- package/dist/commands/ptr.js +3 -4
- package/dist/commands/ptr.js.map +1 -1
- package/dist/commands/tcr.js +4 -4
- package/dist/commands/tcr.js.map +1 -1
- package/dist/commands/tir.js +62 -0
- package/dist/commands/tir.js.map +1 -0
- package/dist/commands/tnl.js +1 -3
- package/dist/commands/tnl.js.map +1 -1
- package/dist/commands/tsr.js +4 -4
- package/dist/commands/tsr.js.map +1 -1
- package/dist/commands/view.js +1 -1
- package/dist/commands/view.js.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/interfaces/contracts/ProxyFactory.js +2 -0
- package/dist/interfaces/contracts/ProxyFactory.js.map +1 -0
- package/dist/interfaces/contracts/ProxyTemplateRegistry.js +2 -0
- package/dist/interfaces/contracts/ProxyTemplateRegistry.js.map +1 -0
- package/dist/interfaces/contracts/SchemaSCRegistry.js +2 -0
- package/dist/interfaces/contracts/SchemaSCRegistry.js.map +1 -0
- package/dist/interfaces/contracts/common.js +2 -0
- package/dist/interfaces/contracts/common.js.map +1 -0
- package/dist/scripts/accreditAndAuthorize/conformance/step1 +1 -1
- package/dist/scripts/accreditAndAuthorize/test/step1 +1 -1
- package/dist/scripts/accreditTI +3 -3
- package/dist/scripts/assets/vcdm1.1/Nodes.json +27 -0
- package/dist/scripts/assets/vcdm2.0/CredentialToAttestVerifiableAuthorisationForTrustChain.json +29 -0
- package/dist/scripts/assets/vcdm2.0/TrustedNodesList.json +36 -0
- package/dist/scripts/assets/vcdm2.0/VerifiableAccreditationToAccredit.json +40 -0
- package/dist/scripts/assets/vcdm2.0/VerifiableAccreditationToAttest.json +38 -0
- package/dist/scripts/assets/vcdm2.0/VerifiableAuthorisationForTrustChain.json +30 -0
- package/dist/scripts/assets/vcdm2.0/VerifiableAuthorisationToInvoke.json +24 -0
- package/dist/scripts/assets/vcdm2.0/VerifiableAuthorisationToOnboard.json +23 -0
- package/dist/scripts/bootstrap/0b-loadAdmin +2 -1
- package/dist/scripts/issueVcInvoke +2 -2
- package/dist/scripts/issueVcOnboard +2 -2
- package/dist/scripts/issueVcRootTAO +2 -2
- package/dist/scripts/issueVcTAO +2 -2
- package/dist/scripts/issueVcTI +2 -2
- package/dist/scripts/issueVcTnl +2 -2
- package/dist/scripts/issue_CTRevocableCredential +2 -2
- package/dist/scripts/issue_SelfAttestationSupportOffice +2 -2
- package/dist/scripts/issue_VerifiableAccreditationToAccredit +2 -2
- package/dist/scripts/issue_VerifiableAccreditationToAttest +2 -2
- package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +2 -2
- package/dist/scripts/issue_VerifiableAuthorisationToOnboard +2 -2
- package/dist/scripts/preregisterIssuer +1 -1
- package/dist/scripts/{registerDidDocument_ES256K_ES256 → registerDidDocument} +2 -2
- package/dist/scripts/registerIssuer +1 -1
- package/dist/scripts/updateVcRootTAO +2 -2
- package/dist/scripts/updateVcTAO +2 -2
- package/dist/scripts/updateVcTI +2 -2
- package/dist/scripts/vcdm2.0/issueSelfAttestationSupportOffice +10 -0
- package/dist/scripts/vcdm2.0/issueVcInvoke +12 -0
- package/dist/scripts/vcdm2.0/issueVcOnboard +11 -0
- package/dist/scripts/vcdm2.0/issueVcRootTAO +14 -0
- package/dist/scripts/vcdm2.0/issueVcTAO +15 -0
- package/dist/scripts/vcdm2.0/issueVcTI +15 -0
- package/dist/scripts/vcdm2.0/issueVcTnl +34 -0
- package/dist/scripts/vcdm2.0/registerDidDocument +13 -0
- package/dist/scripts/vcdm2.0/updateVcRootTAO +13 -0
- package/dist/scripts/vcdm2.0/updateVcTAO +14 -0
- package/dist/scripts/vcdm2.0/updateVcTI +14 -0
- package/dist/scripts/vcdm2.0/verifyVcTnl +10 -0
- package/dist/scripts/verifyVcTnl +1 -1
- package/dist/scripts/wct/accreditAndAuthorize +3 -3
- package/dist/scripts/wct/holderWallet +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/Client.js +11 -2
- package/dist/utils/Client.js.map +1 -1
- package/dist/utils/http.js +1 -1
- package/dist/utils/http.js.map +1 -1
- package/dist/utils/jsonrpc.js +10 -5
- package/dist/utils/jsonrpc.js.map +1 -1
- package/dist/utils/print.js +3 -0
- package/dist/utils/print.js.map +1 -1
- package/dist/utils/utils.js +78 -21
- package/dist/utils/utils.js.map +1 -1
- package/package.json +23 -23
- package/dist/scripts/registerDidDocument_ES256K +0 -5
- /package/dist/scripts/assets/{CTRevocableCredential.json → vcdm1.1/CTRevocableCredential.json} +0 -0
- /package/dist/scripts/assets/{CredentialToAttestVerifiableAuthorisationForTrustChain.json → vcdm1.1/CredentialToAttestVerifiableAuthorisationForTrustChain.json} +0 -0
- /package/dist/scripts/assets/{TrustedNodesList.json → vcdm1.1/TrustedNodesList.json} +0 -0
- /package/dist/scripts/assets/{VerifiableAccreditationToAccredit.json → vcdm1.1/VerifiableAccreditationToAccredit.json} +0 -0
- /package/dist/scripts/assets/{VerifiableAccreditationToAttest.json → vcdm1.1/VerifiableAccreditationToAttest.json} +0 -0
- /package/dist/scripts/assets/{VerifiableAuthorisationForTrustChain.json → vcdm1.1/VerifiableAuthorisationForTrustChain.json} +0 -0
- /package/dist/scripts/assets/{VerifiableAuthorisationToInvoke.json → vcdm1.1/VerifiableAuthorisationToInvoke.json} +0 -0
- /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
|
package/dist/scripts/verifyVcTnl
CHANGED
|
@@ -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
|
|
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
|