Card Guardians

Test tokens, lab keys Vault R2T5

The money behind every Stables card sits in a vault on Minima. Guardians are independent programs, each run by a different operator with their own key, that watch that vault day and night. Any one guardian can stop a payout it finds wrong. Guardians can never pay anyone.

When everything works
  • Paying needs no one. Card money moves from phone to phone by touch, offline, with no server.
  • Your money is back in Savings within hours. You ask from the app, the approvers check and approve, and after a safety wait of about 4 hours the vault pays.
  • Nobody holds the money. The vault is a script with no key. It pays only by its own rules, so neither the approvers, nor the guardians, nor the Stables lab can take money out.
What keeps it safe and unstoppable
  • Every payout is checked twice. First by the approvers, then by the nine guardians during the wait, which always leaves them at least 3 hours. One guardian stops a wrong payout; three freeze everything.
  • If the approvers do not answer, the vault still lets your money come back. After 3 days, a request they neither approve nor refuse can be paid with no approver key. The guardian program that will post that payout by itself is being built; until then it is posted by hand.
  • If the approvers disappear, nobody can steal through their absence. Payouts pause instead of opening. After 3 days of silence, six of the nine guardians can announce a handover to backup approvers fixed when the vault was created. After a 7-day public wait anyone can carry it out, and payouts resume.
  • If the approvers refuse a valid request, the guardians can overrule them. Five of the nine can have it paid after 3 days. A refusal becomes final only if the approvers confirm it after 7 days.

All of this is written in the vault's script on Minima, not in a server.

Today every seat holds a key kept by the Stables lab, and the tokens have no value. The first independent guardians will run on a phone, a personal computer and a separate server, none of them the approvers' server.

Who does what
The vault
A script on Minima, no key

Holds: the money behind every card.

Pays only: an approved request once its wait is over, a request left unanswered for 3 days, or a refused request that five guardians overrule.

Nobody can change it or take money out any other way.

See the vault on the Minima explorer
The approvers
11 keys, 7 must sign

Do: approve or refuse each request to move card money back to Savings, and confirm every 6 hours that they are alive.

Cannot: pay before the wait, lift a freeze, or choose the guardians.

Today: three machines, all held by the Stables lab.

The approvers' program on GitHub (test version 0.1)
The guardians
9 seats

Do: re-check every request and every approval. 1 stops a payout, 3 freeze all, 5 lift a freeze or overrule a refusal, 6 hand over from silent approvers to backup ones.

Cannot: pay anyone or approve anything.

Today: every seat held by the Stables lab.

The guardian program on GitHub (test version 0.1)

The rules these groups follow are written into the vault when it is created. Today the Stables lab sets them and operates every role. The Stables Council, the community, will decide them, and will choose who operates each role, by bidding and for a fixed term, with pay that rises with the quality of the service.

How a request is checked

Moving card money back to Savings is the one moment money leaves the vault. Each request is checked twice, by two separate groups, before the vault pays.

Step by step
  • 1. You ask. The app posts your request on Minima. It carries its own proof: the signature of every phone the money passed through, and the hardware certificate behind each key.
  • 2. The approvers check. Each of the three approver machines checks the request by itself, on its own Minima node, with the same checking code the app uses: every signature on the money's path, every hardware certificate, and that this money was not already paid out or passed on. Seven of the eleven keys must then sign the decision, called a seal.
  • 3. The wait. An approved request becomes payable at least 3 hours after its seal, usually close to 4. That time belongs to the guardians.
  • 4. The guardians check again. Each guardian program runs beside its own Minima node. Every 5 minutes it runs the same check on every request, rebuilds each seal's approved and refused lists from the chain, and compares them with what it found itself.
  • 5. The vault pays. Once the wait is over the vault pays the address the card's own key signed, and only that address. It keeps the list of money already paid on chain, so the same money is paid once.
How a wrong payout is blocked
  • The approvers refuse it. A request that fails the check is listed as refused in a seal, with its proof on chain, and is set apart.
  • One guardian stops it. A single guardian signature during the wait sets the request apart. From then on it is paid only with five guardian signatures, once the approvers have approved it again or after 3 days. An approval never gets past a stop.
  • An approval a guardian did not pass is stopped at once. The guardian program stops any request the approvers approved that its own check did not pass.
  • Three guardians freeze everything. All payouts pause, the 3-day rule included, until five guardians lift the freeze.
  • The vault limits each day. Approved payouts are capped at 2,500 per day in each of a token's 8 record shards, and payouts under the 3-day rule at 125. One request is at most 2,500.
  • Money only goes home. A payout always goes to the address the card's own key signed. A guardian can delay a payout, and can never send it anywhere else.

Where this stands today. On Minima mainnet, with test tokens, these have been carried out with real phones: a refusal, a stop and its release by five guardians, a freeze and its release, and a payout under the 3-day rule. The overrule of a refusal by five guardians is written in the vault's script and passes its tests against that script; its first run on mainnet is still to come.

The guardian programs run read only today: they check, record and alert, and a person posts each stop or release with the program. A stop holds until five guardians release it, so a guardian's mistake costs time, never money. Every approver and guardian key is still held by the Stables lab, and an independent review comes before any real money.

The rules, written in the vault's script
Stop a payout
N/A
guardian is enough
Freeze all
N/A
guardians together
Lift a freeze
N/A
guardians together
New approvers
N/A
guardians, after 3 days of silence and a 7-day public wait
Payout wait
N/A
after an approval
Election
N/A
for a seat with no check-in

Live status

These figures change. They are read from the chain and the approvers' own log by hand, on the date shown, until the live service follows this vault. Each guardian that publishes its own log is read directly from its own repository.

Chain data recordedN/A

The approvers

Eleven keys that decide each request to move card money back to Savings. Seven must sign every decision, called a seal, and a seal must appear at least every 6 hours to show they are alive. They approve or refuse. They can never pay before the wait or lift a freeze.

Last seal
N/A
their latest signed decision
Heartbeat
N/A
a seal at least every 6 hours
Seals made
N/A
since the card began
Payouts approved
N/A
paid after a seal
Requests refused
N/A
refused in a seal
Requests open
N/A
waiting for a decision

Read from the chain by the card figures service of the Stables lab.

The guardians

Nine seats, each a key and a program meant to be run by a different operator. They re-check every request and every approval against the chain. One guardian can stop a wrong payout and three together can freeze all payouts. They can never pay anyone.

Active seats
N/A
checked in within the last 30 days
Last approval checked
N/A
rebuilt from the chain by a guardian
Guardians publishing
N/A
their own public log
Requests checked
N/A
payout requests re-checked
Money checked
N/A
in the requests they checked
Approvals checked
N/A
rebuilt from the chain
Payouts stopped
N/A
found wrong and stopped
Hours watched
N/A
all guardians together

Data: guardians.json. Edited by hand. A guardian that publishes its own log has its card read from its own repository, never through the approvers' server. Check-in dates can be checked on chain against the seal head .