Design privacy for a domain's data

Plan which of a domain's values go in its public IID document and which stay encrypted in service storage, then check that nothing sensitive is exposed.

A domain has a public part and a private part. Its on-chain record, the IID document, is public. Sensitive data belongs in service storage such as IXO Matrix, encrypted, with the record holding at most a reference or a proof. Use this guide to decide where each value goes before you write anything.

This page is about those two parts of a domain and the line between them. To change the IID document itself, see Update a domain's on-chain record.

Before you start

  • Confirm your target network and its endpoints in Networks and endpoints.
  • Confirm what each API requires for authentication in the Authentication matrix.
  • Confirm that you have controller authority for the domain's DID.

Which layer holds what

LayerWhat it holds
ProtocolThe public DID document structure, and metadata updates made with an authorised signature
ServiceEncrypted payload storage, and controlled retrieval

Design steps

  1. Register key material and controller relationships at the protocol layer.
  2. Encrypt sensitive settings before you write them to service storage.
  3. Publish only references or proofs in public protocol metadata, and only when they are required.
  4. Enforce recipient authorisation on every read.

Check the design

When the design is built, confirm that no sensitive value appears in a public document field. A sound design gives these results:

  • metadata updates on the domain succeed with authorised signatures
  • sensitive values remain encrypted in service storage
  • unauthorised reads fail

Next steps