A royalty based on usage needs a measurement of usage. That measurement has to be taken inside someone else's production system, which is the last place any team wants a third party looking. The design problem for Remetra is to count what was used while learning nothing else.

Start from a signed manifest

Before anything is measured, the application declares what it runs on. A manifest lists the registered components in a build, each identified by a hash of its contents, and the application owner signs it. The hash of that manifest is anchored on-chain, so later usage can be tied to a known build and a known set of terms.

Count at the boundary of the component

The metering layer sits where a component is loaded or called. On Linux servers that can be done with eBPF probes; for components shipped as WebAssembly, the host can count calls directly; elsewhere a language-level hook does the same job.

What it records is deliberately small: which component, how many times, in which time window, for which application. Arguments, return values and user data are never part of the record.

Aggregate before anything leaves

Individual records are batched into periodic receipts. A zero-knowledge proof shows that the totals in a receipt are the correct sum of the signed records behind it, without revealing those records. What reaches the chain is a set of totals and a proof, not a log of activity.

What the proof does and does not cover

It is worth being exact here. The proof shows that the arithmetic is honest. It cannot show that the application reported every call in the first place, because the application controls its own runtime. That part rests on the signed manifest, the licence terms a creator sets, and the ability to audit and challenge a receipt that looks wrong.

Settle in bulk

Paying per call on-chain would cost more than the royalty. Receipts instead settle in batches on Solana, where each period produces a single record of what every creator is owed, and creators claim against it. Payouts are claimed on Solana in USDC.