Skip to main content
European CommissionEBSI European Blockchain

Register a Trusted Issuer

Load the keys of the new issuer:

==> using user ES256K did1 <ISSUER_PRIVATE_KEY_ES256K> <ISSUER_DID>
==> using user ES256 did1 <ISSUER_PRIVATE_KEY_ES256> <ISSUER_DID>

Now connect the wallet with the pilot environment:

==> env pilot

Request a credential to be an issuer

For this step contact with the Trusted Issuer related to your use case. There are 3 basic types in EBSI: Root TAO, TAO, or TI. If you want to register a Root TAO then contact with Support Office to issue a "Verifiable Authorisation For Trust Chain".

The verifiable credential should contain your DID and a reservedAttributeId in the credentialSubject.

Apart from issuing the credential, Support Office (or the respective parent issuer) should make the pre-registration of the new issuer in the Trusted Issuers Registry. To check it run the following command, you should see an empty attribute:

==> tir-new get /issuers/ user.did

...

{
"did": "did:ebsi:zy8Psj9ez9wrsSZ7vrHE221",
"attributes": [
{
"hash": "b84fc4439b46ab5f2c9800e97b2edabfd1bdc83b4778ad1cec3cd92c7cc93bb4",
"body": "",
"issuerType": "TI",
"tao": "did:ebsi:zZeKyEJfUTGwajhNyNX928z",
"rootTao": "did:ebsi:zZeKyEJfUTGwajhNyNX928z"
}
]
}

Request an access token

In this step you will request an access token to the authorisation API. If this is the first time you register a Trusted issuer request an access token with scope tir_invite and present the credential. If the issuer already exists then request an access token with scope tir_write (in this case there is no need to present a credential):

# For first time
==> resAuthTIR: authorisation-new auth tir_invite_presentation ES256 vcIssuer

# For existing issuers
==> resAuthTIR: authorisation-new auth tir_write_presentation ES256

Now load the access token:

using token resAuthTIR.access_token

Register the credential

To register the credential run:

==> tir-new setAttributeData user.did <RESERVED_ATTRIBUTE_ID> <VC_ISSUER>

You can get the reserved attribute ID from the verifiable credential.

Finally, verify that the credential is registered:

==> tir-new get /issuers/ user.did

...

{
"did": "did:ebsi:zy8Psj9ez9wrsSZ7vrHE221",
"attributes": [
{
"hash": "fb7be957fcc15a506ce3a5ea403823ee5f81ccbe92fd288c91d3ded95828e0c9",
"body": "eyJhbGciOiJFUzI1NiIsInR5cCI6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pkxkjLBZ9RV_4RBlxyL0ij4OQ",
"issuerType": "TI",
"tao": "did:ebsi:zZeKyEJfUTGwajhNyNX928z",
"rootTao": "did:ebsi:zZeKyEJfUTGwajhNyNX928z"
}
]
}
Congratulations!

You registered an issuer in the Trusted Issuers Registry