An independent federated Cashu mint

Cowrie

Signed by a federation.
Kept by a contract.

A federation of guardians signs ecash with threshold BLS. A Move smart contract keeps the ledger and holds the reserves, so anyone can audit it, anyone can redeem, and only so much can leave each hour.

The problem

Every Cashu mint has a keeper.

Cashu gives us private, instant ecash. But each mint is one operator holding one key and one pot of reserves. If the keeper sails off, the shells sail with them.

Federated Cashu shares the key among guardians, so no one can sign alone. But the guardians still have to keep the ledger, and still guard the chest.

A harbor keeper holding a single iron key An open, empty sea chest

How Cowrie works

Guardians sign. The contract keeps the vault.

Cowrie follows Cashu's federated mint design and moves consensus and custody into a Move smart contract on Sui.

A lit lighthouse

A federation signs

Five guardians each hold a share of the key; any four can sign a note, none can sign alone.

  • 4-of-5 threshold BLS12-381
  • Dealer-free Pedersen key generation
  • Guardians sign only what the contract has recorded
A stone harbor vault

A contract keeps the vault

The MintVault Move contract does the jobs a mint operator used to do.

  • Records every spent note, so nothing is spent twice
  • Holds the reserves in plain sight, on-chain
  • Pays out any valid note itself: no one can refuse
An hourglass

Safety when things go wrong

Every signature share is checked before it's used.

  • A forging guardian is caught; the rest keep signing
  • Too many offline and issuance halts safely
  • Even if guardians collude, an hourly limit caps withdrawals

Compared

Same Cashu idea, different foundation.

Single Cashu mintFederated Cashu (typical)Cowrie
Signing keyOne operatort-of-n guardians4-of-5 guardians, dealer-free key generation
Who records spendsOperator's databaseConsensus the guardians run togetherMove contract on Sui; guardians run no consensus
Where reserves sitOperator's Lightning nodeHeld by the federationMintVault shared object, visible on-chain
RedemptionOperator must agreeFederation must agreeContract pays any valid note
If key holders colludeEverything is lostEverything is lostBounded by an hourly withdrawal cap, and visible

Why it works

A signature anyone can check, even a contract.

A normal Cashu note can only be checked by the mint that signed it. Cowrie's BLS12-381 notes can be verified by anyone, offline, with no extra proof, which is what lets a smart contract pay them out on its own.

48 Bper signature, no DLEQ proof needed
32.6%smaller tokens than secp256k1 + DLEQ
1 txto settle hundreds of streamed notes
1.2 msto verify a note offline
A ship's manifest covered in rows of cowrie shells

An independent mint

Written from scratch in Rust and Move.

Cowrie is a clean-room implementation of Cashu's federated mint. It speaks the Cashu API, ships its own browser and terminal wallets, and the same binary also runs standalone on Lightning for operators who don't want an on-chain vault.

NUT-00 V4 cashuBNUT-03 swapNUT-04/05 bolt11 + sui NUT-07 check stateNUT-09/13 restoreNUT-11 P2PK NUT-14 HTLCNUT-17 WebSocketNUT-24 HTTP-402

Run it

Try it in thirty seconds.

Start the mint, open the playground, and make a guardian lie.

# start the 4-of-5 mint, this page and the playground
cargo run -p cowrie-cashu-mintd --bin cowried -- --bind 127.0.0.1:3338 --data-dir ./cowrie-data

# settle against the Move vault on a Sui localnet
./scripts/deploy-sui-localnet.sh

# Rust and Move tests
cargo test --workspace
sui move test --path cashu/move/cowrie_cashu