Seedelf-Wallet

What we claim

Seedelf is a stealth wallet on Cardano. This page says what the proofs in this folder let us claim about its on-chain contracts, and where the claim stops. They also cover the contracts of Lovejoin v2, the mixer the Seedelf Wallet uses. README.md has the detail, and how to check it.

Short: Seedelf’s contracts are formally verified, and so are the Lovejoin v2 contracts it uses: machine-checked proofs on the deployed bytes say exactly when each one accepts, for every transaction.

In full: Lean 4 proofs on the compiled bytes state exactly when each Seedelf contract accepts, for every transaction, with no limit on inputs, outputs or proofs. They do the same for each Lovejoin v2 contract Seedelf uses. All of them are checked by Lean’s kernel. Seedelf’s are also proved by Blaster, IOG’s tactic that hands a goal to the Z3 solver, as a cross-check by another route. The proofs use IOG’s model of the machine Cardano runs scripts on (PlutusCoreBlaster, on a fork), treat the cryptography as opaque (they prove what the scripts check, not that the cryptography can’t be broken), and assume the ledger’s own rules only where stated. This is not an audit of the contracts.

What backs it

The README’s The scripts says what each contract does.

Contract Theorem Checked by
Seedelf wallet Seedelf.Every.wallet_accepts_iff (walletAccepts, in the terms of its Aiken source, wallet.ak), any number of signatories the kernel
Seedelf policy Seedelf.Every.policy_accepts_iff (policyAccepts, in seedelf.ak’s terms), any mint and inputs the kernel
always_false Seedelf.Every.always_false_errors the kernel
Lovejoin mix_box Lovejoin.AnyTx.BoxPurposesAll.every_context_iff the kernel
Lovejoin mix_logic Lovejoin.Every.Readable.mix_logic_accepts_iff the kernel
Lovejoin one_shot_mint Lovejoin.Every.Readable.one_shot_mint_accepts_iff the kernel
Lovejoin reference_holder Lovejoin.AnyTx.PurposesKernel.reference_holder_every_context_errors the kernel

The Blaster cross-checks are the Wallet*AnyTx modules and Signers/ (none to 128 signatories, tied to every context by AnyTxShapes), and the policy’s PolicyPurposeAnyTx, PolicyRedeemerAnyTx, PolicyLines*AnyTx (a mint of no lines, or of 2 to 5) and Slice/’s Rule (one line), tied to the contexts they cover by PolicyShapes. A mint of six lines or more has the kernel’s theorems alone. Seedelf’s are on the bytes of variant 1, its deployed contracts, hash-checked against the chain (extract.sh; the README gives the hashes). Lovejoin’s are on v2’s templates, at any pool’s parameters. Mainnet’s live v2 pool (NFT policy fcb3f5ec5f58d8fc31cf60408b77a1fe4f431880dc810bd12e8a9aa2) runs exactly those templates applied: a test in the wallet’s WebAssembly crate (seedelf-platform/seedelf-web-wallet/wasm/tests/lovejoin_proven_bytes_test.rs) checks that the template files match the bytes the wallet derives pools from, and derives that pool’s policy, mix_logic and mix_box from them, hash for hash. README.md has what each Seedelf result says; Lovejoin/AnyTx/README.md has Lovejoin’s, with mix_logic’s and one_shot_mint’s in the Aiken source’s own terms.

Where it stops