Who can make the program move funds, and what exactly a signature allows.
Owner signature
withdraw_requires_owner_signer
✓ kernel-checkedEvery instruction other than `InitVault` succeeds only when the vault is open and its recorded owner signed the transaction.
theorem withdraw_requires_owner_signer (h : step e w c = .ok w') (hop : c.op.sig? = some sig) :
c.signed = true ∧ ∃ v, w.vault = some v ∧ v.owner = c.owneraxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:127 Hash signature
withdraw_requires_valid_wots
✓ kernel-checkedEvery instruction that moves anything succeeds only when its WOTS+ signature verifies, under the vault's current one-time key, for an intent naming this program, this vault and the current key index.
theorem withdraw_requires_valid_wots (h : step e w c = .ok w') (hop : c.op.sig? = some sig) :
∃ v i, w.vault = some v ∧ i.programId = e.programId ∧ i.vault = e.addr ∧
i.keyIndex = v.keyIndex ∧ verify (ctxOf e v) (Intent.encode i) sig v.pkHash = trueaxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:139 The intent is the transfer (SOL)
intent_binds_transfer
✓ kernel-checkedWhat moves is exactly the signed intent's amount, from the vault to the intent's destination, and the intent is a SOL intent.
theorem intent_binds_transfer {amount : UInt64} {next : Bytes} {sig : List Bytes}
(h : step e w c = .ok w') (hop : c.op = .withdrawSol amount next sig) :
∃ v, w.vault = some v ∧
verify (ctxOf e v) (intentOf e v actWithdrawSol zero32 amount c.dest next).encode sig v.pkHash = true ∧
(intentOf e v actWithdrawSol zero32 amount c.dest next).asset = zero32 ∧
w'.lamports (intentOf e v actWithdrawSol zero32 amount c.dest next).destination =
w.lamports c.dest + (intentOf e v actWithdrawSol zero32 amount c.dest next).amount.toNat ∧
w'.lamports e.addr =
w.lamports e.addr - (intentOf e v actWithdrawSol zero32 amount c.dest next).amount.toNataxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:169 The intent is the transfer (tokens)
intent_binds_token_transfer
✓ kernel-checkedThe tokens that move are the intent's amount of the intent's asset (the mint), from the vault's own token account to the intent's destination.
theorem intent_binds_token_transfer {amount : UInt64} {next : Bytes} {sig : List Bytes}
(h : step e w c = .ok w') (hop : c.op = .withdrawToken amount next sig) :
∃ v s d, w.vault = some v ∧ w.tokens c.src = some s ∧ w.tokens c.dest = some d ∧
verify (ctxOf e v) (intentOf e v actWithdrawToken c.mint amount c.dest next).encode sig v.pkHash = true ∧
s.owner = e.addr ∧ s.mint = (intentOf e v actWithdrawToken c.mint amount c.dest next).asset ∧
d.mint = (intentOf e v actWithdrawToken c.mint amount c.dest next).asset ∧
w'.tokens (intentOf e v actWithdrawToken c.mint amount c.dest next).destination =
some { d with amountaxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:187 Closing needs both keys
close_requires_both
✓ kernel-checked`CloseVault` succeeds only with the owner's signature and a valid hash signature of the closing intent.
theorem close_requires_both {next : Bytes} {sig : List Bytes} (h : step e w c = .ok w')
(hop : c.op = .closeVault next sig) :
c.signed = true ∧ ∃ v, w.vault = some v ∧ v.owner = c.owner ∧
verify (ctxOf e v) (intentOf e v actCloseVault zero32 0 c.dest next).encode sig v.pkHash = trueaxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:285 No admin path
no_admin_path
✓ kernel-checkedEvery successful instruction is either the opening of an unopened vault by its owner, or carries both the owner's signature and a valid hash signature for the vault's current key. There is no other way to change anything.
theorem no_admin_path (h : step e w c = .ok w') :
(∃ vid pk0, c.op = .init vid pk0 ∧ w.vault = none ∧ c.signed = true ∧ e.addr = e.pda c.owner vid) ∨
(c.signed = true ∧ (∃ v, w.vault = some v ∧ v.owner = c.owner) ∧ HashAuthorized e w c)axioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:324 The owner's wallet key alone moves nothing
public_owner_key_cannot_move_funds
✓ kernel-checkedTake any sequence of instructions, signed by anyone, the vault's owner key included (a drainer holding it, or a quantum computer that recovered it, or the Open Key Challenge where it is public). If none of them carries a valid WOTS+ signature for the vault's one-time key current when it runs, the world is exactly as before: not a lamport, not a token, not the key moves, so nothing is stolen and the vault is not locked.
theorem public_owner_key_cannot_move_funds :
∀ (calls : List Call) (w : World), w.vault.isSome = true → NoHashSignature e w calls →
run e w calls = waxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:365 hashAuthorized_of_ok
hashAuthorized_of_ok
✓ kernel-checkedAn instruction with a hash signature succeeds only when that signature is valid for the vault's current key.
theorem hashAuthorized_of_ok (h : step e w c = .ok w') (hop : c.op.sig? = some sig) :
HashAuthorized e w caxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:316 apply_unauthorized
apply_unauthorized
✓ kernel-checkedWith a vault open, a call without a valid hash signature changes nothing at all.
theorem apply_unauthorized (hv : w.vault.isSome = true) (hno : ¬ HashAuthorized e w c) :
apply e w c = waxioms: propext, Classical.choice, Quot.soundTwokey/Proofs/Machine.lean:349