Alodium Docs
Core Systems

Access Control

What the chain records about a grant today, the checks a server must pass before releasing a key, and why none of it serves production reads yet.

What this layer does. It decides whether a given consumer may read a given dataset version, and if so releases the key for it. Read this page as a design that runs only on test networks: the grant's on-chain record is live on Solana devnet, the service that releases keys runs only in staging, a test environment, and nothing in production or on Solana mainnet serves an authorised read.

What is running, and what is not

PieceState
GrantAnchorRegistry — the on-chain grant recordLive on Solana devnet. Not deployed on Solana mainnet
Anchor writes, owner-calledLive on Solana devnet, reachable through a legacy Python SDK
Anchor writes, delegated by signatureLive on Solana devnet. alodium-cli produces the owner's signature and the executor relays it; that relay runs only in staging
access-control-service — the server that checks a request and releases a keyRuns in staging only, a test environment on Solana devnet. Not deployed to production
An authorised read, end to endStaging only. No production service releases decryption material, and the paid route has not yet been run against the deployed escrow

So a grant can be recorded and revoked on Solana devnet now, by its owner or through a relayed owner signature. The service that takes a presented grant and returns a key is deployed only in staging; nothing does that in production or against Solana mainnet. The registry's devnet address, and its absence on mainnet, are on Contract Addresses.

What the chain contributes

The GrantAnchorRegistry holds one anchor per grant id, and it holds deliberately little: the dataset version, a hash of the subject DID, when it was issued, an expiry — zero meaning perpetual — and a status of ACTIVE or REVOKED. No policy, no credential, no key — and no digest of the grant document and no list of permitted actions.

That omission decides the shape of everything else on this page. The grant itself is an off-chain verifiable credential, and because the anchor commits to neither its contents nor what it permits, a valid anchor is a necessary condition and never a sufficient one. A server that released a key on the strength of the anchor alone would be honouring a document the chain never saw.

Two properties the anchor does give:

  • A fail-closed condition. A grant that is missing, REVOKED, or past its expiry can be refused without consulting anything off-chain. Note that a perpetual anchor carries no expiry to fail on, so on chain revocation is its only withdrawal — the credential presented against it may still carry an expiry of its own, which is checked separately below.
  • Revocation at the source. ACTIVE → REVOKED is the only transition the registry admits, and a revoked anchor never returns to active. Withdrawal does not depend on chasing credentials already issued.

Who may write an anchor

Every direct write is gated on the caller owning the dataset version. That rules out the obvious arrangement — a service holding its own key and writing anchors on users' behalf — because no service key is the owner, and giving one that authority would mean giving it the owner's key.

The design answer is to put the authority in the signature rather than the sender: the owner signs an EIP-712 GrantAuthorization (or GrantRevocation) offline, and any address can submit it, gaining no rights and paying only gas — a wallet or a multisig can sign, so a multisig-held DID works. That path is live on the Solana devnet program: alodium-cli produces the signature and the executor relays it, a relay that runs only in staging. The owner-called methods keep working alongside it.

What a server must check before releasing a key

Five checks, and the anchor is only one of them. All must pass.

Three points are worth naming, because they are what the anchor's minimalism forces:

  • The issuer must be the dataset version's owner on chain, not merely a valid signer. Without that tie, a subject could sign their own credential and grant themselves whatever it says.
  • The credential's own expiry is checked, and the anchor's is not a substitute for it. Both exist and they are different clocks: the anchor commits to no credential, so nothing on chain makes them agree. The approval route does pin them equal when it issues a grant, but an owner can write an anchor directly with any expiry it likes, including zero for perpetual, against a credential that says otherwise.
  • The credential must match a digest retained when the owner approved it. Since the anchor stores no digest, the comparison target lives server-side, with the party that approved the grant.

The service checks all three. It runs only in staging, a test environment, so these checks do not yet stand in front of production data.

How the key reaches the consumer

One data encryption key per dataset version, sealed per grant. The platform does not hold the key. Whoever holds the data before publication — the owner, or an App collecting it for the owner — encrypts it and seals the key to the owner's own encryption key. To grant access, the owner opens that copy with alodium-cli, wherever it keeps its keys, and seals the key again to the buyer's encryption key from the buyer's DID document. The service stores and returns only that sealed copy, which it cannot open.

Two earlier designs preceded this. Proxy re-encryption, in which the owner would produce re-encryption material for one consumer and the service would transform the wrapped key without being able to open it, was rejected on 2026-09-04. The approval path fixed that scheme at a threshold of one — a single service instance would hold every key fragment — so it paid the whole cost of key distribution, including consumer-side key custody and a Python SDK every buyer would have to run, without buying a materially stronger trust model than custody. Its program-re-encryption library had also not shipped a release since 2021. That decision kept the key custodial on the platform side; the code has since moved to the owner-controlled design above, and the program re-encryption code has been removed.

The consequence for a reader is direct: confidentiality rests on the owner's keys, and the platform alone cannot read a payload. That holds against the platform only: an App holding a DID in custody is that DID's owner, and a buyer who has received the key can keep and share it. A platform-custody mode for owners who must stay offline is planned, not built; under it the platform could recover the key.

What is recorded

A resolved request is designed to emit an audit event naming the grant, the dataset, the subject and how the key was delivered. That is an access log: it records that a key was handed over, not what was subsequently read, how much, or for how long.

Not in this layer

No usage measurement exists anywhere in the protocol — no usage events, no pricing configuration, no consumer-facing quotas, no policy language, and no licence or payment mode that meters consumption. Metered usage is a v3 concern, under a receipt type that does not exist yet.

The Royalty Engine is paid by whoever pays it. Nothing observes a read and turns it into a charge.

Revocation's reach is limited in one way worth stating: it stops new access. Data a consumer has already decrypted cannot be recalled.

Interfaces

  • In: a DID session, a grant credential issued by the dataset version's owner, and the grant's on-chain anchor.
  • Out (designed): the dataset version's key for the requesting consumer, plus an audit event.
  • Cross-links: datasets come from Data Assembly; the bytes themselves live in Storage & Serving; the identities on both sides are Identity.

Invariants

  • An anchor authorises nothing on its own. It commits to no document and no actions, so every release also rests on off-chain checks.
  • Revocation does not depend on the credential, and does not reach what is already decrypted.
  • Only one status transition exists. ACTIVE → REVOKED, never back.
  • No service key can write an anchor in its own name. The gate is dataset ownership, and the designed way around it is to move authority into the owner's signature so a submitter is only a relay — live on the Solana devnet program.
  • A visible reference is not authorisation, and today it may still be enough to read. A hash or manifest URI does not grant you anything. But nothing in the storage layer encrypts and its reads are unauthenticated, so whether the bytes behind a URI are intelligible depends on how their producer uploaded them — see Storage & Serving.
  • Key custody is the trust boundary, and it sits with the owner: the platform stores only sealed copies of the key that it cannot open.

Last updated