DePIN Development for Device Networks on EVM Chains
Protofire's DePIN development delivers the contracts for a device network that launches on an EVM chain. They cover the device registry and proof intake, each epoch's reward distribution and operator penalties. Your own Safe holds the admin roles. Protofire built the staking module for Aethir's GPU network.

Reviewed by Luis Medeiros, Field CTO at ProtofireLast reviewed: November 2026
On this page
Work shipped for 60+ networks and 95+ protocols, including
One posted root or proof decides each epoch's emission
In a device network, one posted number decides which wallets receive each epoch's emission. Your devices sign readings in the field. The number is a Merkle root or a proof that a verifier computes off-chain.
For example, WeatherXM computes allocations daily and submits the root hash of a Merkle tree to its contract. Station owners withdraw with a Merkle proof (WeatherXM).
Protofire's DePIN development builds the contracts around each epoch's posted root or proof, for a network that settles on an EVM chain. We build the device registry and the intake of each epoch's result. We also build the distributor and the contracts for operator stake and penalties.
Who holds each part of a DePIN build
Protofire builds the contracts. Your team's Safe holds the contract roles, and operators hold the device keys and wallets.
Device key and operator wallet
Verifier or prover
Contract roles
Chain nodes
Device registry
Intake and distributor
Stake and penalties
Subgraph and operator views
A contract sees only the root and the key that posted it
A DePIN contract sees only the key that posted a result and the root or proof that the key sent.Whether the devices behind that result did the work is decided off-chain, where a verifier turns signed readings into a score per device. So if the posted root is wrong, the contract pays the wrong wallets.
Three faults can occur in a device network. One device registered twice is counted twice. A reading replayed from last week counts again. A result from a key nobody approved settles an epoch. Each fault is refused when somebody wrote the rule down, and it is ignored when nobody did.
Who checks the proof: the chain or a verifier
Either the chain verifies each proof, or a verifier posts one result per epoch.
Public example
The chain verifies each proof: On Filecoin, the provider answers each WindowPoSt challenge with a zk-SNARK proof in a chain message, within a 30-minute deadline (Filecoin).
A verifier posts each epoch's result: WeatherXM submits a Merkle root daily. IoTeX's tutorial contract, marked work in progress, verifies a RISC Zero proof (IoTeX).
What your contracts must refuse
The chain verifies each proof: Nothing extra, because the protocol refuses invalid proofs itself.
A verifier posts each epoch's result: A result from an unknown key, a second result for one epoch and a proof that fails verification.
Where an error can hide
The chain verifies each proof: In the prover's answer, which the chain rejects.
A verifier posts each epoch's result: In the verifier's scoring, so the verifier's inputs have to be published or reproducible.
What Protofire delivers in a DePIN development build
Device registry with one registration per key
The registry binds each device to one public key, an owner wallet and a status. A second registration of the same key reverts. Protofire builds the registry to emit an event for each admission, suspension and retirement. Your registry admin signs each status change.
Intake of epoch results from allowlisted keys
The intake contract takes an epoch's root or proof from a key on your allowlist, once per epoch. The contract records who posted what and when. Protofire builds the intake and the record around the rules your team sets.
Merkle distributor with claims traced to the posted root
Operators claim for their own wallets with a Merkle proof, and each claim traces to the root that was posted. Protofire builds the distributor to release each epoch's emission on your schedule. The distributor draws from your token's contract where minting already takes place.
Operator stake and penalty contracts
Operators post stake before a device joins. A penalty takes stake or excludes a device for a set number of epochs. Protofire codes the penalties as your team and its counsel write them. Each penalty event names the device, the epoch and the rule applied.
A settings register and preparation for an outside audit
Your operators can read each setting before a change applies. A register lists the emission per epoch, the thresholds and the penalty sizes. It also lists the claim delay and the verifier keys. Each setting is tied to the Safe or timelock allowed to change it. An audit firm you select reviews the code before launch. Protofire prepares the code and fixes what that firm finds (preparing code we wrote for an outside audit). No audit makes code free of bugs.
A subgraph for dashboards and accounts
Protofire builds a subgraph over registrations, results, claims and penalties, plus operator screens for each device. The subgraph gives you records per device and per epoch.
Who holds the keys after launch
After launch, the key that posts each epoch's root or proof decides which wallets receive that epoch's emission.That key belongs to your network team or to a verifier your team appoints. Protofire builds the posting service and its runbook, and the staff of your team or that verifier deploy it.
Your Safe holds the following, and each is changed through a timelock:
- The registry admin.
- The verifier allowlist.
- The emission and penalty parameters.
- Upgrades.
The pause is outside the timelock, so it can hold a root inside the claim delay. You assign the pause to your Safe or to a guardian Safe you name.
Your engineer deploys from your key with Protofire's scripts. Device keys are stored inside the devices, and operators hold their wallets and stake. After launch, no key or Safe role named in this section belongs to Protofire, and Protofire posts no result.
A verifier can still be wrong, and no contract sees the error. The verifier can count a device that did no work or skip a device that did. It can also post a root that pays a wallet the wrong amount. DoubleZero's counsel told SEC staff that link telemetry must be "publicly accessible" to be verifiable (letter of 25 September 2025). The build publishes each epoch's inputs as far as your rules allow.
Token law for DePIN networks in the US and EU
Your counsel decides how US and EU token law applies to your network's token.Protofire writes the contracts as your rules state them.
SEC staff answered the DoubleZero Foundation's counsel on 29 September 2025. The letter concerns tokens that the DoubleZero network pays to connectivity providers and to the providers that calculate those payments. Staff would not recommend enforcement action if, in reliance on counsel's opinion, those transfers are not registered. The position rests on the letter's representations (SEC).
On 17 March 2026, the SEC and the CFTC issued Release 33-11412, effective 23 March 2026. The release classifies crypto assets and covers protocol mining and staking. It does not mention storage, bandwidth, sensor or GPU networks (Federal Register).
In the EU, MiCA requires whoever offers a crypto-asset to the public to be a legal person and to draw up, notify and publish a white paper before the offer, unless an exemption applies (MiCA, Article 4(1)). Your network's own legal entity issues the token and makes any offer of it. Counsel decides how these texts apply.
Our record: the staking module for Aethir's GPU network
For Aethir's distributed GPU cloud, Protofire built a staking module with one pool per network group.The three groups are token holders, GPU container providers and node checkers (case study). The container pool tied distributions to GPU utilization, so what hardware providers received followed demand on the network. Aethir's emission schedule set the amounts.
Our record: the KyberDAO staking proxy of 2020
The claim logic from Protofire's 2020 staking build for KyberDAO applies to operator claims in a DePIN network.
The KyberDAO pool-master proxy contract, 2020
Protofire built the pool-master proxy contract for KyberDAO staking in 2020.Kyber Network's post of 28 May 2020 thanked Protofire for "professional support" on a "trustless smart contract proxy" for non-custodial KNC staking and voting delegation.
Six steps from device registration to claims and penalties
- Step 1
The registry admits the device
The registry binds the device ID to the public key from the device's secure element or TPM. It also binds the owner's wallet and a status: pending, active, suspended or retired. A device turns active when your onboarding rule is met, for example once stake is posted. - Step 2
The device signs each reading
Each reading contains the device ID, the epoch, a counter and a signature. A reading whose counter has already been seen is dropped. - Step 3
The verifier scores the epoch
Off-chain, the verifier checks signatures first, then location and quality against your rules. The verifier keeps the inputs, so a second party can recompute the epoch. - Step 4
The verifier's key posts the result
Once per epoch, the verifier's allowed key sends one Merkle root or proof. Claims open after a delay that the parameters set. During that delay, a pause role outside the timelock can hold a root. Where your rules let operators dispute a root, the contract takes a bonded challenge inside the delay. The party your rules name settles the challenge. - Step 5
Operators claim
Each operator claims with a Merkle proof. If a root is posted per epoch, a claimed bitmap marks each leaf. If the root holds running totals, the contract stores what each wallet has claimed so far. Either way, the contract refuses a second payment. - Step 6
Penalties apply after the delay
Once the delay has passed, a third party can call a penalty that a posted result names. A penalty role on your Safe can then apply a penalty that your rules allow.
How work with Protofire starts
Protofire starts from three inputs: your written emission and penalty rules, the format of a device's signed reading, and one sample epoch of readings.You share the sample under NDA, with operator wallets and locations removed. Protofire's first written proposal orders the modules. The proposal also states which proof method it assumes: Merkle roots posted by a verifier, proofs checked on chain, or both. Commercial terms are on how we work.
- Proposal
- In writing, one business day after the discovery call: findings, a plan in phases and the first step we recommend.
- Price
- Fixed per phase when you commission it, against written acceptance criteria. Overruns inside them are ours to absorb, invoices follow delivered milestones, and you can stop at any phase boundary. Anything we operate after launch is priced in the proposal as its own recurring line, with the notice to end it.
- Ownership
- Code we write for you, contracts, the keys and credentials this work creates and the accounts your infrastructure runs in are yours by contract, within the license of any third-party software involved. Keys that a custody platform or a staking provider holds under its own key model stay with it under your contract; every other custody key stays with you or the custodian you appoint. Where the scope places something on servers we rent, it says what moves to you and when. An NDA is available from your first message, and we sign a data processing agreement (DPA) together with it.
- After launch
- Delivery closes with a hypercare window and a defect warranty, with their terms written into the proposal. A service we operate continues under its written scope until that scope ends.
- Access
- Read-only by default. A role that can start requests only if your written scope names one; never a signer, approver, administrator, key holder or recovery role on your contracts, wallets or custody platform. Services we build call each platform on credentials your staff issue and keep in your vault. Anything that approves or moves funds runs in your environment, and a scope under which we operate a service lists every write call it makes. Where the scope has us operate nodes, validators, monitors, explorers or indexers, it names the role and any key we hold on those servers, and in your own cloud account you can remove it.
- Licenses
- Protofire is an engineering firm and holds no financial or crypto-asset license; licensed activity stays with you and your providers.
How we work shows a worked proposal.
When a DePIN contract build does not fit
Four cases need a different build.
- Firmware and key provisioning at the factory belong to the device maker.
- Your token logic runs on Solana or another non-EVM chain. There it runs as programs in that chain's language, outside this build.
- Your storage network settles on a chain that checks proofs itself, as Filecoin does. Its providers need nodes and tooling from node infrastructure, and they need no distribution contracts.
- You stake an existing token with no device registry, which is staking module development. Or you sign blocks against a stake, which is validator operations.
FAQ
What is DePIN development?
Who can build the smart contracts for a DePIN network, and who runs the nodes behind them?
How do networks keep one person from registering many fake devices?
Can Protofire post the epoch root or run the scoring service for us?
Which chains does a DePIN build target?
Who decides how securities and MiCA rules apply to a DePIN token?
Does MiCA exempt validator or network rewards from its offer rules?
Get a proposal
Tell us what you are building. An engineer reads it, we have a short call, and the written proposal follows within one business day.
