Skip to main content

Become a Root Trusted Accreditation Organisation

Step 1. Create DID and DID document​

Follow the Legal Entity DID creation guide to create a DID.

Step 2. Obtain Verifiable Authorisation to Onboard​

The VerifiableAuthorisationToOnboard credential will allow you to request access to register your new DID into the DID registry as a Root TAO. You can obtain this credential via email request with the EBSI Support Office.

note

Before you can request the VerifiableAuthorisationToOnboard, you must accept and sign the legal package as an EBSI Application Service Provider via the Acceptance form.

Hands on!

Email the EBSI Support Office.

  • For the 'Subject' field, select 'Register a DID'.

After successfully emailing the request, the EBSI Support Office will issue you the VerifiableAuthorisationToOnboard credential.

Step 3. Register DID and DID document in the EBSI DID Registry​

Use the Verifiable Authorisation to Onboard received in Step 2 to register your DID in the EBSI DID Registry.

info

Follow the Register your DID guide to complete DID registration.

Step 4. Prepare the keys and the policy grant​

A Root TAO is not accredited by anyone: its record is anchored on chain by a policy, and its VerifiableAuthorisationForTrustChain is signed by the Root TAO itself. The Issuers Registry contract records a Root TAO as its own accreditor (tao), and verifiers reject any record whose body is not issued by that tao, so an authorisation issued by the Support Office is not accepted.

Three things must be in place:

  1. Keys. The DID created in Step 1 needs an ES256K (secp256k1) key with the capabilityInvocation relationship (it sends the on-chain transactions, and its Ethereum address receives the policy), and an ES256K assertionMethod key to sign the authorisation.
  2. Policy grant. The environment operator (the holder of the operator role of the Policies Registry) grants the policy IssuersRegistry:setAttributeMetadata to the Ethereum address of your key with insertUserAttributes(rtaoAddress, ["IssuersRegistry:setAttributeMetadata"]). Ask the EBSI Support Office to arrange it. This is the only policy the contract requires for a RootTAO attribute.
  3. DID registered in the DID Registry (Step 3).

Step 5. Register your Verifiable Authorisation for Trust Chain​

The first record of a Root TAO is written directly with eth_sendRawTransaction, not through an issuers-registry:invite token: it has no accreditor yet, and it is not a trusted issuer until its own record has data.

Step 5.1 Reserve your attribute​

Send a setAttributeMetadata transaction to the Issuers Registry:

setAttributeMetadata(did, salt, RootTAO, did, 0x00…00)

For a RootTAO attribute the accreditor DID and the last argument are ignored. The contract derives the attribute id from the salt, so the id is not equal to the salt:

attributeId = SHA-256 of the ABI encoding of (DID, salt, 0, empty string)

Step 5.2 Sign your Verifiable Authorisation for Trust Chain​

You sign the credential yourself: issuer, credentialSubject.id (and iss, sub in the JWT) are your own DID. A VCDM 2.0 authorisation contains:

  • type VerifiableAuthorisationForTrustChain (with VerifiableTrustModel),
  • a TrustFrameworkPolicy in termsOfUse,
  • credentialSubject.reservedAttributeId set to the derived attributeId of Step 5.1 (never the salt),
  • credentialSubject.permissionFor listing what the chain below you may issue,
  • validFrom, validUntil, and a credentialStatus of type EbsiAccreditationEntry pointing to your attribute.

See the VCDM 2.0 trust model for a full example.

warning

Verifiers reject a body whose reservedAttributeId is missing or differs from the attribute it is stored at. The ledger does not check it, so a wrong value is accepted on chain and only fails later, at verification time.

Step 5.3 Register the authorisation in the Issuers Registry​

Build a setAttributeData transaction with your DID, the derived attributeId and the credential JWT (as UTF-8 bytes).

API CALL

The following endpoint must be used to register your Verifiable Authorisation for Trust Chain 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 check the status of the transaction:

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