Skip to main content

Register your accreditation in the Issuers Registry

This section will guide you on how to register your DID in the EBSI Issuers Registry as the final step to becoming operational as a Trusted Issuer (TI).

The Issuers Registry is a registry containing a list of Legal Entities that are authorised to issue certain types of credentials. After you have received the Verifiable Accreditation to Attest, you must complete the invitation by registering the credential into the Issuers Registry. The following steps will guide you through this process.

info

Consult the Issuers Registry API page for API instructions on how to register your DID on the Issuers Registry.

Step 1. Request Verifiable Accreditation To Attest​

To receive an invitation from the organisation that accredits you (a Root TAO or a TAO), you must first request a VerifiableAccreditationToAttest Verifiable Credential.

The accrediting organisation will then invite you to join the Trust Chain, it reserves a location in the Issuers Registry (with an issuers-registry:write token, by calling setAttributeMetadata with your DID, a salt, the issuer type TI, its own DID and its own attribute id), then issues the VerifiableAccreditationToAttest for that specific location. The contract derives the location, the attributeId, as the SHA-256 of the ABI encoding of (DID, salt, 0, empty string).

Step 2. Obtain issuers-registry:invite access token from the Authorisation Service to write into the Issuers Registry​

To request a issuers-registry:invite access token, you need to present proof of ownership of your Verifiable Accreditation to Attest to the Authorisation Service.

note

An issuers-registry:invite token is only issued if your DID exists in the Issuers Registry with no accepted body yet (a location is reserved, but no credential has been registered). If your DID already has an accepted accreditation (in any role), the request fails with already has accreditations: request an issuers-registry:write token with the self-attestation credential instead.

API CALL

Follow this sequence of API calls to request a issuers-registry:invite access token:

  • GET DCQL query: Begin by fetching the DCQL query for the issuers-registry:invite scope.
  • POST Token Endpoint: Create and submit a presentation according to the fetched DCQL query that contains proof of ownership of your Verifiable Accreditation to Attest

For further details, please consult our 'How to obtain an access token' guide.

Upon successful submission, the Authorisation Service will issue a short-lived, OAuth 2.0 compatible issuers-registry:invite access token.

Step 3. Register your Verifiable Accreditation to Attest​

The invitation is accepted by registering your Verifiable Accreditation to Attest into the Issuers Registry.

The Verifiable Accreditation has a credentialSubject.reservedAttributeId: the attribute id the accreditor reserved for you (the id derived from the salt, not the salt itself). Build a setAttributeData transaction with your DID, that attribute id and the credential JWT.

warning

Check the reservedAttributeId before writing. The ledger accepts any body, but every verifier rejects an accreditation whose reservedAttributeId is missing or differs from the attribute it is stored at.

API CALL

The following endpoint must be used to register your Verifiable Accreditation to Attest into the Issuers Registry:

Upon successful submission, the Ledger Service will broadcast the transaction to the ledger. In return, you will receive the transaction hash.

You can get the receipt of the transaction by calling the eth_getTransactionReceipt method of Ledger Service.

Receipts for pending transactions are not available, therefore you will have to wait until the transaction has been processed — usually a few seconds. We recommend you to poll the eth_getTransactionReceipt method until the receipt is available.

Once the receipt is available, you can check the status field to know if the transaction succeeded (0x1) or failed (0x0). If the transaction failed, the revertReason field will give you insights about the reason for the failure. You can learn more about the format of the revert reason in Besu's documentation.

API CALL

The following endpoint must be used to send a signed transaction:

The following endpoint must be used to check the status of the transaction:

After the transaction has been completed, you are officially onboarded as a TI. Congratulations!

Learn more about it