A symbolic model of protocol.md §3 to §6, §19 and §21, as built (§16), in Tamarin 1.12.0: first contact with the static DH, the Double Ratchet with skipped keys, the reader’s rule on a cid, continuations, the verified reveal, and Messages’ own key with the certificate that binds it to a Seedelf. session.spthy is the model and check.sh proves it. Chunk 54’s 54b, and chunk 55’s 55g.
Two keys since 55g (chunk 55, protocol.md §21). Each principal has a messaging key x_m, which reads, writes and proves in Messages, and a Seedelf key x, which spends and, for Messages, only certifies. In every lemma RevLtk is a messaging key’s theft and RevSpend a Seedelf key’s, and x_A and x_B are each side’s messaging key. Before 55g the model had one key, which did both: every result dated before 2026-11-28 is that one-key model’s. x is in the two configurations with Seedelfs on chain, -D=REVEAL and -D=CERTIFICATE, and Messages’ only rule that takes it is the certificate’s maker. The other configurations’ rules never took it, and Tamarin reads their text as it did before (Two keys).
Two smaller models sit beside it. envelope.spthy puts the outer envelope around the messages: Phase 1’s v1 envelope (construction.md §4) alone, then first contact sealed to the reader’s identity re-randomized by the message’s outer scalar (protocol.md §4.1, §16.2), and the reader’s checks of every point its key touches: the envelope’s generator and ephemeral point, and F’s base and keys proofs (The outer envelope). unlinkability.spthy proves the bare envelope unlinkable by observational equivalence, and states the same of a reader’s answers to first messages, and since 55g that the certificate list doesn’t link one wallet’s Seedelfs by their keys (Unlinkability).
It checks the design, not the Rust: nothing here reads the crate. The vectors and the adversarial tests hold the code to §16, and the mutation pass did for the rules before call 16 (security.md, The session layer); this holds §16 to its claims.
./check.sh # every lemma and pair, then each configuration's wellformedness checks
./check.sh m1_secret # some runs, by name; a word that names nothing stops it
./check.sh FIRST # one configuration's runs, by its flag
MODELS=envelope.spthy ./check.sh # one model
LOGS=/tmp/m ./check.sh # keep the logs, as <model>-<flag>-<name>.log
It needs Docker. The first run builds the image from Dockerfile: Tamarin 1.12.0 and Maude 3.5.1, each pinned by its release’s SHA-256, on a pinned Ubuntu 24.04. Every lemma then runs in its own container with no network and a memory cap (CAP), PAR at a time.
It’s heavy. A lemma takes from seconds to 36 minutes, but responder_keys2_secret takes about two hours (6,844 s on 2026-11-22) at 6.4 GB of GHC’s maximum residency, 15 GB in use under its 20 GB cap; skipped_agreement peaks at 3.4 GB live, six others between 2 and 2.4 GB, and the rest under 2 GB (each run’s peak by check.sh’s own measure). The whole run took an hour and 56 minutes at the defaults: run it when the machine is otherwise idle. Each run gets CAP of memory with no swap and CPUS cores, PAR at a time, so the defaults (4, 1 core, 8 GB) take at most 32 GB and 4 cores, and more while runs with their own caps run: up to 52 GB at the start, while responder_keys2_secret (20 GB) and the two designated-verifier traces (12 GB each) run, and 44 GB at the end, while answers_alike and its two controls (12 GB each) run. PAR=2 holds it to 32 GB, and PAR=1 to one run’s cap and a core. Tamarin’s runtime would take every core otherwise, and its heap is held under CAP, where GHC compacts in place instead of copying. Compacting is slow, so a run near its cap slows down rather than fails; a run with no result says why it stopped, out of time or of memory, and its peak heap in use by GHC’s log, which counts old garbage a minor collection doesn’t reach. Before call 16 the envelope model’s runs took 23 minutes of one core in all, none over 2.2 GB in use, and the unlinkability pairs a minute and a GB each. answers_alike and its two controls (call 16) get 12 GB and two hours from their // check.sh diff: lines, and run last; the two designated-verifier traces in -D=FIRST_ONE_ENVELOPE get the same from their // check.sh: lines, and run first. 55g’s twelve new and changed lemmas took 18 minutes of one core in all (2026-11-28), each under 2.2 GB of live heap but reader_key_forges_a_reveal. That one took 6.8 GB in 11 minutes, at the edge of 8 GB’s heap, so its own line gives it 12 GB, and it runs first. The first four runs then take 52 GB, as before.
Each lemma is one claim of protocol.md, over any number of conversations, each as long as assumption 6 allows, every principal in both roles, and the compromises its configuration allows: an all-traces lemma holds in every trace, and a trace lemma finds the one it names.
| Lemma | Configuration | Claim |
|---|---|---|
keys1_secret to keys4_secret, keys4_secret_guarded, heal_keys_secret |
sessions | Each root and chain key of the initiator’s, one step at a time ([reuse]; the guarded twin restates keys4’s claim) |
responder_keys2_secret, responder_keys4_secret |
sessions | The same for the responder’s keys in a session the initiator started ([reuse]) |
responder_accepted_the_initiators_f |
sessions | The responder accepted the initiator’s own F, unless its key was stolen before it accepted, or her state ([reuse]) |
initiator_agreement_r1, _r2 |
sessions | The initiator reads only replies the responder sent, with the same cid, R_A and R_B, unless the responder’s key was stolen before she read its first reply, or, for r2, her state before she read it ([reuse]) |
responder_agreement_m1, _m3, _m4 |
sessions | The responder reads only what the holder of A’s key sent, in that session, unless that key or its own was stolen before it accepted, or, for m3 and m4, the holder’s state before the read |
m1_secret |
sessions | A first message is open to the reader’s key, and nothing else (§1.1) |
m3_forward_secret, m4_forward_secret |
sessions | After the first reply, only a theft before it, or the state, opens the initiator’s messages |
m4_heals_after_a_reply_the_attacker_only_watched |
sessions | After a stolen state, the next message is secret once a genuine reply is read, unless x_B was stolen before the first reply |
r1_forward_secret, r2_forward_secret |
sessions | The responder’s messages are forward-secret: only its key stolen before it accepted a first message, or the initiator’s state, opens them |
static_dh_secret, static_dh_holds_r_a |
sessions | The static DH, [x_R]A for A of P’s key, is secret unless one of the two keys was stolen first; so a session whose A is P’s key is accepted only if P started it, with that F ([reuse]) |
executable, m1_open_to_a_later_reader_key, initiator_state_opens_m3_and_r2, reader_key_before_the_reply_takes_over, reader_key_lets_anyone_pose_to_the_reader |
sessions | Traces that must exist: a whole conversation, and each limit §1.1 states |
responder_heal_keys_secret_with_its_state, r2_heals_after_the_responder_state, responder_state_opens_m3, responder_state_then_r2_reached |
-D=RESPONDER_STATE |
The responder’s stolen state opens m3, and its next reply heals; that the healing is reached, responder_state_then_r2_reached, is argued, not checked: its search didn’t finish (two hours, and half an hour with each of two other rankings) |
m3_secret_after_a_genuine_reply |
sessions | x_B stolen before the first reply, by an attacker who only watched it, doesn’t open the initiator’s next message, m3; only her state does |
static_dh_secret_with_continuations, static_dh_holds_r_a_with_continuations |
-D=CONTINUATIONS |
The same static DH and hold on R_A with continuations about: a first message whose A is P’s key, fresh or a continuation, is accepted only if P sent it, with that F ([reuse]) |
responder_agreement_m1_with_continuations |
-D=CONTINUATIONS |
The reader reads only what the holder of A’s key sent, fresh or a continuation, unless that key or its own was stolen first |
continuation_message_secret |
-D=CONTINUATIONS |
A continuation’s message is secret unless the old other side’s key is stolen |
continues_only_from_the_old_other_side |
-D=CONTINUATIONS |
“Continues” shows only for a continuation the old other side started, unless its key or the reader’s was stolen first |
continues_shown_to_the_old_responder, _initiator, reader_key_forges_continues |
-D=CONTINUATIONS |
“Continues” shows both ways, and the reader’s own key forges it |
first_message_replays_without_the_cid_rule |
-D=NO_CID_RULE |
Without §5’s rule, a first message is read twice |
reveal_only_from_the_seedelfs_owner |
-D=REVEAL |
“Verified ⟨Seedelf⟩” shows only if the Seedelf’s owner revealed it in this conversation, which it started with this reader, unless its messaging key or the reader’s was stolen first, or its Seedelf key (§19.5, §21.9) |
reveal_verifies, reader_key_forges_a_reveal, owner_messaging_key_forges_a_reveal, spend_key_forges_a_reveal |
-D=REVEAL |
A reveal verifies, its Seedelf’s certificate included. The reader’s own messaging key forges one for any Seedelf with a good certificate, the owner’s messaging key one for its own Seedelf, and the owner’s Seedelf key one for its thief, which certifies a messaging key it holds: each excuse is needed |
spend_key_secret_beside_the_reveal |
-D=REVEAL |
The Seedelf key stays secret, every messaging key stolen at any time, with the certificate’s maker, the reveal and its checks running: no rule gives it away (Two keys says what that does and doesn’t show) |
writes_only_where_the_owner_certified |
-D=CERTIFICATE |
A writer writes to a Seedelf only at its owner’s messaging key, and only once its owner certified it, unless its Seedelf key was stolen first; its messaging key isn’t enough (§21.4, joint-security.md’s B′) ([reuse]) |
first_message_to_a_seedelf_secret |
-D=CERTIFICATE |
A first message to a Seedelf is open to its owner’s messaging key, or to its Seedelf key stolen before it was written, and to nothing else |
spend_key_secret |
-D=CERTIFICATE |
The Seedelf key stays secret whatever Messages gives away, every messaging key included, with the certificate’s maker and every writer and reader running: no rule gives it away |
first_contact_through_a_certificate, spend_key_redirects_a_first_message, owner_messaging_key_opens_a_first_message |
-D=CERTIFICATE |
Traces: a first message written through a certificate is read; the Seedelf key, stolen, certifies a messaging key its thief holds, and a writer writes to the thief, the owner’s messaging key safe; and the owner’s messaging key, stolen after, opens a first message: each excuse is needed |
skipped_keys1_secret to _keys3_secret, skipped_static_dh_secret, skipped_static_dh_holds_r_a |
-D=SKIPPED |
The sessions’ helpers, proved again where the skipped keys are ([reuse]) |
skipped_key_opens_only_its_message |
-D=SKIPPED |
A kept skipped key, stolen, opens its own message and not the next on its chain |
skipped_agreement, skipped_each_read_once |
-D=SKIPPED |
Both messages of a chain are read only as sent, in either order, and once each, unless the holder of A’s key or the reader’s was stolen before it accepted; here the kept key writes its message only with the reader’s own key stolen too (on the wire, assumption 2) |
skipped_in_order, skipped_out_of_order, skipped_key_stolen_opens_its_message, skipped_key_and_reader_key_forge_its_message |
-D=SKIPPED |
Both orders work; a stolen kept key opens its message in the inner layer (on the wire its envelope also needs the reader’s key or the salt inside it: kept_key_alone_opens_nothing), and with the reader’s key, stolen even after it accepted, writes it |
The one-key model’s runs (2026-11-22 to 2026-11-24), every lemma then in the file. check.sh proved every lemma above, and each configuration’s wellformedness checks passed (2026-11-22). The gate of 1.10.0 then changed the model: m3_secret_after_a_genuine_reply and responder_state_then_r2_reached are new, executable, skipped_in_order and the two continues_shown_* traces now name KeyOn, and I_Read_r1 and R_Send_r1 raise two new actions, read only by the new lemma. With that, check.sh proved every lemma again and the wellformedness checks passed, but for four (2026-11-24). heal_keys_secret’s search no longer finishes, in three hours: the two new actions send it another way. On this file without them it’s verified (467 steps, as before, 2026-11-24). No restriction names them, and its formula can’t match them (they’re 'r1'’s, it reads 'r2'’s), so it reads every trace here as it reads that trace there: it holds here, argued from that run. The two continues_shown_* traces were found without KeyOn (2026-11-22); with it named, neither search finished, in two hours, with KeyOn last, or with states_then_keys. KeyOn’s honest rule reads only !Ltk and !Base facts such a trace already holds, raises nothing but KeyOn, and no restriction names it, so it adds to the trace found: argued, not checked. responder_state_then_r2_reached is argued, not checked: its search didn’t finish. A lemma’s “unless” names the compromises it excuses. Most excuse exactly what breaks the claim; a few excuse more, where Tamarin needs it to finish (assumption 11), or where the stronger claim wasn’t tried: heal_keys_secret and m4_heals_after_a_reply_the_attacker_only_watched excuse x_B stolen before the first reply, which their guard on the responder’s own T₂ makes needless. Anything a lemma doesn’t name, the attacker may do at any time: hold every other key, and read, drop, reorder, replay and forge every message, as the relay can (§11).
55g’s runs (2026-11-28), with two keys:
#ifdef lines that leave -D=CERTIFICATE out. So their results above stand, the one key read as x_m.-D=REVEAL changed and -D=CERTIFICATE is new. Each of their twelve lemmas was run alone at check.sh’s defaults (8 GB, one core), and every one read as it must: reveal_only_from_the_seedelfs_owner verified (238 steps, 45 s), spend_key_secret_beside_the_reveal (3 steps, 14 s), writes_only_where_the_owner_certified (46 steps, 10 s), first_message_to_a_seedelf_secret (37 steps, 12 s) and spend_key_secret (3 steps, 7 s), and each trace found: reveal_verifies (26 steps, 31 s), reader_key_forges_a_reveal (28 steps, 11 minutes), spend_key_forges_a_reveal (32 steps, 2 minutes), owner_messaging_key_forges_a_reveal (32 steps, 49 s), first_contact_through_a_certificate (29 steps, 38 s), spend_key_redirects_a_first_message (25 steps, 31 s) and owner_messaging_key_opens_a_first_message (25 steps, 27 s). The last two of those, and the narrower wording of spend_key_secret’s claim, came from the review (What building and reviewing it found); adding them changed nothing else Tamarin prints for either configuration.§1.1:
m1_secret names it, and m1_open_to_a_later_reader_key finds it working after the reply). Stolen before the first reply reaches Alice, it takes the conversation over from her side (reader_key_before_the_reply_takes_over). Stolen later, it opens nothing more: m3_forward_secret, m4_forward_secret, r1_forward_secret, r2_forward_secret. Stolen early by an attacker who only watches, it still doesn’t open Alice’s next message after Bob’s own reply: m3_secret_after_a_genuine_reply states it for m3, keyed on that reply’s ratchet key.spend_key_secret, spend_key_secret_beside_the_reveal). Stolen, it certifies a messaging key of its thief’s for the owner’s Seedelfs (§21.9’s x row). A writer then writes to the thief (spend_key_redirects_a_first_message), and a reader shows the thief as “Verified” with the owner’s Seedelf (spend_key_forges_a_reveal). The owner’s messaging key alone does neither (writes_only_where_the_owner_certified, reveal_only_from_the_seedelfs_owner).initiator_state_opens_m3_and_r2, responder_state_opens_m3). After that each side’s next message is secret again, one side’s state at a time: m4_heals_after_a_reply_the_attacker_only_watched, which still excuses x_B stolen before the first reply, and r2_heals_after_the_responder_state with -D=RESPONDER_STATE. Those traces are the inner layer’s: on the wire a stolen state alone opens no envelope, which needs its recipient’s key or its salt, inside it, and with that side’s own key too it opens what is sealed to that side. That’s argued, not checked: kept_key_alone_opens_nothing checks it for one kept key, and -D=KEPT_KEY steals no state.skipped_key_opens_only_its_message, skipped_key_stolen_opens_its_message), in the inner layer: on the wire its envelope needs the reader’s key as well, or the salt inside it (kept_key_alone_opens_nothing). Alone it writes nothing here, since the tag’s associated data holds w₀ (skipped_agreement); on the wire that rests on the outer layer (assumption 2), which envelope.spthy checks (kept_key_alone_writes_nothing). With w₀ too, which x_B gives even stolen after the reader accepted, a stolen state, or x_A once the responder has sent a continuation (assumption 13), it writes that message while the reader still waits for it (skipped_key_and_reader_key_forge_its_message shows x_B’s; the other two are argued, not checked, since -D=SKIPPED has no state theft and no continuation). Each of §1.1’s rows holds alone; this is two of them together.reader_key_lets_anyone_pose_to_the_reader), as a continuation of any of its conversations, which it labels “Continues” (reader_key_forges_continues), and as the owner of any Seedelf with a good certificate in a reveal (reader_key_forges_a_reveal): protocol.md §21.1’s stated limit, which could mislead a payment and forges none.§3 to §6:
static_dh_holds_r_a). So no unknown-key share, and no replies sent to a mailbox the writer doesn’t hold.responder_agreement_m1 to _m4, initiator_agreement_r1 and _r2). A key stolen once the session runs can’t forge into it: only a theft before the reader’s first step excuses a later message, or a stolen state, which §1.1 says lets the attacker step in, and only one stolen before the message is read.static_dh_holds_r_a_with_continuations, responder_agreement_m1_with_continuations). So “Continues” shows only for a continuation the old other side started, unless its key or the reader’s own was stolen first (continues_only_from_the_old_other_side), and it shows both ways. A continuation’s message is secret unless the old other side’s key is stolen (continuation_message_secret).first_message_replays_without_the_cid_rule).skipped_agreement, skipped_each_read_once), and both orders run (skipped_in_order, skipped_out_of_order).§19:
reveal_only_from_the_seedelfs_owner). The proof’s binding to cid, both identities, the name, the register and m_S is what holds it, with the certificate that binds m_S to the register: an honest reveal can’t be moved to another conversation, reader or name, a name the attacker minted with a copy of the register included. The reader’s own messaging key makes one for any Seedelf with a good certificate (reader_key_forges_a_reveal), as §19.5 and §21.9 say, and the owner’s Seedelf key one for its thief (spend_key_forges_a_reveal).Chunk 55 (protocol.md §21) gives Messages a key of its own, x_m, and binds it to each Seedelf by a certificate its Seedelf key x makes. -D=CERTIFICATE and -D=REVEAL hold the claims about the two keys together. The other configurations hold the rest, with x_m for the one key they had (assumption 3 says how they meet):
spend_key_secret, spend_key_secret_beside_the_reveal). The attacker steals any messaging key at any time, the owner’s included, and runs and sees every rule of the configuration: certificates made, written to, read at the press, and first contact both ways. x is out only once its own reveal has run.
first_contact_through_a_certificate, reveal_verifies): the honest run completes with the certificate made and used, so the lemma isn’t true for want of x being used.!Spend is read by Seedelf (the register itself) and Certify, and by the two certificate checks, which use x in an equality alone (assumption 15). No other rule of either configuration takes it, and no rule of the others has it at all.writes_only_where_the_owner_certified): joint-security.md’s B′, symbolically. A writer writes to a Seedelf only at its owner’s x_m, and only once the owner certified that Seedelf, unless the owner’s x was stolen before it wrote. The owner’s x_m is no excuse: with it, an attacker can neither point the Seedelf at another messaging key nor turn it on. A name the attacker minted with a copy of the owner’s register is covered too.
first_message_to_a_seedelf_secret).reader_key_forges_a_reveal). That’s key-compromise impersonation, protocol.md §21.1’s stated limit.spend_key_redirects_a_first_message) and a reader shows the thief as “Verified” with the owner’s Seedelf (spend_key_forges_a_reveal). Here the thief’s messaging key is a third principal’s it stole, as assumption 15 says.reader_key_forges_a_reveal for the reader’s x_m, and owner_messaging_key_forges_a_reveal and owner_messaging_key_opens_a_first_message for the owner’s.envelope.spthy, by flag. Every key in it is a messaging key, x_m, and the Seedelf key isn’t in it: none of its rules takes one. Its second handle, on a generator whose log no one learns, is what another Seedelf’s messaging register is since chunk 55: a register of the same x_m on that Seedelf’s own hashed base, whose log on the first’s no one knows (protocol.md §21.3).
| Lemma | Configuration | Claim |
|---|---|---|
envelope_secret |
the bare envelope | An envelope’s content is secret unless its recipient’s key is stolen (security.md 1) |
only_its_recipient_opens_it |
the bare envelope | Only the key it was sealed to opens it: no false matches (construction.md §2) |
envelope_binds_its_header |
the bare envelope | An honest envelope’s ephemeral point opens only with its own header and content: another register of the same key, swapped in, fails, as any change does, unless the reader’s key was stolen first (security.md 5, 6) |
envelope_opens |
the bare envelope | An envelope opens |
responder_takes_nothing_aimed_at_its_other_handle |
-D=FIRST |
A reader takes no first message written to one of its handles in which any point its key touched is aimed at its other handle: the envelope’s p and c, and F’s p₀, E_A, A and the first ratchet key S_A. So it doesn’t react in a way that tells the writer both are its key’s (§2, §3, §4.1, calls 13 and 16). Only the reader’s own key, stolen first, excuses it: the base proof’s and the keys proof’s designated-verifier branches let that key prove any base and any A, and it tests [x]g₂ = v₂ with no reaction needed |
first_contact_executable |
-D=FIRST |
A sealed first message is read |
an_attackers_first_message_is_taken |
-D=FIRST |
A first message the attacker wrote itself, with no honest writer and no key stolen, is taken with all four checks on: so the lemma above isn’t vacuous for the attacker’s branches |
reader_key_proves_a_base_on_its_other_handle, reader_key_proves_an_identity_on_its_other_handle |
-D=FIRST_ONE_ENVELOPE |
The excuse is needed, by each branch: with the reader’s key, the base proof’s proves a base on its other handle, and the keys proof’s an A there on a base that is G^k. The configuration has fewer traces than -D=FIRST (assumption 4), so a trace found there is one of -D=FIRST. In -D=FIRST, in 12 GB and two hours, the first ran out of time and the second out of memory (2026-11-23). Here the second was found (2026-11-24), and the first ran out of memory at 18 GB: argued, not checked |
without_the_check_a_message_links_two_handles |
-D=FIRST_NO_OUTER_CHECK |
Without §4.1’s outer check, a message whose envelope’s generator is on the other handle is taken, no key stolen: the link call 13 closes |
without_the_ephemeral_check_a_message_links_two_handles |
-D=FIRST_NO_EPHEMERAL_CHECK |
Without the ephemeral check, a message whose envelope’s c is on the other handle is taken: the link call 16 closes, which the gate of 1.10.0 found in the model as it was, with the outer check on |
without_the_keys_proof_an_ephemeral_links_two_handles, without_the_keys_proof_an_identity_links_two_handles, without_the_keys_proof_a_ratchet_key_links_two_handles |
-D=FIRST_NO_KEYS_PROOF |
Without F’s keys proof, a message whose E_A, whose A, or whose first ratchet key S_A is on the other handle is taken (the second’s trace names E_A = G, and the third’s A = E_A = G, so that S_A is the only point that can be there) |
without_the_base_check_a_message_links_two_handles |
-D=FIRST_NO_BASE_CHECK |
Without F’s base proof, a message on a base on the other handle is taken, no key stolen: w₀ = [x]p₀ comes from that handle’s public value |
initiator_takes_no_reply_aimed_at_its_handles |
-D=INITIATOR_READS |
The initiator takes no reply whose envelope’s p or c is aimed at one of its handles, even from a responder that is the attacker, so a reply’s reaction doesn’t tell the responder who wrote (§2, §4.1, calls 13 and 16). Nothing excuses it |
initiator_reads_a_reply |
-D=INITIATOR_READS |
A sealed reply is read |
without_the_check_a_reply_links_the_initiator |
-D=INITIATOR_READS_NO_OUTER_CHECK |
Without the outer check, a reply whose p is on the initiator’s handle is taken |
without_the_ephemeral_check_a_reply_links_the_initiator |
-D=INITIATOR_READS_NO_EPHEMERAL_CHECK |
Without the ephemeral check, a reply whose c is on the initiator’s handle is taken |
replies_sealed_to_r_a |
-D=SEALED_TO_A_KEY |
A reply sealed to a principal’s identity is open to that principal’s key alone, whatever the inner layer’s keys give away, its message key included; so is its salt, from which the outer and ephemeral scalars come. With the session model’s r1_forward_secret, that’s why x_B, stolen even before Bob read the first message, opens nothing Bob sent (§1.1): argued from the two, not proved in one model |
a_reply_opens |
-D=SEALED_TO_A_KEY |
A sealed reply opens |
kept_conversation_secret, kept_salt_secret |
-D=KEPT_KEY |
The conversation’s base, the reader’s identity w₀ and a sealed message’s salt stay secret until x_B is stolen ([reuse]) |
kept_key_alone_writes_nothing |
-D=KEPT_KEY |
A kept message key, stolen alone, writes nothing, with the wire’s means: the reader takes under it only the message it stands for, unless x_B was stolen first |
kept_key_alone_opens_nothing |
-D=KEPT_KEY |
Nor does it open that message: its envelope’s key is [r]w for an r from the message key and the salt, and the salt is inside the envelope, which only x_B opens; the message is out only if both the key and x_B are stolen |
kept_key_reads_its_message |
-D=KEPT_KEY |
The kept key reads its message |
tag_redone_without_the_associated_data |
-D=TAG_REDO |
A control for assumption 2: from one genuine ciphertext and its key, a tag under the same associated data, never published, is made for another message |
Call 16 changed this model’s rules and lemmas. With them check.sh proved every lemma here but the two designated-verifier traces, with nothing to warn (2026-11-23); those had no result in -D=FIRST. In -D=FIRST_ONE_ENVELOPE the keys proof’s was found (2026-11-24), and the base proof’s search didn’t finish: argued, not checked. The gate’s later changes left every other configuration as it was: Tamarin prints each one’s rules, restrictions and lemmas the same for that run’s files and these (2026-11-24). Before call 16 it proved the lemmas then here (2026-11-22). 55g changed only this model’s comments, and Tamarin prints every configuration the same as the one-key file’s (2026-11-28): these results stand, its one key read as x_m.
-D=FIRST_ONE_ENVELOPE, is to show it doing it: the keys proof’s was found, and the base proof’s is argued, not checked: its search didn’t finish. Each of the four checks is shown needed by a control that drops it alone and finds the link with no key stolen.r1_forward_secret, which says what opens the inner layer, opening a reply takes x_A as well: argued from the two, not proved in one model.skipped_key_and_reader_key_forge_its_message shows it without the envelope, and x_B opens every envelope the forgery needs. Nor is a continuation here: the responder’s continuation hands the conversation’s base, cid and w₀ to whoever holds the old initiator’s key, so x_A and a kept key write the kept message too (assumption 13 of the session model).What it assumes, beyond the session model’s list, which holds where its rules are copied (assumptions 1, 3 to 5 and 12):
tag_redone_without_the_associated_data shows the equation does it. The session model’s attacker can’t; this one can. The power is re-tagging under the same associated data. A real key holder can also shift the associated data by a known difference, and with tags under three keys solve for a three-block unknown such as w₀ (joint-security.md, rule 1); neither is modelled, and neither is in reach of the attackers here, who hold one kept key and no genuine ciphertext (-D=KEPT_KEY), or every chain key and w₀ already (-D=INITIATOR_READS).-D=SEALED_TO_A_KEY: the reply’s message key, as if the attacker held every key of the inner layer but x_A; not its salt, which the inner layer carries inside the envelope, and from which the outer and ephemeral scalars come (§16.2, call 16). The bases are an honest initiator’s, with every principal’s identity on them published, as F publishes it to anyone who opens it, or G^k (the session model’s assumption 4).-D=INITIATOR_READS: everything the responder knows, which here is the attacker: the base, A, the cid, and every chain key and w₀ it likes. A reply from an honest responder is the case where the attacker knows less.-D=KEPT_KEY: one conversation as the session model leaves it at the initiator’s second chain. Its chain keys are fresh, as the session model proves them secret, and its envelopes are the ones the conversation sends: the first message (F, without its base and keys proofs, which a kept key doesn’t reach) and the chain’s two messages to R_B, the reply (cid, T₁) to R_A. So the cases where the session model excuses the key, a theft before the session or a stolen state, aren’t here: this configuration claims only that the kept key adds nothing on the wire. Nor is a continuation from the responder, which x_A opens (the session model’s assumption 13).-D=FIRST and its four controls: first contact alone, every principal writing and reading, each control without one of the reader’s four checks. One first-contact message a conversation: a request’s later messages, and the rule that each carries the first’s header key S_A (accept_with, the join), aren’t here; the crate’s tests hold that rule.-D=FIRST_ONE_ENVELOPE: the rules and restrictions -D=FIRST shares with its four controls, every check on, with no honest writer, one envelope read and the observer’s multiple a name, for the two designated-verifier traces. Each change only drops traces, so a trace found there is one of -D=FIRST, and the configuration holds trace lemmas only: one falsified there would say nothing of -D=FIRST.!Proof(F, S_A, w₀), which I_Start leaves and the reader looks up (R_Keys_proof_honest): it binds F, S_A and that reader’s w₀, as the proof’s challenge does, so it serves that reader for that F alone. The attacker proves with exponents it names, sent beside the message (R_Keys_proof_attacker), and the checks make E_A, S_A and A those powers of p₀; or, once it holds the reader’s key, with exponents for E_A and S_A and that key, sent the same way, and any A (R_Keys_proof_by_the_reader_key): the designated-verifier branch. In Tamarin’s group the attacker raises only points it holds to exponents it knows, with no addition, so it proves here no more than a real prover can (and, by the next bullet, less: no attack lost for the lemmas here, argued, not checked).responder_takes_nothing_aimed_at_its_other_handle excuses the take, and the designated-verifier branch takes any A anyway. No lemma here is about whose key A is: the session model, with no keys proof, keeps the impersonation, and its agreement lemmas excuse P’s key. The controls and traces need only some exponent, and a name is one.R_Derive_m1a_any_base and base_check): the designated-verifier branch, which proves any base. An honest base passes here under any F, where on the wire its proof binds F′, so only its writer or x_B reuses it: that gives the attacker more.-D=CONTINUATIONS has them without the envelope; there A and p₀ are held values, and E′ and S′ are bound by the continuation’s keys proof, argued from -D=FIRST, not checked), and timing: how long a reader takes on a message, which a far-ahead message’s walk (§16.4, MAX_AUTH_STEPS) or a scan’s early return could show, is outside a symbolic model.unlinkability.spthy proves security.md’s property 3 for the bare v1 envelope, as observational equivalence: Tamarin’s diff terms, proved with --diff. Every envelope’s header carries p, c and a tag of w (call 16), as on the wire.
| Run | Systems told apart | Must be | Before call 16, with w in the header (2026-11-22) | With the tag (2026-11-23) |
|---|---|---|---|---|
same_or_two |
envelopes to one recipient, against envelopes to one recipient and to another | verified: no attacker tells them apart | verified (10,699 steps) | verified (7,823 steps) |
known_or_no_one (-D=FRESH) |
envelopes to a known register, against envelopes to a key no one holds | verified | verified (10,602 steps) | verified (7,766 steps) |
bare_register_links (-D=BARE_REGISTER) |
the same as the first, sealed to the register itself, not a re-randomization of it, as ElfTalk’s messages carried their recipient’s key | falsified: the link found | falsified (8 steps) | falsified (13 steps) |
stolen_key_links (-D=STOLEN) |
the first, with the second recipient’s key stolen | falsified | falsified (15 steps) | falsified (15 steps) |
answers_alike (-D=ANSWERS) |
a reader that answers every first message it takes, with a second register that is its key’s, against one that is a key’s no one holds | verified | not in the model | no result: out of memory at 10.8 GB, 37 minutes |
unbound_ephemeral_answers_link (-D=ANSWERS_UNBOUND_EPHEMERAL) |
the same, without the envelope’s ephemeral check | falsified | not in the model | no result: out of memory at 7.1 GB, 32 minutes |
unproven_ephemeral_answers_link (-D=ANSWERS_UNPROVEN_EPHEMERAL) |
the same, without F’s keys proof | falsified | not in the model | no result: out of memory at 7.1 GB, 32 minutes |
the_reader_answers (-D=ANSWERS_REACHED, a trace lemma on each side) |
none: the reader answers a first message the attacker wrote, every check on | verified on both sides | not in the model | verified on both sides (2026-11-24) |
two_seedelfs_or_two_wallets (-D=TWO_SEEDELFS, 55g) |
one wallet’s two Seedelfs, each with its datum register, its messaging register on its hashed base and its certificate, against two wallets’ | verified: the list doesn’t link Seedelfs by their keys | not in the model | verified (6,631 steps, 50 s, 2026-11-28) |
one_base_links_two_seedelfs (-D=TWO_SEEDELFS_ONE_BASE, 55g) |
the same, with every messaging register of a wallet on one base | falsified: the link found | not in the model | falsified (12 steps, 36 s, 2026-11-28) |
The controls must find their link, so the model can see one; check.sh runs them all, and fails if a control is “verified”. With the tag (2026-11-23) the first four ran as they must, each in under a minute and a GB, as before call 16. answers_alike ran out of memory at 10.8 GB after 37 minutes, and its two controls at 7.1 GB after about 32: each held under 1.3 GB of live heap at every full collection for 25 to 29 minutes, then went past 3 GB within half a minute. So a reader’s answers have no result: argued, not checked. the_reader_answers (-D=ANSWERS_REACHED) shows the reader answers at all, on both sides (2026-11-24), so the pair can’t hold for want of an answer once it has a result.
What it shows: an attacker who holds both recipients’ registers, of any number of pairs, chooses every plaintext, and sees any number of envelopes of either kind can’t tell whether two envelopes go to the same recipient, or whether one goes to a given register at all. Diff-equivalence is stronger than observational equivalence, so “verified” is sound.
Two Seedelfs on the list (55g, protocol.md §21.3, §21.7): the list shows every listed Seedelf’s register, messaging register and certificate. An attacker who sees any number of pairs of them can’t tell one wallet’s two from two wallets’ (two_seedelfs_or_two_wallets): its keys link nothing, as DDH in G1 says of registers on independent bases, which the symbolic group has by construction. The control puts a wallet’s messaging registers on one base, and its two are then the same point (one_base_links_two_seedelfs): a base for each Seedelf is what keeps them apart. It doesn’t tell the hashed base from call 5’s first design, M_S on g_S, which would verify too: what the hash adds is rule 1m’s, no static-DH answer, beyond a symbolic model. When certificates appear on the list isn’t here: the wallet posts them apart and the list keeps no times (§21.7), and the relay sees each post’s address.
A reader that answers (-D=ANSWERS, calls 13 and 16): the attacker writes first messages to the reader’s root handle, with the envelope’s p and c, and one point E for F’s E_A, A and S_A, aimed anywhere (p₀ is G^k, as the base proof leaves it), and sees which the reader answers. If the answers differ when a second register is the reader’s from when it’s a key’s no one holds, a reaction links the two. Diff-equivalence asks both sides to take the same steps, so the reader computes its key on each point in steps with no check (both sides take them alike) and checks everything in the one step that answers: the scan, the open, the inner layer under a key from [y]E with w₀ in its associated data, the outer check, the ephemeral check and the keys proof. E stands for F’s E_A, A and S_A, which the keys proof binds alike: one point for three, argued, not checked, since each is bound the same way and no product of bound points carries another handle’s log. The exponent the proof shows its writer knows is sent beside the message, any term it knows (envelope assumption 5 says why it’s sent; envelope.spthy’s three are public names). The base is G^k for a k the attacker names; neither proof’s designated-verifier branch is here, since no key is stolen. It holds of the wallet only if nothing before that step is seen: no count of envelopes that opened but didn’t read, no chain read set off by an envelope, no refusal acted on but an authenticated far-ahead one, and no page asked for at a time that depends on what the last page held (the worker’s rules for Seedelf Messaging, architecture.md). Each control drops one check and must find the link.
What it doesn’t:
-D=ANSWERS has it: any number of readers, first messages, F beside the envelope, one point for three, an answer that is a bit rather than a reply, no continuation and no timing. A reaction to an envelope is an oracle (security.md 8); what limits the session layer’s reactions is calls 13 and 16’s checks (The outer envelope).A reviewer with no context read the model against protocol.md (2026-11-21). Its findings changed both.
[reuse] lemmas first helped nothing (2026-11-22). Their guard, K(k), never meets a key (How it’s built), so no later proof could close on one; and each one split the search on every message the attacker sent. With nine in view, most of the later lemmas ran out of an hour or of 12.5 GB. Guarded on the key, each lemma takes minutes. The claims didn’t change: a guard on the attacker deriving a key says at least as much as one on its sending it.static_dh_secret always was, the helper proves in the same 79 steps, and three of the four in under 9 minutes each. The fourth, the reader’s key forging “Continues”, is a trace, and its search held 7 GB within 15 minutes until it named its forgery (How it’s built). None of the four was false.responder_keys4_secret stated it. Dated all the way down, as the claim needs, its responder_keys2_secret took 94 minutes and 6.5 GB of live heap; at 8 GB, it ran into the crawl below and looked out of time.r1_forward_secret and r2_forward_secret excused a theft of Bob’s key only before he accepted Alice’s own F. With Bob’s key, the attacker writes another first message with her cid, p₀, A and w₀ ([x_B]A and w₀ are its to compute), Bob accepts it and replies under keys it knows. That’s §1.1’s key-compromise impersonation, which reader_key_lets_anyone_pose_to_the_reader shows. Their excuse now names a theft before Bob accepted any first message, as their claim in this README always said. Found while proving them (2026-11-22), from where the search went.skipped_agreement now names exactly that pair. A fresh-context review then showed the key-alone half is the model’s, not the wire’s: once the inner layer is visible, the key and its salt give the envelope’s outer scalar o, and [o]w₀ gives w₀, and AES-GCM’s tag can be redone without the associated data. On the wire it rests on the outer layer (assumption 2), and envelope.spthy checks it there, with those means given to the attacker (The outer envelope). Since call 16 the header carries only a tag of [o]w₀, so that route to w₀ is gone too.spend_key_secret’s claim was wider than the lemma: x is only an exponent or inside a certificate here, so it holds by the rules’ text, and a rule that answered [x]P for the attacker’s P would leave it verified; its wording now says it shows only that no rule gives x away (Two keys). Assumption 14’s argument for proofs by keys no principal holds was the one-key model’s and false with two: a thief of x puts a messaging key of its own on the owner’s Seedelf; it now points to assumption 15’s. The comment that each excuse of the reveal’s lemma is needed had no trace for the owner’s messaging key, nor did the first message’s; owner_messaging_key_forges_a_reveal and owner_messaging_key_opens_a_first_message are those traces. And the two-Seedelf pair can’t tell a hashed base from call 5’s g_S, which this README now says.Where a symbolic model is weaker than the protocol, or this one narrower. A reviewer should read these first.
r1_forward_secret excuses a theft before Bob accepts. Checked as replies_sealed_to_r_a.skipped_agreement). Here its tag needs w₀, which the attacker lacks. On the wire, whoever sees the inner layer gets o and r from the key and the salt, and AES-GCM’s tag can be redone without the associated data from one genuine ciphertext and the key; before call 16 the envelope’s [o]w₀ gave w₀ too, and since, its header carries only a tag of it. What keeps a key thief from the salt and the ciphertext is the outer layer, which only x_B or the device opens, and either gives w₀ anyway. Found by the follow-up’s review; checked, with those means given to the attacker, as kept_key_alone_writes_nothing.!Pk, !Chain): the trusted-source limit protocol.md §2 and §19.4 state.!Pk stands for here. -D=CERTIFICATE shows that it names the Seedelf owner’s messaging key unless the owner’s Seedelf key was stolen first (writes_only_where_the_owner_certified). So $Rsp in the other configurations is the holder of the messaging key written to, which is the Seedelf’s owner unless its Seedelf key was stolen first. Each of their lemmas holds of a first message written to a Seedelf, with that theft excused too: argued from the two, not proved in one model. Only m1’s secrecy is proved that way in one model (first_message_to_a_seedelf_secret).to, or knows the reader’s own key: since call 16 it’s designated-verifier, so it convinces no one but that reader. Without that key, over the model’s one generator G, the base is G^k. And the tag’s associated data holds w₀ = [x_B]p₀, which the attacker knows, without x_B, for G^k through the handle, and for an honest conversation’s base once w₀ is out (a stolen state, or a continuation). A continuation carries no proof, but must be on one of the reader’s own conversations’ bases (§6). All of these are in the model.m3_secret_after_a_genuine_reply. That’s argued, not checked. envelope.spthy’s -D=FIRST writes that branch, for the claim it’s there for, and -D=FIRST_ONE_ENVELOPE’s reader_key_proves_a_base_on_its_other_handle is to show it used, but its search didn’t finish.-D=SKIPPED), with no later step after it. MAX_SKIP, the requests’ bounds and each request’s share (16 messages and 64 KiB, call 16), every clock (the 48-hour window, a skipped key’s 48 hours, tombstones, expiry) and proof of work aren’t here: they’re counters and times, which the tests cover. So is the far-ahead verdict, the one refusal the wallet acts on: since call 16 it’s given only for a message that authenticated and passed its envelope’s checks, on a read-only walk of at most MAX_AUTH_STEPS keys (§16.4), so it comes after every check, as the model’s reads do. The mutation passes (security.md) predate call 16’s rules.-D=SKIPPED).
responder_keys2_secret and r1_forward_secret. Tamarin finishes them only that way; without the excuse it has to refute every branch the state would end, and ran past 12 GB. They still say everything about traces where no state is stolen, and responder_keys2_secret names only a state stolen before the attacker knew the key, which m4’s agreement needs. That costs Tamarin an hour and a half and 6.5 GB of live heap, so check.sh gives that lemma its own room (the // check.sh: line above it).replaces, p₀, A and E_A. t is any public value. to, its base proof (call 13, 54a′) and its keys proof (call 16) are left out. to changes only a label, and what the base proof gives the reader, a base its writer can use, is assumption 4. The keys proof only narrows what a reader accepts: here the attacker chooses E_A, A and S_A freely, where on the wire it must know their logs on p₀ (or hold the reader’s key), so every lemma here holds with it too. A trace a lemma names may use points no writer could prove on the wire: reader_key_forges_continues names E = S = G on an honest base, whose log on it no one knows; on the wire the forger takes powers of p₀ it chose, and the trace is the same. envelope.spthy’s -D=FIRST checks it, for the claim it’s there for (no reaction links two handles). The base proof’s designated-verifier branch is assumption 4’s. The first-contact stamp (call 12) sits after F, and it and the envelope’s outer and ephemeral scalars (§4.1) are about spam and unlinkability, which no lemma here claims (2, 6).skipped_agreement’s excuses leave that out, and so does kept_key_alone_writes_nothing (envelope.spthy); -D=SKIPPED_CONTINUED, if built, shows it.-D=RESPONDER_STATE) is the sessions with the responder’s state stolen instead of the initiator’s. With both in one model, Tamarin ran past 14 GB on the third key; a lemma about one side’s state doesn’t need the other’s.-D=CONTINUATIONS) have no ratchet and no state theft. Their attacker misses the ratchet’s fresh powers of p₀ and its ciphertexts, which no continuation’s SK depends on.-D=NO_CID_RULE) is the sessions without §5’s rule.-D=REVEAL) is first contact, Seedelfs on chain with their certificates, and the reveal, with no ratchet: the reveal goes in the clear, where the protocol sends it inside the ratchet, so its attacker sees more than the real one. Its claim is about who could have made the proof, which needs no ratchet.-D=CERTIFICATE, 55g) is first contact written to a Seedelf through a certificate from the list, with Seedelfs on chain and both keys stolen at will; no ratchet and no state theft. Its claims are about whom a first message reaches and what the Seedelf key gives, which need neither.-D=SKIPPED) are the sessions up to the first reply, then the initiator’s next chain with two messages, and the kept key stolen; no later step and no state theft. Their helpers are the sessions’ own, proved again there.-D=REVEAL, protocol.md §19): prf1 the real branch, made with the messaging key of A and of the Seedelf’s messaging register, prf2 the other, made with w₀’s, each binding cid, p₀, A, w₀, the name, the register and m_S. h_S is the hash of the name and the register, so they bind it, where the wire’s statement carries it to bind the reader’s network and policy, of which the model has one. The reader checks one by equality, as the real check’s equations hold exactly then, with its witness a principal’s key: any principal’s for the real branch, its own for the other. A proof by a key no principal holds isn’t here. Under one key it verified only for registers of that key, so for no principal’s Seedelf. With two, its m_S is that key’s, which a certificate made good only if the Seedelf’s x made it, so only a thief of x gains by one, and its own messaging key stands as a principal’s stolen one (15); the attacker still uses any key it steals. Then, at the press, a certificate good for the Seedelf that names the reveal’s m_S (§19.4, §21.5; assumption 15). Not modelled:
I_Reveal reveals any of the owner’s Seedelfs, certified or not, which gives the attacker more too.-D=REVEAL and -D=CERTIFICATE, protocol.md §21):
!Spend) and x_m (!Ltk), independent as two HKDF outputs of one seed under two salts are (§21.2), each with its own reveal at any time: Reveal_spend and Reveal_ltk. x_m is one per network on the wire; the model has one network.hbase(N, g_S, u_S), a public function whose output is a base no one knows the log of, as envelope.spthy’s g₂ is. Anyone computes it, for any name and register, and nobody chooses it. The network and the policy aren’t in it, one of each here. A conversation’s base is on G, which stands for the h_S of the Seedelf written to (3); the certificate and the reveal name m_S on h_S itself, which is what ties a messaging register to its Seedelf.cert(x, x_m, N, g_S, u_S, m_S), with no destructor, as the reveal’s proofs are (14). The owner’s Certify makes one for a Seedelf it minted, or an attacker that holds both keys does. Each check, the writer’s and the reader’s, takes x from a principal’s !Spend and x_m from a principal’s !Ltk and states the real check’s equations by equality: u_S = [x]g_S and m_S = [x_m]h_S. That’s the model’s way to say the proof verifies: the wallet’s check uses public values alone, and no rule outputs a key it took this way.Certify, beside Seedelf (the register itself, joint-security.md’s use 1) and the checks above (rule 8). That’s read from the rules: no lemma here could tell a rule that misused x on a point from one that didn’t, since Tamarin takes no exponent out of a power. spend_key_secret and spend_key_secret_beside_the_reveal show only that no rule outputs x where x is. In the other configurations no rule takes x, so nothing there can output it: a rule outputs only terms made of its premises and fresh values.I_* are the initiator’s steps, R_* the responder’s, C_Derive and C_Send_* a continuation by either side, and R_Label_* the reader’s “Continues” match, judged when the request arrives (judged_on_arrival). Seedelf and Seedelf_attacker put names on chain, I_Reveal sends a reveal and R_Check_reveal_* check one, the last against its certificate; I_Send_m3_first and _second send a chain of two, and R_Read_m3* read it in either order, keeping a skipped key. Since 55g, Spend_key gives each principal its Seedelf key, Certify makes a certificate, and I_Start_to_a_Seedelf is -D=CERTIFICATE’s writer, I_Start through the list. Reveal_ltk (a messaging key), Reveal_spend (a Seedelf key), Reveal_state_initiator, Reveal_state_responder and Reveal_skipped_key are the compromises.keys1_secret to keys4_secret, heal_keys_secret, responder_keys2_secret and _keys4_secret), and the initiator’s agreement lemmas too. Each is a [reuse] lemma the later ones in its configuration assume, proved in its own run; check.sh runs them all. In the continuations, static_dh_secret_with_continuations and static_dh_holds_r_a_with_continuations do the same for the static DH and its hold on R_A.[reuse] lemma’s excuse is dated as the lemmas standing on it need: static_dh_secret and _with_continuations name a theft before the attacker knew the secret, so a proof that a message is forged only after a theft closes on them. Undated, they closed nothing that needed the order (What building and reviewing it found).KU(rk) and KU(ck), the attacker deriving that key, so a later proof that reaches the key closes there. Two other guards fail, and the first version had both:
K(k) never fires: in a lemma, K is the attacker sending a message into the protocol (Tamarin’s ISEND), and a key is never sent. It only split the search on every message the attacker sent.KU(k) with k = rk or ck fires on every term the attacker derives, and the equality splits the search on each one.keys4_secret is the exception: in the key-guarded form Tamarin didn’t prove it in two hours at 12 GB, in the KU(k) form it takes minutes. So it’s stated that way, keys4_secret_guarded restates it guarded on each key (proved from it in 21 steps), and the lemmas after see only the twin.[reuse] lemmas its proof doesn’t need (hide_lemma), so they cost it nothing; some, m1_secret among them, hide only the one that slowed them. Hiding a lemma only drops an assumption. A trace lemma sees them all: they cut every branch where the attacker would build a message it has no key for. The continuations’ two “Continues” traces are the exception, hiding their helpers as they always have.executable the whole conversation, message by message, and the others the honest exchange up to their theft; reader_key_before_the_reply_takes_over with no reply from Bob at all, and reader_key_lets_anyone_pose_to_the_reader on a base and a cid no honest initiator used. reader_key_forges_continues names its forgery too: x_B stolen after an honest conversation, then a continuation of it on the old base with E = S = G, which any point would do here (on the wire, since call 16, powers of p₀ the forger chose: assumption 12). Naming more only narrows what the lemma says exists, and it keeps Tamarin’s search on that trace.static_dh_secret and static_dh_holds_r_a for its agreement, and responder_accepted_the_initiators_f for its keys, since responder_keys2_secret and _keys4_secret name the initiator’s own F. In the continuations, static_dh_holds_r_a_with_continuations carries both the agreement and the label.states_then_keys, ranks the goals of the lemmas Tamarin’s default ranking stalled on: the protocol’s states first, so a [reuse] lemma has the rule instances it matches, then what the attacker knows of fresh values and of keys, Diffie–Hellman case splits late, and how the attacker built a message last. A ranking changes how long a proof takes, never what it proves.KeyOn(P, p₀, A) is an observer rule that publishes nothing. A lemma can’t write “A = [x_P]p₀” with a power in its formula, so it says KeyOn.The envelope model (2026-11-22) copies the session model’s rules and seals each message. Its precomputation first ran out of memory, past 10 GB, and each cause took a bisection, rule by rule, to find:
--auto-sources nor a sources lemma closed it; typing every cid as fresh did. No configuration here seals a received cid any more, so cids are general again.!Pk is a power of a variable, and the envelopes publish powers of it: the same kind of chain. The initiator’s rules take the reader’s key from its fact instead, and use it only in w₀ (the comment above I_Start).'g'^(~xr*~rb) fails Tamarin’s multiplication restriction, a soundness condition of its Diffie–Hellman theory, while ('g'^~xr)^~rb is the same point and passes.Eq), as the reveal’s checks are. The open keeps [x]c in its pattern, where the message-derivation check sees how the reader gets the key.R_Keys_proof_attacker’s three powers of one received point by three received exponents gave Maude’s variant computation more than a thousand variants in its first minute, with no end: each -D=FIRST configuration’s wellformedness checks ran out of 2,400 s at 13 MB, waiting on Maude after “Theory closed” (the query, logged through --with-maude, was that rule’s). As names, as the attacker’s bases are G^$k, the rule has 59 variants, the designated-verifier branch’s 19, and each configuration’s checks finish in about 15 s.-D=FIRST) is proved in minutes at 6 GB. First contact and the reply, with or without the initiator’s reading of it, didn’t finish saturating in 25 minutes at 8 GB, or in 20 GB, whatever the open’s encoding. The claims that needed the reply and the second chain each got a configuration of their own (The outer envelope, assumption 4), proved in seconds to minutes under 1 GB.-D=SEALED_TO_A_KEY first took the outer scalar from the attacker and ran out of memory, and with a fresh scalar it publishes, proves in seconds. The attacker raises any point it holds to any power it knows, so a scalar given is as good as one chosen.[reuse] helpers on what a forgery would need (kept_conversation_secret, kept_salt_secret, dated as the lemma on them needs). With them, and the chain’s counter typed, kept_key_alone_writes_nothing takes 3 minutes; before, it ran past 20.share(tagc(s, k, m), k, m) = s: a rule that pulled the associated data out of a ciphertext instead failed the derivation check.The plan named ProVerif by default. ProVerif takes Diffie–Hellman as an equation, and the registers need it with any point as the base: p₀ is itself a power of G, and w₀, E_A and the DH outputs are powers of p₀. Its completion of exp(exp(P, x), y) = exp(exp(P, y), x) didn’t finish on a one-line model. Tamarin’s built-in theory takes any base.