Skip to content

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.

Luis Medeiros

Reviewed by Luis Medeiros, Field CTO at ProtofireLast reviewed: November 2026

On this page
  1. Overview
  2. Why it matters
  3. On-chain vs off-chain
  4. What you get
  5. Keys
  6. Token law
  7. Our record
  8. KyberDAO, 2020
  9. The KyberDAO pool-master proxy contract, 2020
  10. Registration to claim
  11. How work starts
  12. Not the right fit
  13. Related guides and services
  14. FAQ

Work shipped for 60+ networks and 95+ protocols, including

  • Chainlink
  • Ethereum
  • Solana
  • Safe
  • Ripple
  • Aave

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.

Operators

Device key and operator wallet

The device key signs each reading from a secure element or TPM, and the wallet holds stake and claims.
Your network team, or a verifier it appoints

Verifier or prover

The verifier scores readings off-chain and posts one result per epoch.
Your network team, on its Safe

Contract roles

The Safe holds upgrades, the registry admin, the allowlist and the parameters, plus a pause.
Your network team, or its provider

Chain nodes

These are the chain's RPC and archive nodes.
Protofire builds

Device registry

The registry binds a device ID to its key, owner and status.

Intake and distributor

The intake takes an epoch's result, and the distributor releases the emission.

Stake and penalties

This contract holds operator stake and applies penalties.

Subgraph and operator views

The subgraph and views show records per device and per epoch.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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?
DePIN development is building the contracts that a decentralized physical infrastructure network settles on. They include a device registry and the intake of contribution proofs from verifiers or provers. They also include epoch reward distribution and operator stake and penalties. Protofire builds these contracts for networks on EVM chains. The network team's Safe holds the registry admin, the verifier allowlist and the emission settings.
Who can build the smart contracts for a DePIN network, and who runs the nodes behind them?
Protofire can do both, under two scopes. The contract scope covers the registry, the intake, the distributor and the penalties. Nodes for the network's chain come under a separate written scope on node infrastructure. That node scope lists each host and its hosting account.
How do networks keep one person from registering many fake devices?
Networks make each extra device costly and each claim checkable. A key generated inside the device's secure element or TPM, with an attestation that the verifier checks, ties a registration to hardware. Stake posted before work puts a price on each extra device. Scores then test behavior. For example, WeatherXM recalculates Proof of Location daily.
Can Protofire post the epoch root or run the scoring service for us?
No. The key that posts each epoch's result decides who receives the emission. So that key belongs to your team or to a verifier you appoint. Protofire builds the posting service and its runbook. The staff of your team or that verifier deploy the service in their own environment.
Which chains does a DePIN build target?
A DePIN build targets EVM chains such as Ethereum, Arbitrum, Base, Optimism or Gnosis Chain, with contracts in Solidity. Solana programs are outside this build.
Who decides how securities and MiCA rules apply to a DePIN token?
The network's counsel decides, on the facts of its own token. Protofire gives no legal opinion and codes the distribution rules as your team writes them.
Does MiCA exempt validator or network rewards from its offer rules?
MiCA exempts one kind of reward from its offer rules. The rules "shall not apply" where the crypto-asset "is automatically created as a reward for the maintenance of the distributed ledger or the validation of transactions" (Article 4(3)(b)). MiCA's recitals place such rewards "in the context of a consensus mechanism" (Recital 26). MiCA lifts the exemption where the offeror makes known an intention to seek admission to trading (Article 4(4)). The network's counsel decides whether a device network's distributions fall inside those words.

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.

Luis MedeirosField CTO, reads every request · LinkedIn

A demo or repository link also works.