You contributed three thousand annotations to a dataset and received a 3% ownership stake. The deal: whenever the dataset earns revenue, 3% of it comes to you as your ownership dividend. Now, a question you have probably never thought to ask: where is that 3% actually recorded?
In the traditional model, it lives in the platform’s database. That means three things:
- The number can change. Editing a row in a database notifies no one — and you would never find out.
- The number can disappear. The platform shuts down, runs off, or gets acquired and wipes its tables; your 3% evaporates with it — what’s left in your hands is a contract and a few payment receipts.
- The number can’t be checked. To verify it, you ask the platform for a report — and the party producing the report is the same party that owes you money.
Alodium Protocol records the number somewhere else, where none of the three can happen:
- It can’t be changed — not even by us
- It can’t be lost — it doesn’t depend on any single company staying alive
- No reports from the platform — you can compute it yourself
None of this rests on a promise. It rests on a concrete mechanism, and the whole mechanism stands on one idea: the number lives on a blockchain. For that idea to actually hold, a chain of questions has to be answered one by one: who computed that 3%, and why should it count? What exactly does the chain record? When you trust no one at all, how do you verify it yourself? This article walks through them in that order — and finishes with what happens after the shares land: where the money comes from.
A Stone Tablet in the Town Square
Think of Solana as a stone tablet standing in the town square. It gives you three things:
- Once carved, it can’t be altered — not by the carver, and not by us
- Anyone passing by can read it and check it, no permission required
- The rules are carved in too — the arithmetic of splitting revenue, the checks on claiming, none of it runs on any company’s server
Together, these three are what turn “you own 3%” from a promise into a fact.
But a stone tablet has its limits, and precisely these two limits shape every design decision in the rest of this article:
First, carving is expensive. Every extra character on the tablet has a cost, so you cannot carve a roster of ten thousand names — only the few characters that matter most.
Second, everything carved is visible to everyone. A tablet keeps no secrets. Anything genuinely private must stay off the tablet; what goes on it is a marker that points to the private thing and lets anyone verify it hasn’t been swapped.
So the shape of the whole design falls out: the chain holds only the minimal facts that must be publicly verifiable; everything else lives off-chain, pinned down by that little bit of on-chain information. Every section that follows is a product of this constraint.
Where the Numbers Come From
Start off-chain. Before shares can be handed out, there has to be a list: who, and how much. Where do those numbers come from? Who computed them, and on what authority?
The first half of the answer may surprise you: the protocol doesn’t say.
How to weight contributions is a business question, not a protocol question. Split evenly by count? Weight by review grade? Are raw samples worth more than labels? No single rule fits both medical imaging and street-view photos. If the protocol hard-coded one algorithm into the contract, it would be making a decision it has no right to make — for every dataset at once.
What the protocol does govern is the second half: once the numbers are set, they must be frozen, inspectable, and unchangeable.
Two names you will see throughout. DID is a contributor’s identity number in the protocol — an on-chain identity that doesn’t hang off any platform account. CF (Contribution Fingerprint) is the registration of each contribution; its id (cfId) is computed from the content itself, so changing one character of the content produces a completely different id. When a publisher freezes a dataset version, it exports a deterministic list — the protocol calls it a publication snapshot. One line per contributor: their DID, and the cfIds under their name:
// One record per contributor (compacted to one line each in the real file)
{
"contributor_did_id": "1001", // who — the contributor's DID
"cf_ids": [ // which contributions are theirs
"9yzT…",
"6ZT1…",
"D5mv…"
]
}
{
"contributor_did_id": "1002",
"cf_ids": [
"HoG4…",
"AhX3…"
]
}
Shares can be given in two ways, and one file may mix both:
- Omit the share amount — the default kicks in: every CF counts 100, and your total is your entry count times 100
- State the share amount — that number is used as-is: the publisher computes it under its own rules and writes your total directly
The header carries several reconciliation numbers, among them total_shares, the sum across all lines. Before any tree is built, the whole file has to pass a battery of checks: the totals must reconcile, so must the contributor count and the entry count, the manifest and dataset ids must match, no contributor or entry may appear twice, and the rows must be in order. Any one of them fails and the file is rejected.
So on the question of “how much should each person get,” the protocol gives away freedom over the algorithm and takes back non-repudiation of the result. It doesn’t guarantee the allocation is fair — that depends on the publisher’s rules, and on whether you choose to participate at all. What it guarantees is that once published, the allocation becomes something you can compute yourself, and something nobody can quietly rewrite.
Now the list exists. The next question follows immediately: it is an off-chain file — what makes “frozen and unchangeable” actually true? Enter the blockchain.
A Merkle Tree: Ten Thousand Lines, One Hash
Say the list has ten thousand contributors. There are two obvious ways to bind it to the chain, and neither works.
Carve the whole list onto the chain? Too expensive. Every character on the tablet has a cost, and ten thousand lines add up to a bill nobody wants to pay.
Have the contract hand out shares one by one? Worse. This runs into “one transaction can’t hold it”: every chain caps the computation a single transaction may consume, and ten thousand writes blow far past that cap. Doing it for real means splitting into hundreds of batched transactions, each needing someone to pay the fee — the assembler? They would be fronting the SOL fee for ten thousand people. The contributors? They haven’t received anything yet; why would they pay first? Failure handling is uglier still: the run dies at batch 37, and the chain freezes in a half-state — some got theirs, some didn’t — with nothing on-chain marking it as a half-state. Recovering requires someone to track progress off-chain, and “who got their shares” lands right back in somebody’s database — a full circle to the structure we set out to escape.
So flip the question: is there a way to put “the list is final” on-chain, without carving the list itself?
There is. A Merkle tree.
A Merkle tree compresses a large batch of records into a single hash: hash each record as a leaf, merge pairwise upward, all the way to the top — a single 32-byte root.
Picture it as the bracket of a ten-thousand-player knockout tournament. Every player takes a first-round slot; pairs face off, winners advance, until one champion remains — that champion is the root.
Now you want to prove to someone that you played in this tournament. You don’t need to produce all ten thousand names — you only name your opponent in each round: who you met in round one, in round two… up to the final. They take that list of opponents and replay the bracket upward from your slot; if the champion they arrive at matches the published one, you were in the bracket — and they never learn who the other 9,999 players were.
That list of per-round opponents is the proof. A ten-thousand-player knockout runs about 14 rounds, so the proof is about 14 hashes — a few hundred bytes — while the person verifying you needs only the 32-byte name of the champion.
So at assembly time, only two things are carved on-chain: the list’s root, contributorsMerkleRoot, and the total supply, totalShares. The list file itself lives off-chain, publicly fetchable. The on-chain root is the seal on that table.
Why does the seal hold? Two properties of hashes:
- Touch one line, change everything — alter a single character anywhere in the list and that line’s hash comes out different; the change propagates up the tree, and the root comes out completely different. “The root matches” therefore means “not one character of the list has changed”
- It can’t be forged — constructing a different list that hashes to the same root is exactly what hash functions are designed to prevent. Without this property, the seal would be papier-mâché: edit the list, then craft a matching seal
One last link closes the chain: how do you know the list file you fetched is the one frozen at the start? The file’s address and hash are written into the dataset’s metadata document, and the metadata document’s hash is committed on-chain. Now everything connects: the on-chain root comes from the tree, the tree comes from the file, and the file is pinned by an on-chain hash.
Shares are no longer “sent to you” — you come and claim them: take your line and a proof to the contract; the contract checks the proof against the on-chain root, and if it holds, mints to you — and from that moment, the shares are an on-chain asset in your name: holdable, transferable, revenue-bearing. The function is called claimDatasetShares.
One write pins down ten thousand people’s ownership; afterwards, everyone claims individually, each paying their own fee. The pattern is commonly called a lazy claim: the list goes on-chain once, and the money is collected by each person. No batches, no half-states — from the chain’s point of view, assembly is atomic: the instant it completes, all ten thousand allocations are settled, whether people claim now, later, or never.
The Two-Layer Tree: Which Are Yours, and How Much in Total
The previous section simplified the tree to a single layer: one line per person, merge to the top, root on-chain. The real design has one more layer — a two-layer tree. The extra layer is not an engineering flourish; it exists because there is a question one tree cannot answer: it can prove “how much you get in total,” but it cannot say “which contributions those shares are based on.” And that question can’t go unanswered — shares must trace back to specific contributions for ownership and provenance to close the loop. Two layers, one question each.
Get the units straight first, before any mental math goes wrong: the upper tree’s leaves are people, not entries. Ten thousand contributors may have millions of annotations between them, but the upper tree always has exactly ten thousand leaves — each person’s hundreds or thousands of entries are folded into their own lower tree, taking no space upstairs.
The lower layer is the “contribution tree” — one per contributor, answering “which entries are mine.” The CFs you contributed to this dataset serve as its leaves directly, by their ids — a cfId is already a hash, no need to hash it again. Its root, cfMerkleRoot, is the seal on your batch of contributions.
The upper layer is the “roster tree” — one per dataset, answering “how much does each person get.” One leaf per contributor, and the leaf packs: your DID, your total shares, the root of your contribution tree, the dataset version id, plus two anti-abuse fields. Its root is the contributorsMerkleRoot written on-chain.
One piece of layering worth spelling out: weights are computed off-chain; the chain only recognizes results. The current implementation weights every CF at a flat 100; a future one could well give higher-graded data more weight. Either way, the only number that ever reaches an upper-layer leaf is your total — the lower tree’s leaves are bare cfIds, carrying no weight at all.
A two-person example. Alice contributed 3 entries, Bob contributed 2:
flowchart BT
subgraph SA [Alice's contribution tree]
cf1[cf_1] --> RA[R_alice]
cf2[cf_2] --> RA
cf3[cf_3] --> RA
end
subgraph SB [Bob's contribution tree]
cf4[cf_4] --> RB[R_bob]
cf5[cf_5] --> RB
end
LA["Roster leaf · Alice<br/>DID_alice · 300 shares · <b>R_alice</b><br/>dataset id · chain id · contract address"]
LB["Roster leaf · Bob<br/>DID_bob · 200 shares · <b>R_bob</b><br/>dataset id · chain id · contract address"]
RA -. the contribution-tree root goes into the leaf .-> LA
RB -.-> LB
LA --> ROOT["ROOT — the only value carved on-chain"]
LB --> ROOT
Alice’s contribution-tree root R_alice is packed into her roster leaf as an ordinary field. The two trees do not stand side by side; the lower tree’s root grows inside the upper tree’s leaf. When Alice claims her shares, she deals only with the roster tree — her leaf’s contents plus one roster proof — and her contribution tree never makes an appearance; it is reserved for provenance.
Why split it like this? An analogy: the upper layer is a payroll sheet — one row per person, one number, what you get paid. The lower layer is each person’s timesheet — listing what you did, without restating the money.
Each sheet has one job. The payroll sheet is the ledger: the number that gets minted into tokens, which must be exact and sealed. The timesheet is the justification: which work the payment rests on. Embedding the timesheet’s seal into your payroll row pins a note beside your number — “this amount corresponds to exactly these entries” — so provenance can be unfolded whenever someone asks, without the ledger dragging millions of line items around.
The timesheet is not just for the record; it also solves a scope-of-proof problem. Suppose you need to prove to a third party that your stake in this dataset includes one specific annotation you made last year. Without the lower tree, your only move is to hand over your entire list of entries — everything you ever did in this dataset — just to point at one item.
With the lower tree, you produce just that one: the cfId, plus its proof within your contribution tree, and the verifier learns “this entry is indeed part of your share basis” — without you handing over the rest. Stack the upper-layer proof on top, and it chains into one complete sentence: this contribution is mine, it is in my share basis, my share is in this dataset’s roster, and the roster’s root is on-chain.
This is the real reason the tree has two layers. The upper layer needs only one total to keep the ledger right, but “why these shares are yours” must be verifiable piece by piece — two demands pulling granularity in opposite directions, impossible to satisfy with a single tree. Embedding the lower root in the upper leaf stitches the two granularities together with one 32-byte field.
Claiming: Anyone Can Submit It for You
claimDatasetShares is permissionless: the contract does not check who is calling, nor require the caller to hold your DID. Any address, holding your proof, can send the transaction on your behalf.
Your first reaction is probably “isn’t that dangerous?” It isn’t — and it is deliberate. The key is that where the shares go is not the caller’s decision: the proof has contributorDidId baked in, and the contract mints to the DID-Bound Account (DBA) looked up from that DID — one dedicated contract wallet per DID, deployed automatically on first claim. Whoever sent the transaction paid the fee; the shares landed in your account. The only thing they could do for you was pay.
This design solves a very practical problem: a brand-new contributor may not have SOL for the fee. If claiming required sending your own transaction, you would face the absurd gate of “you need money to receive your money.” Permissionless claiming lets the platform, a campaign operator, or any third party submit on your behalf — without being granted any of your authority.
The same logic makes something else work: the list is fixed at assembly time, and if control of your DID changes afterwards — key rotation, account recovery — the precomputed Merkle table stays valid. The table names DIDs, not wallet addresses, and the mint target is looked up from the DID at claim time. Changing keys recomputes nothing.
Two more gates. First, each DID claims exactly once per dataset version — the contract remembers who has claimed, and a second call is rejected outright. Second, total claims are capped: the moment a claim would push the minted total past the totalShares fixed at assembly, the contract refuses it.
One more detail hides in the leaf. Two fields we haven’t explained: the cluster and the program address — the first names Solana devnet or mainnet, the second is the program’s own address.
They take part in no business logic. Their sole job: make the proof worthless anywhere else.
Imagine their absence. The same contracts get deployed to Solana devnet and mainnet, maybe to other chains someday; a single chain may host multiple instances across upgrades or forks. If a leaf held only the DID, the shares, and the dataset id, then a proof valid on a testnet would verify just as well on mainnet, or on another instance — wherever a dataset with the same id happened to exist. Shares would be minted out of thin air.
Bake the chain id and the contract address into the leaf, and that road is closed. Like a concert ticket — the venue and the date are printed on its face; it does not open every door. The proof is computed against “this chain, this contract, this dataset version”; swap any one of the three, and the math no longer lands — the contract rejects it.
You will never see this detail day to day, but it decides something you can feel: your claim credential cannot be carried off and abused elsewhere — and your own claim cannot be front-run from some other deployment either.
Finally, the ways a claim can fail. There are two, and they mean completely different things.
The proof doesn’t verify (InvalidProof) — the contract rebuilt your leaf from what you supplied, and it doesn’t land on the on-chain root. Most of the time this is not a malfunction — you are not in this version’s roster. Dataset versions are independent snapshots; version 2 need not be a superset of version 1, and the publisher is free to swap in a different set of entries. So first confirm which version you are checking against — then suspect the rest: a proof taken from another chain or another contract instance, or a list file in your hands that isn’t the frozen one.
Already claimed (AlreadyClaimed) — one claim per DID per version. Worth noting: it probably wasn’t you. Claiming is permissionless; the platform or any third party may have submitted for you. Nothing is wrong — the shares are sitting in your DID’s account; check the balance.
Verifying It Yourself
Every section so far has said “anyone can verify.” This section makes it concrete. Assume you trust no one. Verification needs exactly two things, both public:
- The on-chain record — the root and
totalShares, both a click away on the Alodium Explorer - The off-chain list file — its address is written in the dataset’s metadata
Step one: establish the list is trustworthy — three checks, each holding the off-chain file against an on-chain commitment:
- Check the file — hash the list file and compare with the hash committed in the metadata. If it matches, the file in your hands is the one frozen at the start, down to the character.
- Check the root — rebuild the two-layer tree from the file, compare your root with the one carved on-chain. If it matches, what the chain committed to is exactly this list.
- Check the total — sum the shares across all lines and compare with
totalShares. If it matches, there is no room for hidden inflation.
Step two: check yourself — with the list established, what remains is arithmetic: find your line, count your entries, eye your total. Your stake is your total divided by totalShares — the 3% from the beginning of this article is now a number you computed, not a number you were told.
The whole procedure needs no node, no permission from anyone, and an ordinary laptop.
There is one more verification you may not have noticed: the claim itself. Inside the claim transaction, the contract performs the same math you would do by hand — take your DID, your total, the root of your contribution tree, reassemble your roster leaf, walk the proof up to the root, and compare with the one carved on-chain. If it doesn’t land, the transaction is rejected and not a single share is minted.
So “it landed in my account” is more than receiving something; it does two things manual verification can’t. First, it changes what kind of conclusion you’re holding. Verify by hand, and what you get is a private conclusion — “my shares are real” — which convinces you and obliges no one. A claim makes the contract run the same verification on the spot, and the direct consequence of passing is shares minted into your account. What it produces is not “I am convinced”; it is an on-chain fact everyone must accept. Second, it leaves a trail: the mint itself is on-chain, so anyone who later wants to check “were these shares claimed against a valid proof” can look it up. Even if you never verified by hand — the moment your claim succeeded, the chain verified the whole path for you, and filed the conclusion in public.
One honest line to draw at the end: what verification can and cannot tell you.
It can tell you: your entries and your total were not miswritten, the list was not swapped, and the total leaves no room for inflation. It cannot tell you whether other people’s entries are genuine contributions. Imagine the assembler stuffing half a million entries of dubious origin into the list, diluting everyone by half — the protocol does not forbid this; composing the list is the publisher’s freedom by design.
What the protocol does is make it impossible to hide. The extra entries sit in the public list, attributed and weighted, so you can see precisely who diluted you and by how much. Every cfId is bound to a contributor identity and a task — whether it survives spot-checking is something anyone can go find out. And if you find it unfair, don’t claim this version — assembly is open: from the same contributions, anyone can assemble a more honest version under their own name and compete. A watered-down roster in plain sight is a liability in front of buyers.
So the precise position of this machinery: it does not rule on whether an allocation is fair; it abolishes “unfair and undiscoverable.”
One more boundary people worry about: what do you actually see during verification? Pseudonymous DIDs, content-derived cfIds, share numbers — ledger information, all of it. You never see the content of any data item; the plaintext sits in access-controlled storage, retrievable only with authorization. The system’s information is disclosed in layers — closer to the chain: less, and more public; closer to the content: more, and more restricted. Verification walks the top two layers and never touches the bottom one.
Back to the Three Problems
Now the three problems from the beginning can be answered one by one.
The number can change? — Not anymore. The list’s root is carved on-chain; alter any line of the file and the root stops matching, and the root itself no one can rewrite — its carver included. The platform wants to turn your 3% into 1%? It can’t — not for lack of nerve, but because this ledger has no “edit” operation at all.
The number can disappear? — It can’t be lost. The list file is public, and anyone may keep a copy; claimed shares are tokens in your DID’s account, never rows in some platform’s database. If the operator folds, another one picks up and runs, and your shares haven’t moved an inch.
The number can’t be checked? — The previous section was nothing but the checking procedure. You ask no one for a report, because reporting itself has been abolished: the ledger is public, and the arithmetic is yours.
The whole shift comes down to this: your ownership went from “a number a platform promised you” to “a fact you can compute yourself.” A promise needs someone to honor it. A fact doesn’t.
After the Shares Land: Where the Money Comes From
Shares are not money; they are the basis for splitting money. Each share is an SPL token sitting in your DID’s bound account, and real revenue waits until someone pays to use the dataset.
The unpleasant truth first: the protocol does not create revenue. Whether a dataset sells is the market’s business; a dataset nobody wants will split zero, however precisely its shares were computed. What the protocol guarantees is a different thing: every payment entering the split is publicly visible — when it arrived, how much, in which token — and it is split correctly, and you can collect it. As for what a data contribution tends to earn over the long run, we have published dedicated research, Pricing the Human Layer, and won’t restate its findings here.
When money arrives, the contract first cuts the platform fee at a public, fixed rate, then credits the rest to each holder’s pending balance according to holdings at that instant. Note: credited, not transferred — ten thousand holders do not get paid out one by one at that moment; that would crash straight into the cost problem from the beginning of this article. Your portion waits on the ledger until you come for it.
Accounting is kept per token. Each dataset maintains a list of accepted tokens; revenue arrives in whatever token it arrives in, and is booked in that token’s ledger. You may hold several pending balances in different tokens, collected separately, none interfering with another.
Collecting is done through claimRoyalty, with three inputs: which dataset, which token, your DID.
Two things about this function deserve a look.
First, like claiming shares, it is permissionless — the contract again does not check the caller. Anyone can trigger the collection for you, for exactly the same reason as before: where the money goes is not the caller’s decision.
Second, the ledger and the payout land in different places. The pending balance hangs on your DID-bound account — but at payment time, the contract looks up, right then, who currently owns the DID, and pays that address.
That second point matters more than it sounds: change your keys, and your pending revenue follows you. Key rotation, account recovery — as long as the DID is yours, the balance on the ledger still pays out to you. No migration, and nobody has to move ledgers on your behalf. Shares and revenue are booked to an identity, not to an address — and this is the moment where that choice finally pays off.
One natural question remains: shares are transferable — after a sale, does the ledger scramble? One rule: revenue belongs to whoever holds the shares at the instant it arrives. Sell your shares afterwards, and what is already booked to you does not follow them; whatever arrives later belongs to the new holder.
What It Costs
None of this comes free. Two costs, stated plainly.
First, the off-chain list must remain fetchable. The chain holds only the root, and a root cannot be run backwards into content — like the seal number on a safe: it proves the safe was never opened, but tells you nothing about what’s inside. Lose the full list and you cannot assemble a proof, which means you cannot claim — the shares sit on-chain in a state of “already yours,” and you can’t reach them.
So “why will the off-chain file still be there” is no small matter, and the protocol answers it on three levels:
- It lives on a public permanence layer. The list and the metadata exist to be publicly verified, so they are stored where “once written: publicly readable, never deletable” holds — not on some company’s server
- Content addressing makes every copy equal. The chain anchors the content’s hash, not a URL. Anyone can keep a copy — including you, the day you claim. Wherever a copy of the file comes from later, if its hash matches the on-chain commitment, it counts exactly as much as “the official one.” Availability is guaranteed not by any server’s promise, but by copies without limit, each able to prove itself
- Location is repairable, identity is not. A dead address can be replaced with a new one without touching anything on-chain — the record recognizes content, not location
Even so, this remains a real dependency: how the storage layer achieves “public and permanent” deserves an article of its own.
Second, once on-chain, the list cannot be edited. The allocation freezes at assembly; a mistake or an omission cannot be patched in place — only reassembled as a new version. A constraint — but also the protection itself: if the list could be edited, “how much you own” would once again be a number adjustable after the fact, and everything above would have been for nothing.
This constraint has an easily missed consequence: a new version does not erase the old one. The share contract has no function to revoke, burn, or freeze shares — tokens already claimed are, under the current contracts, beyond anyone’s reach. “Reassembly” is therefore not “correction” but coexistence: the wrong version and the right one live on-chain side by side, each with its own holders and its own revenue ledger.
It sounds like a defect until you turn it around: it is the price of the promise. If nobody can alter a line of the list, then nobody can take back shares that already belong to you — even shares sent in error. For irrevocability to protect you, it has to apply to everyone.
From how the numbers are computed, to how the shares reach your account, to how the money reaches your hands — not one link in this chain lives in anyone’s database. That is the whole meaning of “verifiable ownership allocation”: not that we are more worthy of your trust, but that this ledger doesn’t require you to trust anyone.