@cef-ebsi/cli 1.0.0 → 1.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.
- package/LICENSE.txt +289 -0
- package/README.md +6 -6
- package/dist/app.js +42 -5
- package/dist/app.js.map +1 -1
- package/dist/commands/compute.js +13 -29
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/conformance-v3.js +31 -49
- package/dist/commands/conformance-v3.js.map +1 -1
- package/dist/commands/hardwarewallet.js +36 -0
- package/dist/commands/hardwarewallet.js.map +1 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/tnl.js +82 -0
- package/dist/commands/tnl.js.map +1 -0
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -1
- package/dist/scripts/accreditAndAuthorize/conformance/step3 +1 -1
- package/dist/scripts/assets/Nodes.json +32 -0
- package/dist/scripts/assets/TrustedNodesList.json +33 -0
- package/dist/scripts/issueVcTnl +28 -0
- package/dist/scripts/verifyVcTnl +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/Client.js +32 -34
- package/dist/utils/Client.js.map +1 -1
- package/dist/utils/HardwareWallet.js +251 -0
- package/dist/utils/HardwareWallet.js.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/utils.js +10 -2
- package/dist/utils/utils.js.map +1 -1
- package/dist/utils/verifiablePresentation.js +18 -19
- package/dist/utils/verifiablePresentation.js.map +1 -1
- package/package.json +8 -1
- package/LICENSE +0 -190
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
payloadVcTnl: load assets/TrustedNodesList.json
|
|
2
|
+
set payloadVcTnl.credentialSubject.id SET_SERVICE_OPS_MANAGER
|
|
3
|
+
|
|
4
|
+
# environment: test, pilot, preprod, or prod
|
|
5
|
+
set payloadVcTnl.credentialSubject.environment SET_ENV
|
|
6
|
+
|
|
7
|
+
# chainId
|
|
8
|
+
# test: 6175
|
|
9
|
+
# pilot: 6179
|
|
10
|
+
set payloadVcTnl.credentialSubject.chainId SET_CHAIN_ID
|
|
11
|
+
|
|
12
|
+
# version
|
|
13
|
+
set payloadVcTnl.credentialSubject.version SET_TNL_VERSION
|
|
14
|
+
|
|
15
|
+
# Load nodes
|
|
16
|
+
nodes: load assets/Nodes.json
|
|
17
|
+
|
|
18
|
+
# Check the status
|
|
19
|
+
resultHealth: tnl healthNodes nodes
|
|
20
|
+
nodesTotal: compute length resultHealth.nodesOk
|
|
21
|
+
set payloadVcTnl.credentialSubject.nodesTotal nodesTotal
|
|
22
|
+
set payloadVcTnl.credentialSubject.nodes resultHealth.nodesOk
|
|
23
|
+
|
|
24
|
+
# Issue the credential
|
|
25
|
+
vcTnl: compute createVcJwt payloadVcTnl {} ES256
|
|
26
|
+
|
|
27
|
+
view resultHealth
|
|
28
|
+
# pass the VC to the Service Ops Manager (see verifyVcTnl)
|