EN

The DID entry

4 minDifficulty Checked 2026-11-10
Key takeaways
  • A DID reads did:xrpl, then a network ID, then the account address or master public key.
  • The DID entry holds a URI, a small document or attestation data. Each is 256 bytes at most.
  • DIDSet creates or updates the entry. DIDDelete removes it and frees one owner reserve.

A DID on the XRP Ledger is a short line of text:

did:xrpl:1:rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn

Read it left to right:

  • did says it is a decentralized identifier.
  • xrpl says it lives on an XRP Ledger network.
  • 1 says which network.
  • The last part is the account.

Behind the DID sits a small card on the ledger, the DID entry. Your account can have one. The card has three slots, all optional:

  • URI. A link to your DID document, kept somewhere else. It can be a web address or an IPFS address.
  • DIDDocument. A tiny DID document stored right on the card.
  • Data. Public attestations tied to the DID.

Each slot holds 256 bytes at most. That is a few lines of text. Most real DID documents are bigger, so the usual pattern is to store the document elsewhere and put the link in the URI slot.

At least one slot must be filled. The ledger does not read what you put in. It checks size, nothing more.

Keeping the card costs one owner reserve, 0.2 XRP today. Delete the card and the reserve unlocks.

You can also have a DID with no card at all. In that case the DID stands for the key itself, and that one key is all it can vouch for.

Check yourself3 questions
1. How many DID entries can one account hold?
2. Does the ledger check that a DIDDocument is a valid W3C document?
3. A full DID document is larger than 256 bytes. Where does it go?
Sources
Next lessonPublic by design3 min