L4Agents work the night shift
I file issues on GitHub and Linear during the day. At night nico-agent hands each one to a builder agent, which writes the change and opens a pull request. A second agent, on a different harness, reviews it and sends it back if something is missing. In the morning I read what's waiting and merge.
Here's a night of nico-agent, replayed.
Simulated night22:00
Your day local time
Queue issues for tonight
- #45Bump pallas to the latest releaseQueued
- #41Indexer drops rollback events on forkQueued
- #38Flaky test in tx builder fee estimateQueued
- #44Add CIP-30 signData to the wallet adapterQueued
- #47Indexer: retry when the node drops the socketQueued
- #49Docs: example for a private counter contractQueued
- Building
- Reviewing
- Approved
- Changes requested or blocked
- Handoff
Morning Waits for 07:00
Nothing yet. Pull requests land here once the reviewer is done with them.
- PR #218#45 Bump pallas to the latest releaseApproved on the first pass
- PR #220#38 Flaky test in tx builder fee estimateApproved: the seed is fixed, 200 runs green
- PR #219#41 Indexer drops rollback events on forkApproved after one round: a rollback test was added
- PR #222#47 Indexer: retry when the node drops the socketApproved on the first pass
- PR #221#44 Add CIP-30 signData to the wallet adapterApproved after one round, with 2 comments for you
- PR #223#49 Docs: example for a private counter contractNeeds a human decision: may anyone reset the counter, or only the deployer?
Log
L3Prove it without showing it
Say a Midnight contract should only let you in if your GitHub repo has 100+ stars. It can't read GitHub, and you'd rather not put the real number on a public chain. Thoth, which I co-authored at TxPipe, handles that: independent attestors check the fact and sign what they saw, your device proves enough of them signed and the number clears the bar, and the chain sees only the proof.
Your device
Everything on this side of the copper line stays private.
The fact
The contract wants to know your repo has at least 100 stars.
Private. Try a number under 100 to watch the rule fail.
Private. Try an amount under 100 to watch the rule fail.
Attestors check it and sign
Three independent services the contract already trusts. Each fetches the star count itself through Reclaim zkFetch and signs what it saw. Any two signatures are enough; tap one to take it offline.
Your device proves it
A small program (a Compact circuit) runs right here. It checks the signatures against the trusted keys, then checks the rule on your hidden number. Only if both pass does it produce a proof.
Dashed boxes are private inputs. They never leave this device.
What leaves your device
- Your repo's stars · 142stays here
- Attestor signatures · 2stays here
- The proofgoes to the chain
- A nullifier, a one-time stampgoes to the chain
Change the number or take an attestor offline, then press Prove it. Watch what crosses the copper line.
What a developer writes: Thoth's modules from @txpipe/thoth-contracts, plus one line for the rule.
import "attestation"<24, 3, 2, 2, 3> prefix A_; // 2-of-3
import "attestor_registry"<3, 24> prefix R_;
export circuit requireStars(id: Bytes<32>, min: Uint<64>): [] {
const c = A_openClaim(id); // private vaulted claim
assert(c.present[0] && c.values[0] >= min, "too few stars");
}import "attestation"<24, 3, 2, 2, 3> prefix A_; // 2-of-3
import "attestor_registry"<3, 24> prefix R_;
export circuit requireOutput(id: Bytes<32>, min: Uint<64>): [] {
const c = A_openClaim(id); // private vaulted claim
assert(c.present[0] && c.values[0] >= min, "output too small");
}The chain
Public. Anyone can read it, so it only gets what crosses the line.
What the chain received
- Your repo's stars
- never sent
- Rule
- none
- Nullifier
- waiting
- Proof simulated
- none
- Verdict
- waiting for a proof
The nullifier is a SHA-256 hash of your hidden number and a random secret kept on your device. The chain keeps it so the same proof can't be used twice, but it can't work back to your number.
Public record
synthetic blocksEvery submission stays here for good. A nullifier already in this list is refused, and no hidden value ever appears.
Nothing recorded yet.
L2Nobody has a balance
On Cardano a wallet holds no balance, only unspent outputs left by earlier transactions. To pay, you spend whole outputs, and the transaction creates new ones: the payment, and your change minus a fee. Each output can be spent once. Pay someone and watch the graph grow.
Scroll sideways inside the frame for the whole graph
- Yours, unspent
- Spent
- Someone else's
- Transaction
These transactions are toys. Real ones, drawn the same way, are in Lace Anatomy, the Cardano explorer I built with the team at TxPipe.
Pay Alice 9 ada
Tap your copper outputs to use them as inputs. Each one is spent whole.
- Inputs none selected
- 0.00
- Needed 9 + 0.17 fee
- 9.17
This transaction creates
- Alice
- 9.00
- You, as change
- –
- Fee to the network
- 0.17
A wallet would show you a balance of 40.50 ada. That is only the sum of your 4 unspent outputs.
L1Where the language meets the ledger
Tx3 is TxPipe's language for describing Cardano transactions. I didn't write its grammar. My part sits under it, where a Tx3 block becomes a field of a real Cardano transaction: reference inputs, collateral, min_utxo and treasury donations. Switch them on and watch the body re-encode, byte by byte.
Transaction body
- Fee
- Minimum output
L0Eight LEDs are a byte
Before any of the above there was C on a microcontroller, an electronics technician's degree and a soldering iron. Draw frames on the matrix. The board plays them, and the firmware next to it rewrites itself to match.
#include <avr/io.h>
#include <util/delay.h>
static const uint8_t frames[8] = {
};
int main(void) {
DDRB = 0xFF; // eight pins out
for (uint8_t i = 0;; i = (i + 1) % 8) {
PORTB = frames[i];
_delay_ms(140);
}
}