@cef-ebsi/cli 0.2.0 → 0.3.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 +189 -189
- package/README.md +55 -54
- package/bin/cli.js +13 -13
- package/dist/commands/compute.js +10 -9
- package/dist/commands/compute.js.map +1 -1
- package/dist/scripts/accreditAndAuthorize/conformance/step1 +34 -34
- package/dist/scripts/accreditAndAuthorize/conformance/step2 +17 -17
- package/dist/scripts/accreditAndAuthorize/conformance/step3 +8 -8
- package/dist/scripts/accreditAndAuthorize/conformance/step4 +26 -26
- package/dist/scripts/accreditAndAuthorize/conformance/step5 +12 -12
- package/dist/scripts/accreditAndAuthorize/conformance/step6 +13 -13
- package/dist/scripts/accreditAndAuthorize/conformance/step7 +6 -6
- package/dist/scripts/accreditAndAuthorize/test/step1 +34 -34
- package/dist/scripts/accreditAndAuthorize/test/step2 +17 -17
- package/dist/scripts/accreditAndAuthorize/test/step3 +8 -8
- package/dist/scripts/accreditAndAuthorize/test/step4 +26 -26
- package/dist/scripts/accreditAndAuthorize/test/step5 +12 -12
- package/dist/scripts/accreditAndAuthorize/test/step6 +13 -13
- package/dist/scripts/accreditAndAuthorize/test/step7 +6 -6
- package/dist/scripts/accreditTI +20 -20
- package/dist/scripts/assets/CTRevocableCredential.json +29 -29
- package/dist/scripts/assets/CredentialToAttestVerifiableAuthorisationForTrustChain.json +28 -28
- package/dist/scripts/assets/VerifiableAccreditationToAccredit.json +35 -35
- package/dist/scripts/assets/VerifiableAccreditationToAttest.json +32 -32
- package/dist/scripts/assets/VerifiableAuthorisationForTrustChain.json +21 -21
- package/dist/scripts/assets/VerifiableAuthorisationToOnboard.json +23 -23
- package/dist/scripts/bootstrap/0a-loadTPROperator +5 -5
- package/dist/scripts/bootstrap/0b-loadAdmin +7 -7
- package/dist/scripts/bootstrap/1-populateTPR +115 -115
- package/dist/scripts/bootstrap/2-populateDID +21 -21
- package/dist/scripts/bootstrap/3-populateTAR +72 -72
- package/dist/scripts/bootstrap/4-populateTimestamp +9 -9
- package/dist/scripts/bootstrap/5-populateTIR +9 -9
- package/dist/scripts/bootstrap/6-populateTSR +22 -22
- package/dist/scripts/bootstrap/7-setupConformanceIssuer +34 -34
- package/dist/scripts/initializeContracts +5 -5
- package/dist/scripts/issueVcOnboard +8 -8
- package/dist/scripts/issueVcRootTAO +10 -10
- package/dist/scripts/issueVcTAO +11 -11
- package/dist/scripts/issueVcTI +11 -11
- package/dist/scripts/issue_CTRevocableCredential +12 -12
- package/dist/scripts/issue_SelfAttestationSupportOffice +10 -10
- package/dist/scripts/issue_VerifiableAccreditationToAccredit +11 -11
- package/dist/scripts/issue_VerifiableAccreditationToAttest +11 -11
- package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +10 -10
- package/dist/scripts/issue_VerifiableAuthorisationToOnboard +9 -9
- package/dist/scripts/preregisterIssuer +5 -5
- package/dist/scripts/registerDidDocument_ES256K_ES256 +13 -13
- package/dist/scripts/registerIssuer +5 -5
- package/dist/scripts/wctv3/accreditAndAuthorize +105 -105
- package/dist/scripts/wctv3/holderWallet +29 -29
- package/dist/scripts/wctv3/issueToHolder +26 -26
- package/dist/scripts/wctv3/pda1 +1 -1
- package/dist/scripts/wctv3/verifier +6 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +98 -98
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
env conformance
|
|
2
|
-
set domain https://api-conformance.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
|
-
|
|
13
|
-
# register did document
|
|
14
|
-
run registerDidDocument_ES256K_ES256 vcOnboard.vc
|
|
15
|
-
|
|
16
|
-
# request VerifiableAccreditationToAttest (TI)
|
|
17
|
-
vcTI: conformance getCredential ti
|
|
18
|
-
|
|
19
|
-
# register the credential for TI
|
|
20
|
-
t: authorisation auth tir_invite_presentation ES256 vcTI.vc
|
|
21
|
-
using token t.access_token
|
|
22
|
-
tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
|
|
23
|
-
set vcTI.url https://api-conformance.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
|
|
24
|
-
|
|
25
|
-
view myIssuer
|
|
26
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
27
|
-
# and validate the following tests:
|
|
28
|
-
#
|
|
29
|
-
# - Onboarding
|
|
30
|
-
# - Request VerifiableAuthorisationToOnboard
|
|
31
|
-
# - Register your DID Document into the DID Registry
|
|
32
|
-
#
|
|
33
|
-
# - Get accredited as a Trusted Issuer
|
|
34
|
-
# - Request VerifiableAccreditationToAttest
|
|
1
|
+
env conformance
|
|
2
|
+
set domain https://api-conformance.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
|
+
|
|
13
|
+
# register did document
|
|
14
|
+
run registerDidDocument_ES256K_ES256 vcOnboard.vc
|
|
15
|
+
|
|
16
|
+
# request VerifiableAccreditationToAttest (TI)
|
|
17
|
+
vcTI: conformance getCredential ti
|
|
18
|
+
|
|
19
|
+
# register the credential for TI
|
|
20
|
+
t: authorisation auth tir_invite_presentation ES256 vcTI.vc
|
|
21
|
+
using token t.access_token
|
|
22
|
+
tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
|
|
23
|
+
set vcTI.url https://api-conformance.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
|
|
24
|
+
|
|
25
|
+
view myIssuer
|
|
26
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
27
|
+
# and validate the following tests:
|
|
28
|
+
#
|
|
29
|
+
# - Onboarding
|
|
30
|
+
# - Request VerifiableAuthorisationToOnboard
|
|
31
|
+
# - Register your DID Document into the DID Registry
|
|
32
|
+
#
|
|
33
|
+
# - Get accredited as a Trusted Issuer
|
|
34
|
+
# - Request VerifiableAccreditationToAttest
|
|
35
35
|
# - Register VerifiableAccreditationToAttest into the Trusted Issuers Registry
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# create a proxy
|
|
2
|
-
conformance clientMockUpdateList 1 0 0
|
|
3
|
-
t: authorisation auth tir_write_presentation ES256
|
|
4
|
-
using token t.access_token
|
|
5
|
-
set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
|
|
6
|
-
set proxyData.prefix myIssuer.clientId
|
|
7
|
-
tir addIssuerProxy myIssuer.did proxyData
|
|
8
|
-
proxies: tir get /issuers/ myIssuer.did /proxies
|
|
9
|
-
set user.proxyId proxies.items.0.proxyId
|
|
10
|
-
set user.accreditationUrl vcTI.url
|
|
11
|
-
conformance clientMockInitiate
|
|
12
|
-
|
|
13
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
14
|
-
# and validate the following tests:
|
|
15
|
-
#
|
|
16
|
-
# - Issue & Revoke
|
|
17
|
-
# - Issue CTRevocable Credential with credentialStatus StatusList2021
|
|
1
|
+
# create a proxy
|
|
2
|
+
conformance clientMockUpdateList 1 0 0
|
|
3
|
+
t: authorisation auth tir_write_presentation ES256
|
|
4
|
+
using token t.access_token
|
|
5
|
+
set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
|
|
6
|
+
set proxyData.prefix myIssuer.clientId
|
|
7
|
+
tir addIssuerProxy myIssuer.did proxyData
|
|
8
|
+
proxies: tir get /issuers/ myIssuer.did /proxies
|
|
9
|
+
set user.proxyId proxies.items.0.proxyId
|
|
10
|
+
set user.accreditationUrl vcTI.url
|
|
11
|
+
conformance clientMockInitiate
|
|
12
|
+
|
|
13
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
14
|
+
# and validate the following tests:
|
|
15
|
+
#
|
|
16
|
+
# - Issue & Revoke
|
|
17
|
+
# - Issue CTRevocable Credential with credentialStatus StatusList2021
|
|
18
18
|
# - Validate the issued credential details
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# revoke credential
|
|
2
|
-
statusListIndex: compute statusListIndex did:ebsi:zhJARjPN69cEtgPxHen1Mid
|
|
3
|
-
conformance clientMockUpdateList 1 statusListIndex 1
|
|
4
|
-
|
|
5
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
6
|
-
# and validate the following tests:
|
|
7
|
-
#
|
|
8
|
-
# - Issue & Revoke
|
|
1
|
+
# revoke credential
|
|
2
|
+
statusListIndex: compute statusListIndex did:ebsi:zhJARjPN69cEtgPxHen1Mid
|
|
3
|
+
conformance clientMockUpdateList 1 statusListIndex 1
|
|
4
|
+
|
|
5
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
6
|
+
# and validate the following tests:
|
|
7
|
+
#
|
|
8
|
+
# - Issue & Revoke
|
|
9
9
|
# - Revoke the credential and confirm
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# request VerifiableAccreditationToAccredit (TAO)
|
|
2
|
-
vcTAO: conformance getCredential tao
|
|
3
|
-
|
|
4
|
-
# register the credential for TAO
|
|
5
|
-
t: authorisation auth tir_write_presentation ES256
|
|
6
|
-
using token t.access_token
|
|
7
|
-
tir setAttributeData myIssuer.did vcTAO.reservedAttributeId vcTAO.vc
|
|
8
|
-
set vcTAO.url https://api-conformance.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTAO.reservedAttributeId
|
|
9
|
-
set user.accreditationUrl vcTAO.url
|
|
10
|
-
conformance clientMockInitiate
|
|
11
|
-
|
|
12
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
13
|
-
# and validate the following tests:
|
|
14
|
-
#
|
|
15
|
-
# - Request VerifiableAccreditationToAccredit
|
|
16
|
-
# - Request VerifiableAccreditationToAccredit
|
|
17
|
-
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
18
|
-
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
19
|
-
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
20
|
-
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
21
|
-
# - Validate the issuance was correct
|
|
22
|
-
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
23
|
-
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
24
|
-
# - Validate the issuance was correct
|
|
25
|
-
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
26
|
-
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
1
|
+
# request VerifiableAccreditationToAccredit (TAO)
|
|
2
|
+
vcTAO: conformance getCredential tao
|
|
3
|
+
|
|
4
|
+
# register the credential for TAO
|
|
5
|
+
t: authorisation auth tir_write_presentation ES256
|
|
6
|
+
using token t.access_token
|
|
7
|
+
tir setAttributeData myIssuer.did vcTAO.reservedAttributeId vcTAO.vc
|
|
8
|
+
set vcTAO.url https://api-conformance.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTAO.reservedAttributeId
|
|
9
|
+
set user.accreditationUrl vcTAO.url
|
|
10
|
+
conformance clientMockInitiate
|
|
11
|
+
|
|
12
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
13
|
+
# and validate the following tests:
|
|
14
|
+
#
|
|
15
|
+
# - Request VerifiableAccreditationToAccredit
|
|
16
|
+
# - Request VerifiableAccreditationToAccredit
|
|
17
|
+
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
18
|
+
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
19
|
+
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
20
|
+
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
21
|
+
# - Validate the issuance was correct
|
|
22
|
+
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
23
|
+
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
24
|
+
# - Validate the issuance was correct
|
|
25
|
+
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
26
|
+
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
27
27
|
# - Validate the issuance was correct
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# revoke credential issued to subaccount
|
|
2
|
-
subaccount: compute subaccountDid myIssuer.did
|
|
3
|
-
attributes: tir get /issuers/ subaccount /attributes
|
|
4
|
-
t: authorisation auth tir_write_presentation ES256
|
|
5
|
-
using token t.access_token
|
|
6
|
-
tir setAttributeMetadata subaccount attributes.items.0.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
7
|
-
tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
8
|
-
|
|
9
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
-
# and validate the following tests:
|
|
11
|
-
#
|
|
12
|
-
# - Revoke accreditations from sub-account DID
|
|
1
|
+
# revoke credential issued to subaccount
|
|
2
|
+
subaccount: compute subaccountDid myIssuer.did
|
|
3
|
+
attributes: tir get /issuers/ subaccount /attributes
|
|
4
|
+
t: authorisation auth tir_write_presentation ES256
|
|
5
|
+
using token t.access_token
|
|
6
|
+
tir setAttributeMetadata subaccount attributes.items.0.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
7
|
+
tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
8
|
+
|
|
9
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
+
# and validate the following tests:
|
|
11
|
+
#
|
|
12
|
+
# - Revoke accreditations from sub-account DID
|
|
13
13
|
# - Revoke accreditations from sub-account DID
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# request VerifiableAuthorisationForTrustChain (Root TAO)
|
|
2
|
-
vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc
|
|
3
|
-
|
|
4
|
-
# register the credential for RootTAO
|
|
5
|
-
t: authorisation auth tir_write_presentation ES256
|
|
6
|
-
using token t.access_token
|
|
7
|
-
tir setAttributeData myIssuer.did vcRootTAO.reservedAttributeId vcRootTAO.vc
|
|
8
|
-
|
|
9
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
-
# and validate the following tests:
|
|
11
|
-
#
|
|
12
|
-
# - Request VerifiableAuthorisationForTrustChain
|
|
13
|
-
# - Request VerifiableAuthorisationForTrustChain
|
|
1
|
+
# request VerifiableAuthorisationForTrustChain (Root TAO)
|
|
2
|
+
vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc
|
|
3
|
+
|
|
4
|
+
# register the credential for RootTAO
|
|
5
|
+
t: authorisation auth tir_write_presentation ES256
|
|
6
|
+
using token t.access_token
|
|
7
|
+
tir setAttributeData myIssuer.did vcRootTAO.reservedAttributeId vcRootTAO.vc
|
|
8
|
+
|
|
9
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
+
# and validate the following tests:
|
|
11
|
+
#
|
|
12
|
+
# - Request VerifiableAuthorisationForTrustChain
|
|
13
|
+
# - Request VerifiableAuthorisationForTrustChain
|
|
14
14
|
# - Register VerifiableAuthorisationForTrustChain into the Trusted Issuers Registry
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# request CTAAQualificationCredential
|
|
2
|
-
ctaaQualification: conformance getCredential qualification
|
|
3
|
-
|
|
4
|
-
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
5
|
-
# and validate the following tests:
|
|
6
|
-
#
|
|
1
|
+
# request CTAAQualificationCredential
|
|
2
|
+
ctaaQualification: conformance getCredential qualification
|
|
3
|
+
|
|
4
|
+
# Go to https://api-conformance.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
5
|
+
# and validate the following tests:
|
|
6
|
+
#
|
|
7
7
|
# - Request CTAAQualificationCredential from Conformance Issuer
|
|
@@ -1,35 +1,35 @@
|
|
|
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
|
-
|
|
13
|
-
# register did document
|
|
14
|
-
run registerDidDocument_ES256K_ES256 vcOnboard.vc
|
|
15
|
-
|
|
16
|
-
# request VerifiableAccreditationToAttest (TI)
|
|
17
|
-
vcTI: conformance getCredential ti
|
|
18
|
-
|
|
19
|
-
# register the credential for TI
|
|
20
|
-
t: authorisation auth tir_invite_presentation ES256 vcTI.vc
|
|
21
|
-
using token t.access_token
|
|
22
|
-
tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
|
|
23
|
-
set vcTI.url https://api-test.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
|
|
24
|
-
|
|
25
|
-
view myIssuer
|
|
26
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
27
|
-
# and validate the following tests:
|
|
28
|
-
#
|
|
29
|
-
# - Onboarding
|
|
30
|
-
# - Request VerifiableAuthorisationToOnboard
|
|
31
|
-
# - Register your DID Document into the DID Registry
|
|
32
|
-
#
|
|
33
|
-
# - Get accredited as a Trusted Issuer
|
|
34
|
-
# - Request VerifiableAccreditationToAttest
|
|
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
|
+
|
|
13
|
+
# register did document
|
|
14
|
+
run registerDidDocument_ES256K_ES256 vcOnboard.vc
|
|
15
|
+
|
|
16
|
+
# request VerifiableAccreditationToAttest (TI)
|
|
17
|
+
vcTI: conformance getCredential ti
|
|
18
|
+
|
|
19
|
+
# register the credential for TI
|
|
20
|
+
t: authorisation auth tir_invite_presentation ES256 vcTI.vc
|
|
21
|
+
using token t.access_token
|
|
22
|
+
tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
|
|
23
|
+
set vcTI.url https://api-test.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
|
|
24
|
+
|
|
25
|
+
view myIssuer
|
|
26
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
27
|
+
# and validate the following tests:
|
|
28
|
+
#
|
|
29
|
+
# - Onboarding
|
|
30
|
+
# - Request VerifiableAuthorisationToOnboard
|
|
31
|
+
# - Register your DID Document into the DID Registry
|
|
32
|
+
#
|
|
33
|
+
# - Get accredited as a Trusted Issuer
|
|
34
|
+
# - Request VerifiableAccreditationToAttest
|
|
35
35
|
# - Register VerifiableAccreditationToAttest into the Trusted Issuers Registry
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# create a proxy
|
|
2
|
-
conformance clientMockUpdateList 1 0 0
|
|
3
|
-
t: authorisation auth tir_write_presentation ES256
|
|
4
|
-
using token t.access_token
|
|
5
|
-
set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
|
|
6
|
-
set proxyData.prefix myIssuer.clientId
|
|
7
|
-
tir addIssuerProxy myIssuer.did proxyData
|
|
8
|
-
proxies: tir get /issuers/ myIssuer.did /proxies
|
|
9
|
-
set user.proxyId proxies.items.0.proxyId
|
|
10
|
-
set user.accreditationUrl vcTI.url
|
|
11
|
-
conformance clientMockInitiate
|
|
12
|
-
|
|
13
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
14
|
-
# and validate the following tests:
|
|
15
|
-
#
|
|
16
|
-
# - Issue & Revoke
|
|
17
|
-
# - Issue CTRevocable Credential with credentialStatus StatusList2021
|
|
1
|
+
# create a proxy
|
|
2
|
+
conformance clientMockUpdateList 1 0 0
|
|
3
|
+
t: authorisation auth tir_write_presentation ES256
|
|
4
|
+
using token t.access_token
|
|
5
|
+
set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
|
|
6
|
+
set proxyData.prefix myIssuer.clientId
|
|
7
|
+
tir addIssuerProxy myIssuer.did proxyData
|
|
8
|
+
proxies: tir get /issuers/ myIssuer.did /proxies
|
|
9
|
+
set user.proxyId proxies.items.0.proxyId
|
|
10
|
+
set user.accreditationUrl vcTI.url
|
|
11
|
+
conformance clientMockInitiate
|
|
12
|
+
|
|
13
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
14
|
+
# and validate the following tests:
|
|
15
|
+
#
|
|
16
|
+
# - Issue & Revoke
|
|
17
|
+
# - Issue CTRevocable Credential with credentialStatus StatusList2021
|
|
18
18
|
# - Validate the issued credential details
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# revoke credential
|
|
2
|
-
statusListIndex: compute statusListIndex did:ebsi:zy8jAhPDbhwKN74YFWAUzD5
|
|
3
|
-
conformance clientMockUpdateList 1 statusListIndex 1
|
|
4
|
-
|
|
5
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
6
|
-
# and validate the following tests:
|
|
7
|
-
#
|
|
8
|
-
# - Issue & Revoke
|
|
1
|
+
# revoke credential
|
|
2
|
+
statusListIndex: compute statusListIndex did:ebsi:zy8jAhPDbhwKN74YFWAUzD5
|
|
3
|
+
conformance clientMockUpdateList 1 statusListIndex 1
|
|
4
|
+
|
|
5
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
6
|
+
# and validate the following tests:
|
|
7
|
+
#
|
|
8
|
+
# - Issue & Revoke
|
|
9
9
|
# - Revoke the credential and confirm
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# request VerifiableAccreditationToAccredit (TAO)
|
|
2
|
-
vcTAO: conformance getCredential tao
|
|
3
|
-
|
|
4
|
-
# register the credential for TAO
|
|
5
|
-
t: authorisation auth tir_write_presentation ES256
|
|
6
|
-
using token t.access_token
|
|
7
|
-
tir setAttributeData myIssuer.did vcTAO.reservedAttributeId vcTAO.vc
|
|
8
|
-
set vcTAO.url https://api-test.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTAO.reservedAttributeId
|
|
9
|
-
set user.accreditationUrl vcTAO.url
|
|
10
|
-
conformance clientMockInitiate
|
|
11
|
-
|
|
12
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
13
|
-
# and validate the following tests:
|
|
14
|
-
#
|
|
15
|
-
# - Request VerifiableAccreditationToAccredit
|
|
16
|
-
# - Request VerifiableAccreditationToAccredit
|
|
17
|
-
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
18
|
-
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
19
|
-
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
20
|
-
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
21
|
-
# - Validate the issuance was correct
|
|
22
|
-
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
23
|
-
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
24
|
-
# - Validate the issuance was correct
|
|
25
|
-
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
26
|
-
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
1
|
+
# request VerifiableAccreditationToAccredit (TAO)
|
|
2
|
+
vcTAO: conformance getCredential tao
|
|
3
|
+
|
|
4
|
+
# register the credential for TAO
|
|
5
|
+
t: authorisation auth tir_write_presentation ES256
|
|
6
|
+
using token t.access_token
|
|
7
|
+
tir setAttributeData myIssuer.did vcTAO.reservedAttributeId vcTAO.vc
|
|
8
|
+
set vcTAO.url https://api-test.ebsi.eu/trusted-issuers-registry/v4/issuers/ myIssuer.did /attributes/ vcTAO.reservedAttributeId
|
|
9
|
+
set user.accreditationUrl vcTAO.url
|
|
10
|
+
conformance clientMockInitiate
|
|
11
|
+
|
|
12
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
13
|
+
# and validate the following tests:
|
|
14
|
+
#
|
|
15
|
+
# - Request VerifiableAccreditationToAccredit
|
|
16
|
+
# - Request VerifiableAccreditationToAccredit
|
|
17
|
+
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
18
|
+
# - Register VerifiableAccreditationToAccredit into the Trusted Issuers Registry
|
|
19
|
+
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
20
|
+
# - Issue VerifiableAuthorisationToOnboard for Conformance Issuer's sub-account DID
|
|
21
|
+
# - Validate the issuance was correct
|
|
22
|
+
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
23
|
+
# - Issue VerifiableAccreditationToAttest for sub-account DID
|
|
24
|
+
# - Validate the issuance was correct
|
|
25
|
+
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
26
|
+
# - Issue VerifiableAccreditationToAccredit for sub-account DID
|
|
27
27
|
# - Validate the issuance was correct
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# revoke credential issued to subaccount
|
|
2
|
-
subaccount: compute subaccountDid myIssuer.did
|
|
3
|
-
attributes: tir get /issuers/ subaccount /attributes
|
|
4
|
-
t: authorisation auth tir_write_presentation ES256
|
|
5
|
-
using token t.access_token
|
|
6
|
-
tir setAttributeMetadata subaccount attributes.items.0.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
7
|
-
tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
8
|
-
|
|
9
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
-
# and validate the following tests:
|
|
11
|
-
#
|
|
12
|
-
# - Revoke accreditations from sub-account DID
|
|
1
|
+
# revoke credential issued to subaccount
|
|
2
|
+
subaccount: compute subaccountDid myIssuer.did
|
|
3
|
+
attributes: tir get /issuers/ subaccount /attributes
|
|
4
|
+
t: authorisation auth tir_write_presentation ES256
|
|
5
|
+
using token t.access_token
|
|
6
|
+
tir setAttributeMetadata subaccount attributes.items.0.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
7
|
+
tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did vcTAO.reservedAttributeId
|
|
8
|
+
|
|
9
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
+
# and validate the following tests:
|
|
11
|
+
#
|
|
12
|
+
# - Revoke accreditations from sub-account DID
|
|
13
13
|
# - Revoke accreditations from sub-account DID
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# request VerifiableAuthorisationForTrustChain (Root TAO)
|
|
2
|
-
vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc
|
|
3
|
-
|
|
4
|
-
# register the credential for RootTAO
|
|
5
|
-
t: authorisation auth tir_write_presentation ES256
|
|
6
|
-
using token t.access_token
|
|
7
|
-
tir setAttributeData myIssuer.did vcRootTAO.reservedAttributeId vcRootTAO.vc
|
|
8
|
-
|
|
9
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
-
# and validate the following tests:
|
|
11
|
-
#
|
|
12
|
-
# - Request VerifiableAuthorisationForTrustChain
|
|
13
|
-
# - Request VerifiableAuthorisationForTrustChain
|
|
1
|
+
# request VerifiableAuthorisationForTrustChain (Root TAO)
|
|
2
|
+
vcRootTAO: conformance getCredential roottao ES256 vcOnboard.vc
|
|
3
|
+
|
|
4
|
+
# register the credential for RootTAO
|
|
5
|
+
t: authorisation auth tir_write_presentation ES256
|
|
6
|
+
using token t.access_token
|
|
7
|
+
tir setAttributeData myIssuer.did vcRootTAO.reservedAttributeId vcRootTAO.vc
|
|
8
|
+
|
|
9
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
10
|
+
# and validate the following tests:
|
|
11
|
+
#
|
|
12
|
+
# - Request VerifiableAuthorisationForTrustChain
|
|
13
|
+
# - Request VerifiableAuthorisationForTrustChain
|
|
14
14
|
# - Register VerifiableAuthorisationForTrustChain into the Trusted Issuers Registry
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# request CTAAQualificationCredential
|
|
2
|
-
ctaaQualification: conformance getCredential qualification
|
|
3
|
-
|
|
4
|
-
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
5
|
-
# and validate the following tests:
|
|
6
|
-
#
|
|
1
|
+
# request CTAAQualificationCredential
|
|
2
|
+
ctaaQualification: conformance getCredential qualification
|
|
3
|
+
|
|
4
|
+
# Go to https://api-test.ebsi.eu/docs/wallet-conformance/accredit-authorise/flow
|
|
5
|
+
# and validate the following tests:
|
|
6
|
+
#
|
|
7
7
|
# - Request CTAAQualificationCredential from Conformance Issuer
|
package/dist/scripts/accreditTI
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# load tao
|
|
2
|
-
using user null
|
|
3
|
-
using user ES256K did1 PRIVATE_KEY_ES256K_TAO DID_TAO
|
|
4
|
-
using user ES256 did1 PRIVATE_KEY_ES256_TAO DID_TAO
|
|
5
|
-
set taoPrivateKeyES256K user.privateKeyHex
|
|
6
|
-
set taoPrivateKeyES256 user.keys.ES256.privateKeyJwk
|
|
7
|
-
set taoDid user.did
|
|
8
|
-
|
|
9
|
-
# create accreditation to attest
|
|
10
|
-
payloadVcTI: load assets/VerifiableAccreditationToAttest.json
|
|
11
|
-
set payloadVcTI.issuer taoDid
|
|
12
|
-
set payloadVcTI.credentialSubject.id NEW_ISSUER_DID
|
|
13
|
-
set payloadVcTI.credentialSchema.id CREDENTIAL_SCHEMA_ID
|
|
14
|
-
set payloadVcTI.termsOfUse.id ACCREDITATION_TAO
|
|
15
|
-
vcTI: compute createVcJwt payloadVcTI {} ES256
|
|
16
|
-
|
|
17
|
-
# preregister the new issuer
|
|
18
|
-
tTao: authorisation auth tir_write_presentation ES256K
|
|
19
|
-
using token tTao.access_token
|
|
20
|
-
attributeIdTI: compute randomID
|
|
1
|
+
# load tao
|
|
2
|
+
using user null
|
|
3
|
+
using user ES256K did1 PRIVATE_KEY_ES256K_TAO DID_TAO
|
|
4
|
+
using user ES256 did1 PRIVATE_KEY_ES256_TAO DID_TAO
|
|
5
|
+
set taoPrivateKeyES256K user.privateKeyHex
|
|
6
|
+
set taoPrivateKeyES256 user.keys.ES256.privateKeyJwk
|
|
7
|
+
set taoDid user.did
|
|
8
|
+
|
|
9
|
+
# create accreditation to attest
|
|
10
|
+
payloadVcTI: load assets/VerifiableAccreditationToAttest.json
|
|
11
|
+
set payloadVcTI.issuer taoDid
|
|
12
|
+
set payloadVcTI.credentialSubject.id NEW_ISSUER_DID
|
|
13
|
+
set payloadVcTI.credentialSchema.id CREDENTIAL_SCHEMA_ID
|
|
14
|
+
set payloadVcTI.termsOfUse.id ACCREDITATION_TAO
|
|
15
|
+
vcTI: compute createVcJwt payloadVcTI {} ES256
|
|
16
|
+
|
|
17
|
+
# preregister the new issuer
|
|
18
|
+
tTao: authorisation auth tir_write_presentation ES256K
|
|
19
|
+
using token tTao.access_token
|
|
20
|
+
attributeIdTI: compute randomID
|
|
21
21
|
tir setAttributeMetadata NEW_ISSUER_DID attributeIdTI ti taoDid ACCREDITATION_ID_TAO
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@context": [
|
|
3
|
-
"https://www.w3.org/2018/credentials/v1"
|
|
4
|
-
],
|
|
5
|
-
"type": [
|
|
6
|
-
"VerifiableCredential",
|
|
7
|
-
"VerifiableAttestation",
|
|
8
|
-
"CTRevocable"
|
|
9
|
-
],
|
|
10
|
-
"issuer": "",
|
|
11
|
-
"credentialSubject": {
|
|
12
|
-
"id": ""
|
|
13
|
-
},
|
|
14
|
-
"credentialStatus": {
|
|
15
|
-
"id": "",
|
|
16
|
-
"type": "StatusList2021Entry",
|
|
17
|
-
"statusPurpose": "revocation",
|
|
18
|
-
"statusListIndex": "",
|
|
19
|
-
"statusListCredential": ""
|
|
20
|
-
},
|
|
21
|
-
"termsOfUse": {
|
|
22
|
-
"id": "",
|
|
23
|
-
"type": "IssuanceCertificate"
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
"credentialSchema": {
|
|
27
|
-
"id": "https://api-pilot.ebsi.eu/trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM",
|
|
28
|
-
"type": "FullJsonSchemaValidator2021"
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://www.w3.org/2018/credentials/v1"
|
|
4
|
+
],
|
|
5
|
+
"type": [
|
|
6
|
+
"VerifiableCredential",
|
|
7
|
+
"VerifiableAttestation",
|
|
8
|
+
"CTRevocable"
|
|
9
|
+
],
|
|
10
|
+
"issuer": "",
|
|
11
|
+
"credentialSubject": {
|
|
12
|
+
"id": ""
|
|
13
|
+
},
|
|
14
|
+
"credentialStatus": {
|
|
15
|
+
"id": "",
|
|
16
|
+
"type": "StatusList2021Entry",
|
|
17
|
+
"statusPurpose": "revocation",
|
|
18
|
+
"statusListIndex": "",
|
|
19
|
+
"statusListCredential": ""
|
|
20
|
+
},
|
|
21
|
+
"termsOfUse": {
|
|
22
|
+
"id": "",
|
|
23
|
+
"type": "IssuanceCertificate"
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
"credentialSchema": {
|
|
27
|
+
"id": "https://api-pilot.ebsi.eu/trusted-schemas-registry/v2/schemas/z3MgUFUkb722uq4x3dv5yAJmnNmzDFeK5UC8x83QoeLJM",
|
|
28
|
+
"type": "FullJsonSchemaValidator2021"
|
|
29
|
+
}
|
|
30
30
|
}
|