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.
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.
blasterProven). The translation isn’t proof-checked. Each result holds for runs within its module’s step limit. Each group also proves that every run returns unit or reaches an error, which shows no run reaches the limit. Blaster’s strings stop at character 0x2FFFF where Lean’s go on, and Lean-blaster’s issue #389 shows it proving False from that; a bytestring’s characters are 0 to 255, so the results cover every bytestring (README, What a ✅ is worth). None of this touches the kernel theorems.opaque wrappers of builtins (a result holds for any interpretation of them), and three changes upstream has merged since (PlutusCoreBlaster’s PRs #71, #72 and #73). The README’s Running it lists each change. The kernel proofs of the policy use PlutusCoreBlaster’s own slice.Data (Plutus’s data type) that CardanoLedgerApiBlaster’s encodings make of a context. Neither is proved to match the node. The project’s own review of the proofs (Audit/’s FlatDecodeCheck) compared the decoder’s reading of the 13 scripts the proofs use, the seven above included, with Aiken’s once, not in every build.serialise_data, bytearray_to_integer and xor, and the byte slice in Blaster’s proof of the policy’s rule (the kernel’s uses the real one). A result holds for any interpretation of them.PolicyShapes: a mint likewise, and an input in every transaction.)Data they decode to); Lovejoin’s fee_contract (no Seedelf transaction uses it); and the retired Lovejoin pools’ scripts, which the wallet still runs to bring boxes back (the classic pool’s scripts, and the first token pools’ mix_logic, from Lovejoin 8131b1d).