@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.
@@ -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)
@@ -0,0 +1,8 @@
1
+ # the Service Ops Manager loads his user, verifies the
2
+ # credential and creates a VP with a generic audience
3
+
4
+ vpTnl: compute createPresentationJwt vcTnl ES256 any
5
+
6
+ # verify VC and VP
7
+ compute verifyVcJwt vcTnl
8
+ compute verifyVpJwt vpTnl any