← Insomniac-VibeLabs Insomniac-VibeLabs logo

enerchain

Power is the new gold. Allegedly. We're testing the idea.

The short version

Enerchain is a proposal for an electricity currency. The pitch: when a site sends more power to the grid than it takes, hardware on the wire counts it and signs for it, one token per kilowatt-hour. It takes two sealed meters to do that, one where the power is made and one where it leaves, and a public ledger only credits what both of them back up. After that, the tokens move around like any other ledger asset. The code, docs and board files live in enerchain on GitHub.

It also has to behave when the grid operator isn't a good guy. The operator owns the wires on the other side of the meter, so the design assumes it might try to make an honest count get ignored, lost or never started, and has a rule for each of those.

The idea is that more and more of the economy runs on electricity, and generation is spreading out to rooftops. So why not denominate money in the thing everything runs on?

Fair warning up front: it's simulation and paperwork so far. No meter, board, or chip has been built.

How a kilowatt-hour becomes a token

Say a home array sends 10 kWh more to the grid than the house pulls from it. Here's what the design does with that.

Diagram of a solar array feeding a house through one sealed meter, with a second sealed meter at the grid connection. Both meters send signed records down to a ledger.
The whole idea on one napkin. Power flows left to right, and signed records drop down to the ledger.
  1. Two meters watch the wire. One sits at the array's terminals and counts what the panels made. The other sits at the grid connection and counts what went out and what came in.
  2. A chip does the adding, not a program. Each meter ticks once per watt-hour, and a small dedicated chip keeps the running totals in fixed logic. There's no port for anything outside the seal to write a number in, and the totals are meant to survive a power cut.
  3. Every net kilowatt-hour, a token. Each time exports climb another 1,000 watt-hours past their previous high, net of imports, the chip mints one token and builds a short record of its running totals.
  4. A second chip signs it. A separate secure chip keeps the key inside and knows two commands: sign the record the counting chip hands over, or erase the key. The radio only forwards what's already signed.
  5. The ledger takes the lower count. It checks each meter's signature against its certified key, makes sure the totals only went up, and credits the smaller of the two token counts. Here that's 10 tokens.

The records are running totals, so losing one costs nothing. The next one carries everything forward.

What's a little different about it

People have poked at energy tokens before, so here's what's unusual about this take.

A token doesn't prove the energy was renewable, that it displaced anything, or that it wasn't also sold to a utility somewhere else. That's a market-design question, and it's still open.

What if the grid operator plays dirty?

Most of the design worries about a site owner minting too much. The newest chunk of the repo worries about the opposite: the operator, who owns the wires and might even sit among the certifiers, getting a supplier credited for less than it sent.

It can't forge a lower count, since each meter counts inside its seal and signs what it counted. But there are other ways to hurt a supplier, and the repo now has an answer for each one.

Curtailing an inverter under grid rules isn't a counting fault, so it's out of scope. The write-up, with the arithmetic, is a dishonest grid operator in the repo. All of this is simulation and paperwork too.

What's in the repo today

Four pieces. All of them are things you can read or run, and none of them is a physical object yet.

Around those sit the whitepaper, a threat model, and the open-items list. Software and docs are Apache-2.0. The hardware files are CERN-OHL-S-2.0, which means anyone who builds on them has to share their changes the same way.

Where enerchain is headed

Here's the loose roadmap. It's phases, not a schedule, and nothing has dates. The order can shuffle if a better idea turns up at 3 a.m.

  1. Today · v0.0.1 The paper-and-simulation prototype A Python ledger, wallet and devnet, chip RTL that simulates end to end, signer firmware tested on a host, and revision B board files. The part that already works, on a screen.
  2. Phase 2 Finish the simulation Regional prices for one unit, gate-level simulation on a real foundry library, and a multi-node network with a proper BFT validator protocol.
  3. Phase 3 A bench prototype Settle the datasheet questions, build one sealed meter pair, and feed its output to the devnet. One board alone must not mint. A battery-backed tamper domain comes with revision C.
  4. Phase 4 Grid trial Residential injection onto a cooperating feeder, and transfer of the resulting coins on a test ledger.
  5. Phase 5 Wider regions More than one terrestrial ledger, delay-tolerant transfer between them, then planetary and system books. Same unit, bigger neighborhood.
The glowing dot is what exists today. Everything below it is planned, not built.

The rough idea: get the simulation airtight, then build one real meter pair on a bench, then see whether it holds up on an actual rooftop. Phase numbers aren't release tags.

The full plan, nitty-gritty included, is in the roadmap in the repo, and the list of unfinished business is in open items. Everything is public on GitHub if you want to poke around.

Quick questions

What is Enerchain, in plain terms?

It's a proposal for an electricity currency. Coins get created when sealed meters measure power delivered to a grid, and the count is tied to the voltage, current and time the meters saw. Each reading is signed, so the signer can't later deny it, and anyone can transfer the coins on a public ledger.

Is this like Bitcoin mining?

Pretty much the opposite direction. Proof-of-work spends a lot of electricity to order a ledger. Enerchain doesn't use that spending as the mint: injecting power into the grid is the mint, so the coin records electricity contributed instead of electricity burned.

How can anyone trust a meter's number?

It takes two sealed meters, each with its own key: one at the generator and one at the grid connection. Both have to sign before the ledger credits anything, and it only credits the smaller of the two counts. By design, the counting is done by a small dedicated chip that nothing outside the seal can write to. A separate secure chip holds the key and signs only what that chip gives it, and only counters that go up. Opening the cover while powered wipes the key, and the meter signs one last tamper record first so the wipe is on the record. Opening it while unpowered isn't caught yet, and the repo says so up front.

Why two meters instead of one?

One meter can only say that energy passed through it. It can't say where that energy came from. So the generator meter says the power was made, the grid meter says it left the site, net of what came in, and the ledger credits the smaller count. A meter with no partner mints nothing. The pairing also caps the damage: a meter that's been opened or fooled can't mint past what the other one saw. If one person controls both meters and opens them together while they're unpowered, that cap doesn't help. It's on the open-items list.

What stops someone from cycling a battery to farm coins?

Meters only mint on net export. A battery that buys from the grid at night and sells it back at noon never pushes the net-export high-water mark up, so it mints nothing. There's a test for exactly that.

What if the grid operator tries to cheat a supplier?

It can't forge a lower count, but it could try to get an honest one ignored, so the repo has a rule for each way. A wiped meter signs a last tamper record. A silent or revoked grid meter sends the generator's kilowatt-hours to escrow, which a quorum of certifiers can release. Revocations need a listed reason and evidence, give the supplier 30 days to contest, and no single industry can approve one alone. Pairing starts from the counts on the day the supplier asks. An optional third meter on the site's own use flags energy taken before the grid meter. Small taps slip under the loss allowance, and it's all simulation so far.

Is it built?

The software is real and runs: a Python ledger, wallet and devnet, plus chip RTL that simulates end to end and signer firmware tested on a host. The hardware is not: nothing has been built or taped out, and there's no chip layout yet. It's a research prototype with no independent review.

Is a token worth anything?

Right now, no. Nothing runs outside a test network, and the repo says its test keys and wallets must not hold value. Longer term it's an open question. Supply has no cap, and nothing lets you trade a token back for energy. Whether anyone would want to hold one is the idea being tested, not something the code proves.

Disclaimer

Everything here, including the code, documentation, and this page, is provided "as is," without warranty of any kind, express or implied, including fitness for a particular purpose, accuracy, or non-infringement. Insomniac-VibeLabs accepts no liability for any damages, losses, or other consequences arising from use of, or reliance on, any of it.

This is a hobby research prototype. It isn't money, it isn't a financial product, and it hasn't had independent review, so don't count on it for anything that matters. See the repository for its license terms.