diff --git a/docs/adr/0052-exponential-elgamal-jubjub.md b/docs/adr/0052-exponential-elgamal-jubjub.md new file mode 100644 index 00000000..f30e549a --- /dev/null +++ b/docs/adr/0052-exponential-elgamal-jubjub.md @@ -0,0 +1,649 @@ +# ADR-0052: Exponential ElGamal on Jubjub — additively homomorphic encryption for circuits and tallies + +## Status +Accepted (design) — 2026-10-05. +- The reviewer approved r3 at `092cf6b` with no outstanding findings, and the maintainer + accepted the design. +- Acceptance is design acceptance only. It certifies no implementation, test or security + property. +- Implementation of M0–M4 is in progress on PR #76, one reviewed step at a time. The + "Implementation status" section at the end tracks it. +- Q1–Q5 were decided by the maintainer on 2026-10-05: each recorded lean is adopted (see + "Open questions"). + +This ADR changes no maturity claim. The ADR-0037 production-readiness table and the ADR-0039 +assurance classes remain authoritative. Every secret-bearing host operation proposed here stays +in the **compatibility/offline** class (ADR-0039 §3.1). + +## Date +2026-10-05 + +## Revision history +- **r1** (`9fe1c11`) — initial proposal. +- **r2** (2026-10-05; responds to the review of `9fe1c11`): + - F1 → new D2a (admission and plaintext bounds); message width capped at 64 bits in D1 and + D3; I6, I7 and I10 rewritten; new I16; M1 and M2 negatives. + - F2 → new D2b (verified decryption shares); D5 gains a registered key context; new I14 + and I15; M1 negatives. + - F3 → new D2c (key context on every ciphertext); D7 states that the encoding carries + neither key nor bound; new I13. + - F4 → Compatibility rewritten to separate ciphertext compatibility from proof and + verification-key compatibility; M3 gains a compiled-system gate. +- **r3** (2026-10-05; responds to the review of `f1007ff`): F3 completed. Single-key decryption + now requires a validated `ElGamalSecretKey` whose public key equals the ciphertext's joint + key, and `decryptionShare` requires the share's public key to be registered in the + ciphertext's context. I13 and the M1 negatives are extended. +- **Accepted** (2026-10-05): approved at r3 (`092cf6b`); status flipped without changing the + design text. +- **Decisions recorded** (2026-10-05): the maintainer adopted the lean of every open question + (Q1–Q5). No design text changes; each question is marked decided. + +## Risk classification +- **R3:** D1 (the `elgamal-jubjub-v1` profile: the ciphertext, the message encoding and the + homomorphic semantics), D3 (the in-circuit relations, whose soundness the tally depends on) + and D4 (the trustee relation and its proof system). These define the scheme's cryptographic + behaviour, even though the Jubjub arithmetic underneath is not new. +- **R2:** + - D2 (the host API and its validation); + - D2a, D2b and D2c (ciphertext admission and bounds, verified decryption shares, key context: + the trust boundaries of the host API); + - D5 (key aggregation and proof of possession); + - D6 (maturity and assurance labelling); + - D7 (encodings and the order of public inputs). + +## Context + +### Where this comes from + +ADR-0051 D8 deferred "a private-ballot protocol (exponential ElGamal with tally decryption and +threshold keys, in the line of Cramer–Gennaro–Schoenmakers 1997)" to its own ADR. The +`zeroj-usecases` private-voting demo has since implemented that protocol inside the usecase. +The repository is `bloxbean/zeroj-usecases`, the issue is #7, the pull request is #8, and the +design is usecases ADR-0005. The implementation has these parts: + +| Part | Location in `zeroj-usecases` | Generic? | +|---|---|---| +| Host ElGamal: encrypt, add, joint key with checks, decryption share, unmask, bounded discrete log, subgroup decode | `private-voting/.../voting/crypto/JubjubElGamal.java` | Yes | +| In-circuit encryption relation, and the discrete-log-equality (DLEQ) relation | `private-voting/.../voting/circuit/JubjubElGamalGadget.java` | Yes | +| Independent Python reference, written from the curve definition, and its vectors | `private-voting/src/test/resources/elgamal-reference/` | Yes | +| Ballot circuit (eligibility Merkle path, nullifier), vote list scripts, tally orchestration, manifest | `private-voting/...` | No: application | + +The generic parts are reusable for: +- any private sum: weighted or multi-option votes, salary and other surveys, sealed-bid totals; +- encrypted counters held by a contract; +- the threshold-decryption building block of later protocols. + +Today each application would have to re-derive them. The usecase also had to drop below ZeroJ's +annotation API. `ZkJubjubPoint` exposes no scalar multiplication, so the gadget wraps +`InCircuitJubjub.scalarMulFixedBase` / `scalarMulVariableBase` itself and re-implements the +affine-equality check. That is exactly the kind of hand-written seam ZeroJ's typed adapters +(ADR-0038, ADR-0051 D3) exist to remove. + +### What the usecase established + +These results are evidence for the design, not for its security. They were measured at +`zeroj-usecases` `fbc2dc9` / `20a16a8` against ZeroJ `576e5fb`. + +- **Independent vectors:** the Java host code matches a Python reimplementation, written from + the curve definition (`d = −10240/10241`, `G = [8](u₀, 11)`, checked against the pinned + `pedersen-jubjub-v1` value base), for keys, ciphertexts, sums, decryption shares and the + tally. +- **Circuit cost:** + - the DLEQ circuit (`trustee-dleq`) has 6,546 constraints; + - the ballot circuit has 8,022 constraints at Merkle depth 4 and 9,486 at depth 10. That + includes Poseidon and the Merkle path. + - The ElGamal relation alone is not separately measured. Estimate: 1,506 (fixed-base, + 252-bit) + 5,533 (variable-base, 252-bit), plus a select, an addition and two affine + checks. Both scalar-multiplication figures are pinned in `InCircuitJubjub`'s Javadoc. +- **On-chain:** a Groth16 ballot proof with 9 public inputs verifies at about 4.25e9 CPU and + 0.69M memory in the Plutus VM. +- **Reviews:** two adversarial review rounds, on the design and on the implementation, found no + issue in the generic cryptographic core. + - They confirmed that one 252-bit decomposition suffices for both scalar multiplications. + - They confirmed that `k ≥ l` is harmless, because both bases lie in the prime-order subgroup. + - The findings were all in application binding: the vote list and the scripts. + +## Threat model and trust assumptions + +- **Untrusted:** + - provers and every witness value; + - ciphertexts and public keys received as bytes or as public inputs; + - claimed decryption shares; + - claimed tallies; + - any **plaintext bound** or **key association** claimed for a ciphertext received from + elsewhere. Points that decode correctly prove nothing about the range of the message, nor + about which key encrypted it. +- **Secret:** + - the encryption randomness `k` and the message `m` (for example, a vote); + - each trustee's key share `sk_j`. + + Host arithmetic on all of these is variable-time `BigInteger` Java, which is the + compatibility/offline class (ADR-0039 §3.1). The in-circuit gadgets emit constraints only; + the prover's witness generation is a separate, equally offline-class computation. +- **Security goals:** + - IND-CPA of each ciphertext, under DDH in the Jubjub prime-order subgroup; + - soundness of the in-circuit relations: a proof exists only for a well-formed encryption of + an in-range message under the stated key, and only for a correct decryption share; + - correct decryption of a bounded homomorphic sum. +- **Trusted:** + - **The setup.** For circuits proved with Groth16, the setup is trusted: whoever knows its + toxic waste can forge any relation in this ADR. Production needs keys from an MPC ceremony + (ADR-0031). The dev setup is development-only. + - **The trustees.** At least one trustee is honest. With n-of-n sharing, all trustees together + can decrypt any single ciphertext. +- **Out of scope:** + - application authorization, replay protection, nullifiers and binding to the + `ScriptContext` (as in ADR-0006 and ADR-0051); + - when to decrypt. "Decrypt once, after a deadline", without which differencing two tallies + reveals one message, is an application rule. ZeroJ documents it but cannot enforce it. + +## Pinned normative references + +- **[CGS97]** R. Cramer, R. Gennaro, B. Schoenmakers, *A Secure and Optimally Efficient + Multi-Authority Election Scheme*, EUROCRYPT '97, LNCS 1233, pp. 103–118. The text was + fetched from the authors' copy, `berry.win.tue.nl/papers/euro97.pdf`, on 2026-10-05. + - **§2.2:** the ElGamal ciphertext `(x, y) = (g^α, h^α·m)`. + - **§2.3:** threshold decryption. Each authority broadcasts `w_j = x^{s_j}` and proves in + zero-knowledge that `log_g h_j = log_x w_j`. + - **§2.4, Fig. 1:** the Chaum–Pedersen proof of that equality. + - **§2.5:** "the encryption of a message `m ∈ Z_q` will be the ElGamal encryption of `G^m`", + so that a product of ciphertexts encrypts `m1 + m2 mod q`, and decryption "can be done + efficiently for 'small' messages". + - **§3 and its footnote 3:** the tally is recovered "using O(l) modular multiplications", + or with Shanks' baby-step giant-step in `O(√l)`. +- **[ElG85]** T. ElGamal, *A public-key cryptosystem and a signature scheme based on discrete + logarithms*, IEEE Trans. Inf. Theory IT-31(4):469–472, 1985. Bibliographic entry as cited in + [CGS97]; the paper itself was not fetched (**unverified**). +- **[CP93]** D. Chaum, T. P. Pedersen, *Wallet databases with observers*, CRYPTO '92, LNCS 740, + pp. 89–105. Bibliographic entry as cited in [CGS97] (**unverified** directly). +- **[RY07]** T. Ristenpart, S. Yilek, *The Power of Proofs-of-Possession: Securing Multiparty + Signatures against Rogue-Key Attacks*, EUROCRYPT 2007; ePrint 2007/264, fetched 2026-10-05. + The abstract says: "Multiparty signature protocols need protection against rogue-key attacks, + made possible whenever an adversary can choose its public key(s) arbitrarily." The paper + concerns signatures. D5 applies the same principle to additive aggregation of encryption + keys, as an analogy, not as a result of the paper. +- **[Ped91]** T. P. Pedersen, *A threshold cryptosystem without a trusted party*, EUROCRYPT '91, + LNCS 547, pp. 522–526. Cited for D5's out-of-scope threshold path; bibliographic entry as + cited in [CGS97]. +- **draft-irtf-cfrg-sigma-protocols-03** (2026-08-17). + - §3.1 and §3.4 define the `ChaumPedersen(H, X, Y)` relation: "Witness: x Equations: + X = x * G, Y = x * H". + - §8 defines only the ciphersuites `sigma-proofs_Shake128_P256` and + `sigma-proofs_Shake128_BLS12381`. There is **no Edwards or Jubjub ciphersuite**. + - Fetched 2026-10-05; also pinned by ADR-0051 D7. +- **draft-irtf-cfrg-fiat-shamir-03** (2026-08-17). Its only instantiations are SHAKE128 and + TurboSHAKE128 (ADR-0051 D7: Plutus has no SHAKE). +- *Zcash Protocol Specification*, v2026.7.0 [NU6.2], for the Jubjub parameters; ZIP 216 for + canonical point encodings; and ZeroJ `docs/specs/pedersen-jubjub-v1.md`, which pins the value + base `G` and the 64-byte scalar reduction. All three are already pinned by ADR-0051. +- **Internal:** + - ADR-0031 (production trusted setup); + - ADR-0037, ADR-0038, ADR-0039 (Jubjub soundness, the DSL contracts, assurance classes); + - ADR-0045 (public wires must be bound); + - ADR-0051 (Pedersen profiles, the provenance types in D3 and the hiding-scalar guard rails + in D2); + - `zeroj-usecases` ADR-0005 (the first application). + +## Decision + +### D1 — Profile `elgamal-jubjub-v1` (R3) + +Lifted, or "exponential", ElGamal over the Jubjub prime-order subgroup `𝔾` of order `l`, in the +form of [CGS97] §2.5, written additively. + +- **Generator:** `G = JubjubPoint.SUBGROUP_GENERATOR`, the `pedersen-jubjub-v1` value base. It + serves as both the key base and the message base (see Q3). +- **Keys:** a secret `sk ∈ [1, l)` and its public key `PK = [sk]·G`. +- **Encryption** of an integer `m ∈ [0, 2^w)`, at a width the caller declares, with + `1 ≤ w ≤ 64` (`MAX_MESSAGE_BITS`). Since `2^64 − 1 < l`, every admitted message is + canonical, so no two in-range messages share a ciphertext. At `w = 252` they could: `m` and + `m + l` both fit in 252 bits, and `[m]·G = [m + l]·G` (F1). Decryption by search is + practical only for small totals anyway (D2). + ``` + k ← uniform in [0, l) (64 random bytes reduced mod l, as pedersen-jubjub-v1 §3.1) + A = [k]·G decryption handle + B = [m]·G + [k]·PK blinded message + ``` +- **Homomorphism** (only between ciphertexts under the **same key**, D2c): + - `Enc(m1) + Enc(m2) = Enc(m1 + m2)`, by component-wise addition. + - `[c]·Enc(m) = Enc(c·m)` for a public integer `c ≥ 1`. + - Plaintexts live mod `l`, so reading a result as an integer requires every input's bound to + be **established**, not merely claimed (D2a), and the result's bound to stay below `l` (I7). + A successful small discrete log does not detect an earlier wraparound: for example, + `Enc(l − 1) + Enc(1)` decrypts to `0`. +- **Decryption:** `M = B − [sk]·A = [m]·G`. Then `m` is the unique `t ∈ [0, bound]` with + `[t]·G = M`, found by a bounded search: linear, or baby-step giant-step, as in [CGS97] §3, + footnote 3. If no `t` matches, decryption fails closed. +- **Distributed decryption** (n-of-n, see D5): + - each trustee computes `D_j = [sk_j]·A`; + - `M = B − Σ_j D_j`. + + This is [CGS97] §2.3 with additive shares; Lagrange coefficients are all 1. Each `D_j` is + used only after its DLEQ proof is verified against the registered `PK_j` and this exact `A` + (D2b). + +`elgamal-jubjub-v1` is versioned like the Pedersen profiles. Any change to the generator, the +encodings or the randomness derivation is a new profile. + +### D2 — Host API in `zeroj-circuit-lib` (R2) + +Package `org.zeroj.circuit.lib.jubjub`, next to `PedersenCommitment`. The names are +illustrative. The API has a **raw layer** and a **safe layer**, and only the safe layer gives +the guarantees of this ADR. + +- **`ElGamalPublicKey`:** a validated non-identity subgroup point. It is produced only by the + validating constructors in D5, or by `fromSecret`. +- **`ElGamalKeyContext`** (D5, D2c): a joint key together with the registered set of trustee + key shares that produced it. +- **`RawElGamalCiphertext`:** the result of decoding 64 bytes (D7). Its points are canonical, + on-curve and in the subgroup. It carries **no key and no plaintext bound**, so it cannot be + added or decrypted on the safe path. +- **`ElGamalCiphertext`:** the safe-path type. It carries `(A, B)`, its key context and an + **established** plaintext bound. It can be created only by admission (D2a). +- **`encrypt(context, m, width, SecureRandom)`:** local encryption. It is one of the two ways to + admit a ciphertext. +- **`add`, `scale`:** these require the same key context (D2c), combine bounds, and refuse a + result whose bound reaches `l` (I7). +- **`decryptionShare(secretShare, ciphertext)`:** + - The input is an `ElGamalCiphertext`, so its handle is already a validated subgroup point + before any secret multiplication (I15). + - The method refuses a share whose public key `[sk_j]·G` is not registered in the + ciphertext's key context (I13). +- **`decrypt(ciphertext, verifiedShares, maxPlaintext)`:** distributed decryption (D2b). +- **`decryptWithSecret(ciphertext, secretKey, maxPlaintext)`:** the single-key path. + - It takes an `ElGamalSecretKey`: a canonical, non-zero secret `sk ∈ [1, l)`, validated + together with its public key. + - It refuses unless `[sk]·G` equals the ciphertext's **joint** key. A trustee's individual + share is not the full secret and is refused; trustees use `decryptionShare`. + - Without the check, a wrong secret can return a wrong in-range value. For example, `(G, 4G)` + is `Enc(1; k=1, PK=3G)`, and secret 4 yields `4G − [4]·G = O`, which decrypts to `0`. +- Both decryption paths use a bounded search with an explicit maximum, and both fail closed. + +The API makes no "constant-time" claim. Its secret-bearing methods are named and documented as +compatibility/offline-class (D6). It does not branch on the message: `[m]·G` is computed by +scalar multiplication for every `m`. That removes the most obvious leak of the message, a +different path for `m = 0`, but the operation is still variable-time. + +### D2a — Ciphertext admission and plaintext bounds (R2; responds to F1) + +A plaintext bound is established only when a ciphertext enters the safe layer. There are +exactly two ways in: + +1. **Local encryption**, `encrypt(context, m, width, rng)`. The library checks `m < 2^width` and + `width ≤ 64`, so the bound is `2^width − 1`. +2. **Verified admission**, `admit(raw, context, width, verifier)`. The caller supplies a + verifier that checks the D3 encryption statement for **exactly** this ciphertext + `(A.u, A.v, B.u, B.v)`, this key `(PK.u, PK.v)` and this width. The bound is then + `2^width − 1`. + + This is a **delegated verifier obligation**, and the Javadoc says so. One legitimate + delegation is an on-chain validator that already verified that statement before the + ciphertext reached the ledger, for example the usecase's ballot policy. The caller must + then establish, from chain data, that the ciphertext is one such validator accepted. + +There is no constructor from a claimed bound or a claimed key: relabelling a ciphertext after +serialization is impossible on the safe path. No out-of-circuit range proof is invented; a +range is established only by local encryption or by a verified in-circuit statement. + +### D2b — Verified decryption shares (R2; responds to F2) + +A claimed share is untrusted. Without verification, a trustee who has seen the other shares +can publish `D_bad = B − [t]·G − Σ D_honest` and make the result any in-range `t` it likes. +The bounded search cannot detect this, because the forged result is in range. [CGS97] §2.3 +verifies each authority's proof before combining its share. + +- **`VerifiedDecryptionShare.verify(ciphertext, trusteeShare, D, proof, verifier)`** is the + only constructor. The verifier checks the D3 DLEQ statement with: + - `X` = this ciphertext's handle `A`, taken from the admitted ciphertext and never from the + share's sender; + - `P` = the trustee's **registered** key share from the key context; + - `D` = the claimed share. + + The resulting object is bound to that ciphertext and that trustee. +- **`decrypt(ciphertext, verifiedShares, maxPlaintext)`** requires all of the following, and + otherwise refuses: + - every share is bound to this exact ciphertext; + - every share belongs to a trustee registered in the ciphertext's key context; + - there is exactly one share per registered trustee: no share missing, none repeated, none + foreign; + - the ciphertext's established bound is at most `maxPlaintext`. +- **Raw layer.** An unchecked `unmask(B, shares)` exists only on the raw layer, documented as + giving no guarantee against a malicious trustee. + +### D2c — Key context on every ciphertext (R2; responds to F3) + +The homomorphic identities hold only between ciphertexts under the same key. Adding ciphertexts +under different keys need not fail the search; it can return a wrong in-range value. For +example, `Enc(1; k=1, PK=3G) + Enc(1; k=1, PK=2G)` decrypts to `1` under secret 3. + +- Every `ElGamalCiphertext` carries its `ElGamalKeyContext`. +- `add`, `scale` and `decrypt` refuse ciphertexts with different contexts. Contexts compare by + the joint key and the registered share set. +- A secret is tied to the context as well: + - `decryptWithSecret` requires the secret's public key to equal the context's joint key; + - `decryptionShare` requires the share's public key to be registered in the context. +- The 64-byte encoding carries no key (D7). A decoded ciphertext gets its context only through + admission (D2a), and the verified D3 statement includes the key as public inputs. A bare key + label is therefore never trusted. +- Raw-layer point arithmetic carries a stated precondition (one key) and no guarantee. + +### D3 — In-circuit relations (R3) + +A CircuitAPI-level gadget, `InCircuitElGamal`, and a typed annotation adapter, `ZkElGamal`, +with `ZkElGamalPublicKey` and `ZkElGamalCiphertext`, mirroring `ZkPedersenCommitment`. + +- **`ZkElGamal.encrypt(zk, ZkUInt message, ZkUInt randomness, ZkElGamalPublicKey key)`** returns + a ciphertext. `assertAffineEquals(A.u, A.v, B.u, B.v)` binds it to public inputs. + - `[m]·G` is a fixed-base multiplication over the message's own decomposition, at its declared + width. One-bit messages may use a selection. + - The width is `1 ≤ w ≤ 64`, and a wider declaration is refused when the circuit is defined. + At width 252 a witness with `m = l` satisfies the same constraints as `m = 0` (F1). + - `randomness` must be declared 252 bits wide. It is decomposed **once**, and that one + decomposition drives both `[k]·G` (fixed base) and `[k]·PK` (variable base) (I5). + - It carries ADR-0051 D2's guard rails: `requireNotPublicOrConstant` and + `requireHidingRange(252)`. +- **Ways a public key enters a circuit** (I8, after ADR-0051 D3): + - `ZkElGamalPublicKey.fromVerifierFixedPublic(zk, u, v)` requires both coordinates to be + declared public inputs. It asserts the curve equation and **non-identity**. Subgroup + membership is the verifier's obligation, which it discharges when it fixes the key: for + example, a script parameter whose key shares carry proofs of possession (D5). + - `ZkElGamalPublicKey.witnessInSubgroup(zk, u, v)` asserts subgroup membership in-circuit, at + the cost of a full `[l]·P`. +- **`ZkElGamal.assertDiscreteLogEquality(zk, ZkUInt x, ZkField Xu, Xv, Pu, Pv, Du, Dv)`** proves + `P = [x]·G` and `D = [x]·X`, with one decomposition of `x` and the hiding guard rails. `X` is + bound by the curve equation. The verifier chooses `X`: + - `G` for a proof of possession (with `D = P`); + - the recomputed aggregate handle `ΣA` for a decryption share. + +These relations are the same as the usecase's, but now behind typed, provenance-tracking +entry points. No general-purpose `ZkJubjubPoint` scalar multiplication is added (Q5). + +### D4 — Trustee proofs: the relation now, the Σ-protocol later (R3, **open — escalated**) + +The trustee relation is `log_G P = log_X D` ([CGS97] §2.3 step 1). The usual proof is +Chaum–Pedersen ([CGS97] §2.4, [CP93]), which needs no trusted setup. The CFRG sigma draft +specifies exactly this relation (`ChaumPedersen`, §3.4). But: + +1. The draft defines **no Jubjub or Edwards ciphersuite** (§8). Using it on Jubjub means + defining a ciphersuite: the group encoding, hash-to-scalar and the transcript. That is new + R3 material the references do not pin. +2. Its Fiat–Shamir instantiations need SHAKE, which Plutus lacks (ADR-0051 D7). This matters + only if shares are ever verified on-chain. + +**Proposal:** ship the relation as the D3 gadget. Applications prove it inside their own circuit +(Groth16 or PlonK), with their own setup. **No Σ-protocol is implemented under this ADR.** +Options for the long term: + +| Option | Trusted setup | Spec status | On-chain | +|---|---|---|---| +| (a) The D3 relation in a SNARK (proposed now) | Yes: the application's | Pinned (this ADR and its spec) | Yes (Groth16 on Plutus) | +| (b) A ZeroJ-specified Jubjub ciphersuite for `ChaumPedersen` | No | Invented here; needs external review | Not natively (no SHAKE), unless ADR-0051 D7 picks a SHA-2/BLAKE2 transcript | +| (c) Wait for an Edwards ciphersuite in the CFRG draft | No | Upstream | As (b) | + +Lean: (a) now, and (c) for setup-free verification. **This ADR does not decide (b).** Per +AGENTS.md, a new transcript is escalated, not invented in code. + +### D5 — Key setup: n-of-n with proof of possession (R2) + +- **Aggregation.** `ElGamalPublicKey.aggregate(List)` sums shares into the + joint key. It refuses: + - an empty list; + - duplicate shares; + - identity or non-subgroup shares; + - an identity sum. +- **Proof of possession, enforced by type.** A `VerifiedKeyShare` can be constructed only by + `VerifiedKeyShare.verify(PK_j, proof, verifier)`. The `verifier` is a caller-supplied check of + the D3 DLEQ relation with `X = G`, `D = P = PK_j`. The library does not pick the proof system + (D4), but it makes skipping possession impossible without deliberately writing a verifier + that lies. + - This blocks the rogue-key attack: a party that publishes `PK_n = [x]·G − Σ_{j• decoding: non-canonical, off-curve, small-order;
• bounds: `m = l` and widths above 64 refused; a serialized and re-decoded ciphertext is raw and cannot be added or decrypted; the wrapped terms `Enc(l−1) + Enc(1)` cannot be admitted with false bounds;
• shares: the forged in-range share (`D2 = 36G` for `35G`, trustee keys `3G` and `5G`, `m = 1`, `k = 7`) refused; missing, repeated, foreign-key, wrong-handle and invalid-proof shares refused;
• keys: mixed-key `add` refused (`Enc(1;1,3G) + Enc(1;1,2G)`); `decryptWithSecret` refuses secret 4 for `(G, 4G)` under `PK = 3G`; a trustee share passed as the full secret is refused; `decryptionShare` refuses a secret whose public key is not registered. | +| M2 | `InCircuitElGamal` and the `ZkElGamal` adapter (D3) | M1 | Negatives:
• mismatched scalars;
• a message above its width;
• a message width above 64, refused at definition (the `m = 0` / `m = l` alias at width 252);
• an identity or off-curve key;
• a wrong share or a wrong base;
• a public or narrow randomness.
Constraint counts pinned. Groth16 prove and verify, with every public input shown to be bound. | +| M3 | Migrate `zeroj-usecases` private-voting onto the library | M2, and a ZeroJ release containing it | Ciphertext compatibility shown by a differential test. Compiled-system decision recorded: either identical R1CS digests and archived proofs verifying at the verifier boundary, or a new circuit version with new setup artifacts and scripts, with existing elections kept on the old ones. Usecase VM and DevKit end-to-end tests pass. The usecase's private gadget and host class are deleted. | +| M4 | Docs: support matrix (Experimental), gadget guide, annotation guide | M2 | Docs reviewed. | + +## Verification and test-vector strategy + +- **Independent reference.** Move the usecase's Python reimplementation into ZeroJ's test + vectors. It is written from the curve definition and derives `d` from `−10240/10241`. It + produces keys, ciphertexts, sums, shares and tallies for fixed scalars. +- **Spec cross-checks.** + - `G` must equal `pedersen-jubjub-v1`'s pinned value base. + - The 64-byte reduction must match that spec's blinding derivation. +- **Negatives.** + - Decoding: non-canonical, off-curve and small-order inputs. + - Bounds: overflow of the plaintext bound. + - Aggregation: identity, duplicate and cancelling shares. + - Admission and bounds: the M1 cases (`m = l`, relabelling after serialization, wrapped + imported terms). + - Shares: the forged in-range share and every malformed share set. + - Keys: mixed-key arithmetic. + - Circuits: no witness for every D3 misuse; a proof fails against each changed public input. +- **Differential.** Host encryption against an in-circuit encryption of the same `(m, k)`. + Usecase ciphertexts before and after M3. Proof compatibility is shown only as the + Compatibility section requires. +- **Not evidence of security:** passing tests, test counts and benchmarks. + +## Production / audit gates + +- External review of the spec (M0) and of the in-circuit relations (M2). +- For applications: MPC-generated keys for every circuit using these relations, independent + trustee custody, and a threshold-DKG ADR if `t-of-n` is needed. +- For online secret handling: an ADR-0039-style hardened path. Until then, compatibility/offline + only. + +## Risks + +- **Misuse of "decrypt once".** An application that decrypts running totals leaks individual + messages by differencing. Mitigation: documentation and examples. The library cannot enforce + it. +- **Bound and admission mistakes.** + - An application that decrypts with too small a search limit gets a fail-closed error, not a + wrong answer. + - An application that bypasses admission through the raw layer, or writes a verifier that + checks the wrong statement, can misread a wrapped or mislabelled sum. + - Mitigation: I7 and I16, enforced in types, with the delegated verifier obligation + documented. +- **Malicious trustees.** A trustee that publishes an unverified share chooses the result. + Mitigation: I14. The safe decryption path cannot run without verified shares. +- **Setup trust.** A subverted setup forges ballots and shares (D4). Mitigation: production + gates; resolve D4 for setup-free shares. +- **Two schemes on shared guard rails.** A regression in ADR-0051's D2 or D3 machinery now + affects ElGamal too. Mitigation: both suites run on every change. + +## Open questions (points needing a maintainer decision) + +1. **Q1 (D4): the trustee proof system.** + - Options: (a) the SNARK relation only, (b) a ZeroJ-specified Jubjub `ChaumPedersen` + ciphersuite, (c) wait for upstream. + - Lean: (a) now, (c) later; do not do (b) without external review. + - **Decided 2026-10-05 (maintainer): lean adopted.** The SNARK relation only; no + Σ-protocol in ZeroJ. +2. **Q2 (D5, D2a, D2b): verification enforced by type, or by documentation.** r2 applies the + same choice to key shares, to admitted ciphertexts and to decryption shares. + - Option (a) is the `VerifiedKeyShare` type, constructed only through a caller-supplied + check. Option (b) documents the requirement and accepts raw keys. + - Lean: (a). It is more ceremony, but a forgotten possession check is exactly the rogue-key + bug. + - **Decided 2026-10-05 (maintainer): lean adopted.** Verification is enforced by types. +3. **Q3 (D1): the message base.** [CGS97] uses an independent message base `G` alongside the key + base `g` (§2.2, §2.5). This ADR uses one generator for both, as lifted ElGamal commonly does. + - IND-CPA does not depend on independent bases. + - The SNARK relation fixes the bases, so soundness does not either. + - Lean: one generator. The alternative is a second NUMS base derived like + `pedersen-jubjub-v1`'s `H`. + - Review r1 assessed one generator as acceptable for IND-CPA under DDH: in the DDH hybrid, + `[k]·PK` is replaced by a uniform subgroup point, which hides `[m]·G` whatever the message + base. This is not the two-independent-bases requirement of a binding Pedersen commitment. + It remains a maintainer decision. + - **Decided 2026-10-05 (maintainer): lean adopted.** One generator. +4. **Q4 (D1, D2): the search algorithm and its limit.** + - Options: (a) linear search only, (b) baby-step giant-step with a caller-supplied maximum + and a memory cap. + - Lean: (b), with the maximum always explicit, defaulting to failure when it is omitted. + - **Decided 2026-10-05 (maintainer): lean adopted.** Baby-step giant-step, with an explicit + maximum and memory and time caps. +5. **Q5 (D3): a general scalar multiplication on `ZkJubjubPoint`.** Lean: no, for the reason in + the alternatives table. Revisit if a third scheme needs it. + - **Decided 2026-10-05 (maintainer): lean adopted.** No general scalar multiplication. + +## Related findings (out of scope) + +- `ZkJubjubPoint` has no scalar multiplication, so applications fall back to + `InCircuitJubjub` and hand-written affine checks. Q5 records the decision not to widen it here. +- Julc's local evaluator needs a `SlotConfig` for time-dependent scripts. Without one it passes + raw slot numbers. Found in the usecase; it concerns usecase tooling, not this ADR. + +## Implementation notes (refinements recorded during implementation) + +These refine the accepted design without changing a security invariant. They are recorded +here, as AGENTS.md requires, for maintainer acknowledgement. Each is stated normatively in +`docs/specs/elgamal-jubjub-v1.md`. + +1. **Local possession** (D5 says `VerifiedKeyShare.verify` is the only constructor). + `VerifiedKeyShare.fromSecret` also exists: a share computed locally from a held secret is + possession-verified (spec §3.3). Holding the discrete logarithm is what a possession proof + establishes. +2. **Locally computed decryption shares** (D2b says `verify` is the only constructor). + `ElGamal.decryptionShare` returns a share verified by construction: the library computes + `D = [sk_j]·A` itself, from a secret whose public key is registered (spec §10.2). +3. **Homomorphic combinations stay admitted** (D2a says "exactly two ways in"). A combination + of admitted ciphertexts under one context is admitted, with the combined bound (spec §10.1). + D2 already defines `add`/`scale` on safe ciphertexts; the spec makes the consequence explicit. +4. **The encryption statement's order** is `PK.u, PK.v, A.u, A.v, B.u, B.v` (spec §8). D7 pins + the key and the ciphertext groups separately. +5. **Affine import** of points from integers, for ledger data, requires canonical coordinates + without reduction, the curve equation and subgroup membership (spec §7.4). +6. **Witness access.** `ElGamal.encryptWithOpening` returns the opening `(m, k)`, and + `ElGamalSecretKey.secretScalar()` returns `sk`. They are documented as offline-class witness + material, because an encrypting party and a trustee must be able to build their own proofs. + Neither creates a safe-layer object without the checks. + +## Implementation status + +| Milestone | State | Notes | +|---|---|---| +| M0 | Done, reviewed (round 1: approve) | Spec `docs/specs/elgamal-jubjub-v1.md`. The independent Python reference in `zeroj-circuit-lib/src/test/resources/elgamal-reference/` was written from the specs alone and recorded 13 findings, each resolved in the spec. It also cross-checks the usecase prototype's vectors (21 points and the tally). | +| M1 | Done, reviewed (round 1: approve, P2s closed) | Host API in `org.zeroj.circuit.lib.jubjub`: `ElGamal` (including `encryptWithOpening`), `ElGamalEncryption`, `ElGamalSecretKey`, `ElGamalPublicKey`, `ElGamalKeyContext`/`NOfNKeyContext`, `VerifiedKeyShare`, `RawElGamalCiphertext`, `ElGamalCiphertext`, `DleqStatement`/`EncryptionStatement` and their verifiers, `VerifiedDecryptionShare`, `JubjubDiscreteLog`. `ElGamalApiSurfaceTest` guards the type-enforced invariants. Public data runs on `FastJubjubPoint` (Montgomery limbs: subgroup check 960 → 85 µs). `JubjubPoint` decoding's square root moved to Montgomery limbs (185 → 38 µs per point). Tests: `ElGamalReferenceVectorsTest`, `ElGamalHostApiTest`, `FastJubjubPointTest`, `JubjubDiscreteLogTest`, `JubjubDecodeSqrtTest`. Benchmark: `./gradlew :zeroj-circuit-lib:elgamalBenchmark`. | +| M2 | Done, reviewed (round 1: one P1, closed; round 2: approve) | `InCircuitElGamal` (CircuitAPI level; keys bound to their circuit) and the typed adapters `ZkElGamal`, `ZkElGamalPublicKey`, `ZkElGamalCiphertext`. Rows: 6,558 / 6,650 / 6,938 (widths 1 / 16 / 64), 12,105 with a witnessed key, 6,546 for DLEQ (equal to the prototype). Every M2 negative is tested; off-curve negatives are isolated with an unchecked twin circuit. Groth16 prove and verify, every public input bound, and the full possession, admission and share flow in `AnnotatedElGamalTest`. | +| M3 | Done in zeroj-usecases PR #8 (against a local ZeroJ snapshot; maintainer decision, deviating from the "release" entry gate) | private-voting uses `ZkElGamal` and the safe host API. Its prototype gadget and host class are deleted. Ballot admission is a documented delegated verifier, and shares are accepted only via `VerifiedDecryptionShare`. Compiled-system decision: new circuit versions (ballot v3, dleq v2) with new setups and scripts; the DLEQ R1CS digest is identical to the prototype's. `ElGamalCompatibilityTest` shows the prototype's vectors decrypt identically. VM tests pass (ballot policy 4.25e9 CPU, unchanged), and so does the DevKit E2E. | +| M4 | Done | Support matrix, `zeroj-circuit-lib` README gadget status, gadget guide section, annotation guide, benchmark record `docs/benchmarks/elgamal-jubjub-2026-10-05.md`. | diff --git a/docs/adr/0053-threshold-elgamal-jubjub-dkg.md b/docs/adr/0053-threshold-elgamal-jubjub-dkg.md new file mode 100644 index 00000000..1b3691c2 --- /dev/null +++ b/docs/adr/0053-threshold-elgamal-jubjub-dkg.md @@ -0,0 +1,614 @@ +# ADR-0053: Threshold key generation and decryption for `elgamal-jubjub-v1` (t-of-n) + +## Status +Accepted (design) — 2026-10-05. +- The reviewer approved r2 at `e3fbb4e` with no outstanding findings, and the maintainer + accepted the design. +- Acceptance is design acceptance only. It certifies no implementation, test or security + property. +- Implementation of M0–M4 is in progress on PR #76, one reviewed step at a time. The + "Implementation status" section at the end tracks it. +- Q2–Q6 were decided by the maintainer on 2026-10-05: each recorded lean is adopted. Q1 (the + private channels) stays escalated and does not block the library, whose transport is + pluggable (#77). + +This ADR builds on ADR-0052 (Accepted). It changes no maturity claim. ADR-0039's assurance +classes apply: every secret-bearing operation here is **compatibility/offline** class. + +## Date +2026-10-05 + +## Revision history +- **r1** (`7f7a0d8`) — initial proposal. +- **r2** (2026-10-05; responds to the review of `7f7a0d8`): + - F5 → new D1a (round-by-round transitions, omissions, retention of contributions, abort + semantics); I3 and I5 rewritten; new I13; M2 omission tests. + - F6 → new D4a (admitting a run, kept separate from recomputing it from the transcript): + roster, configuration, per-attempt session, authenticated messages, round closure, and + confirmations from at least `t + 1` trustees. I7 rewritten; new I14 and I16; new Q6; + rejection tests. + - F7 → new D5a (threshold-context and share rules, keyed by identifier). ADR-0052's n-of-n + share invariants are scoped to n-of-n contexts. Zero and equal shares are supported. + New I15; the fixtures go into M1–M3. + - F8 → Verification uses admitted parameter sets and an independent fixture oracle. +- **Accepted** (2026-10-05): approved at r2 (`e3fbb4e`); status flipped without changing the + design text. +- **Decisions recorded** (2026-10-05): the maintainer adopted the leans of Q2–Q6. Q1 stays + escalated. No design text changes. + +## Risk classification +- **R3:** D1 (the distributed key generation protocol), D2 (the adversary and threshold model) + and D5 (threshold decryption and its combination rule). These decide who can learn the key + and whether a tally is correct. +- **R2:** D3 (transport requirements), D4 (library structure and transcript recomputation), + D4a (admitting a run), D5a (threshold contexts and share rules), D6 (session binding and + encodings) and D7 (maturity and assurance labelling). +- D1a (round transitions, omissions and aborts) is R3, as part of D1. + +## Context + +ADR-0052 shares the election key **n-of-n**: every trustee must take part to decrypt. That +gives the strongest privacy (all n must collude to open one ballot) and the weakest liveness: +one lost, offline or uncooperative trustee blocks the result forever. + +Real deployments usually want a **threshold**: any `t + 1` of `n` trustees can decrypt, and up +to `t` can be lost or malicious. This is how [CGS97] §2.3 sets up its election. +- The key is generated jointly with Pedersen's protocol [Ped91]. +- It is shared Shamir-style, so "the secret `s` can be reconstructed from any set `Λ` of `t` + shares using appropriate Lagrange coefficients". [CGS97] counts that set as `t`; this ADR uses + GJKR's `t + 1` (see Notation). +- Decryption raises each authority's published value to its Lagrange coefficient, + `m = y / ∏_{j∈Λ} w_j^{λ_{j,Λ}}`. + +The ballot is unchanged: voters still encrypt to one public key `y`. Only key generation and +the combination of decryption shares change. + +The hard part is **key generation without a dealer**. A dealer who generates and splits the +key knows it, and so can decrypt everything. The trustees must instead run a distributed key +generation (DKG) protocol, so that no party ever holds the key. [GJKR07] shows two things: +- The widely used joint-Feldman protocol of [Ped91] (JF-DKG) lets an active attacker **bias + the generated key**. +- Their **New-DKG** protocol fixes this, and is proved secure for any `t < n/2`. + +## Threat model and trust assumptions + +All of this follows [GJKR07] §2.1. + +- **Parties:** `n` trustees `P_1 … P_n`, identified by the scalars `1 … n`. +- **Adversary:** static. It corrupts up to `t` trustees at the start, with `t < n/2`, and the + corrupted trustees may deviate arbitrarily. It is **rushing**: in every round it sees the + honest messages before sending its own. Adaptive corruption is out of scope (see D8). +- **Communication:** + - every pair of trustees has a private, authenticated channel; + - all trustees share a broadcast channel; + - rounds are synchronized, with known delivery bounds (partial synchrony). + + The application provides all of these (D3). +- **Untrusted:** + - every message from another trustee; + - every claimed share, commitment, complaint and complaint answer; + - claimed decryption shares; + - every claimed transcript. A transcript is untrusted until it is admitted with authenticated + evidence (D4a). Algebraic consistency alone proves nothing about a run: a single party can + write a perfectly consistent record whose key it knows. +- **Secret:** each trustee's polynomial coefficients and the shares it receives, and its final + share `x_j`. Host arithmetic on these is variable-time `BigInteger` Java, which is the + compatibility/offline class (ADR-0039 §3.1). Each trustee runs on its own isolated host. +- **Guarantees, under the discrete-log assumption ([GJKR07] Theorem 1 and §4.1):** + - **(C1, C1′)** any `t + 1` correct shares define the same key `x`, and it can be + reconstructed even if up to `t` shares are faulty; + - **(C2)** all honest trustees output the same public key `y = [x]·G`; + - **(C3)** `x` is uniformly distributed; + - **secrecy:** the adversary learns nothing about `x` beyond `y`. +- **Privacy of ciphertexts** (with ADR-0052): + - at most `t` colluding trustees learn nothing about any plaintext; + - **`t + 1` colluding trustees can decrypt any single ciphertext**. + + This is the price of liveness, and applications choose `t` with it in mind. +- **Out of scope:** + - application authorization; + - when to decrypt (ADR-0052's "decrypt once" rule still applies); + - how the transport is realized (D3). + +## Pinned normative references + +- **[GJKR07]** R. Gennaro, S. Jarecki, H. Krawczyk, T. Rabin, *Secure Distributed Key Generation + for Discrete-Log Based Cryptosystems*, J. Cryptology 20:51–83 (2007), DOI + 10.1007/s00145-006-0347-3. The full text was fetched 2026-10-05. + - **§2.1:** the communication and adversary model: private and broadcast channels, partial + synchrony, a rushing adversary, "up to t of the n parties … for any value of t < n/2". + - **§2.2:** Shamir sharing, Feldman-VSS (equation 1) and Pedersen-VSS (equation 2). Pedersen + VSS assumes "the adversary cannot compute `log_g h`". + - **§3:** the bias attack on JF-DKG. + - **§4.1:** the requirements (C1), (C1′), (C2), (C3) and secrecy. + - **§4.3, Fig. 2:** **Protocol New-DKG**, Steps 1–4, quoted in D1. **Theorem 1:** "Under the + Discrete-Log Assumption, Protocol New-DKG from Fig. 2 is a secure protocol for distributed + key generation … for any t < n/2". + - **§4.4:** "The crucial property for h is that the adversary should not know `log_g h`." + There is "no requirement for h to be chosen with uniform probability". + - **§5:** JF-DKG is shown adequate only for "threshold variants of other cryptosystems which + enjoy a proof of security solely based on the hardness of the discrete-logarithm problem" + (Schnorr signatures). + - **Appendix:** JF-DKG variants with signatures, initial commitments or committing encryption + remain insecure. +- **[CGS97]** Cramer, Gennaro, Schoenmakers, EUROCRYPT '97, §2.3 (already pinned by ADR-0052). + It gives Shamir `(t, n)` sharing via [Ped91] key generation, and threshold decryption with + Lagrange coefficients over any qualified set. +- **[Ped91]** T. P. Pedersen, *A threshold cryptosystem without a trusted party*, EUROCRYPT '91, + LNCS 547, pp. 522–526. Bibliographic entry as cited in [CGS97] and [GJKR07]; not fetched + (**unverified** directly). This is the JF-DKG origin. +- **ZeroJ:** + - `docs/specs/pedersen-jubjub-v1.md` §2.1 (value base `G`) and §2.3 (blinding base `H`, a + nothing-up-my-sleeve derivation); + - ADR-0051 (the Pedersen profiles); + - ADR-0052 (`elgamal-jubjub-v1`: D2b verified decryption shares, D5 key context); + - ADR-0039 (assurance classes). + +## Notation + +- `𝔾`, `l`, `G` as in ADR-0052. +- `H` is the `pedersen-jubjub-v1` blinding base. +- Scalars live in `ℤ_l`. Trustee identifiers are the scalars `1 … n`. +- **`t` is the maximum number of corrupted trustees**, as in [GJKR07]. Decryption needs `t + 1` + shares. A "k-of-n" scheme in everyday terms has `k = t + 1`. + +## Decision + +### D1 — Protocol: New-DKG of [GJKR07] over Jubjub (R3) + +Instantiate [GJKR07] Fig. 2 with these groups and bases: + +| GJKR07 | ADR-0053 | +|---|---| +| `G` (subgroup of `ℤ_p*`), order `q` | `𝔾`, the Jubjub prime-order subgroup, order `l` | +| generator `g` | `G` (pedersen-jubjub-v1 §2.1) | +| `h` with unknown `log_g h` | `H` (pedersen-jubjub-v1 §2.3, nothing-up-my-sleeve) | +| `g^a h^b mod p` | `[a]·G + [b]·H` | + +The protocol, as in Fig. 2, written additively: + +1. **Pedersen-VSS of a random `z_i`.** Each `P_i`: + - chooses random degree-`t` polynomials `f_i(z) = a_i0 + … + a_it·z^t` and + `f'_i(z) = b_i0 + … + b_it·z^t`, with `z_i = a_i0`; + - broadcasts `C_ik = [a_ik]·G + [b_ik]·H` for `k = 0 … t`; + - privately sends `P_j` the pair `s_ij = f_i(j)`, `s'_ij = f'_i(j)`. + + Each `P_j` checks equation (4), `[s_ij]·G + [s'_ij]·H = Σ_k [j^k]·C_ik`, and broadcasts a + **complaint** against `P_i` if it fails. A dealer who receives a complaint broadcasts the + pair for the complainer. A dealer is **disqualified** if it received more than `t` + complaints, left one unanswered, or answered one with a pair that fails (4). D1a gives the + complete round-by-round rules. +2. **`QUAL`** is the set of non-disqualified trustees. It is a function of the broadcast + transcript only. +3. Each `P_j` sets `x_j = Σ_{i∈QUAL} s_ij` and `x'_j = Σ_{i∈QUAL} s'_ij`. The key + `x = Σ_{i∈QUAL} z_i` is never computed. +4. **Extraction (Feldman-VSS).** Each `P_i ∈ QUAL` broadcasts `A_ik = [a_ik]·G`. Each `P_j` + checks equation (5), `[s_ij]·G = Σ_k [j^k]·A_ik`. + - On failure, `P_j` broadcasts the pair `(s_ij, s'_ij)`. That pair satisfies (4) but not + (5), which makes it a **valid complaint**. + - For every `P_i` with a valid complaint, or with a missing or malformed extraction vector + (D1a), the others run Pedersen-VSS reconstruction. They publish shares that satisfy (4), + and recover `z_i`, `f_i` and `A_ik` in the clear. + - Finally `y = Σ_{i∈QUAL} A_i0`. + +**Why New-DKG and not JF-DKG.** [GJKR07] §3 shows that JF-DKG lets the adversary bias `x`. +§5 shows JF-DKG is still adequate for schemes whose security reduces to the discrete-log +problem alone. ElGamal's IND-CPA security rests on **DDH**, which §5 does not cover. +`elgamal-jubjub-v1` therefore needs a DKG that meets (C3) and the secrecy requirement, which +Theorem 1 gives New-DKG. + +### D1a — Round transitions, omissions and aborts (R3; responds to F5) + +The protocol runs in fixed rounds, each closed by a deadline under the broadcast mechanism of D3. +A message that arrives after its round closes counts as **absent**. Every rule below depends +only on what the broadcast shows, so all honest trustees apply it identically. + +| Round | Content | Failure, and what happens | +|---|---|---| +| R1 deal | Each dealer broadcasts `C_i` (exactly `t + 1` canonical subgroup points) and privately sends `(s_ij, s'_ij)`. | A missing, malformed or **conflicting** `C_i` (two different vectors from the same dealer) disqualifies the dealer. A missing pair, or one that fails (4), makes the recipient complain in R2. | +| R2 complaints | Each trustee broadcasts its complaints, at most one per dealer. | Repeated complaints from the same trustee against the same dealer count once. | +| R3 answers | For every complaint, the accused dealer broadcasts a pair that satisfies (4) for the complainer, and the complainer adopts it. | The dealer is **disqualified** if it received more than `t` complaints, left **any complaint unanswered** when R3 closed, gave any answer that fails (4), or gave conflicting answers. | +| QUAL | `QUAL` is the set of dealers not disqualified, fixed once R3 closes. | Under the assumptions, no honest dealer is ever disqualified: it answers every complaint correctly, and at most `t` complaints come from corrupt trustees. | +| R4 extract | Each dealer in `QUAL` broadcasts `A_i` (`t + 1` points). | A missing, malformed or conflicting `A_i` marks the dealer for **reconstruction**. | +| R5 complaints | Any trustee holding a pair that satisfies (4) but fails (5) broadcasts it. | Each such valid complaint marks the dealer for reconstruction. | +| R6 reconstruction | For every marked dealer, each trustee broadcasts its pair `(s_ij, s'_ij)`. Any `t + 1` pairs that satisfy (4) determine `f_i` and `f'_i`, and so `z_i` and `A_i`. | The dealer's contribution is **kept**. | + +**After `QUAL` is fixed, no contribution is ever dropped.** A dealer who withholds or falsifies +its extraction vector is reconstructed instead. [GJKR07] §4.2: "if a party `P_i` misbehaves at +this point (for example by refusing to carry on the Feldman-VSS …), the honest parties can +recover the polynomial `f_i` … Pi's contribution to the secret key x will still be included (if +we did not include it, we would allow the adversary to bias the distribution of x)." + +**Aborts.** Some situations cannot arise under the assumptions (more than `t` faults, or +broadcast without agreement): +- an honest trustee's own dealing is disqualified, as seen from its own view; +- fewer than `t + 1` valid pairs exist to reconstruct a marked dealer; +- the broadcast shows disagreement. + +In any of these the participant **aborts**, with an explicit "fault assumption violated" +result. It never silently excludes a dealer or restarts within the same session. A new attempt +needs a new session (D4a). + +### D2 — Threshold model and parameters (R3) + +- `t ≥ 1` and `n ≥ 2t + 1`, that is `t < n/2`, as Theorem 1 requires. +- The decryption threshold is `t + 1`. Supported examples: 2-of-3, 3-of-5, 4-of-7. +- **Not supported:** a threshold above a majority, such as 4-of-5. Theorem 1 does not cover + it: the protocol's disqualification and reconstruction rely on an honest majority (Q2). +- `n ≤ N_MAX` (lean 64, Q4). +- Identifiers are `1 … n` and are pairwise distinct. As scalars in `ℤ_l` they are non-zero, + because `n < l`. +- If `y = O` the run aborts (probability negligible). ADR-0052 refuses an identity key. A new + attempt needs a new session (D4a, I13). + +### D3 — Transport: the application provides it, with stated requirements (R2) + +ZeroJ provides the cryptography of each round. It does not provide the network. The +application must provide the [GJKR07] §2.1 model: + +- **Broadcast with agreement.** Every honest trustee receives the same broadcast messages, in + the same rounds. An append-only bulletin board works: for example a Cardano transaction or + datum per message, or an authenticated off-chain board that all trustees read. +- **Private, authenticated point-to-point channels** for the `(s_ij, s'_ij)` pairs. +- **Rounds with deadlines.** A message that misses its round counts as absent. A share that is + not delivered leads to a complaint. Because the answer then publishes that share, timely + private delivery is a secrecy precondition (implementation note 4; spec §5.2; Q7). The mechanism must also give **evidence that each round + is closed and complete**, for admission (D4a). + +**How the private channels are built is not specified here** (Q1). Per the [GJKR07] appendix, +encrypting shares onto the broadcast channel does not make JF-DKG variants secure. Any +construction must deliver the private-channel model the proof assumes, and must be reviewed on +its own. + +### D4 — Library structure (R2) + +All of this lives in `zeroj-circuit-lib`, package `org.zeroj.circuit.lib.jubjub`. The names are +illustrative. + +- **VSS primitives.** + - `PedersenVss` and `FeldmanVss`: deal, check (equations 4 and 5), and reconstruct from at + least `t + 1` checked shares. + - `Lagrange` coefficients mod `l` for an exact set of identifiers. +- **`DkgParticipant`.** A deterministic, transport-agnostic state machine for one trustee. + - It consumes the round's messages and produces that trustee's broadcast and private + messages, following Fig. 2 exactly. + - It holds its secrets only in memory, in the compatibility/offline class. +- **`DkgTranscript`.** The ordered public record of all broadcast messages, in rounds R1–R6 + (D1a). +- **`DkgTranscript.recompute()`.** Pure, deterministic algebra over a run's round contents. It + yields `QUAL`, `y` and every verification key `Y_j = Σ_{i∈QUAL} Σ_k [j^k]·A_ik`. This is + [GJKR07] (C1′): `g^{x_j}` "can be computed from publicly available information". The private + messages are not needed for this. Recomputation is **not** evidence that the run happened + (D4a). +- **`ThresholdKeyContext`.** Created only by admission (D4a). It contains the configuration, + `QUAL`, `y` and `{j → Y_j}`. It is a distinct key-context type with its own share rules + (D5a). Encryption and ciphertext admission work with it as ADR-0052 specifies. +- **Decryption shares.** These are ADR-0052's DLEQ statement and verified-share type, + specialised to threshold contexts (D5a), with `P = Y_j` taken from the context by identifier. + +### D4a — Admitting a DKG run (R2; responds to F6) + +Recomputing a transcript and admitting a run are separate steps. A +`ThresholdKeyContext.admit(config, roundContents, evidence, verifier)` requires all of the +following: + +1. **An immutable configuration:** + - the profile id `elgamal-jubjub-threshold-v1`; + - `t` and `n`; + - a **roster** mapping each identifier `1 … n` to that trustee's authentication key; + - a **session id** that is unique **per attempt**: for example + `blake2b_256(application context ‖ attempt number ‖ roster ‖ t ‖ n)`. An election-id hash + alone cannot tell retries apart, and the application must never reuse an attempt. +2. **Authenticated messages.** Every broadcast message and every complaint answer verifies + under its sender's roster key, through the application-supplied verifier: for example + Cardano transactions signed by trustee keys on an on-chain board. Every message is bound to + the session, sender, round and target (D6). +3. **Round closure.** Evidence, under the agreed broadcast mechanism, that every round's + contents are final and complete: nothing omitted or truncated. For an on-chain board, that + means the chain's finality. +4. **Confirmations.** At least `t + 1` trustees in `QUAL` broadcast an authenticated + confirmation of `(session, transcript digest, y)`. With at most `t` corrupt trustees, at + least one honest trustee then vouches that this record is the run it took part in (Q6). + +A participant may also create its context directly from its own run, since it saw the +authenticated rounds itself. The **honest-participation and transport assumptions stay +assumptions.** Admission checks the evidence those assumptions rely on; the public algebra does +not prove them. + +### D5 — Threshold decryption (R3) + +For an admitted ciphertext `(A, B)` under a `ThresholdKeyContext`: + +1. Each participating trustee `j ∈ QUAL` publishes `D_j = [x_j]·A`, with a DLEQ proof. The + statement is ADR-0052 D3's, with `X = A` and `P = Y_j`. +2. `decrypt(ciphertext, verifiedShares, maxPlaintext)` refuses unless the shares come from **at + least `t + 1` distinct members of `QUAL`**, each verified for this exact ciphertext. It then + takes any set `S` of exactly `t + 1` of them, ordered by identifier, and computes: + ``` + λ_j = Π_{m∈S, m≠j} m / (m − j) (mod l) + M = B − Σ_{j∈S} [λ_j]·D_j + ``` + This is [CGS97] §2.3, written additively. The result is the bounded search of ADR-0052. +3. If more than `t + 1` verified shares are present, the result must be the same for every + `(t + 1)`-subset that is checked. A mismatch is an error, not a choice. This cannot happen + with verified shares, so it is a defensive check. +4. Malformed share sets are refused: duplicate identifiers, foreign identifiers, shares for + another ciphertext, or fewer than `t + 1`. + +### D5a — Threshold contexts and share rules (R2; responds to F7) + +Shamir verification keys `Y_j = [x_j]·G` are values of one polynomial, not additive +contributions. In general their sum is not `y`, one of them can be the identity, and two +identifiers can share the same value. Both cases occur in valid runs: +- a 2-of-3 run with aggregate polynomial `F(z) = 3 − 3z` has `x_1 = 0`, so `Y_1 = O`; +- a run whose slopes cancel has `F(z) = 3`, so `Y_1 = Y_2 = Y_3 = [3]·G`. + +In both, every 2-of-3 subset decrypts correctly. The rules are therefore: + +- **Scope of ADR-0052's rules.** ADR-0052's I1 (non-identity, pairwise-distinct key shares), I2 + (proof-of-possession admission) and I14 (exactly one share per registered trustee) govern + **n-of-n contexts only**. Threshold contexts follow this section. +- **Joint key.** The joint key `y` must not be the identity (ADR-0052's rule for the joint key + is kept). +- **Verification keys.** Each `Y_j` may be any subgroup point, **including `O`**, and may equal + another trustee's. Shares are keyed and deduplicated **by identifier**, never by point value. +- **Supported, not rejected.** A zero share gives `D_j = O`, and the DLEQ statement with + `P = O` and `D = O` is valid. A verification key therefore enters the trustee relation as a + DLEQ statement point (`P` in ADR-0052 D3's `assertDiscreteLogEquality`), never through a + key-entry path that asserts non-identity, such as `fromVerifierFixedPublic` (ADR-0052 I8, + which governs encryption keys). No run is rejected or retried because of these values, and no + share is discarded. Both events have negligible probability in honest runs, but correctness + does not depend on that. +- **Secrets and keys** (ADR-0052 I13, specialised): + - `decryptionShare` requires `[x_j]·G = Y_j` for the trustee's own identifier; + - `decryptWithSecret` is refused for threshold contexts, because no full secret exists. +- **Proof of possession.** None is used. The VSS checks and admission (D4a) take its place. + +### D6 — Session binding and encodings (R2) + +- **Session binding.** Every DKG message carries a 32-byte session identifier, together with + the sender's identifier, the round, and the target identifier for private messages. The + session is unique **per attempt** and commits to the configuration (D4a, Q5); an election id + alone is not enough, because it cannot tell retries apart. Participants refuse messages for + another session, round or target. This is engineering binding over the authenticated + channels of D3. It does not change the cryptography. +- **Encodings.** Scalars are `I2OSP32` of a canonical value `< l`. Points are `repr_J` (ZIP 216, + 32 bytes). The canonical transcript encoding, with fixed message order and field order, is + normative in the M0 spec. Decoding refuses non-canonical scalars and points, and points + outside the subgroup. + +### D7 — Maturity and assurance (R2) + +- Experimental. +- All secret-bearing operations are compatibility/offline-class (ADR-0039 §3.1). These are + dealing, holding shares, computing `x_j`, and computing decryption shares. +- No online or constant-time claim. Each trustee should run on its own isolated host. + +### D8 — Out of scope + +Each of these needs its own decision: +- **Adaptive adversaries.** [GJKR07] §4.4 points to a modified protocol for this (CGJ+). +- **Changing the trustee set:** proactive refresh, resharing, and adding or removing trustees. + Changing the set means a new DKG and a new key. +- **Asynchronous DKG.** +- **Specifying the private channels** (Q1). +- **Verifying the DKG on-chain.** +- **A dealer-based key split,** except as a test fixture (Q3). + +### Alternatives considered + +| Alternative | Why not | +|---|---| +| **JF-DKG** [Ped91], or its variants with signatures, initial commitments or committing encryption | The key can be biased ([GJKR07] §3 and Appendix). It is shown adequate only for discrete-log-only schemes (§5), and ElGamal's IND-CPA rests on DDH. | +| **A trusted dealer** | The dealer knows the key and can decrypt every ballot, which defeats the purpose. At most a gated test fixture (Q3). | +| **Keeping n-of-n only** (ADR-0052) | Strongest privacy, no liveness. It stays available, and applications choose. | +| **Thresholds above a majority** | Not covered by the pinned theorem (Q2). | + +## Security invariants + +| ID | Invariant | Decisions | +|---|---|---| +| I1 | Parameters satisfy `1 ≤ t`, `2t + 1 ≤ n ≤ N_MAX`. Identifiers are `1 … n`, distinct and non-zero mod `l`. | D2 | +| I2 | The two bases are `G` and `H` from `pedersen-jubjub-v1`, so nobody knows `log_G H`. No other second base is accepted. | D1 | +| I3 | Share checks are exactly equations (4) and (5) of Fig. 2. A dealer is disqualified if and only if one of these holds: its commitment vector is missing, malformed or conflicting; it received more than `t` complaints; it left a complaint unanswered when R3 closed; or it answered with a pair that fails (4), or with conflicting pairs. | D1, D1a | +| I4 | `QUAL`, `y` and every `Y_j` are deterministic functions of the broadcast transcript alone. Every honest verifier of the same transcript computes the same values. | D1, D4 | +| I5 | After `QUAL` is fixed, a missing, malformed or conflicting extraction vector, or a valid phase-2 complaint (a pair that satisfies (4) and fails (5)), triggers reconstruction from at least `t + 1` pairs that satisfy (4). The dealer's contribution is **kept**, so the final key equals that of a run without withholding. | D1, D1a | +| I6 | `y = Σ_{i∈QUAL} A_i0`, with reconstructed values where needed. `y ≠ O`, otherwise the run aborts. | D1, D2 | +| I7 | A `ThresholdKeyContext` is constructible only by admission (D4a), or by a participant from its own run. Recomputation from a transcript alone never creates one. | D4, D4a | +| I8 | Threshold decryption uses at least `t + 1` verified shares from distinct `QUAL` members, each verified against `Y_j` and this exact ciphertext. Lagrange coefficients are computed for the exact subset used, and malformed share sets are refused. | D5 | +| I9 | When more than `t + 1` verified shares exist, every checked subset gives the same result, or decryption fails. | D5 | +| I10 | Every message is bound to its session, sender, round and (for private messages) target. Messages for anything else are refused. | D6 | +| I11 | Scalars and points are canonical on decode, and points are in the subgroup. The transcript encoding is canonical. | D6 | +| I12 | Secret-bearing operations are documented as compatibility/offline-class, with no online or constant-time claim. | D7 | +| I13 | A situation that cannot arise under the assumptions aborts with an explicit "fault assumption violated" result. Dealers are never silently excluded, and runs never restart within the same session. | D1a | +| I14 | Admission requires all of: the immutable configuration (profile, `t`, `n`, roster, session); authenticated messages bound to session, sender, round and target; evidence of round closure and completeness; and authenticated confirmations from at least `t + 1` trustees in `QUAL`. | D4a | +| I15 | In threshold contexts, shares are keyed by identifier; each `Y_j` may be any subgroup point, including `O`; the joint key `y ≠ O`; `decryptionShare` requires `[x_j]·G = Y_j` for its own identifier; `decryptWithSecret` is refused. A `Y_j` enters the trustee relation only as a DLEQ statement point. ADR-0052's I1, I2 and I14 apply to n-of-n contexts only. | D5a | +| I16 | The session id is unique per attempt, and messages or contexts from another attempt are refused. | D4a, D6 | + +## Consequences + +- Applications can choose liveness (t-of-n) or maximal privacy (n-of-n) with the same ballots + and the same APIs for encryption and admission. +- Anyone holding the admission evidence can verify a key generation (D4a). Anyone can recompute + every trustee's verification key from the transcript. +- Applications take on real protocol work: a broadcast board, private channels and round + deadlines. The library cannot supply the network. +- The added cost is host-side only. Each trustee performs about `2(t + 1)` commitments when + dealing, and checks `n − 1` shares of `t + 1` terms each. This is an estimate, to be measured + at M2. Circuits are unchanged. + +## Compatibility + +- **New API only.** ADR-0052's ciphertexts, encodings and n-of-n contexts are unchanged. Its + share invariants I1, I2 and I14 are scoped to n-of-n contexts (D5a). Threshold contexts are a + separate type with their own rules. +- **Ballots are unchanged.** Ballots encrypted to a `y` from a DKG are ordinary + `elgamal-jubjub-v1` ciphertexts. +- **The ballot circuit and its proofs are unaffected**, because the key enters the ballot + relation as public inputs. +- **Moving an application from n-of-n to t-of-n needs a new key**, generated by the DKG, and so a + new election. Existing ciphertexts stay under their original key. + +## Implementation milestones + +| Milestone | Scope | Entry gate | Exit criteria | +|---|---|---|---| +| M0 | Normative spec `docs/specs/elgamal-jubjub-threshold-v1.md`: parameters, message formats, transcript encoding, verification algorithm, threshold combine, and test vectors | ADR accepted | Spec reviewed. Its vectors come from an independent Python reference of Fig. 2, not from the Java code. | +| M1 | VSS primitives and Lagrange (D4) | M0 | Equations (4) and (5) and reconstruction match the spec vectors. Property tests: any `t + 1` shares reconstruct the same value, and `t` shares do not determine it (the simulation check of [GJKR07] §2.2, on small parameters). The F7 fixtures (`F(z) = 3 − 3z` and `F(z) = 3`) reconstruct correctly from every subset. | +| M2 | `DkgParticipant` and `DkgTranscript` (D1, D4, D6) | M1 | **Honest runs:** every `(t, n)` up to small bounds; all participants agree on `QUAL`, `y` and `Y_j` (I4). **Adversarial simulations**, one test each:
• a bad share;
• a false complaint;
• more than `t` complaints;
• a bad complaint answer;
• a phase-2 Feldman cheat, with reconstruction;
• a missing message;
• a message replayed from another session, round or target;
• a non-canonical or non-subgroup point;
• a rushing-order run.
**Omissions**, one test per round:
• a missing commitment vector;
• a single unanswered complaint (`n = 3`, `t = 1`), after which the dealer is disqualified;
• conflicting messages;
• a withheld extraction vector, after which the final key **equals the run without withholding**;
• too few reconstruction pairs, which aborts with "fault assumption violated".
**Admission (D4a)**, each rejected:
• a fabricated record without authentication;
• an omitted complaint or answer;
• a truncated round;
• a conflicting roster or configuration;
• a replay from another attempt;
• fewer than `t + 1` confirmations. | +| M3 | Threshold decryption (D5, D5a) on ADR-0052's safe API | M2 and ADR-0052 M1 | I8, I9 and I15. Negatives: fewer than `t + 1` shares, duplicates by identifier, a foreign identifier, the wrong ciphertext, an invalid proof, an inconsistent subset, `decryptWithSecret` on a threshold context. The F7 fixtures decrypt through the safe context, including identity-valued shares and equal `Y_j`. Every `(t + 1)`-subset decrypts identically. | +| M4 | Docs: support matrix (Experimental) and a guide | M3 | Docs reviewed. | + +The user has asked for ADR-0053's implementation to follow in this PR. Because M3 needs +ADR-0052's host API, ADR-0052's own M0 and M1 come first (see the PR description). + +## Verification and test-vector strategy + +- **Independent reference.** A standalone Python implementation of Fig. 2, written from the + [GJKR07] text and the Jubjub curve definition, produces vectors for fixed polynomials: + commitments, shares, `QUAL`, `y`, `Y_j`, and threshold-decrypted results. +- **Spec cross-checks.** `G` and `H` must equal the bases pinned in `pedersen-jubjub-v1`. +- **Adversarial simulation.** The M2 list, with each corrupted behaviour scripted against + honest participants. +- **Differential.** Java participants and transcript recomputation against the Python reference. + - Threshold decryption uses admitted parameter sets only: 2-of-3, 3-of-5 and 4-of-7. + - Results are compared with an independent fixture oracle, and with the Lagrange-weighted + additive shares of the chosen subset (`Σ_{j∈S} λ_j·x_j = x`). + - Small fixtures exercise every `(t + 1)`-subset. + - Arithmetic-only tests are kept separate from safe-context integration tests. + - (`t + 1 = n` is not an admitted setting: with `n ≥ 2t + 1` it would need `t ≤ 0`.) +- **Not evidence of security:** passing tests and benchmarks. Theorem 1 is the argument; the + tests check that the implementation follows Fig. 2. + +## Production / audit gates + +- External review of the spec (M0) and of the participant implementation (M2). +- Security review of the application's transport: broadcast agreement, private channels and + deadlines. +- Isolated trustee hosts (ADR-0039 offline class), and procedures for trustee availability. +- An adaptive-security assessment, if the deployment's threat model needs one (D8). + +## Risks + +- **Transport mistakes.** Broadcast without agreement, or a channel that is not private, voids + the proof. Mitigation: D3's stated requirements, the transport review gate, and Q1. +- **Honest-majority assumption.** With more than `t` corrupt trustees, both secrecy and + correctness can fail. Mitigation: parameter guidance and the I1 checks. +- **Lower collusion bar than n-of-n.** `t + 1` trustees can decrypt any single ballot. + Mitigation: applications choose `t`, and documentation states the trade-off. +- **Implementation complexity.** The protocol has several rounds and a complaint logic. + Mitigation: a deterministic state machine, an independent reference and adversarial + simulations. + +## Open questions (points needing a maintainer decision) + +1. **Q1 (D3): the private channels.** + - Options: + - (a) the application provides them, for example TLS between trustees, under D3's stated + requirements; + - (b) ZeroJ specifies an encrypted-channel construction, which is new cryptography and + would need its own pinned references and review. + - Lean: (a). **Escalated**, and still open; tracked in #77. The library takes no position: + the transport is the application's. +2. **Q2 (D2): thresholds above a majority**, such as 4-of-5. + - Lean: unsupported. Theorem 1 covers only `t < n/2`. + - **Decided 2026-10-05 (maintainer): lean adopted.** +3. **Q3 (D8): a dealer-based fixture for tests.** + - Lean: test fixtures only, behind the same insecure opt-in as dev trusted setups. Never a + public API. + - **Decided 2026-10-05 (maintainer): lean adopted.** Fixed polynomials exist only as + package-private test seams. +4. **Q4 (D2): `N_MAX`, and round deadlines.** + - Lean: `N_MAX = 64`. Deadlines are application configuration. + - **Decided 2026-10-05 (maintainer): lean adopted.** +5. **Q5 (D4a, D6): the session identifier.** + - It must be unique **per attempt**. + - Lean: `blake2b_256(application context ‖ attempt number ‖ roster ‖ t ‖ n)`, with the + attempt never reused. + - **Decided 2026-10-05 (maintainer): lean adopted.** The spec adds a domain tag and length + prefixes to the encoding (spec §2). +6. **Q6 (D4a): confirmations.** + - Options: (a) require authenticated confirmations of the transcript from at least `t + 1` + trustees in `QUAL`; (b) rely on round-closure evidence alone. + - Lean: (a). With at most `t` corrupt trustees, it guarantees an honest trustee vouched for + the record. + - **Decided 2026-10-05 (maintainer): lean adopted.** +7. **Q7 (D1, D3; raised in implementation review): honest dealers and late shares.** + - Under partial synchrony, a complaint against an honest dealer can come from a late + `SHARE`, and Fig. 2's answer then publishes the pair (spec §5.2). + - Options: + - (a) keep Fig. 2 and make timely private delivery an explicit transport requirement + (current); + - (b) let an honest dealer that can prove delivery decline to answer and accept + disqualification. This changes `QUAL` semantics and needs analysis; + - (c) use a construction from the asynchronous-DKG literature (out of scope, D8). + - Lean: (a), with the transport review gate covering deadlines. **Escalated.** + +## Related findings (out of scope) + +- ADR-0052's open Q1 (the trustee proof system) applies equally to threshold decryption shares. + +## Implementation notes (refinements recorded during implementation) + +These refine the accepted design and are recorded for maintainer acknowledgement, as AGENTS.md +requires. Each is stated normatively in `docs/specs/elgamal-jubjub-threshold-v1.md`. They came +from the independent reference of M0 and the implementation reviews. + +1. **Abort A8: own dealing marked** (spec §5.1). D1a lists aborts for situations the + assumptions exclude. An honest dealer is never *marked* any more than it is disqualified (A2). + Outside [GJKR07]'s synchronous model, a merely late `EXTRACTION` would otherwise cause R6 to + publish an honest dealer's polynomial. If that hit every honest dealer, the key would be + public, with no abort. Under A8 those dealers abort and withhold their confirmations, so + admission (at least `t + 1` confirmations) fails. This is invariant I13 applied to marking. +2. **A7 and admission need `t + 1` differing confirmations** (spec §5.1, §8 step 6). D1a + lists "the broadcast shows disagreement" as an abort; this makes it mechanical without + breaking I13. A single differing confirmation may be a faulty participant's lie, which the + assumptions allow, so it must not abort the run. If it did, any one faulty member could veto + every attempt. With `t + 1` or more differing, an honest participant saw another board, so + participants abort and admission refuses. Malformed or other-session confirmations are + ignored, not treated as a veto. The independent reference raised this (finding N2). + Admission also requires round-closure evidence for round 7, the confirmation set, so a + submitter cannot leave out differing confirmations (N6). A member that equivocates counts as + differing only (N7). +3. **R5 evaluates every extraction complaint**, conflicting ones included. A valid complaint is + evidence against the dealer, whoever sent it. The independent reference and the Java + implementation first differed here; the rule is now pinned. +4. **Timely private delivery is a secrecy precondition** (spec §5.2; review finding R1). + - D3 says an undelivered share "leads to a complaint". The review showed the consequence: + an honest dealer then publishes the pair, and with the `t` faulty shares that determines + its polynomial. Missed delivery for every honest dealer reveals the key without any abort. + - The code follows Fig. 2 exactly; the synchronous model excludes the case. The spec now + states the precondition normatively, and A8's rationale is limited to late extractions. + - Any behavioural mitigation is escalated as Q7, not invented here. +5. **Abort hygiene and channels** (review findings R2–R5): + - an abort is final for the participant; + - A9, "own complaint missing from the round-2 view"; + - broadcast and private delivery are separate entry points; + - A7 also fires when fewer than `t + 1` qualified participants confirmed the participant's + own view, so a participant on a minority view cannot finish with an unadmittable context. +6. **Shares only from `QUAL`** (D5) is kept. Participants outside `QUAL` hold an `x_j` they cannot + use; they are faulty under the assumptions, so this costs no liveness (spec §9). +7. **Misplaced transcript messages are refused** (spec §8 step 2; reference finding N10). A + well-formed `SHARE` or `CONFIRMATION` submitted among the transcript messages refuses + admission, like a malformed one: the submitter builds the transcript from delivered sets, which + never hold either kind. Byte-identical duplicates count once and are not refused. +8. **Roster keys are pairwise distinct** (spec §1; review finding R10). A key that authenticates + for two identifiers lets one party act as two participants, outside the `t` faulty + participants the protocol tolerates. `DkgConfig` already refused such a roster; the spec and + the reference now require it too. Distinctness is on bytes, so an application whose key format + has several encodings must canonicalize its keys (reference finding N11). +9. **Delivery windows** (spec §5, §8 step 4; reference finding N12). Round `r`'s delivered set + holds only messages of round `r` that arrived while round `r` was open. An early message is + dropped, not carried forward. [GJKR07]'s synchronous model has no early messages; honest + participants never send one, so dropping it affects only the faulty sender. `DkgParticipant` + already refused a message of a round other than the open one. + +## Implementation status + +| Milestone | State | Notes | +|---|---|---| +| M0 | Done, reviewed (round 2: approve; rounds 3–5 on the vector replay, R7–R17: approve) | Spec `docs/specs/elgamal-jubjub-threshold-v1.md`. An independent Python reference of [GJKR07] Fig. 2, written from the paper and the spec (`zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/`, 514 checks), went through seven revisions. It found A8, the A7 veto, the R5 divergence, the admission completeness gaps, N10, N11 and N12, all resolved in the spec. `ThresholdReferenceVectorsTest` reproduces every fixture byte for byte through the Java participants, including the adversarial 4-of-7 script. It also replays all 134 of the reference's `case.*` vectors (abort, rule, finding, admission with the refusal step, combine, parameter and well-formedness; review finding R7). The two A4 vectors built on a trapdoor base `H'` replay through a test-side (4) filter under `H'`. The 20 participant-side A7 cases need a participant's own round-7 view and stay internal to the reference; `DkgParticipantTest` covers A7 in Java. | +| M1 | Done, reviewed (rounds 1–2: approve) | `ThresholdMath` (evaluation, interpolation, Lagrange), `ThresholdVss` (dealing, checks (4) and (5) on secret and public paths, reconstruction), `Blake2bDigest` (RFC 7693, checked against BouncyCastle and Cardano's `Blake2bUtil`). | +| M2 | Done, reviewed (round 1: two P1s, fixed; round 2: approve; rounds 3–5, admission hardening R8–R17: approve) | `DkgConfig`, `DkgMessage`, `DkgRules` (public rules shared with recomputation), `DkgParticipant` (separate broadcast/private delivery, final aborts A1–A9), `DkgTranscript` (with `deliveredRound`), `ThresholdKeyContext.admit` (library-computed admission, round-7 closure), `ThresholdKeyShare.restore`, `FaultAssumptionViolatedException`. Measured per-participant cost: 21 ms (2-of-3), 49 ms (4-of-7), 214 ms (11-of-21). | +| M3 | Done, reviewed (round 2: approve; round 5: approve) | Threshold decryption on ADR-0052's safe API: `ElGamal.decryptionShare(ThresholdKeyShare, …)`, `VerifiedDecryptionShare.verify(ct, id, …)`, and a Lagrange combine that checks every extra share. Groth16 end-to-end test in `AnnotatedElGamalTest`. | +| M4 | Done | Support matrix and `zeroj-circuit-lib` README rows (Experimental), gadget guide section "Encryption: ElGamal and threshold keys" (with the delivery precondition), annotation guide, `docs/benchmarks/elgamal-jubjub-2026-10-05.md`. | diff --git a/docs/adr/circuit-annotation/cardano-gadget-support-matrix.md b/docs/adr/circuit-annotation/cardano-gadget-support-matrix.md index 16643e9b..c990fdb0 100644 --- a/docs/adr/circuit-annotation/cardano-gadget-support-matrix.md +++ b/docs/adr/circuit-annotation/cardano-gadget-support-matrix.md @@ -124,6 +124,8 @@ Relevant source: | `ZkPedersen` | Symbolic Jubjub Pedersen commitment adapter | Requires BLS12-381 scalar field | Direct | Yes, pending external review | Asserts both scalars `< l` through the sound range-constrained comparator, and reuses owned decompositions at each scalar's declared width. The blinding must be declared at exactly 252 bits and must not be a public input or constant (ADR-0051 D2). Complete commitment with both coordinates bound as public inputs: 2,410 rows (64-bit value) / 4,042 rows (252-bit value); a value narrower than 252 bits is canonical by its own range, so only a full-width value carries the comparator. Spec: `docs/specs/pedersen-jubjub-v1.md`. | | `ZkPedersenCommitment`, `ZkPedersen.assertBalanced` | Typed in-circuit commitments with origin tracking; no-wraparound balance helper (ADR-0051 D3/D3a) | Requires BLS12-381 scalar field | Direct | Experimental, pending review and external review | Unopened external commitments enter only through `witnessInSubgroup` (in-circuit subgroup proof, 5,547 rows) or `fromVerifierCheckedPublic` (public coordinates; the verifier runs `PedersenCommitment.decode`). `assertBalanced` refuses, at definition time, any side whose maximum `Σ coefficient·(2^width − 1)` reaches `l`, then asserts the integer relation on committed values. | | `ZkPedersenVector`, `InCircuitPedersenVector`, `PedersenVectorCommitment` | `pedersen-jubjub-vector-v1`: commitment to up to 16 values (ADR-0051 D5) | Requires BLS12-381 scalar field | Direct | Experimental, pending spec review and external review | Bases from Zcash `FindGroupHash` (`ZeroJ_PV`), pinned and checked against Zcash known answers. The point binds neither length nor schema: every proof binds a public schema digest (`bindSchema`) checked against `PedersenSchemaRegistry`, and received commitments need an authenticated issuance record. 2,411 / 3,581 / 8,261 rows at n = 1 / 4 / 16 (64-bit values). | +| `InCircuitElGamal`, `ZkElGamal` | `elgamal-jubjub-v1` encryption relation and DLEQ trustee relation (ADR-0052 D3) | Requires BLS12-381 scalar field | Direct | Experimental, pending review and external review | Message width 1–64; 252-bit private randomness consumed by one decomposition; keys via `fromVerifierFixedPublic` (verifier checks subgroup) or `witnessInSubgroup`, identity refused; DLEQ needs all six coordinates public and `X ∈ 𝔾` as a verifier precondition. 6,558 / 6,938 rows (width 1 / 64); DLEQ 6,546. Spec: `docs/specs/elgamal-jubjub-v1.md`. | +| `ElGamal` host API; `DkgParticipant`, `ThresholdKeyContext` | Admission, bounds, verified shares; t-of-n key generation and decryption (ADR-0052, ADR-0053) | Jubjub over BLS12-381 scalar field | Not a circuit gadget | Experimental; **offline/isolated secret operations only** | Secret multiplications use the blinded best-effort schedule (no constant-time claim). The DKG's transport (broadcast with agreement, private channels, deadlines) and the admission verifier's authenticity/closure checks are the application's. Spec: `docs/specs/elgamal-jubjub-threshold-v1.md`. | | `PedersenCommitment.commit` (off-circuit) | Host-side commitment generation | Jubjub over BLS12-381 scalar field | Not a circuit gadget | **Offline/isolated generation only (ADR-0038)** | Both secret scalars use a fresh multiple-of-`l` blinding and fixed 316-add/316-double schedule. The former loop-bound/operation-count channel is removed and the raw trailing-zero signal is blinded, but Java branches and `BigInteger` remain variable-time. The commitment's hiding and binding are unaffected; the restriction is on secret-bearing execution. | | `InCircuitEdDSAJubjub` / `ZkEdDSAJubjub` | EdDSA-Jubjub verification | Requires BLS12-381 scalar field | Direct | Yes for verification, pending external review; signing is not constant-time | Use `verifyStrict` when `pk` is prover-supplied, `verifyWithRegisteredKey` when it is a public input or constant. No unqualified `verify`. Spec: `docs/specs/jubjub-eddsa-v1.md`. | | `zeroj-bls12381` | BLS12-381 field, G1/G2, pairing, hash-to-curve | BLS12-381 | Not a circuit gadget | Supports off-chain proof verification and conversion paths; Cardano has BLS builtins | Use for proof systems and BBS, not directly inside symbolic circuits unless a circuit gadget is built. | diff --git a/docs/benchmarks/elgamal-jubjub-2026-10-05.md b/docs/benchmarks/elgamal-jubjub-2026-10-05.md new file mode 100644 index 00000000..fe27106d --- /dev/null +++ b/docs/benchmarks/elgamal-jubjub-2026-10-05.md @@ -0,0 +1,72 @@ +# ElGamal on Jubjub and threshold key generation — host measurements (ADR-0052, ADR-0053) + +**Date:** 2026-10-05 +**Harness:** `ElGamalBenchmark`, run in its own JVM with +`./gradlew :zeroj-circuit-lib:elgamalBenchmark`. +**Machine:** Apple M4 Max (arm64, 16 processors), macOS, Java 25.0.2, 2 GB max heap. + +These numbers are evidence for this JVM and CPU only. They record throughput and make no +timing-side-channel claim. Secret operations are compatibility/offline class (ADR-0039). + +## Host operations + +| Operation | µs/op | +|---|---:| +| Point decode (`JubjubPoint.fromBytes`, no subgroup check) | 38 (185 before the Tonelli–Shanks change) | +| Subgroup check, `BigInteger` (`JubjubPoint.isInSubgroup`) | 960 | +| Subgroup check, Montgomery fast path (public data) | 85 | +| Ciphertext decode (64 bytes, two subgroup checks) | 221 (523 before) | +| Encrypt (three blinded secret multiplications) | 4,700 | +| Decryption share (one blinded secret multiplication) | 1,650 | +| Homomorphic sum, per ciphertext (2,000-term `sum`) | 1.6 | + +The secret multiplications use the fixed 316-iteration blinded schedule of ADR-0038. They +dominate encryption and share computation, which are client-side and once per ballot or tally. +Public-data work (decoding, subgroup checks, sums, verification equations, search) runs on +Montgomery limbs. + +## Bounded discrete log (baby-step giant-step) + +| Bound | Table build | Solve, random `t` | Solve, `t = bound` (worst case) | +|---|---:|---:|---:| +| `2^16` | 0.3 ms | 0.2 ms | 0.2 ms | +| `2^24` | 1.6 ms | 1.8 ms | 1.6 ms | +| `2^32` | 21 ms | 7 ms | 19 ms | +| `2^40` | 108 ms | 551 ms | 819–904 ms | + +The default caps (`2^18` baby steps, about 6 MiB of table, and `2^24` giant steps) reach bounds +near `2^43`. A table is immutable and reusable across decryptions. + +## Threshold key generation (all `n` participants in one JVM) + +| `(t, n)` | Whole run | Per participant | +|---|---:|---:| +| (1, 3) | 62 ms | 21 ms | +| (2, 5) | 176 ms | 35 ms | +| (3, 7) | 346 ms | 49 ms | +| (5, 11) | 963 ms | 88 ms | +| (10, 21) | 4,503 ms | 214 ms | + +Each participant does the following: +- deals `2(t + 1)` blinded commitments; +- decodes and subgroup-checks every broadcast point; +- checks `n − 1` received pairs with equations (4) and (5), whose right-hand sides it evaluates + by Horner's rule with a small multiplier; +- recomputes the public rules and every `Y_j`, by Horner over the coefficient-wise sum of the + extraction vectors. + +ADR-0053 estimated this work as host-side only; these figures confirm it. The ballot circuit and +its proofs are unchanged. + +## In-circuit relations (rows) + +| Circuit | Rows | +|---|---:| +| Encryption, width 1, verifier-fixed key | 6,558 | +| Encryption, width 16 | 6,650 | +| Encryption, width 64 | 6,938 | +| Encryption, width 1, key witnessed in the subgroup | 12,105 | +| DLEQ (possession or decryption share) | 6,546 | + +These counts are pinned in `ZkElGamalTest`. Groth16 proving at this size takes about 1–2 s +with the pure-Java prover (compare the Pedersen measurements of 2026-10-03). diff --git a/docs/circuit-annotation-user-guide.md b/docs/circuit-annotation-user-guide.md index 28bb0ece..23e59b51 100644 --- a/docs/circuit-annotation-user-guide.md +++ b/docs/circuit-annotation-user-guide.md @@ -261,6 +261,17 @@ The homomorphic and vector APIs work in annotated circuits too (both are experim `@Public @UInt` fee) and `AnnotatedVectorCommitment` (`ZkPedersenVector` with the schema digest as a `@Public ZkField`) in `zeroj-integration-tests`. Each is proved with Groth16 and verified in `AnnotatedPedersenProfilesTest`. + +ElGamal encryption (`elgamal-jubjub-v1`, experimental) has typed adapters too: +- `ZkElGamalPublicKey.fromVerifierFixedPublic` or `witnessInSubgroup` for the key; +- `ZkElGamal.encrypt(zk, message, randomness, key)`, with the message declared 1–64 bits and the + randomness exactly 252 bits; +- `ZkElGamal.assertDiscreteLogEquality` for trustee proofs, whose six coordinates must be + `@Public`. + +See `AnnotatedElGamalBallot` and `AnnotatedElGamalDleq`, proved and verified in +`AnnotatedElGamalTest`. The test also runs the full flow: verified admission of ballots, +possession proofs, threshold key generation, and verified decryption shares. Jubjub adapters use BLS12-381. Bind every prover-supplied point with `ZkJubjubPoint.witnessAffine(zk, u, v)`. It asserts the diff --git a/docs/specs/elgamal-jubjub-threshold-v1.md b/docs/specs/elgamal-jubjub-threshold-v1.md new file mode 100644 index 00000000..d4e9a402 --- /dev/null +++ b/docs/specs/elgamal-jubjub-threshold-v1.md @@ -0,0 +1,523 @@ +# ZeroJ ElGamal-Jubjub Threshold v1 — Normative Specification + +**Profile identifier:** `elgamal-jubjub-threshold-v1` +**Status:** Normative. Required by ADR-0053 (milestone M0). +**Date:** 2026-10-05 + +This document pins every value, message, rule and encoding that a second implementation needs +to take part in, recompute, admit and use a threshold key generation for +[`elgamal-jubjub-v1`](elgamal-jubjub-v1.md). The protocol is New-DKG of [GJKR07] Fig. 2 over +Jubjub (ADR-0053 D1, D1a), plus admission (D4a) and threshold decryption (D5, D5a). Anything not +written here is not part of the profile. Any change needs a new identifier (`-v2`). + +Ciphertexts encrypted to a key from this profile are ordinary `elgamal-jubjub-v1` ciphertexts. +Only the key generation and the combination of decryption shares differ. + +Conventions: +- `x mod l` is the least non-negative residue. +- `u8`, `u16`, `u32` and `u64` are unsigned **big-endian** integers of 1, 2, 4 and 8 bytes. +- `I2OSP32(x)` writes `x` as 32 big-endian bytes. A scalar is decoded only if it is `< l`. +- `encode(P)` is the 32-byte little-endian point encoding of + [`pedersen-jubjub-v1.md`](pedersen-jubjub-v1.md) §4. +- **BLAKE2b-256** is unkeyed BLAKE2b ([RFC 7693]) with a 32-byte digest and no salt or + personalisation. + +--- + +## 1. Parameters and bases + +- Threshold `t` and participant count `n`: `t ≥ 1`, `n ≥ 2t + 1` (so `t < n/2`, as [GJKR07] + Theorem 1 requires), and `n ≤ 64`. Any `t + 1` participants can decrypt; at most `t` may be + faulty. +- Identifiers are the integers `1 … n`. Used as scalars they are non-zero mod `l`. +- **Bases:** `G` and `H` of [`pedersen-jubjub-v1.md`](pedersen-jubjub-v1.md) §2.1 and §2.3. + Nobody knows `log_G H`, which is exactly [GJKR07]'s requirement on `h`. +- **Roster:** `n` authentication keys, `key_1 … key_n`. Each is an opaque byte string of 1 to + 65535 bytes, used only by the application's authenticator (§8). The keys must be pairwise + distinct; a roster with two equal keys is rejected. One key that authenticates for two + identifiers would let one party act as two participants, outside the count of `t` faulty + participants the protocol tolerates. The check compares bytes: if the application's key format + has more than one encoding of a key, the application must give every key in one canonical + encoding, or otherwise ensure that no key authenticates for two identifiers. + +--- + +## 2. Session identifier + +Each **attempt** of a key generation has its own session: + +``` +session = BLAKE2b-256( DST_S ‖ u16(len(ctx)) ‖ ctx ‖ u64(attempt) ‖ u8(t) ‖ u8(n) + ‖ u16(len(key_1)) ‖ key_1 ‖ … ‖ u16(len(key_n)) ‖ key_n ) +DST_S = UTF-8("zeroj.elgamal-jubjub-threshold.v1.session") +``` + +- `ctx` is the application context, 0 to 65535 bytes: for example an election identifier. +- `attempt` is an integer the application never reuses for the same `ctx`. +- This refines the ADR-0053 Q5 lean (`ctx ‖ attempt ‖ roster ‖ t ‖ n`) with a domain tag and + length prefixes, so that no two configurations share an encoding. + +The configuration `(t, n, roster, ctx, attempt)` is immutable once the session is derived. + +--- + +## 3. Dealing + +Each participant `i` acts as a dealer. + +1. Sample `2(t + 1)` coefficients `a_i0 … a_it`, `b_i0 … b_it` with the sampler of + [`elgamal-jubjub-v1.md`](elgamal-jubjub-v1.md) §2 (64 bytes reduced mod `l`). They define + ``` + f_i(z) = a_i0 + a_i1·z + … + a_it·z^t (mod l) + f'_i(z) = b_i0 + b_i1·z + … + b_it·z^t (mod l) + ``` + The dealer's contribution to the key is `z_i = a_i0`. +2. The commitments are `C_ik = [a_ik]·G + [b_ik]·H` and the extraction values are + `A_ik = [a_ik]·G`, for `k = 0 … t`. +3. The shares are `s_ij = f_i(j)` and `s'_ij = f'_i(j)` for every `j = 1 … n`, including the + dealer's own `j = i`, which is kept rather than sent. + +The two checks of [GJKR07] Fig. 2, for the pair `(s, s')` held by participant `j` from dealer +`i`: + +``` +(4) [s]·G + [s']·H = Σ_{k=0..t} [j^k mod l]·C_ik +(5) [s]·G = Σ_{k=0..t} [j^k mod l]·A_ik +``` + +The right-hand sides depend only on public values. Implementations may evaluate them by Horner's +rule in `j`. + +--- + +## 4. Messages + +Every message is `header ‖ payload`: + +``` +header = session (32 bytes) ‖ u8(round) ‖ u8(kind) ‖ u8(sender) ‖ u8(subject) +``` + +| Round | Kind | Name | Delivery | `subject` | Payload | +|---|---|---|---|---|---| +| 1 | 1 | `COMMITMENTS` | broadcast | 0 | `encode(C_i0) ‖ … ‖ encode(C_it)` | +| 1 | 2 | `SHARE` | private | recipient `j ≠ sender` | `I2OSP32(s_ij) ‖ I2OSP32(s'_ij)` | +| 2 | 3 | `COMPLAINT` | broadcast | accused dealer `i ≠ sender` | empty | +| 3 | 4 | `ANSWER` | broadcast | complainer `j ≠ sender` | `I2OSP32(s_ij) ‖ I2OSP32(s'_ij)` | +| 4 | 5 | `EXTRACTION` | broadcast | 0 | `encode(A_i0) ‖ … ‖ encode(A_it)` | +| 5 | 6 | `EXTRACTION_COMPLAINT` | broadcast | accused dealer `i ≠ sender` | `I2OSP32(s_ij) ‖ I2OSP32(s'_ij)` held by the sender | +| 6 | 7 | `RECONSTRUCTION` | broadcast | reconstructed dealer `i ≠ sender` | `I2OSP32(s_ij) ‖ I2OSP32(s'_ij)` held by the sender | +| 7 | 8 | `CONFIRMATION` | broadcast | 0 | `digest (32 bytes) ‖ encode(y)` (§7) | + +**Well-formed.** A message is well-formed only if all of the following hold: +- its length is exact for its kind; +- `session` equals the configuration's; +- `round` and `kind` match a row of the table; +- `1 ≤ sender ≤ n`; +- `subject` satisfies its column: either 0, or an identifier in `1 … n` different from the + sender; +- every scalar is `< l`; +- every point decodes and lies in the prime-order subgroup. The identity is allowed: `C_ik` and + `A_ik` may legitimately be `O`. + +**Identity and duplicates.** A message's identity is `(round, kind, sender, subject)`. Within a +round's delivered set: +- byte-identical copies count once; +- two **different** well-formed messages with the same identity are a **conflict**. + +**Authentication and channels.** Only messages authenticated as coming from their header's +`sender` are delivered (§8). A participant refuses: +- a message whose header `sender` differs from what its authenticated channel says; +- a `SHARE` whose `subject` is not the participant itself; +- a `SHARE` arriving on the broadcast channel; +- any other kind arriving on the private channel. + +A message delivered privately to one participant must never be treated as broadcast: that +would split the honest participants' views. + +--- + +## 5. Round rules + +Rounds close by deadline (ADR-0053 D3). The **delivered set** of round `r` is every +authenticated, well-formed message **of round `r`** that arrived while round `r` was open: after +round `r − 1` closed (for round 1, once the session started) and before round `r` closed. A +message that is late, early or malformed counts as **absent**. An early message, sent while an +earlier round was open, is dropped and not carried forward into its own round; honest +participants send round `r`'s messages only while round `r` is open. Every rule below is a deterministic function of the delivered broadcast sets, so all +honest participants, and anyone recomputing a transcript, take the same decisions. + +**R1.** Dealer `i` is **disqualified** if its `COMMITMENTS` is absent or in conflict. + +**R2.** `Complaints(i)` is the set of senders with a `COMPLAINT` whose subject is `i`. + +**R3.** Dealer `i` is **disqualified** if any of these holds: +- `|Complaints(i)| > t`; +- for some `j ∈ Complaints(i)`, the `ANSWER` from `i` with subject `j` is absent, in conflict, or + fails (4) for `(i, j)`. + +An `ANSWER` without a matching complaint has no effect. + +**QUAL** is `{1 … n}` minus every dealer disqualified in R1 or R3, fixed when R3 closes. + +**R4.** Dealer `i ∈ QUAL` is **marked** for reconstruction if its `EXTRACTION` is absent or in +conflict. + +**R5.** An `EXTRACTION_COMPLAINT` from `j` with subject `i ∈ QUAL` is **valid** if dealer `i` has +a well-formed, non-conflicting `EXTRACTION` and the pair: +- satisfies (4) for `(i, j)`; +- fails (5) for `(i, j)`. + +Each valid complaint marks `i`. Invalid complaints have no effect. + +Every delivered `EXTRACTION_COMPLAINT` is evaluated on its own, **including messages in +conflict**. A valid complaint is evidence against the dealer whoever sent it. + +**R6, reconstruction.** For each marked dealer `i`, the **valid pairs** are the `RECONSTRUCTION` +messages with subject `i` that are not in conflict and whose pair satisfies (4) for +`(i, sender)`. +- Take the `t + 1` valid pairs with the lowest senders. Interpolate the coefficients of `f_i` and + `f'_i` (degree at most `t`) by Lagrange interpolation mod `l`. +- Then check two things: + - every other valid pair lies on the interpolated polynomials; + - `[a_ik]·G + [b_ik]·H = C_ik` for every `k`. This is implied by (4) on the chosen pairs + (interpolation is linear) and is kept as a defensive check. +- Set `A_ik = [a_ik]·G`. The dealer's contribution is **kept** ([GJKR07] §4.2). + +**Outputs.** + +``` +y = Σ_{i ∈ QUAL} A_i0 +Y_j = Σ_{i ∈ QUAL} Σ_{k=0..t} [j^k mod l]·A_ik for every j = 1 … n +``` + +Here `A_ik` is the published `EXTRACTION` value, or the reconstructed one for a marked dealer. +`Y_j` is participant `j`'s **verification key**: it may be `O`, and two participants may have +equal `Y_j`. + +**Private outputs of participant `j`.** The secret share is `x_j = Σ_{i ∈ QUAL} s_ij mod l`. This +includes `j`'s own `s_jj` when `j ∈ QUAL`. For `i ≠ j`, `s_ij` is the pair received privately +when it satisfied (4), or else the pair from `i`'s `ANSWER` to `j`'s complaint. The participant also emits these messages: +- **R2:** a `COMPLAINT` against every dealer whose `SHARE` was absent, in conflict, or failed + (4). There is no complaint against a dealer whose `COMMITMENTS` is absent or in conflict: R1 + already disqualifies it. +- **R5:** an `EXTRACTION_COMPLAINT` against every dealer in `QUAL` whose `EXTRACTION` fails (5) + for its pair; +- **R6:** a `RECONSTRUCTION` for every marked dealer `i ≠ j`. + +**R7, confirmation.** Every member of `QUAL` broadcasts `CONFIRMATION(digest, y)` (§7). + +### 5.1 Aborts + +A participant aborts with **"fault assumption violated"**, and never silently excludes a dealer +or restarts within the session, when any of these holds: + +| # | Condition | Why it cannot happen under the assumptions | +|---|---|---| +| A1 | `|QUAL| < n − t` | Honest dealers are never disqualified, and at least `n − t` participants are honest. | +| A2 | The participant's own dealing is disqualified (participant check) | It answered every complaint correctly. | +| A3 | A marked dealer has fewer than `t + 1` valid pairs | At least `t + 1` honest participants hold valid pairs. | +| A4 | Valid pairs do not lie on one polynomial pair, or the interpolation does not match `C_ik` | Equation (4) binds pairs unless `log_G H` is known. | +| A5 | `y = O` | Probability about `2⁻²⁵²`. | +| A6 | `[x_j]·G ≠ Y_j` (participant check) | It follows from (4), (5) and reconstruction. | +| A7 | At least `t + 1` distinct members of `QUAL` sent authenticated `CONFIRMATION`s whose digest or `y` differ from the participant's own (an equivocator counts as differing), **or** fewer than `t + 1` distinct members sent one equal to it (counting the participant's own confirmation only if it was delivered back to it, like any other) | At most `t` participants are faulty, so `t + 1` differing confirmations include an honest participant who saw a different board. Fewer than `t + 1` matching means the honest participants did not confirm this view. Up to `t` lies are ignored. | +| A8 | The participant's own dealing is marked for reconstruction (participant check) | It broadcast a correct `EXTRACTION` in time, and no valid complaint exists against a correct vector. | +| A9 | The participant's own `COMPLAINT` is missing from its delivered round-2 set (participant check) | Its own broadcasts are delivered, to itself as to everyone. | + +**When each check runs.** Checks run as rounds close, and a participant that aborts sends +nothing afterwards: + +| Round closing | Checks | +|---|---| +| R2 | A9 | +| R3 | A1, A2 | +| R5 | A8, before any `RECONSTRUCTION` is sent | +| R6 | A3, A4, A5, A6 | +| R7 | A7 (an equivocating member, with two different confirmations, counts as differing) | + +A8 matters outside the synchronous model of [GJKR07]. If an honest dealer's `EXTRACTION` is +merely late, R4 marks it, and without A8, R6 would publish its polynomial and reveal `z_i`. +- **Every honest dealer late:** A8 makes them all fall silent before R6, so nothing is + published. The faulty participants alone hold at most `t` pairs per dealer, and the run ends + in A3. +- **Some honest dealers late:** an unmarked honest contribution keeps `x` secret. + +Either way, a marked honest dealer does not confirm. A8 trades liveness for secrecy: each late +honest dealer is one fewer confirmation towards the `t + 1` that admission needs. A8 covers +**late extraction vectors only**. A late private `SHARE` is not covered (§5.2). + +A participant that aborts with A9 at R2 stays in `QUAL` if nobody complained against it, and +falls silent. Its `EXTRACTION` is then absent, so the others reconstruct its polynomial in R6, +which makes its `z_j` public. As in A8's partial case, the key stays secret as long as one +honest contribution remains unpublished. + +### 5.2 Timely delivery is a secrecy precondition + +[GJKR07] assumes synchronous, reliable private channels and broadcast. Missing a deadline is not +only a liveness failure: +- **A late private `SHARE` between honest participants.** The recipient complains, and the + honest dealer must answer by broadcasting that pair. The `t` faulty participants already hold + `t` points of the dealer's polynomials, so this public pair is the `(t + 1)`-th and determines + `f_i` and `z_i`. + - If that happens to every honest dealer, the key is revealed, and no abort fires. + - A rushing adversary that sees these answers before deciding its own dealers' behaviour also + regains the bias of [GJKR07] §3. +- **A late `EXTRACTION`.** It is handled by A8 (§5.1). + +The library cannot tell a late honest share from a withheld one. The application's transport +must therefore deliver private `SHARE`s between honest participants before the round-1 +deadline, with deadlines chosen accordingly. How an honest dealer should respond to a complaint +it believes is caused by late delivery is an open maintainer question (ADR-0053 Q7). This +profile does not change Fig. 2's rule. + +A4 cannot be triggered without knowing `log_G H`. Pairs that pass (4) but disagree with the +polynomial require that discrete logarithm. So A4 is a defensive check, and the independent +reference exercises it only with a test-only trapdoor base. + +A new attempt needs a new session (§2). + +--- + +## 6. Transcript + +The **transcript** is the configuration plus the delivered broadcast sets of rounds 1–6. It +excludes `SHARE` messages, which are private, and the R7 confirmations. Its canonical encoding: + +``` +transcript = DST_T ‖ session ‖ u8(t) ‖ u8(n) + ‖ for r = 1 … 6: u32(count_r) ‖ for each message m of round r, in order: + u16(len(m)) ‖ m +DST_T = UTF-8("zeroj.elgamal-jubjub-threshold.v1.transcript") +``` + +Within a round, messages are ordered by `(kind, sender, subject)` and then by their bytes in +unsigned lexicographic order. Byte-identical duplicates appear once. Conflicting messages both +appear: they are the evidence. The order does not depend on arrival order. + +`digest = BLAKE2b-256(transcript)`. + +Every well-formed delivered broadcast is part of the transcript, including messages that have +no effect on the outputs (for example an `ANSWER` nobody asked for). A round with no messages +contributes `u32(0)`. + +Recomputing the outputs of §5 from a transcript is pure algebra. It is **not** evidence that the +run happened (§8). + +--- + +## 7. Confirmation + +`CONFIRMATION` carries `digest ‖ encode(y)` for the participant's own view of the run. A +participant sends it only if it did not abort. + +--- + +## 8. Admission (ADR-0053 D4a) + +A threshold key context is created only in two ways: +- **by admission**, as specified below; +- **by a participant from its own run**, whose authenticated rounds it observed directly. + +Admission takes the following inputs: +- the configuration `(t, n, roster, ctx, attempt)`, from a trusted source; +- the transcript's messages, each with an **authenticator**; +- **round-closure evidence** for rounds 1–7. Round 7 is the set of confirmations, so a submitter + cannot leave out differing ones; +- `CONFIRMATION` messages, each with an authenticator. + +The library performs these steps: + +1. Validates the parameters (§1) and derives `session` (§2). +2. Decodes every transcript message and requires it to be well-formed for this session (§4). + Every transcript message must be a broadcast message of rounds 1–6: a well-formed `SHARE` or + `CONFIRMATION` among them is **refused**, like a malformed one. The submitter builds the + transcript from the delivered sets, which never contain either kind, so a misplaced message + is a submitter error, not board noise. Confirmations are submitted separately (step 6). + Byte-identical duplicates among the submitted messages count once, as on the board (§6); + they are not refused. +3. Asks the application verifier, for every transcript message, + `authenticate(sender, key_sender, message bytes, authenticator)`, and refuses on any `false`. +4. Asks, for each round `r = 1 … 6`, + `roundClosed(config, r, the round's canonical message list, evidence_r)`, and refuses on any + `false`. This is how omitted or truncated rounds are refused. + - The application compares the list with the round's **delivered set** (§5): the board's + posts made while round `r` was open, after dropping anything malformed, for another session + or round, a `SHARE`, or failing authentication, with byte-identical duplicates once, in §6 + order. A post made during an earlier round's window is not part of round `r`'s board. + - Computing it this way means a faulty participant's junk posts cannot veto admission. The + library provides this computation (`DkgTranscript.deliveredRound`). +5. Recomputes `QUAL`, the marks, `y` and every `Y_j` (§5), and refuses on A1, A3, A4 or A5. +6. Builds the expected bytes `CONFIRMATION(digest, y)` for each member of `QUAL`, and counts: + - **matching:** distinct senders in `QUAL` whose submitted confirmation equals those bytes and + authenticates; + - **differing:** distinct senders in `QUAL` whose authenticated, well-formed confirmation for + this session carries another digest or `y`. + + A sender that equivocated, sending two different confirmations, counts as **differing** and + not as matching. The library also asks + `roundClosed(config, 7, the canonical list of submitted well-formed CONFIRMATIONs for this session, evidence_7)`. + That list contains every authenticated such confirmation from any sender, members of `QUAL` + or not. It is + ordered by the rule of §6: by `(kind, sender, subject)` and then by bytes, with + byte-identical duplicates once. + + It refuses unless matching ≥ `t + 1` and differing ≤ `t`. Differing ≥ `t + 1` means an honest + participant confirmed another record, the condition of abort A7. Up to `t` differing + confirmations may be lies by faulty participants, and they do not veto the run. Anything that + is malformed, for another session, not a `CONFIRMATION`, unauthenticated or from outside + `QUAL` is ignored. + +With at most `t` faulty participants, step 6 guarantees that an honest participant vouched for +exactly this record. + +The honest-majority and transport assumptions stay **assumptions**. The application's verifier +is responsible for authenticity and round closure. Signatures under keys outside the roster, or +the inclusion of selected messages alone, do not discharge that responsibility. + +--- + +## 9. Threshold context and decryption (ADR-0053 D5, D5a) + +**Context.** A threshold key context consists of: +- the configuration and `session`; +- `QUAL`; +- the joint key `y ≠ O`; +- the verification keys `Y_1 … Y_n`. + +Two contexts are equal iff their sessions, `QUAL`, `y` and `Y_j` are equal. Contexts from +different attempts are therefore never equal. Encryption and admission of ciphertexts are those +of [`elgamal-jubjub-v1.md`](elgamal-jubjub-v1.md) §4 and §10.1, under the key `y`. + +**Shares.** A decryption share of participant `j ∈ QUAL` for an admitted ciphertext `(A, B)` is +`D_j = [x_j]·A`. It is verified by the DLEQ statement `(X = A, P = Y_j, D = D_j)` of +[`elgamal-jubjub-v1.md`](elgamal-jubjub-v1.md) §9.2. `P` and `D` may be `O`. Shares are keyed by +identifier, never by point value. +- A participant's secret is valid for its share only if `[x_j]·G = Y_j`. +- Only members of `QUAL` contribute decryption shares (ADR-0053 D5). A participant outside + `QUAL` was disqualified as a dealer, so it is faulty under the assumptions. At least `t + 1` + members of `QUAL` are honest, so this costs no liveness. +- Single-key decryption is **not defined**: no full secret exists. + +**Combine.** Given verified shares from distinct `j ∈ QUAL`, with at least `t + 1` of them: + +``` +S = the t + 1 smallest identifiers among the shares +λ_j = Π_{m ∈ S, m ≠ j} m · (m − j)⁻¹ (mod l) +M = B − Σ_{j ∈ S} [λ_j]·D_j +``` + +For every extra share `e ∉ S`, the combiner checks +`D_e = Σ_{j ∈ S} [L_{j,S}(e)]·D_j`, where `L_{j,S}(e) = Π_{m ∈ S, m ≠ j} (e − m)·(j − m)⁻¹`. A +mismatch is an error. With verified shares it cannot happen, so this is a defensive check that +every subset gives the same result. The plaintext is then recovered as in +[`elgamal-jubjub-v1.md`](elgamal-jubjub-v1.md) §6.3. + +`Σ_{j ∈ S} λ_j·x_j = x mod l` for every `(t + 1)`-subset `S`. + +--- + +## 10. Secret handling + +The following are secret and **compatibility/offline class** (ADR-0039 §3.1), with no +constant-time claim: +- the coefficients `a_ik` and `b_ik`, and the commitments and extraction values computed from + them; +- the received pairs and the left-hand sides of (4) and (5) on them; +- `x_j`; +- the check `[x_j]·G = Y_j`; +- decryption shares; +- the plaintext search. + +Everything computed from broadcast data is public: the right-hand sides of (4) and (5), +published pairs (R3, R5, R6), `QUAL`, `y`, `Y_j` and the combination. + +--- + +## 11. Test vectors + +Test scalars are +`scalar(tag) = OS2IP(SHA-256(UTF-8("zeroj.elgamal.threshold.v1.test." + tag))) mod l`. Numbers +in tags are decimal and unpadded. The coefficients of dealer `i` are `a_ik = scalar("a." + i + "." + k)` +and `b_ik = scalar("b." + i + "." + k)`, unless a fixture overrides them. + +| Fixture | Content | +|---|---| +| `session` | `ctx = UTF-8("zeroj.test.election")`, `attempt = 1`, `t = 1`, `n = 3`, `key_j` = 32 bytes each equal to `j` | +| `honest-2of3`, `honest-3of5`, `honest-4of7` | `ctx = UTF-8("zeroj.test.honest")`, `attempt = 1`, roster as above (`key_j` = 32 bytes each equal to `j`, for `j = 1 … n`). Contents: every commitment, extraction value, share, `x_j`, `y` and `Y_j`; the transcript digest (rounds 2, 3, 5 and 6 are empty, since no complaints occur); the Lagrange coefficients of every `(t + 1)`-subset; and the threshold decryption of `Enc(5; scalar("enc.k"), y)` at width 3 for every subset. | +| `zero-share` (2-of-3) | `ctx = UTF-8("zeroj.test.zero-share")`, `attempt = 1`. `a_i0 = 1` for all `i`; slopes `a_11 = 1`, `a_21 = 2`, `a_31 = l − 6`; `b_ik` from the tags. Then `F(z) = 3 − 3z`, `x_1 = 0` and `Y_1 = O`. Every pair of participants decrypts `Enc(1; scalar("enc.k"), y)` at width 1. | +| `equal-shares` (2-of-3) | `ctx = UTF-8("zeroj.test.equal-shares")`, `attempt = 1`. `a_i0 = 1`; slopes `1`, `2`, `l − 3`. Then `F(z) = 3` and `Y_1 = Y_2 = Y_3 = [3]·G`. Every pair decrypts as above. | +| `adversarial-4of7` | The script below. | + +The `adversarial-4of7` fixture: `t = 3`, `n = 7`, `ctx = UTF-8("zeroj.test.adversarial")`, +`attempt = 7`, roster as above, coefficients from the tags. +- Exactly three participants deviate (`= t`): dealers 1, 3 and 5. Apart from the deviations + listed below, **every participant follows §5**. +- A participant that aborts (§5.1) sends nothing afterwards. + +1. **R1.** Every dealer broadcasts `COMMITMENTS` and sends every `SHARE`, with two exceptions: + - dealer 1 sends participant 2 the pair `(s_12 + 1 mod l, s'_12)`; + - dealer 3 sends participant 4 the pair `(s_34 + 1 mod l, s'_34)`. +2. **R2.** Following §5, participant 2 complains against dealer 1 and participant 4 complains + against dealer 3. +3. **R3.** Dealer 1 answers participant 2 with the correct pair. Dealer 3 does not answer, so it + is disqualified: `QUAL = {1, 2, 4, 5, 6, 7}`. Participant 3 aborts with A2. +4. **R4.** + - Dealer 1 withholds its `EXTRACTION`. It is not delivered to anyone, dealer 1 included. + - Dealer 5 broadcasts `EXTRACTION` with `A_51` replaced by `A_51 + G`. + - The other members of `QUAL` broadcast correct vectors. +5. **R5.** Following §5, participants 1, 2, 4, 6 and 7 complain against dealer 5: the forged + vector fails (5) for each of them. Dealers 1 and 5 are marked, and both abort with A8 when + R5 closes. +6. **R6.** Following §5, participants 2, 4, 6 and 7 broadcast `RECONSTRUCTION` for dealers 1 and + 5: 8 messages, `t + 1 = 4` per dealer. +7. **Outputs.** + - `y = Σ_{i ∈ {1,2,4,5,6,7}} [a_i0]·G`: the marked dealers keep their contributions. + - Every `Y_j` equals the value computed from the true `A_ik`. + - Participants 2, 4, 6 and 7 confirm. + - The fixture includes the bytes of every broadcast message, the two bad `SHARE` messages, + the transcript digest, the four `CONFIRMATION`s, the outputs, and the message counts per + round: 7 / 2 / 1 / 5 / 5 / 8. + +| Case | Value | +|---|---| +| `session` fixture: session id | `27ee85d2f50e766a65a3bd49b4dd532f7ad7967bde49c912b2e6b6b5c932af0c` | +| `honest-2of3`: session | `a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03` | +| `honest-2of3`: `encode(y)` | `14acdc488055720e853cbb6b613d2c7f52aee2fa8e7f37b410b1fa9093082658` | +| `honest-2of3`: transcript digest | `2af7f7eae154833d51861bae276448b396eae5479a074a833a31a9fb9aa46023` | +| `honest-3of5`: `encode(y)` | `89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425` | +| `honest-4of7`: transcript digest | `9b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431b` | +| `zero-share`: `encode(Y_1)` (the identity) | `0100000000000000000000000000000000000000000000000000000000000000` | +| `zero-share`: transcript digest | `8864e81db8467449ab695f59e82ca31608edf753370c46b912b2b936e43fd43d` | +| `equal-shares`: `encode(Y_1) = encode(Y_2) = encode(Y_3)` | `c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7` | +| `adversarial-4of7`: `QUAL`, marked | `1, 2, 4, 5, 6, 7; marked 1, 5` | +| `adversarial-4of7`: message counts R1–R6 | `7 / 2 / 1 / 5 / 5 / 8` | +| `adversarial-4of7`: `encode(y)` | `0b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54` | +| `adversarial-4of7`: transcript digest | `92ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a0` | + +An independent reproduction of §1–§9 and of these vectors, written from this document, the +[GJKR07] Fig. 2 text and the Jubjub definition, is at +`zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/`. Its pinned output is +checked against the library at every build. + +--- + +## 12. Non-goals + +- How private channels are built (ADR-0053 Q1, escalated; #77). +- Adaptive adversaries; changing the trustee set (resharing or proactive refresh); + asynchronous key generation. +- Verifying a key generation on-chain. +- A trusted dealer. It exists only as a test fixture (ADR-0053 Q3). +- Thresholds with `t ≥ n/2` (ADR-0053 Q2). + +## 13. References + +- **[GJKR07]** R. Gennaro, S. Jarecki, H. Krawczyk, T. Rabin, *Secure Distributed Key Generation + for Discrete-Log Based Cryptosystems*, J. Cryptology 20:51–83 (2007): §2.1 (model), Fig. 2 + (New-DKG), §4.2 (keeping a misbehaving dealer's contribution), Theorem 1. +- **[CGS97]** §2.3 (threshold decryption with Lagrange coefficients). +- **[RFC 7693]** The BLAKE2 Cryptographic Hash and Message Authentication Code. +- [`elgamal-jubjub-v1.md`](elgamal-jubjub-v1.md), [`pedersen-jubjub-v1.md`](pedersen-jubjub-v1.md); + ADR-0052, ADR-0053. + +[RFC 7693]: https://www.rfc-editor.org/rfc/rfc7693 diff --git a/docs/specs/elgamal-jubjub-v1.md b/docs/specs/elgamal-jubjub-v1.md new file mode 100644 index 00000000..da14e80a --- /dev/null +++ b/docs/specs/elgamal-jubjub-v1.md @@ -0,0 +1,451 @@ +# ZeroJ ElGamal-Jubjub v1 — Normative Specification + +**Profile identifier:** `elgamal-jubjub-v1` +**Status:** Normative. Required by ADR-0052 (milestone M0). +**Date:** 2026-10-05 + +This document pins every value, procedure and encoding that a second implementation needs to +produce, combine, check and decrypt the same ciphertexts as ZeroJ's exponential ("lifted") +ElGamal profile on Jubjub. It is the normative form of ADR-0052 D1, D2a–D2c, D3, D5 and D7. +Anything not written here is not part of the profile. + +Changing any constant, procedure or encoding produces a different profile. Ciphertexts made +under this one would not decrypt under the changed one. Such a change requires a new profile +identifier (`-v2`), not an edit to this file. + +Conventions: + +- `x mod l` is the least non-negative residue, in `[0, l)`. +- `OS2IP` reads bytes as an unsigned **big-endian** integer. `I2OSP32(x)` writes `x` as 32 + big-endian bytes. +- Point encodings (§7) are **little-endian**, per ZIP 216. Points are written additively; + `[s]·P` is scalar multiplication, `O` is the identity. + +--- + +## 1. Curve, field and generator + +The curve, field and constants are those of [`pedersen-jubjub-v1.md`](pedersen-jubjub-v1.md) §1: +`p`, `l`, `a = −1`, `d = −10240/10241 mod p`, cofactor `8`. `𝔾` is the prime-order subgroup +of order `l`. + +The **only generator** is `G`, the `pedersen-jubjub-v1` value base +([`pedersen-jubjub-v1.md`](pedersen-jubjub-v1.md) §2.1): + +| Field | Value | +|---|---| +| `G.u` | `0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5` | +| `G.v` | `0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb` | +| `encode(G)` | `cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7` | + +`G` is both the key base and the message base (ADR-0052 Q3, decided: one generator). + +--- + +## 2. Scalar sampling + +`sample(rng)`: draw 64 bytes from a cryptographically secure random generator, compute +`OS2IP(bytes) mod l`. This is the `pedersen-jubjub-v1` §3.1 sampler. Its statistical distance +from uniform on `[0, l)` is below `2⁻²⁵⁹`. + +- **Secret keys** use `sample` and are resampled while the result is `0`, so `sk ∈ [1, l)`. +- **Encryption randomness** `k = sample(rng)`, so `k ∈ [0, l)`. + +--- + +## 3. Keys + +### 3.1 Single key + +A secret key is an integer `sk ∈ [1, l)`. Its public key is `PK = [sk]·G`. + +A **public key received from elsewhere** is accepted only if it decodes canonically (§7.1), +lies in `𝔾`, and is **not the identity**. Encryption under the identity publishes `[m]·G`. + +### 3.2 Joint key from n-of-n shares + +Trustee `j` (of `n ≥ 1`) holds `sk_j ∈ [1, l)` and publishes `PK_j = [sk_j]·G`. The joint key is + +``` +PK = Σ_j PK_j (secret key Σ_j sk_j mod l, held by nobody) +``` + +Aggregation is defined only over **possession-verified** shares (§3.3). It is refused when +any of the following holds: + +1. the share list is empty; +2. a share is the identity or not in `𝔾`; +3. two shares are equal; +4. the sum is the identity. + +**Registered share set.** The joint key's context consists of `PK` together with the set of +verified shares, sorted by `encode(PK_j)` in **unsigned lexicographic byte order, starting at +byte 0** of the 32-byte encoding. That is not the order of the encoding read as an integer: +the encoding is little-endian, so byte 0 is its least significant byte. The `sortvec` vector +of §12 separates the plausible wrong comparators. + +Two contexts are equal if and only if their sorted share encodings are equal; the joint key +then agrees too. A single key `{PK}` and a three-share context whose shares sum to the same +`PK` are therefore **different** contexts, and their ciphertexts cannot be combined. + +A single key (§3.1) is the case `n = 1`. + +**Partial cancellation.** The rules refuse only a sum that is the identity. With shares +`{P, −P, Q}`, the joint key is `Q`, and `Q`'s holder can decrypt alone. This is not a break: +registering both `P` and `−P` requires possession of both secrets, so one party (or a +coalition) chose to cancel its own contribution. Privacy still needs every *other* trustee. An +application that requires each registered trustee to be necessary for decryption must exclude +such registrations itself. + +### 3.3 Proof of possession + +A share `PK_j` is possession-verified if one of the following holds: + +- a verifier accepted the DLEQ statement (§9.2) with `X = G`, `P = PK_j`, `D = PK_j`; +- the share was computed locally as `[sk_j]·G` from a secret `sk_j` held by the same party. + Local knowledge of the discrete logarithm is possession. + +This blocks rogue keys: a party that publishes `PK_n = [x]·G − Σ_{j verifyGroth16(proof, statement.publicInputs())); +ElGamalCiphertext total = ElGamalCiphertext.sum(admittedBallots); +long yes = ElGamal.decrypt(total, verifiedShares, total.bound().longValueExact()); +``` + +Decryption recovers `m` with a bounded baby-step giant-step search, so keep the decrypted total +small (default reach about `2^43`). It fails closed instead of returning a wrong value. + +**Threshold keys.** With `elgamal-jubjub-threshold-v1` (ADR-0053), any `t + 1` of `n` trustees +can decrypt, and up to `t` can be lost or malicious. The trustees run a distributed key +generation, New-DKG of Gennaro et al., with `DkgParticipant`. No single party ever holds the +key, provided the transport delivers the private shares on time. A late share can make an honest +dealer publish it, so timely delivery is a secrecy requirement, not only a liveness one. +- Your application supplies the transport: a broadcast board with agreement, private channels + for shares, and round deadlines. +- A third party accepts the result with `ThresholdKeyContext.admit`, which requires + authenticated messages, closed rounds, and confirmations from at least `t + 1` trustees. +- Ballots and sums are unchanged. Decryption takes any `t + 1` verified shares. + +:::caution[Offline trustee and encryption operations] +Key generation, encryption, decryption shares and the DKG handle secrets with variable-time +Java `BigInteger` arithmetic, through the blinded best-effort schedule used for Pedersen. +Run them offline or in an isolated process. The in-circuit relations are not affected. "Decrypt +once, after a deadline" is your application's rule: decrypting running totals lets anyone +recover individual messages by differencing. +::: + ## Real-world crypto: Cardano key derivation These gadgets reproduce standard wallet primitives *inside* a circuit, so a proof can show "I know @@ -286,6 +362,8 @@ authorization or replay rules. | Pedersen commitment (in-circuit) | BLS12-381 only | Ready, pending external review | | Pedersen commitment (off-circuit generation) | Jubjub | Offline or isolated use only | | EdDSA-Jubjub | BLS12-381 only | Verification ready pending external review; legacy signing offline only | +| ElGamal encryption and trustee proofs (in-circuit) | BLS12-381 only | Experimental | +| ElGamal host API, threshold key generation | Jubjub | Experimental; secret operations offline or isolated only | | BLAKE2b, CIP-1852 derivation | Field-agnostic | Ready on BLS12-381 Groth16 | | SHA-512, HMAC-SHA512, BIP32-Ed25519 | Field-agnostic | Ready as building blocks | | Poseidon MPF/JMT authenticated state | BLS12-381 Poseidon profile | Experimental (separate modules) | diff --git a/zeroj-circuit-lib/README.md b/zeroj-circuit-lib/README.md index fc0a7c36..c35a0f75 100644 --- a/zeroj-circuit-lib/README.md +++ b/zeroj-circuit-lib/README.md @@ -50,6 +50,8 @@ final proof, verification key data, and public inputs. | Pedersen commitment (in-circuit) | `InCircuitPedersen` | `ZkPedersen` | BLS12-381 scalar field only | Ready on BLS12-381 Groth16, pending external review | Profile spec: [`pedersen-jubjub-v1`](../docs/specs/pedersen-jubjub-v1.md). The blinding is always 252 bits and may not be a public input or constant (ADR-0051 D2); only the value has a caller-chosen width. 3,020 constraints for two 252-bit vectors in the gadget alone; the complete `ZkPedersen` commitment with public `(u, v)` costs 2,410 (64-bit value) / 4,042 (252-bit value). `InCircuitPedersen` proves the represented residues but does not establish integer `< l`; `ZkPedersen` adds that canonicality check. | | Pedersen homomorphic API | `InCircuitJubjub.negate`/`subtract`/`assertInPrimeOrderSubgroup` | `ZkPedersenCommitment`, `ZkPedersen.assertBalanced`, `ZkJubjubPoint.negate`/`subtract`/`assertInPrimeOrderSubgroup` | BLS12-381 scalar field only | Experimental, pending review and external review | The public subgroup assertion validates the point (curve, `T·Z = U·V`, `Z ≠ 0`) before `[l]·P = O`. Unopened external commitments enter only through `witnessInSubgroup` or `fromVerifierCheckedPublic`. Commitment sums hold mod `l`; `assertBalanced` refuses layouts that could wrap (ADR-0051 D3a). `PedersenCommitment.decode` adds the subgroup check to canonical decoding. | | Pedersen vector commitment | `InCircuitPedersenVector`, `PedersenVectorBases`, `PedersenVectorSchema`, `PedersenVectorCommitment`, `PedersenSchemaRegistry` | `ZkPedersenVector`, `ZkPedersenVectorCommitment` | BLS12-381 scalar field only | Experimental, pending spec and external review | Spec: [`pedersen-jubjub-vector-v1`](../docs/specs/pedersen-jubjub-vector-v1.md). Up to 16 values; bases from Zcash `FindGroupHash("ZeroJ_PV", …)`. The point binds neither length nor schema, so proofs bind a public schema digest and verifiers check it against a registry; received commitments need an authenticated issuance record (fail closed). | +| ElGamal encryption (in-circuit) | `InCircuitElGamal` | `ZkElGamal`, `ZkElGamalPublicKey`, `ZkElGamalCiphertext` | BLS12-381 scalar field only | Experimental, pending review and external review | Spec: [`elgamal-jubjub-v1`](../docs/specs/elgamal-jubjub-v1.md) (ADR-0052). Message width 1–64 (wider refused at definition); randomness exactly 252 bits, never public, one decomposition for `[k]·G` and `[k]·PK`; keys enter as verifier-fixed public coordinates or witnessed in the subgroup, never the identity. DLEQ requires all six coordinates public. Rows: 6,558 (width 1) / 6,650 (16) / 6,938 (64); witnessed key 12,105; DLEQ 6,546. | +| ElGamal host API and threshold DKG | `ElGamal`, `ElGamalCiphertext`, `NOfNKeyContext`, `VerifiedKeyShare`, `VerifiedDecryptionShare`, `JubjubDiscreteLog`; `DkgParticipant`, `DkgTranscript`, `ThresholdKeyContext` | — | Jubjub over BLS12-381 | Experimental; secret operations **offline/isolated only** (ADR-0039 compatibility class) | Safe layer: admitted ciphertexts carry a key context and an established bound; shares and keys are verified by type. Threshold profile [`elgamal-jubjub-threshold-v1`](../docs/specs/elgamal-jubjub-threshold-v1.md) (ADR-0053): GJKR07 New-DKG, `t < n/2`, library-computed admission; transport is the application's. | | Pedersen commitment (off-circuit generation) | `PedersenCommitment.commit`; internal fixed-limb review candidate | — | Jubjub over BLS12-381 | Legacy is **offline/isolated only**; fixed-limb path is an unapproved ADR-0039 M9 candidate | The candidate is package-private, uses mutable explicit-width openings and fixed-limb schedules, and has separate timing/external/platform gates. Hiding and binding of the commitment itself are unaffected. | | EdDSA-Jubjub | `InCircuitEdDSAJubjub`, `EdDSAJubjub`, `JubjubSigner` | `ZkEdDSAJubjub` | BLS12-381 scalar field only | Verification ready pending external review; legacy signing offline-only; fixed-limb hedged profile remains an unapproved candidate | Two in-circuit entry points are named for their key-trust model. `JubjubSigners.validatedDedicatedHostJavaRequired` deliberately fails closed until ADR-0039 M4–M8 pass. Specs: [`jubjub-eddsa-v1`](../docs/specs/jubjub-eddsa-v1.md), [hedged candidate](../docs/specs/jubjub-eddsa-hedged-v1-candidate.md). | | Poseidon parameters and off-circuit hashing | `PoseidonParams*`, `PoseidonHash`, `PoseidonGrainLFSR`, `PoseidonParameterFingerprint` | Used by `ZkPoseidon*`, `ZkMerkle`, and the separate MPF/JMT modules | BN254 T3, BLS12-381 T3, BLS12-381 T5 presets exist | Ready when matched to the circuit field and gadget shape | `PoseidonHash` is host-side hashing for expected roots/test vectors, not a circuit constraint by itself. `FastPoseidonBls12381T3` is the equivalence-tested optimized **host-side** path used for off-circuit roots and witnesses; circuit constraints still use the Poseidon gadget. | diff --git a/zeroj-circuit-lib/build.gradle b/zeroj-circuit-lib/build.gradle index b0eef57e..23e47a97 100644 --- a/zeroj-circuit-lib/build.gradle +++ b/zeroj-circuit-lib/build.gradle @@ -26,6 +26,22 @@ tasks.register('secretScalarBenchmark', Test) { testLogging { showStandardStreams = true } } +// ADR-0052 M1 ElGamal host performance matrix (decode, subgroup checks, encryption, sums, +// shares, discrete-log search). Records numbers, asserts nothing. +// Run: ./gradlew :zeroj-circuit-lib:elgamalBenchmark +tasks.register('elgamalBenchmark', Test) { + description = 'ADR-0052 ElGamal host performance matrix (records, does not assert).' + group = 'verification' + testClassesDirs = sourceSets.test.output.classesDirs + classpath = sourceSets.test.runtimeClasspath + useJUnitPlatform() + filter { includeTestsMatching '*ElGamalBenchmark*' } + systemProperty 'zeroj.elgamalBench', 'true' + maxHeapSize = '2g' + outputs.upToDateWhen { false } + testLogging { showStandardStreams = true } +} + // ADR-0039 M6 fixed-limb signer/Pedersen performance matrix. Results are evidence for the // exact JVM/CPU used to run it, never a portable constant-time or readiness claim. // Run: ./gradlew :zeroj-circuit-lib:jubjubHardenedBenchmark diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/AuthenticatedDkgMessage.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/AuthenticatedDkgMessage.java new file mode 100644 index 00000000..2588d4da --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/AuthenticatedDkgMessage.java @@ -0,0 +1,31 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.util.Objects; + +/** + * A key-generation message as received from the broadcast mechanism, with the evidence that + * its sender sent it (for example a signature, or a reference to a bulletin-board transaction). + * The library hands both to {@link DkgAdmissionVerifier#authenticate} together with the + * sender's roster key. + * + * @param message the message bytes + * @param authenticator the application's authenticity evidence for those bytes + */ +public record AuthenticatedDkgMessage(byte[] message, byte[] authenticator) { + public AuthenticatedDkgMessage { + Objects.requireNonNull(message, "message"); + Objects.requireNonNull(authenticator, "authenticator"); + message = message.clone(); + authenticator = authenticator.clone(); + } + + @Override + public byte[] message() { + return message.clone(); + } + + @Override + public byte[] authenticator() { + return authenticator.clone(); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/Blake2bDigest.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/Blake2bDigest.java new file mode 100644 index 00000000..7a667b10 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/Blake2bDigest.java @@ -0,0 +1,124 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.util.Objects; + +/** + * Host BLAKE2b ([RFC 7693]): unkeyed, no salt or personalisation, digest length 1–64 bytes. + * Used for the {@code elgamal-jubjub-threshold-v1} session identifier and transcript digest + * (BLAKE2b-256). The JDK ships no BLAKE2. The in-circuit gadget is + * {@code org.zeroj.circuit.lib.hash.Blake2b}. + * + *

A straight transcription of RFC 7693 §3. It hashes public data only. Checked against the + * RFC's Appendix A vector, BouncyCastle and Cardano's {@code Blake2bUtil} in + * {@code Blake2bDigestTest}. + * + * [RFC 7693]: https://www.rfc-editor.org/rfc/rfc7693 + */ +final class Blake2bDigest { + + private static final long[] IV = { + 0x6a09e667f3bcc908L, 0xbb67ae8584caa73bL, 0x3c6ef372fe94f82bL, 0xa54ff53a5f1d36f1L, + 0x510e527fade682d1L, 0x9b05688c2b3e6c1fL, 0x1f83d9abfb41bd6bL, 0x5be0cd19137e2179L + }; + + private static final byte[][] SIGMA = { + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, + {14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3}, + {11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4}, + {7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8}, + {9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13}, + {2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9}, + {12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11}, + {13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10}, + {6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5}, + {10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0}, + }; + + private static final int BLOCK = 128; + + private Blake2bDigest() {} + + /** BLAKE2b-256. */ + static byte[] blake2b256(byte[] input) { + return digest(input, 32); + } + + /** Unkeyed BLAKE2b with an {@code outLength}-byte digest, {@code 1 ≤ outLength ≤ 64}. */ + static byte[] digest(byte[] input, int outLength) { + Objects.requireNonNull(input, "input"); + if (outLength < 1 || outLength > 64) { + throw new IllegalArgumentException("BLAKE2b output length must be 1..64 bytes"); + } + long[] h = IV.clone(); + h[0] ^= 0x01010000L ^ outLength; // key length 0 + long[] m = new long[16]; + long[] v = new long[16]; + int blocks = blockCount(input.length); + // The last block starts at (blocks − 1)·128 ≤ 2^31 − 128, so offset + 127 ≤ Integer.MAX_VALUE. + for (int b = 0; b < blocks; b++) { + boolean last = b == blocks - 1; + int offset = b * BLOCK; + int length = Math.min(BLOCK, input.length - offset); + for (int i = 0; i < 16; i++) { + m[i] = 0; + for (int byteIndex = 7; byteIndex >= 0; byteIndex--) { + int pos = offset + i * 8 + byteIndex; + int value = pos < offset + length ? input[pos] & 0xFF : 0; + m[i] = (m[i] << 8) | value; + } + } + long counter = last ? input.length : (long) (b + 1) * BLOCK; + compress(h, m, v, counter, last); + } + byte[] out = new byte[outLength]; + for (int i = 0; i < outLength; i++) { + out[i] = (byte) (h[i >>> 3] >>> (8 * (i & 7))); + } + return out; + } + + /** + * The number of 128-byte blocks for {@code length} input bytes: {@code ⌈length / 128⌉}, and + * one for the empty input (RFC 7693 §3.3). Widened, so it is exact for every array length. + */ + static int blockCount(int length) { + if (length < 0) { + throw new IllegalArgumentException("length must be non-negative"); + } + return length == 0 ? 1 : (int) ((length + (long) BLOCK - 1) / BLOCK); + } + + private static void compress(long[] h, long[] m, long[] v, long counter, boolean last) { + System.arraycopy(h, 0, v, 0, 8); + System.arraycopy(IV, 0, v, 8, 8); + v[12] ^= counter; // the high 64 bits of the 128-bit counter stay zero (inputs < 2^63 bytes) + if (last) { + v[14] = ~v[14]; + } + for (int round = 0; round < 12; round++) { + byte[] s = SIGMA[round % 10]; + mix(v, 0, 4, 8, 12, m[s[0]], m[s[1]]); + mix(v, 1, 5, 9, 13, m[s[2]], m[s[3]]); + mix(v, 2, 6, 10, 14, m[s[4]], m[s[5]]); + mix(v, 3, 7, 11, 15, m[s[6]], m[s[7]]); + mix(v, 0, 5, 10, 15, m[s[8]], m[s[9]]); + mix(v, 1, 6, 11, 12, m[s[10]], m[s[11]]); + mix(v, 2, 7, 8, 13, m[s[12]], m[s[13]]); + mix(v, 3, 4, 9, 14, m[s[14]], m[s[15]]); + } + for (int i = 0; i < 8; i++) { + h[i] ^= v[i] ^ v[i + 8]; + } + } + + private static void mix(long[] v, int a, int b, int c, int d, long x, long y) { + v[a] = v[a] + v[b] + x; + v[d] = Long.rotateRight(v[d] ^ v[a], 32); + v[c] = v[c] + v[d]; + v[b] = Long.rotateRight(v[b] ^ v[c], 24); + v[a] = v[a] + v[b] + y; + v[d] = Long.rotateRight(v[d] ^ v[a], 16); + v[c] = v[c] + v[d]; + v[b] = Long.rotateRight(v[b] ^ v[c], 63); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgAdmissionVerifier.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgAdmissionVerifier.java new file mode 100644 index 00000000..30087f48 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgAdmissionVerifier.java @@ -0,0 +1,43 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.util.List; + +/** + * The application's evidence checks for admitting a threshold key generation + * ({@code elgamal-jubjub-threshold-v1} §8; ADR-0053 D3, D4a). + * + *

The library does all the counting and binding: it derives the session, checks every + * header, recomputes the outputs and the transcript digest, builds the exact confirmation bytes + * and counts the confirmations. The application answers only two questions, about bytes the + * library hands it: + *

    + *
  • Authenticity. Was this exact message sent by the participant whose roster key is + * given? For example, a signature under that key, or a transaction on a bulletin board + * that key controls.
  • + *
  • Round closure. Is this exactly the complete set of the round's broadcast + * messages under the agreed broadcast mechanism, closed by its deadline? On a ledger that + * means finality plus completeness of the round's postings.
  • + *
+ * Returning {@code true} without such a check defeats admission. The honest-majority and + * transport assumptions remain the application's. + */ +public interface DkgAdmissionVerifier { + + /** {@code true} iff {@code message} was sent by the participant holding {@code rosterKey}. */ + boolean authenticate(int sender, byte[] rosterKey, byte[] message, byte[] authenticator); + + /** + * {@code true} iff {@code canonicalMessages} is exactly round {@code round}'s complete, + * closed delivered set for this configuration's session. Rounds 1–6 are the + * transcript; round 7 is the set of confirmations, so that none can be left out. + * + *

The delivered set is the board's posts made while that round was open, after dropping + * anything malformed, for another session, of another round, a private {@code SHARE}, or + * failing authentication, with byte-identical duplicates once, in the canonical order of + * spec §6. An early post, made while an earlier round was open, belongs to no round. + * Compute it from the raw board with + * {@link DkgTranscript#deliveredRound}, so a faulty participant's junk posts cannot veto + * admission. + */ + boolean roundClosed(DkgConfig config, int round, List canonicalMessages, byte[] evidence); +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgConfig.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgConfig.java new file mode 100644 index 00000000..b3e6bd08 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgConfig.java @@ -0,0 +1,176 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.io.ByteArrayOutputStream; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HexFormat; +import java.util.List; +import java.util.Objects; + +/** + * The immutable configuration of one threshold key-generation attempt + * ({@code elgamal-jubjub-threshold-v1} §1–§2; ADR-0053 D2, D4a, D6): threshold {@code t}, + * participant count {@code n}, the roster of authentication keys, the application context + * and the attempt number, from which the session identifier is derived. + * + *

Every message carries the session, and admission recomputes it from this configuration. + * A configuration must therefore come from a trusted source, for example an election manifest. + * The application must never reuse an attempt number for the same context. + */ +public final class DkgConfig { + + /** The profile identifier. */ + public static final String PROFILE = "elgamal-jubjub-threshold-v1"; + + /** The largest supported participant count (ADR-0053 Q4). */ + public static final int MAX_PARTICIPANTS = 64; + + static final byte[] SESSION_TAG = + "zeroj.elgamal-jubjub-threshold.v1.session".getBytes(StandardCharsets.UTF_8); + + private final int t; + private final int n; + private final List roster; + private final byte[] applicationContext; + private final long attempt; + private final byte[] session; + + private DkgConfig(int t, int n, List roster, byte[] applicationContext, long attempt) { + this.t = t; + this.n = n; + this.roster = roster; + this.applicationContext = applicationContext; + this.attempt = attempt; + this.session = deriveSession(); + } + + /** + * Validates the parameters and derives the session (spec §2). + * + * @param t the number of faulty participants tolerated; any {@code t + 1} + * can decrypt + * @param n the participant count + * @param roster participant {@code j}'s authentication key at index {@code j − 1}, + * each 1–65535 bytes, pairwise distinct + * @param applicationContext 0–65535 bytes identifying the application instance + * @param attempt never reused for the same context; encoded as an unsigned 64-bit + * integer + * @throws IllegalArgumentException unless {@code t ≥ 1} and {@code 2t + 1 ≤ n ≤ 64}, the + * roster and context sizes are valid, and no two roster keys are equal + */ + public static DkgConfig create(int t, int n, List roster, byte[] applicationContext, long attempt) { + // Widened: an int 2t + 1 overflows for large t and would accept, e.g., t = 2^30 + 1 with n = 3, + // whose one-byte encoding aliases t = 1's session (review F10). Accepted values satisfy + // t ≤ 31 and n ≤ 64, so both fit the one-byte fields of the session and transcript. + if (t < 1 || n > MAX_PARTICIPANTS || n < 2L * t + 1) { + throw new IllegalArgumentException("parameters must satisfy t >= 1 and 2t + 1 <= n <= " + + MAX_PARTICIPANTS + " (t < n/2); got t=" + t + ", n=" + n); + } + Objects.requireNonNull(roster, "roster"); + Objects.requireNonNull(applicationContext, "applicationContext"); + if (roster.size() != n) { + throw new IllegalArgumentException("roster must hold exactly n = " + n + " keys"); + } + List copy = new ArrayList<>(n); + for (byte[] key : roster) { + Objects.requireNonNull(key, "roster key"); + if (key.length < 1 || key.length > 0xFFFF) { + throw new IllegalArgumentException("roster keys must be 1..65535 bytes"); + } + copy.add(key.clone()); + } + for (int a = 0; a < copy.size(); a++) { + for (int b = a + 1; b < copy.size(); b++) { + if (Arrays.equals(copy.get(a), copy.get(b))) { + throw new IllegalArgumentException("roster keys must be distinct (participants " + + (a + 1) + " and " + (b + 1) + ")"); + } + } + } + if (applicationContext.length > 0xFFFF) { + throw new IllegalArgumentException("application context must be at most 65535 bytes"); + } + return new DkgConfig(t, n, List.copyOf(copy), applicationContext.clone(), attempt); + } + + /** {@code t}. */ + public int t() { + return t; + } + + /** {@code n}. */ + public int n() { + return n; + } + + /** The 32-byte session identifier. */ + public byte[] session() { + return session.clone(); + } + + /** Participant {@code id}'s authentication key. */ + public byte[] rosterKey(int id) { + requireParticipant(id); + return roster.get(id - 1).clone(); + } + + /** The application context. */ + public byte[] applicationContext() { + return applicationContext.clone(); + } + + /** The attempt number. */ + public long attempt() { + return attempt; + } + + void requireParticipant(int id) { + if (id < 1 || id > n) { + throw new IllegalArgumentException("participant identifiers are 1.." + n + ", got " + id); + } + } + + byte[] sessionRef() { + return session; + } + + private byte[] deriveSession() { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + out.writeBytes(SESSION_TAG); + writeU16(out, applicationContext.length); + out.writeBytes(applicationContext); + for (int shift = 56; shift >= 0; shift -= 8) { + out.write((int) (attempt >>> shift) & 0xFF); + } + out.write(t); + out.write(n); + for (byte[] key : roster) { + writeU16(out, key.length); + out.writeBytes(key); + } + return Blake2bDigest.blake2b256(out.toByteArray()); + } + + static void writeU16(ByteArrayOutputStream out, int value) { + out.write((value >>> 8) & 0xFF); + out.write(value & 0xFF); + } + + /** Equal iff the sessions are equal: the session commits to every field. */ + @Override + public boolean equals(Object o) { + return o instanceof DkgConfig other && Arrays.equals(session, other.session); + } + + @Override + public int hashCode() { + return Arrays.hashCode(session); + } + + @Override + public String toString() { + return "DkgConfig{t=" + t + ", n=" + n + ", attempt=" + Long.toUnsignedString(attempt) + + ", session=" + HexFormat.of().formatHex(session) + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgMessage.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgMessage.java new file mode 100644 index 00000000..9745783a --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgMessage.java @@ -0,0 +1,287 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HexFormat; +import java.util.List; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.COMPRESSED_POINT_BYTES; +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * One message of {@code elgamal-jubjub-threshold-v1} key generation (spec §4): + * {@code session ‖ round ‖ kind ‖ sender ‖ subject ‖ payload}. + * + *

Messages are created only by a {@link DkgParticipant}, or by {@link #decode}, which + * enforces well-formedness: exact length, this configuration's session, a consistent round and + * kind, valid identifiers, canonical scalars ({@code < l}), and canonical points of the + * prime-order subgroup (the identity allowed). A message that fails any rule is treated by the + * protocol as absent. + */ +public final class DkgMessage { + + /** Message kinds with their rounds (spec §4). */ + public enum Kind { + /** R1, broadcast: {@code C_i0 … C_it}. */ + COMMITMENTS(1, 1), + /** R1, private to {@code subject}: {@code (s_ij, s'_ij)}. */ + SHARE(1, 2), + /** R2, broadcast: a complaint against dealer {@code subject}. */ + COMPLAINT(2, 3), + /** R3, broadcast: the dealer's pair for complainer {@code subject}. */ + ANSWER(3, 4), + /** R4, broadcast: {@code A_i0 … A_it}. */ + EXTRACTION(4, 5), + /** R5, broadcast: the sender's pair, which satisfies (4) but not (5) for dealer {@code subject}. */ + EXTRACTION_COMPLAINT(5, 6), + /** R6, broadcast: the sender's pair for reconstructing dealer {@code subject}. */ + RECONSTRUCTION(6, 7), + /** R7, broadcast: {@code digest ‖ encode(y)}. */ + CONFIRMATION(7, 8); + + private final int round; + private final int code; + + Kind(int round, int code) { + this.round = round; + this.code = code; + } + + /** The round this kind belongs to. */ + public int round() { + return round; + } + + int code() { + return code; + } + + static Kind of(int code) { + for (Kind k : values()) { + if (k.code == code) return k; + } + return null; + } + + boolean hasPair() { + return this == SHARE || this == ANSWER || this == EXTRACTION_COMPLAINT || this == RECONSTRUCTION; + } + + boolean hasPoints() { + return this == COMMITMENTS || this == EXTRACTION; + } + + boolean subjectIsZero() { + return hasPoints() || this == CONFIRMATION; + } + } + + static final int HEADER_BYTES = 32 + 4; + + private final byte[] bytes; + private final Kind kind; + private final int sender; + private final int subject; + private final List points; + private final BigInteger s; + private final BigInteger sPrime; + private final byte[] digest; + private final JubjubPoint key; + + private DkgMessage(byte[] bytes, Kind kind, int sender, int subject, List points, + BigInteger s, BigInteger sPrime, byte[] digest, JubjubPoint key) { + this.bytes = bytes; + this.kind = kind; + this.sender = sender; + this.subject = subject; + this.points = points; + this.s = s; + this.sPrime = sPrime; + this.digest = digest; + this.key = key; + } + + // ------------------------------------------------------------------ construction + + static DkgMessage points(DkgConfig config, Kind kind, int sender, List points) { + byte[] out = header(config, kind, sender, 0, points.size() * COMPRESSED_POINT_BYTES); + int offset = HEADER_BYTES; + for (JubjubPoint p : points) { + System.arraycopy(p.toBytes(), 0, out, offset, COMPRESSED_POINT_BYTES); + offset += COMPRESSED_POINT_BYTES; + } + return decode(config, out); + } + + static DkgMessage pair(DkgConfig config, Kind kind, int sender, int subject, BigInteger s, BigInteger sPrime) { + byte[] out = header(config, kind, sender, subject, 64); + System.arraycopy(i2osp32(s), 0, out, HEADER_BYTES, 32); + System.arraycopy(i2osp32(sPrime), 0, out, HEADER_BYTES + 32, 32); + return decode(config, out); + } + + static DkgMessage complaint(DkgConfig config, int sender, int accused) { + return decode(config, header(config, Kind.COMPLAINT, sender, accused, 0)); + } + + static DkgMessage confirmation(DkgConfig config, int sender, byte[] digest, JubjubPoint y) { + byte[] out = header(config, Kind.CONFIRMATION, sender, 0, 64); + System.arraycopy(digest, 0, out, HEADER_BYTES, 32); + System.arraycopy(y.toBytes(), 0, out, HEADER_BYTES + 32, 32); + return decode(config, out); + } + + /** + * Decodes and validates a message for {@code config} (spec §4). + * + * @throws IllegalArgumentException if the message is not well-formed for this session + */ + public static DkgMessage decode(DkgConfig config, byte[] encoded) { + Objects.requireNonNull(config, "config"); + Objects.requireNonNull(encoded, "encoded"); + if (encoded.length < HEADER_BYTES) { + throw new IllegalArgumentException("message shorter than its header"); + } + if (!Arrays.equals(encoded, 0, 32, config.sessionRef(), 0, 32)) { + throw new IllegalArgumentException("message is for another session"); + } + int round = encoded[32] & 0xFF; + Kind kind = Kind.of(encoded[33] & 0xFF); + int sender = encoded[34] & 0xFF; + int subject = encoded[35] & 0xFF; + if (kind == null || kind.round() != round) { + throw new IllegalArgumentException("unknown kind or round"); + } + if (sender < 1 || sender > config.n()) { + throw new IllegalArgumentException("sender out of range"); + } + if (kind.subjectIsZero() ? subject != 0 : (subject < 1 || subject > config.n() || subject == sender)) { + throw new IllegalArgumentException("invalid subject for " + kind); + } + byte[] copy = encoded.clone(); + int payload = encoded.length - HEADER_BYTES; + if (kind.hasPoints()) { + int count = config.t() + 1; + if (payload != count * COMPRESSED_POINT_BYTES) { + throw new IllegalArgumentException(kind + " must carry exactly t + 1 points"); + } + List points = new ArrayList<>(count); + for (int k = 0; k < count; k++) { + points.add(ElGamalEncodings.decodeSubgroupPoint(copy, HEADER_BYTES + k * COMPRESSED_POINT_BYTES, kind + " point")); + } + return new DkgMessage(copy, kind, sender, subject, List.copyOf(points), null, null, null, null); + } + if (kind.hasPair()) { + if (payload != 64) { + throw new IllegalArgumentException(kind + " must carry a 64-byte pair"); + } + return new DkgMessage(copy, kind, sender, subject, null, + scalar(copy, HEADER_BYTES), scalar(copy, HEADER_BYTES + 32), null, null); + } + if (kind == Kind.COMPLAINT) { + if (payload != 0) { + throw new IllegalArgumentException("COMPLAINT carries no payload"); + } + return new DkgMessage(copy, kind, sender, subject, null, null, null, null, null); + } + if (payload != 64) { + throw new IllegalArgumentException("CONFIRMATION must carry a digest and a key"); + } + return new DkgMessage(copy, kind, sender, subject, null, null, null, + Arrays.copyOfRange(copy, HEADER_BYTES, HEADER_BYTES + 32), + ElGamalEncodings.decodeSubgroupPoint(copy, HEADER_BYTES + 32, "confirmed key")); + } + + // ------------------------------------------------------------------ accessors + + /** The canonical bytes. */ + public byte[] encode() { + return bytes.clone(); + } + + /** The kind. */ + public Kind kind() { + return kind; + } + + /** The round. */ + public int round() { + return kind.round(); + } + + /** The sender's identifier. */ + public int sender() { + return sender; + } + + /** The subject: recipient, accused or reconstructed dealer, or complainer; 0 if none. */ + public int subject() { + return subject; + } + + byte[] bytesRef() { + return bytes; + } + + List points() { + return points; + } + + BigInteger s() { + return s; + } + + BigInteger sPrime() { + return sPrime; + } + + byte[] digest() { + return digest; + } + + JubjubPoint confirmedKey() { + return key; + } + + /** The message identity {@code (round, kind, sender, subject)} as one integer. */ + int identity() { + return (kind.code() << 16) | (sender << 8) | subject; + } + + // ------------------------------------------------------------------ helpers + + private static byte[] header(DkgConfig config, Kind kind, int sender, int subject, int payload) { + byte[] out = new byte[HEADER_BYTES + payload]; + System.arraycopy(config.sessionRef(), 0, out, 0, 32); + out[32] = (byte) kind.round(); + out[33] = (byte) kind.code(); + out[34] = (byte) sender; + out[35] = (byte) subject; + return out; + } + + static byte[] i2osp32(BigInteger x) { + byte[] raw = x.toByteArray(); + byte[] out = new byte[32]; + int copy = Math.min(raw.length, 32); + System.arraycopy(raw, raw.length - copy, out, 32 - copy, copy); + return out; + } + + private static BigInteger scalar(byte[] bytes, int offset) { + BigInteger x = new BigInteger(1, Arrays.copyOfRange(bytes, offset, offset + 32)); + if (x.compareTo(SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException("scalar is not canonical (>= l)"); + } + return x; + } + + @Override + public String toString() { + return "DkgMessage{" + kind + ", sender=" + sender + ", subject=" + subject + + (kind == Kind.SHARE ? ", " : ", " + HexFormat.of().formatHex(bytes, HEADER_BYTES, bytes.length)) + + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgParticipant.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgParticipant.java new file mode 100644 index 00000000..6918c906 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgParticipant.java @@ -0,0 +1,379 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.nio.ByteBuffer; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * One participant of {@code elgamal-jubjub-threshold-v1} key generation: New-DKG of [GJKR07] + * Fig. 2 as a deterministic, transport-agnostic state machine (spec §3–§7; ADR-0053 D1, D1a, + * D4). + * + *

{@code
+ * List out = p.start();                // round 1: COMMITMENTS + private SHAREs
+ * for each round r = 1 … 7:
+ *     for each broadcast message of round r:  p.receiveBroadcast(sender, bytes)
+ *     for each private SHARE to p (round 1):  p.receivePrivate(sender, bytes)
+ *     out = p.closeRound();                       // when the round's deadline passes
+ * ThresholdKeyShare share = p.result();
+ * }
+ * + *

The application supplies the transport (ADR-0053 D3), and must route correctly: the board's + * messages through {@link #receiveBroadcast}, and only messages from the private channel through + * {@link #receivePrivate}. A message delivered privately to one participant must never be treated + * as broadcast. Timely private delivery is a secrecy precondition, not only a liveness one + * (spec §5.2). + * + *

An abort is final: after a {@link FaultAssumptionViolatedException}, every method throws it + * again, and the participant sends nothing more. + * + *

The transport consists of: + *

    + *
  • a broadcast channel with agreement;
  • + *
  • private, authenticated channels for {@code SHARE} messages;
  • + *
  • round deadlines.
  • + *
+ * It delivers each message with the sender its channel authenticated. The participant refuses + * a message whose header disagrees, or that belongs to another round. The participant's own + * broadcasts must also be delivered back to it, so that it decides on exactly the board's view, + * as every other honest participant does. + * + *

Public decisions come from {@link DkgRules}, the same code that recomputes a transcript: + * {@code QUAL}, the marks, reconstruction and the outputs. This class adds only what depends on + * the participant's private shares: its complaints, adopting answered pairs, its extraction + * complaints and reconstruction pairs, and its own secret share. Any condition the assumptions + * rule out aborts with {@link FaultAssumptionViolatedException} (spec §5.1). + * + *

Secrets. The polynomials and every received pair are secret. Dealing and the checks + * on received pairs use the blinded best-effort schedule. The class is compatibility/offline + * class (ADR-0039 §3.1): run each participant on its own isolated host. + */ +public final class DkgParticipant { + + private static final int FINISHED = 8; + + private final DkgConfig config; + private final int id; + private ThresholdVss.Dealing dealing; + private final DkgRound[] delivered = DkgTranscript.emptyRounds(); + private final Map> sharesReceived = new HashMap<>(); + private final Set sharesSeen = new HashSet<>(); + private final Map pairs = new HashMap<>(); + private final Set complainedAgainst = new HashSet<>(); + private int open; + private DkgRules.Qualification qualification; + private DkgRules.Marks marks; + private DkgRules.Outputs outputs; + private BigInteger secretShare; + private byte[] digest; + private ThresholdKeyShare result; + private FaultAssumptionViolatedException abort; + + private DkgParticipant(DkgConfig config, int id, ThresholdVss.Dealing dealing) { + this.config = config; + this.id = id; + this.dealing = dealing; + } + + /** A participant that samples its own polynomials (spec §3). */ + public static DkgParticipant create(DkgConfig config, int id, SecureRandom random) { + Objects.requireNonNull(config, "config"); + config.requireParticipant(id); + return new DkgParticipant(config, id, ThresholdVss.deal(config.t(), random)); + } + + /** Test seam: a participant with fixed polynomials (vectors and fixtures only). */ + static DkgParticipant withDealing(DkgConfig config, int id, ThresholdVss.Dealing dealing) { + config.requireParticipant(id); + if (dealing.degree() != config.t()) { + throw new IllegalArgumentException("dealing degree must equal t"); + } + return new DkgParticipant(config, id, dealing); + } + + /** This participant's identifier. */ + public int id() { + return id; + } + + /** The round currently open (1–7), 0 before {@link #start()}, 8 when finished. */ + public int openRound() { + return open; + } + + /** + * Opens round 1 and returns this participant's {@code COMMITMENTS} broadcast and one private + * {@code SHARE} per other participant. + */ + public List start() { + if (open != 0) { + throw new IllegalStateException("already started"); + } + open = 1; + List out = new ArrayList<>(config.n()); + out.add(DkgMessage.points(config, DkgMessage.Kind.COMMITMENTS, id, dealing.commitments())); + for (int j = 1; j <= config.n(); j++) { + if (j != id) { + out.add(DkgMessage.pair(config, DkgMessage.Kind.SHARE, id, j, dealing.share(j), dealing.sharePrime(j))); + } + } + return out; + } + + /** + * Delivers one message from the broadcast channel, for the open round, with the sender + * the channel authenticated. + * + * @throws IllegalArgumentException if the message is malformed or for another session, its + * header's sender differs from {@code authenticatedSender}, it belongs to another + * round, or it is a {@code SHARE}. The caller treats such a message as absent. + * @throws FaultAssumptionViolatedException if this participant has aborted + */ + public void receiveBroadcast(int authenticatedSender, byte[] message) { + DkgMessage m = accept(authenticatedSender, message); + if (m.kind() == DkgMessage.Kind.SHARE) { + throw new IllegalArgumentException("a SHARE is private and never arrives by broadcast"); + } + delivered[open].add(m); + } + + /** + * Delivers one {@code SHARE} from the private channel, with the sender the channel + * authenticated. + * + * @throws IllegalArgumentException if the message is not a well-formed {@code SHARE} of the + * open round, addressed to this participant, from {@code authenticatedSender} + * @throws FaultAssumptionViolatedException if this participant has aborted + */ + public void receivePrivate(int authenticatedSender, byte[] message) { + DkgMessage m = accept(authenticatedSender, message); + if (m.kind() != DkgMessage.Kind.SHARE) { + throw new IllegalArgumentException(m.kind() + " is a broadcast message, not a private one"); + } + if (m.subject() != id) { + throw new IllegalArgumentException("SHARE addressed to participant " + m.subject()); + } + if (sharesSeen.add(ByteBuffer.wrap(m.bytesRef()))) { + sharesReceived.computeIfAbsent(m.sender(), k -> new ArrayList<>(1)).add(m); + } + } + + private DkgMessage accept(int authenticatedSender, byte[] message) { + requireNotAborted(); + if (open < 1 || open > 7) { + throw new IllegalStateException("no round is open"); + } + DkgMessage m = DkgMessage.decode(config, message); + if (m.sender() != authenticatedSender) { + throw new IllegalArgumentException("header sender " + m.sender() + + " differs from the authenticated sender " + authenticatedSender); + } + if (m.round() != open) { + throw new IllegalArgumentException("message of round " + m.round() + " while round " + open + " is open"); + } + return m; + } + + private void requireNotAborted() { + if (abort != null) { + throw abort; + } + } + + /** + * Closes the open round, applies its rules and returns this participant's messages for the + * next round (possibly none). Closing round 7 completes the run. + * + * @throws FaultAssumptionViolatedException on any abort condition of spec §5.1 + */ + public List closeRound() { + requireNotAborted(); + try { + return switch (open) { + case 1 -> closeDeal(); + case 2 -> closeComplaints(); + case 3 -> closeAnswers(); + case 4 -> closeExtraction(); + case 5 -> closeExtractionComplaints(); + case 6 -> closeReconstruction(); + case 7 -> closeConfirmation(); + default -> throw new IllegalStateException("no round is open"); + }; + } catch (FaultAssumptionViolatedException e) { + abort = e; // final: no restart within the session (I13) + forgetSecrets(); + throw e; + } + } + + /** + * The participant's result: its secret share and the key context of its own run. + * + * @throws IllegalStateException before round 7 is closed + */ + public ThresholdKeyShare result() { + requireNotAborted(); + if (open != FINISHED) { + throw new IllegalStateException("key generation has not finished"); + } + return result; + } + + // ------------------------------------------------------------------ transitions + + private List closeDeal() { + List out = new ArrayList<>(); + pairs.put(id, new BigInteger[]{dealing.share(id), dealing.sharePrime(id)}); + for (int i = 1; i <= config.n(); i++) { + if (i == id) continue; + DkgMessage commitments = delivered[1].single(DkgMessage.Kind.COMMITMENTS, i, 0); + if (commitments == null) continue; // the dealer is disqualified by R1 regardless + List variants = sharesReceived.get(i); + DkgMessage share = variants != null && variants.size() == 1 ? variants.get(0) : null; + if (share != null && ThresholdVss.checkPedersenPrivate(commitments.points(), id, share.s(), share.sPrime())) { + pairs.put(i, new BigInteger[]{share.s(), share.sPrime()}); + } else { + complainedAgainst.add(i); + out.add(DkgMessage.complaint(config, id, i)); + } + } + open = 2; + return out; + } + + private List closeComplaints() { + for (int i : complainedAgainst) { + if (delivered[2].single(DkgMessage.Kind.COMPLAINT, id, i) == null) { + // A9: this participant's own complaint was not delivered back to it. The board + // then lacks it for everyone, and an answer to it might never be checked. + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.OWN_COMPLAINT_MISSING, + "participant " + id + "'s complaint against dealer " + i + " is missing from the board"); + } + } + List out = new ArrayList<>(); + for (int j = 1; j <= config.n(); j++) { + if (j != id && delivered[2].single(DkgMessage.Kind.COMPLAINT, j, id) != null) { + out.add(DkgMessage.pair(config, DkgMessage.Kind.ANSWER, id, j, dealing.share(j), dealing.sharePrime(j))); + } + } + open = 3; + return out; + } + + private List closeAnswers() { + qualification = DkgRules.qualify(config, delivered[1], delivered[2], delivered[3]); + if (!qualification.qual().contains(id)) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.OWN_DEALING_DISQUALIFIED, + "participant " + id + " answered every complaint correctly but was disqualified"); + } + for (int i : qualification.qual()) { + if (complainedAgainst.contains(i)) { + // i stayed qualified, so its answer to this complaint exists and satisfies (4). + DkgMessage answer = delivered[3].single(DkgMessage.Kind.ANSWER, i, id); + pairs.put(i, new BigInteger[]{answer.s(), answer.sPrime()}); + } + } + open = 4; + return List.of(DkgMessage.points(config, DkgMessage.Kind.EXTRACTION, id, dealing.extraction())); + } + + private List closeExtraction() { + List out = new ArrayList<>(); + for (int i : qualification.qual()) { + if (i == id) continue; + DkgMessage extraction = delivered[4].single(DkgMessage.Kind.EXTRACTION, i, 0); + BigInteger[] pair = pairs.get(i); + if (extraction != null && !ThresholdVss.checkFeldmanPrivate(extraction.points(), id, pair[0])) { + out.add(DkgMessage.pair(config, DkgMessage.Kind.EXTRACTION_COMPLAINT, id, i, pair[0], pair[1])); + } + } + open = 5; + return out; + } + + private List closeExtractionComplaints() { + marks = DkgRules.mark(config, qualification, delivered[4], delivered[5]); + if (marks.marked().contains(id)) { + // A8: an honest dealer broadcast a correct EXTRACTION in time, so it is never marked. + // If it was (a late message), reconstruction will publish its contribution; aborting + // withholds this participant's confirmation, so such a run cannot be admitted. + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED, + "participant " + id + "'s own dealing was marked for reconstruction"); + } + List out = new ArrayList<>(); + for (int i : marks.marked()) { + if (i == id) continue; + BigInteger[] pair = pairs.get(i); + out.add(DkgMessage.pair(config, DkgMessage.Kind.RECONSTRUCTION, id, i, pair[0], pair[1])); + } + open = 6; + return out; + } + + private List closeReconstruction() { + outputs = DkgRules.finish(config, qualification, marks, delivered[6]); + BigInteger x = BigInteger.ZERO; + for (int i : qualification.qual()) { + x = x.add(pairs.get(i)[0]); + } + secretShare = x.mod(SUBGROUP_ORDER); + JubjubPoint mine = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(secretShare); + if (!mine.projectiveEquals(outputs.verificationKeys().get(id - 1))) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.SHARE_MISMATCH, + "participant " + id + "'s share does not match its verification key"); + } + digest = new DkgTranscript(config, delivered).digest(); + open = 7; + return List.of(DkgMessage.confirmation(config, id, digest, outputs.jointKey())); + } + + private List closeConfirmation() { + // A7: count distinct qualified senders whose confirmation matches this participant's + // view, and those that confirmed anything else (an equivocator counts as differing). + // At most t are faulty, so t + 1 differing include an honest participant who saw another + // board, and fewer than t + 1 matching means the honest majority did not confirm this one. + int matching = 0; + int differing = 0; + for (int j : qualification.qual()) { + byte[] expected = DkgMessage.confirmation(config, j, digest, outputs.jointKey()).bytesRef(); + List variants = delivered[7].variants(DkgMessage.Kind.CONFIRMATION, j, 0); + boolean differs = false; + boolean matches = false; + for (DkgMessage received : variants) { + if (Arrays.equals(received.bytesRef(), expected)) matches = true; + else differs = true; + } + if (differs) differing++; + else if (matches) matching++; + } + if (differing >= config.t() + 1 || matching < config.t() + 1) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.CONFLICTING_CONFIRMATION, + matching + " matching and " + differing + " differing confirmations from qualified participants"); + } + ThresholdKeyContext context = new ThresholdKeyContext(config, qualification.qual(), + outputs.jointKey(), outputs.verificationKeys(), digest); + result = new ThresholdKeyShare(context, id, secretShare); + open = FINISHED; + forgetSecrets(); + return List.of(); + } + + /** Best effort: drops references to the polynomials and received pairs ({@code BigInteger} cannot be wiped). */ + private void forgetSecrets() { + dealing = null; + secretShare = null; // after finishing, the result holds it; after an abort, nobody does + pairs.clear(); + sharesReceived.clear(); + sharesSeen.clear(); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgRound.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgRound.java new file mode 100644 index 00000000..fd14a77f --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgRound.java @@ -0,0 +1,81 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Comparator; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; + +/** + * The delivered set of one round ({@code elgamal-jubjub-threshold-v1} §4, §5): well-formed + * messages grouped by identity {@code (kind, sender, subject)}. Byte-identical copies count once. + * Two different messages with one identity are a conflict, and both are kept as evidence. + */ +final class DkgRound { + + private final int round; + private final Map> byIdentity = new TreeMap<>(); + private final Set seen = new HashSet<>(); + + DkgRound(int round) { + this.round = round; + } + + int round() { + return round; + } + + void add(DkgMessage message) { + if (message.round() != round) { + throw new IllegalArgumentException("message of round " + message.round() + " delivered in round " + round); + } + if (!seen.add(ByteBuffer.wrap(message.bytesRef()))) { + return; // a byte-identical copy counts once + } + byIdentity.computeIfAbsent(message.identity(), k -> new ArrayList<>(1)).add(message); + } + + /** The single message with this identity, or {@code null} if it is absent or in conflict. */ + DkgMessage single(DkgMessage.Kind kind, int sender, int subject) { + List variants = byIdentity.get((kind.code() << 16) | (sender << 8) | subject); + return variants != null && variants.size() == 1 ? variants.get(0) : null; + } + + /** Every distinct message with this identity: empty if absent, two or more if in conflict. */ + List variants(DkgMessage.Kind kind, int sender, int subject) { + return byIdentity.getOrDefault((kind.code() << 16) | (sender << 8) | subject, List.of()); + } + + /** Every delivered message of a kind, conflicting variants included. */ + List all(DkgMessage.Kind kind) { + List out = new ArrayList<>(); + for (List variants : byIdentity.values()) { + for (DkgMessage m : variants) { + if (m.kind() == kind) out.add(m); + } + } + return out; + } + + /** Every non-conflicting message of a kind. */ + List singles(DkgMessage.Kind kind) { + List out = new ArrayList<>(); + for (List variants : byIdentity.values()) { + if (variants.size() == 1 && variants.get(0).kind() == kind) out.add(variants.get(0)); + } + return out; + } + + /** All delivered messages in the canonical order of spec §6. */ + List canonical() { + List out = new ArrayList<>(); + for (List variants : byIdentity.values()) out.addAll(variants); + out.sort(Comparator.comparingInt(DkgMessage::identity) + .thenComparing(DkgMessage::bytesRef, Arrays::compareUnsigned)); + return out; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgRules.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgRules.java new file mode 100644 index 00000000..b5e74ec0 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgRules.java @@ -0,0 +1,137 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.SortedMap; +import java.util.SortedSet; +import java.util.TreeMap; +import java.util.TreeSet; + +/** + * The public round rules of {@code elgamal-jubjub-threshold-v1} §5: deterministic functions of + * the delivered broadcast sets only. A participant and anyone recomputing a transcript run + * exactly this code, so they take identical decisions. Every decision that depends on private + * input (complaining, adopting an answered pair, a participant's own checks) lives in + * {@link DkgParticipant}. + */ +final class DkgRules { + + private DkgRules() {} + + /** R1–R3: the qualified set and the commitments of every dealer with a valid vector. */ + record Qualification(SortedSet qual, SortedSet disqualified, + Map> commitments) {} + + /** R4–R5: marked dealers and the published extraction vectors of the rest. */ + record Marks(SortedSet marked, Map> published) {} + + /** R6 and the outputs. */ + record Outputs(Map> extraction, JubjubPoint jointKey, + List verificationKeys) {} + + static Qualification qualify(DkgConfig config, DkgRound r1, DkgRound r2, DkgRound r3) { + int n = config.n(); + int t = config.t(); + SortedSet disqualified = new TreeSet<>(); + Map> commitments = new HashMap<>(); + for (int i = 1; i <= n; i++) { + DkgMessage c = r1.single(DkgMessage.Kind.COMMITMENTS, i, 0); + if (c == null) { + disqualified.add(i); // R1: absent or in conflict + } else { + commitments.put(i, c.points()); + } + } + for (int i = 1; i <= n; i++) { + if (disqualified.contains(i)) continue; + List complainers = new ArrayList<>(); + for (int j = 1; j <= n; j++) { + if (j != i && r2.single(DkgMessage.Kind.COMPLAINT, j, i) != null) complainers.add(j); + } + if (complainers.size() > t) { + disqualified.add(i); + continue; + } + for (int j : complainers) { + DkgMessage answer = r3.single(DkgMessage.Kind.ANSWER, i, j); + if (answer == null + || !ThresholdVss.checkPedersenPublic(commitments.get(i), j, answer.s(), answer.sPrime())) { + disqualified.add(i); + break; + } + } + } + SortedSet qual = new TreeSet<>(); + for (int i = 1; i <= n; i++) { + if (!disqualified.contains(i)) qual.add(i); + } + if (qual.size() < n - t) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.TOO_FEW_QUALIFIED, + "QUAL has " + qual.size() + " members, at least n - t = " + (n - t) + " are honest"); + } + return new Qualification(Collections.unmodifiableSortedSet(qual), + Collections.unmodifiableSortedSet(disqualified), commitments); + } + + static Marks mark(DkgConfig config, Qualification q, DkgRound r4, DkgRound r5) { + SortedSet marked = new TreeSet<>(); + Map> published = new HashMap<>(); + for (int i : q.qual()) { + DkgMessage e = r4.single(DkgMessage.Kind.EXTRACTION, i, 0); + if (e == null) { + marked.add(i); // R4: absent or in conflict + } else { + published.put(i, e.points()); + } + } + // Every complaint is evaluated on its own, conflicting variants included: a valid one is + // evidence against the dealer whoever sent it (spec §5, R5). + for (DkgMessage complaint : r5.all(DkgMessage.Kind.EXTRACTION_COMPLAINT)) { + int i = complaint.subject(); + int j = complaint.sender(); + if (!published.containsKey(i) || marked.contains(i)) continue; + if (ThresholdVss.checkPedersenPublic(q.commitments().get(i), j, complaint.s(), complaint.sPrime()) + && !ThresholdVss.checkFeldmanPublic(published.get(i), j, complaint.s())) { + marked.add(i); // R5: a valid complaint + } + } + for (int i : marked) published.remove(i); + return new Marks(Collections.unmodifiableSortedSet(marked), published); + } + + static Outputs finish(DkgConfig config, Qualification q, Marks marks, DkgRound r6) { + Map> extraction = new TreeMap<>(marks.published()); + for (int i : marks.marked()) { + SortedMap valid = new TreeMap<>(); + for (int j = 1; j <= config.n(); j++) { + if (j == i) continue; + DkgMessage pair = r6.single(DkgMessage.Kind.RECONSTRUCTION, j, i); + if (pair != null && ThresholdVss.checkPedersenPublic(q.commitments().get(i), j, pair.s(), pair.sPrime())) { + valid.put(j, new BigInteger[]{pair.s(), pair.sPrime()}); + } + } + extraction.put(i, ThresholdVss.reconstruct(q.commitments().get(i), config.t(), valid).extraction()); + } + int t = config.t(); + List summed = new ArrayList<>(t + 1); + for (int k = 0; k <= t; k++) { + FastJubjubPoint acc = FastJubjubPoint.IDENTITY; + for (int i : q.qual()) acc = acc.add(FastJubjubPoint.of(extraction.get(i).get(k))); + summed.add(acc.toJubjubPoint()); + } + JubjubPoint y = summed.get(0); + if (y.isIdentity()) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.IDENTITY_JOINT_KEY, + "the joint key is the identity"); + } + List verification = new ArrayList<>(config.n()); + for (int j = 1; j <= config.n(); j++) { + verification.add(ThresholdMath.evaluateInExponent(summed, j)); + } + return new Outputs(Collections.unmodifiableMap(extraction), y, List.copyOf(verification)); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgTranscript.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgTranscript.java new file mode 100644 index 00000000..db2af1df --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DkgTranscript.java @@ -0,0 +1,188 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.io.ByteArrayOutputStream; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.SortedSet; + +/** + * The public record of a threshold key generation ({@code elgamal-jubjub-threshold-v1} §6): the + * configuration plus the delivered broadcast sets of rounds 1–6. Private {@code SHARE} messages + * and the round-7 confirmations are not part of it. + * + *

{@link #recompute()} re-derives {@code QUAL}, the marks, the joint key and every + * verification key by pure algebra. That is not evidence that the run happened: one + * party can write a perfectly consistent record whose key it knows. A + * {@link ThresholdKeyContext} is created only by admission with authenticated evidence, or by a + * participant from its own run (ADR-0053 D4a, invariant I7). + */ +public final class DkgTranscript { + + static final byte[] TRANSCRIPT_TAG = + "zeroj.elgamal-jubjub-threshold.v1.transcript".getBytes(StandardCharsets.UTF_8); + + private final DkgConfig config; + private final DkgRound[] rounds; + + DkgTranscript(DkgConfig config, DkgRound[] rounds) { + this.config = config; + this.rounds = rounds; + } + + /** + * Builds a transcript from the broadcast messages of rounds 1–6, in any order. + * + * @throws IllegalArgumentException if a message is malformed or for another session, is a + * private {@code SHARE}, or is a round-7 confirmation + */ + public static DkgTranscript of(DkgConfig config, Collection messages) { + Objects.requireNonNull(config, "config"); + Objects.requireNonNull(messages, "messages"); + DkgRound[] rounds = emptyRounds(); + for (byte[] bytes : messages) { + DkgMessage m = DkgMessage.decode(config, bytes); + if (m.kind() == DkgMessage.Kind.SHARE || m.kind() == DkgMessage.Kind.CONFIRMATION) { + throw new IllegalArgumentException(m.kind() + " messages are not part of the transcript"); + } + rounds[m.round()].add(m); + } + return new DkgTranscript(config, rounds); + } + + static DkgRound[] emptyRounds() { + DkgRound[] rounds = new DkgRound[8]; + for (int r = 1; r <= 7; r++) rounds[r] = new DkgRound(r); + return rounds; + } + + /** + * The delivered set of one round from raw board posts (spec §5, §8). {@code posts} are the + * posts made while that round was open; a post from an earlier round's window belongs to no + * round. Drops posts that are malformed, for another session or round, private + * {@code SHARE}s, or that fail {@code authenticator}; keeps byte-identical duplicates once; + * returns the canonical order of spec §6. An application's + * {@link DkgAdmissionVerifier#roundClosed} compares this with the list admission presents. + */ + public static List deliveredRound(DkgConfig config, int round, List posts, + DkgAdmissionVerifier authenticator) { + Objects.requireNonNull(config, "config"); + Objects.requireNonNull(posts, "posts"); + Objects.requireNonNull(authenticator, "authenticator"); + if (round < 1 || round > 7) { + throw new IllegalArgumentException("rounds are 1..7"); + } + DkgRound delivered = new DkgRound(round); + for (AuthenticatedDkgMessage post : posts) { + byte[] bytes = post.message(); + DkgMessage m; + try { + m = DkgMessage.decode(config, bytes); + } catch (IllegalArgumentException malformedOrForeign) { + continue; + } + if (m.round() != round || m.kind() == DkgMessage.Kind.SHARE) continue; + if (!authenticator.authenticate(m.sender(), config.rosterKey(m.sender()), bytes, post.authenticator())) continue; + delivered.add(m); + } + List out = new ArrayList<>(); + for (DkgMessage m : delivered.canonical()) out.add(m.encode()); + return out; + } + + /** The configuration. */ + public DkgConfig config() { + return config; + } + + /** The canonical encoding of spec §6. */ + public byte[] encode() { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + out.writeBytes(TRANSCRIPT_TAG); + out.writeBytes(config.sessionRef()); + out.write(config.t()); + out.write(config.n()); + for (int r = 1; r <= 6; r++) { + List messages = rounds[r].canonical(); + int count = messages.size(); + out.write((count >>> 24) & 0xFF); + out.write((count >>> 16) & 0xFF); + out.write((count >>> 8) & 0xFF); + out.write(count & 0xFF); + for (DkgMessage m : messages) { + DkgConfig.writeU16(out, m.bytesRef().length); + out.writeBytes(m.bytesRef()); + } + } + return out.toByteArray(); + } + + /** {@code BLAKE2b-256} of the canonical encoding. */ + public byte[] digest() { + return Blake2bDigest.blake2b256(encode()); + } + + /** A round's messages in canonical order (spec §6), as bytes. */ + public List roundMessages(int round) { + if (round < 1 || round > 6) { + throw new IllegalArgumentException("transcript rounds are 1..6"); + } + List out = new ArrayList<>(); + for (DkgMessage m : rounds[round].canonical()) out.add(m.encode()); + return out; + } + + /** + * Recomputes the public outputs of spec §5. + * + * @throws FaultAssumptionViolatedException on abort conditions A1, A3, A4 or A5 + */ + public DkgPublicOutcome recompute() { + DkgRules.Qualification q = DkgRules.qualify(config, rounds[1], rounds[2], rounds[3]); + DkgRules.Marks marks = DkgRules.mark(config, q, rounds[4], rounds[5]); + DkgRules.Outputs outputs = DkgRules.finish(config, q, marks, rounds[6]); + return new DkgPublicOutcome(q.qual(), marks.marked(), outputs.jointKey(), outputs.verificationKeys()); + } + + DkgRound round(int r) { + return rounds[r]; + } + + /** The public outputs of a key generation. */ + public static final class DkgPublicOutcome { + private final SortedSet qual; + private final SortedSet marked; + private final JubjubPoint jointKey; + private final List verificationKeys; + + DkgPublicOutcome(SortedSet qual, SortedSet marked, JubjubPoint jointKey, + List verificationKeys) { + this.qual = qual; + this.marked = marked; + this.jointKey = jointKey; + this.verificationKeys = verificationKeys; + } + + /** The qualified dealers. */ + public SortedSet qual() { + return qual; + } + + /** Dealers whose extraction was reconstructed. */ + public SortedSet marked() { + return marked; + } + + /** The joint key {@code y}. */ + public JubjubPoint jointKey() { + return jointKey; + } + + /** {@code Y_1 … Y_n}, at index {@code j − 1}. */ + public List verificationKeys() { + return verificationKeys; + } + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DleqStatement.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DleqStatement.java new file mode 100644 index 00000000..8bc90445 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DleqStatement.java @@ -0,0 +1,79 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.List; + +/** + * A discrete-log-equality statement {@code log_G P = log_X D} of {@code elgamal-jubjub-v1} + * §9.2, as the library hands it to a {@link DleqStatementVerifier}. + * + *

Statements are built only by the library, from data it already trusts: + *

    + *
  • a possession statement takes {@code X = G} and {@code D = P = } the candidate key + * (§3.3);
  • + *
  • a decryption-share statement takes {@code X} = the admitted ciphertext's handle and + * {@code P} = the trustee's registered key (§10.2).
  • + *
+ * A verifier therefore never chooses the base or the key, which is what invariants I9 and I14 + * require. It only decides whether a proof exists for exactly this statement. + */ +public final class DleqStatement { + + /** What the statement is used for. */ + public enum Kind { + /** Proof of possession of a key share: {@code X = G}, {@code D = P}. */ + POSSESSION, + /** Correctness of a decryption share: {@code X} = an admitted handle. */ + DECRYPTION_SHARE + } + + private final Kind kind; + private final JubjubPoint base; + private final JubjubPoint publicKey; + private final JubjubPoint share; + + private DleqStatement(Kind kind, JubjubPoint base, JubjubPoint publicKey, JubjubPoint share) { + this.kind = kind; + this.base = base.normalized(); + this.publicKey = publicKey.normalized(); + this.share = share.normalized(); + } + + static DleqStatement possession(JubjubPoint key) { + return new DleqStatement(Kind.POSSESSION, JubjubPoint.SUBGROUP_GENERATOR, key, key); + } + + static DleqStatement decryptionShare(JubjubPoint handle, JubjubPoint key, JubjubPoint share) { + return new DleqStatement(Kind.DECRYPTION_SHARE, handle, key, share); + } + + /** The statement's use. */ + public Kind kind() { + return kind; + } + + /** The base {@code X}. */ + public JubjubPoint base() { + return base; + } + + /** The key {@code P = [x]·G}. */ + public JubjubPoint publicKey() { + return publicKey; + } + + /** The share {@code D = [x]·X}. */ + public JubjubPoint share() { + return share; + } + + /** Public inputs in spec §8 order: {@code X.u, X.v, P.u, P.v, D.u, D.v}. */ + public List publicInputs() { + return ElGamalEncodings.affine(base, publicKey, share); + } + + @Override + public String toString() { + return "DleqStatement{" + kind + ", publicInputs=" + publicInputs() + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DleqStatementVerifier.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DleqStatementVerifier.java new file mode 100644 index 00000000..4422c361 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/DleqStatementVerifier.java @@ -0,0 +1,19 @@ +package org.zeroj.circuit.lib.jubjub; + +/** + * Checks a proof of an {@code elgamal-jubjub-v1} DLEQ statement (spec §9.2), supplied by the + * caller (ADR-0052 D4: the proof system is the application's). + * + *

Delegated verifier obligation. An implementation must return {@code true} only if + * it verified a proof for exactly {@link DleqStatement#publicInputs()}, in that order, + * under the verification key of the DLEQ relation. For a Groth16 proof that means passing these + * six values as the public inputs, not values taken from the proof's sender. A verifier that + * returns {@code true} without such a check defeats the possession and share-verification + * guarantees. The library cannot detect it. + */ +@FunctionalInterface +public interface DleqStatementVerifier { + + /** Returns {@code true} iff a valid proof exists for this exact statement. */ + boolean verify(DleqStatement statement); +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamal.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamal.java new file mode 100644 index 00000000..af174a8f --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamal.java @@ -0,0 +1,395 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.OptionalLong; +import java.util.TreeMap; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * Exponential ("lifted") ElGamal on Jubjub, profile {@code elgamal-jubjub-v1} + * (spec, ADR-0052). + * + *

+ *   A = [k]·G,   B = [m]·G + [k]·PK,   m ∈ [0, 2^w), 1 ≤ w ≤ 64
+ * 
+ * Ciphertexts under one key add up to encryptions of the sum. Decryption recovers {@code [m]·G} + * and then the unique {@code m ∈ [0, bound]} by a bounded search, failing closed. + * + *

Safe layer

+ *
    + *
  • Ciphertexts are {@link ElGamalCiphertext}s, which carry a key context and an established + * plaintext bound. They come only from {@link #encrypt} or {@link #admit}.
  • + *
  • Distributed decryption ({@link #decrypt}) needs exactly one + * {@link VerifiedDecryptionShare} per registered trustee.
  • + *
  • Single-key decryption ({@link #decryptWithSecret}) needs the secret of the joint key + * itself.
  • + *
+ * {@link RawElGamalCiphertext} is the unchecked raw layer. + * + *

Secrets: compatibility/offline class (ADR-0039 §3.1)

+ * Encryption (the randomness {@code k} and the message {@code m}), decryption shares and + * single-key decryption multiply secrets with variable-time {@link BigInteger} arithmetic through + * the blinded best-effort schedule ({@link JubjubPoint#scalarMulSecretBlindedBestEffort}), as + * Pedersen commitment generation does. The plaintext search runs in time that depends on the + * plaintext. Run these operations offline or in an isolated process. Nothing here is + * constant-time, and no method name implies online approval. {@code [m]·G} is computed by scalar + * multiplication for every {@code m}, so {@code m = 0} takes no separate path. Public-data + * operations (decoding, subgroup checks, sums, share verification) use the faster public path. + */ +public final class ElGamal { + + /** The profile identifier. */ + public static final String PROFILE = "elgamal-jubjub-v1"; + + /** + * The widest message, in bits (spec §4). + * + *

Admitting a width does not make it decryptable. Decryption searches {@code [0, bound]} + * and refuses bounds beyond the caller's {@code long} search limit and the search table's + * reach (by default about {@code 2^43}; see {@link JubjubDiscreteLog}). A width-64 ciphertext + * (bound {@code 2^64 − 1}) can be admitted and combined, but not decrypted, on the safe path. + * Choose widths so that the bound of the sum you will decrypt stays searchable. + */ + public static final int MAX_MESSAGE_BITS = 64; + + /** Bytes drawn per scalar sample (spec §2). */ + static final int SAMPLE_BYTES = 64; + + private ElGamal() {} + + // ---------------------------------------------------------------- encryption and admission + + /** + * Encrypts {@code m} at width {@code width} under the context's joint key (spec §4). The + * result's bound is {@code 2^width − 1}. + * + * @throws IllegalArgumentException unless {@code 1 ≤ width ≤ 64} and {@code 0 ≤ m < 2^width} + */ + public static ElGamalCiphertext encrypt( + ElGamalKeyContext context, BigInteger message, int width, SecureRandom random) { + Objects.requireNonNull(random, "random"); + return encryptWithRandomness(context, message, width, sample(random)); + } + + /** {@link #encrypt(ElGamalKeyContext, BigInteger, int, SecureRandom)} for a non-negative {@code long}. */ + public static ElGamalCiphertext encrypt( + ElGamalKeyContext context, long message, int width, SecureRandom random) { + return encrypt(context, BigInteger.valueOf(message), width, random); + } + + /** + * Encrypts as {@link #encrypt(ElGamalKeyContext, BigInteger, int, SecureRandom)} and also + * returns the opening {@code (m, k)}, which the encrypting party needs as the witness of the + * encryption proof (spec §9.1). The opening is secret; see {@link ElGamalEncryption}. + */ + public static ElGamalEncryption encryptWithOpening( + ElGamalKeyContext context, BigInteger message, int width, SecureRandom random) { + Objects.requireNonNull(random, "random"); + BigInteger k = sample(random); + ElGamalCiphertext ciphertext = encryptWithRandomness(context, message, width, k); + return new ElGamalEncryption(ciphertext, message, k, width); + } + + /** Test seam for fixed randomness {@code k ∈ [0, l)}. Not for production use. */ + static ElGamalCiphertext encryptWithRandomness( + ElGamalKeyContext context, BigInteger message, int width, BigInteger k) { + Objects.requireNonNull(context, "context"); + Objects.requireNonNull(k, "k"); + requireWidth(width); + requireMessage(message, width); + if (k.signum() < 0 || k.compareTo(SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException("randomness must satisfy 0 <= k < l"); + } + JubjubPoint key = context.jointKey().point(); + JubjubPoint handle = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(k); + JubjubPoint mask = key.scalarMulSecretBlindedBestEffort(k); + JubjubPoint encoded = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(message); + return new ElGamalCiphertext(handle, encoded.add(mask), context, boundOf(width)); + } + + /** + * Admits a raw ciphertext into the safe layer under {@code context} at {@code width} + * (spec §10.1, ADR-0052 D2a). The verifier must check the encryption relation for exactly + * this joint key, ciphertext and width. See {@link EncryptionStatementVerifier} for that + * delegated obligation. + * + * @throws IllegalArgumentException if the width is out of range or the verifier rejects + */ + public static ElGamalCiphertext admit( + RawElGamalCiphertext raw, ElGamalKeyContext context, int width, + EncryptionStatementVerifier verifier) { + Objects.requireNonNull(raw, "raw"); + Objects.requireNonNull(context, "context"); + Objects.requireNonNull(verifier, "verifier"); + requireWidth(width); + EncryptionStatement statement = + new EncryptionStatement(context.jointKey(), raw.handle(), raw.blinded(), width); + if (!verifier.verify(statement)) { + throw new IllegalArgumentException("encryption statement rejected; ciphertext not admitted"); + } + return new ElGamalCiphertext(raw.handle(), raw.blinded(), context, boundOf(width)); + } + + // ---------------------------------------------------------------- decryption + + /** + * Computes this trustee's decryption share {@code D_j = [sk_j]·A} (spec §6.2). The share is + * verified by construction: the secret's public key must be registered in the ciphertext's + * context. Publish {@link VerifiedDecryptionShare#encode()} with a proof of + * {@link VerifiedDecryptionShare#statement()}. + * + * @throws IllegalArgumentException if the secret's public key is not registered in the + * ciphertext's context + */ + public static VerifiedDecryptionShare decryptionShare( + ElGamalSecretKey trusteeSecret, ElGamalCiphertext ciphertext) { + Objects.requireNonNull(trusteeSecret, "trusteeSecret"); + Objects.requireNonNull(ciphertext, "ciphertext"); + if (!(ciphertext.context() instanceof NOfNKeyContext context)) { + throw new IllegalArgumentException("an n-of-n secret cannot produce a share for this context"); + } + int index = context.indexOf(trusteeSecret.publicKey()); + if (index < 0) { + throw new IllegalArgumentException( + "the secret's public key is not registered in the ciphertext's context"); + } + JubjubPoint d = trusteeSecret.multiply(ciphertext.handle()).normalized(); + DleqStatement statement = DleqStatement.decryptionShare( + ciphertext.handle(), trusteeSecret.publicKey().point(), d); + return new VerifiedDecryptionShare(ciphertext, index, d, statement); + } + + /** + * Computes a threshold participant's decryption share {@code D_j = [x_j]·A} + * ({@code elgamal-jubjub-threshold-v1} §9). The share is verified by construction: the + * secret is checked against the identifier's verification key {@code Y_j} in the + * ciphertext's context, which may be the identity (D5a). + * + * @throws IllegalArgumentException if the ciphertext is not under this share's threshold + * context, the participant is not in {@code QUAL}, or {@code [x_j]·G ≠ Y_j} + */ + public static VerifiedDecryptionShare decryptionShare(ThresholdKeyShare share, ElGamalCiphertext ciphertext) { + Objects.requireNonNull(share, "share"); + Objects.requireNonNull(ciphertext, "ciphertext"); + if (!(ciphertext.context() instanceof ThresholdKeyContext context) || !context.equals(share.context())) { + throw new IllegalArgumentException("the ciphertext is not under this share's threshold context"); + } + int id = share.id(); + if (!context.qual().contains(id)) { + throw new IllegalArgumentException("participant " + id + " is not qualified"); + } + JubjubPoint yj = context.verificationKey(id); + if (!JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(share.secret()).projectiveEquals(yj)) { + throw new IllegalArgumentException("the secret does not match participant " + id + "'s verification key"); + } + JubjubPoint d = ciphertext.handle().scalarMulSecretBlindedBestEffort(share.secret()).normalized(); + return new VerifiedDecryptionShare(ciphertext, id, d, DleqStatement.decryptionShare(ciphertext.handle(), yj, d)); + } + + /** + * Distributed decryption with exactly one verified share per registered trustee (spec §6.2). + * + *

For a threshold context ({@code elgamal-jubjub-threshold-v1} §9), at least {@code t + 1} + * verified shares from distinct qualified participants are required instead. Any extra + * shares are checked against the interpolation of the first {@code t + 1}. + * + * @param maxPlaintext the caller's search limit; the ciphertext's bound must not exceed it + * @throws IllegalArgumentException if a share is for another ciphertext, the share set is + * incomplete or repeated, or the bound exceeds {@code maxPlaintext} + * @throws IllegalStateException if an extra threshold share disagrees with the + * interpolation, which cannot happen with honestly verified shares + * @throws ElGamalDecryptionException if no plaintext in {@code [0, bound]} matches + */ + public static long decrypt( + ElGamalCiphertext ciphertext, Collection shares, long maxPlaintext) { + return decrypt(ciphertext, shares, maxPlaintext, null); + } + + /** As {@link #decrypt(ElGamalCiphertext, Collection, long)}, with a reusable search table. */ + public static long decrypt( + ElGamalCiphertext ciphertext, Collection shares, + long maxPlaintext, JubjubDiscreteLog table) { + Objects.requireNonNull(ciphertext, "ciphertext"); + Objects.requireNonNull(shares, "shares"); + long bound = requireSearchable(ciphertext, maxPlaintext); + JubjubDiscreteLog solver = solver(bound, table); + if (ciphertext.context() instanceof ThresholdKeyContext threshold) { + return search(thresholdUnmask(ciphertext, threshold, shares), bound, solver); + } + if (!(ciphertext.context() instanceof NOfNKeyContext context)) { + throw new IllegalArgumentException("unsupported key context: " + ciphertext.context()); + } + boolean[] seen = new boolean[context.size()]; + List points = new ArrayList<>(shares.size()); + for (VerifiedDecryptionShare share : shares) { + Objects.requireNonNull(share, "share"); + if (!share.ciphertext().sameCiphertext(ciphertext)) { + throw new IllegalArgumentException("a decryption share is bound to a different ciphertext"); + } + if (seen[share.trustee()]) { + throw new IllegalArgumentException("more than one share from the same trustee"); + } + seen[share.trustee()] = true; + points.add(share.share()); + } + if (points.size() != context.size()) { + throw new IllegalArgumentException("a decryption share is required from every registered trustee (" + + context.size() + "), got " + points.size()); + } + JubjubPoint unmasked = RawElGamalCiphertext.unmask(ciphertext.blinded(), points); + return search(unmasked, bound, solver); + } + + /** + * Single-key decryption (spec §6.1). The secret's public key must equal the ciphertext's + * joint key: a trustee's individual share is refused. + * + * @throws IllegalArgumentException if the secret does not match the joint key, or the bound + * exceeds {@code maxPlaintext} + * @throws ElGamalDecryptionException if no plaintext in {@code [0, bound]} matches + */ + public static long decryptWithSecret( + ElGamalCiphertext ciphertext, ElGamalSecretKey secretKey, long maxPlaintext) { + return decryptWithSecret(ciphertext, secretKey, maxPlaintext, null); + } + + /** As {@link #decryptWithSecret(ElGamalCiphertext, ElGamalSecretKey, long)}, with a reusable table. */ + public static long decryptWithSecret( + ElGamalCiphertext ciphertext, ElGamalSecretKey secretKey, long maxPlaintext, + JubjubDiscreteLog table) { + Objects.requireNonNull(ciphertext, "ciphertext"); + Objects.requireNonNull(secretKey, "secretKey"); + long bound = requireSearchable(ciphertext, maxPlaintext); + JubjubDiscreteLog solver = solver(bound, table); + if (!(ciphertext.context() instanceof NOfNKeyContext)) { + throw new IllegalArgumentException("single-key decryption is not defined for this key context"); + } + if (!secretKey.publicKey().equals(ciphertext.context().jointKey())) { + throw new IllegalArgumentException( + "the secret's public key does not equal the ciphertext's joint key"); + } + JubjubPoint mask = secretKey.multiply(ciphertext.handle()); + JubjubPoint unmasked = RawElGamalCiphertext.unmask(ciphertext.blinded(), List.of(mask)); + return search(unmasked, bound, solver); + } + + // ---------------------------------------------------------------- helpers + + /** Spec §2: 64 bytes from {@code random}, read big-endian, reduced mod {@code l}; the buffer is wiped. */ + static BigInteger sample(SecureRandom random) { + Objects.requireNonNull(random, "random"); + byte[] bytes = new byte[SAMPLE_BYTES]; + try { + random.nextBytes(bytes); + return new BigInteger(1, bytes).mod(SUBGROUP_ORDER); + } finally { + Arrays.fill(bytes, (byte) 0); + } + } + + static void requireWidth(int width) { + if (width < 1 || width > MAX_MESSAGE_BITS) { + throw new IllegalArgumentException( + "message width must satisfy 1 <= w <= " + MAX_MESSAGE_BITS + ", got " + width); + } + } + + private static void requireMessage(BigInteger message, int width) { + Objects.requireNonNull(message, "message"); + if (message.signum() < 0 || message.bitLength() > width) { + throw new IllegalArgumentException("message must satisfy 0 <= m < 2^" + width); + } + } + + static BigInteger boundOf(int width) { + return BigInteger.ONE.shiftLeft(width).subtract(BigInteger.ONE); + } + + static long requireSearchable(ElGamalCiphertext ciphertext, long maxPlaintext) { + if (maxPlaintext < 0) { + throw new IllegalArgumentException("maxPlaintext must be non-negative"); + } + if (ciphertext.bound().compareTo(BigInteger.valueOf(maxPlaintext)) > 0) { + throw new IllegalArgumentException("the ciphertext's plaintext bound " + ciphertext.bound() + + " exceeds the search limit " + maxPlaintext); + } + return ciphertext.bound().longValueExact(); + } + + /** + * {@code B − Σ_{j∈S} [λ_j]·D_j} over the {@code t + 1} smallest identifiers {@code S}, after + * checking every extra share against the interpolation of {@code S} + * ({@code elgamal-jubjub-threshold-v1} §9). All inputs are public. + */ + private static JubjubPoint thresholdUnmask(ElGamalCiphertext ciphertext, ThresholdKeyContext context, + Collection shares) { + TreeMap byId = new TreeMap<>(); + for (VerifiedDecryptionShare share : shares) { + Objects.requireNonNull(share, "share"); + if (!share.ciphertext().sameCiphertext(ciphertext)) { + throw new IllegalArgumentException("a decryption share is bound to a different ciphertext"); + } + if (byId.put(share.trustee(), share.share()) != null) { + throw new IllegalArgumentException("more than one share from participant " + share.trustee()); + } + } + int threshold = context.threshold(); + if (byId.size() < threshold + 1) { + throw new IllegalArgumentException("threshold decryption needs at least t + 1 = " + (threshold + 1) + + " verified shares, got " + byId.size()); + } + int[] subset = new int[threshold + 1]; + FastJubjubPoint[] chosen = new FastJubjubPoint[threshold + 1]; + int index = 0; + for (var entry : byId.entrySet()) { + if (index == threshold + 1) break; + subset[index] = entry.getKey(); + chosen[index] = FastJubjubPoint.of(entry.getValue()); + index++; + } + BigInteger[] lambda = ThresholdMath.lagrangeAt(subset, 0); + FastJubjubPoint combined = FastJubjubPoint.IDENTITY; + for (int i = 0; i <= threshold; i++) { + combined = combined.add(chosen[i].scalarMulPublic(lambda[i])); + } + for (var entry : byId.tailMap(subset[threshold], false).entrySet()) { + BigInteger[] at = ThresholdMath.lagrangeAt(subset, entry.getKey()); + FastJubjubPoint expected = FastJubjubPoint.IDENTITY; + for (int i = 0; i <= threshold; i++) { + expected = expected.add(chosen[i].scalarMulPublic(at[i])); + } + if (!expected.projectiveEquals(FastJubjubPoint.of(entry.getValue()))) { + throw new IllegalStateException("share of participant " + entry.getKey() + + " disagrees with the interpolation of the first t + 1 shares"); + } + } + return FastJubjubPoint.of(ciphertext.blinded()).subtract(combined).toJubjubPoint(); + } + + /** The search table, validated before any secret multiplication happens. */ + static JubjubDiscreteLog solver(long bound, JubjubDiscreteLog table) { + if (table == null) { + return JubjubDiscreteLog.forBound(bound); + } + if (bound > table.maxBound()) { + throw new IllegalArgumentException("the search table reaches " + table.maxBound() + + ", below the ciphertext's bound " + bound); + } + return table; + } + + static long search(JubjubPoint unmasked, long bound, JubjubDiscreteLog solver) { + OptionalLong result = solver.solve(unmasked, bound); + if (result.isEmpty()) { + throw new ElGamalDecryptionException("no plaintext in [0, " + bound + "] matches"); + } + return result.getAsLong(); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalCiphertext.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalCiphertext.java new file mode 100644 index 00000000..96a8dc9e --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalCiphertext.java @@ -0,0 +1,163 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.List; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * An admitted {@code elgamal-jubjub-v1} ciphertext: {@code (A, B)} together with its key context + * and an established plaintext bound (ADR-0052 D2a, D2c; invariants I7, I13 and I16). + * + *

The only ways to obtain one are local encryption ({@link ElGamal#encrypt}, + * {@link ElGamal#encryptWithOpening}), verified admission ({@link ElGamal#admit}), and the + * homomorphic combination ({@link #add}, {@link #sum}, {@link #scale}) of ciphertexts obtained + * those ways, which carries the combined bound (spec §10.1). There is no constructor from a + * claimed bound or a claimed key. Homomorphic operations require the same context and refuse a result whose bound reaches + * {@code l}, so an integer read of a decrypted sum cannot be fooled by a wraparound mod + * {@code l}. + * + *

Serialising with {@link #encode()} drops the key and the bound. Decoding the bytes again + * yields a {@link RawElGamalCiphertext}, which must be admitted again. + */ +public final class ElGamalCiphertext { + + private final JubjubPoint handle; + private final JubjubPoint blinded; + private final ElGamalKeyContext context; + private final BigInteger bound; + + ElGamalCiphertext(JubjubPoint handle, JubjubPoint blinded, ElGamalKeyContext context, BigInteger bound) { + this.handle = handle.normalized(); + this.blinded = blinded.normalized(); + this.context = context; + this.bound = bound; + } + + /** + * Component-wise sum, encrypting {@code m₁ + m₂} (spec §5). + * + * @throws IllegalArgumentException if the contexts differ or the combined bound reaches + * {@code l} + */ + public ElGamalCiphertext add(ElGamalCiphertext other) { + Objects.requireNonNull(other, "other"); + requireSameContext(other); + BigInteger sum = requireBound(bound.add(other.bound)); + return new ElGamalCiphertext( + FastJubjubPoint.of(handle).add(FastJubjubPoint.of(other.handle)).toJubjubPoint(), + FastJubjubPoint.of(blinded).add(FastJubjubPoint.of(other.blinded)).toJubjubPoint(), + context, sum); + } + + /** + * Sums a non-empty list in one pass, normalizing once. + * + * @throws IllegalArgumentException if the list is empty, the contexts differ, or the combined + * bound reaches {@code l} + */ + public static ElGamalCiphertext sum(List ciphertexts) { + Objects.requireNonNull(ciphertexts, "ciphertexts"); + if (ciphertexts.isEmpty()) { + throw new IllegalArgumentException("cannot sum an empty list"); + } + ElGamalCiphertext first = Objects.requireNonNull(ciphertexts.get(0), "ciphertext"); + FastJubjubPoint a = FastJubjubPoint.IDENTITY; + FastJubjubPoint b = FastJubjubPoint.IDENTITY; + BigInteger total = BigInteger.ZERO; + for (ElGamalCiphertext c : ciphertexts) { + Objects.requireNonNull(c, "ciphertext"); + first.requireSameContext(c); + total = requireBound(total.add(c.bound)); + a = a.add(FastJubjubPoint.of(c.handle)); + b = b.add(FastJubjubPoint.of(c.blinded)); + } + return new ElGamalCiphertext(a.toJubjubPoint(), b.toJubjubPoint(), first.context, total); + } + + /** + * {@code ([c]·A, [c]·B)}, encrypting {@code c·m} (spec §5). + * + * @throws IllegalArgumentException unless {@code 1 ≤ c < l} and {@code c·bound < l} + */ + public ElGamalCiphertext scale(BigInteger c) { + Objects.requireNonNull(c, "c"); + if (c.signum() <= 0 || c.compareTo(SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException("scale factor must satisfy 1 <= c < l"); + } + BigInteger scaled = requireBound(bound.multiply(c)); + return new ElGamalCiphertext( + FastJubjubPoint.of(handle).scalarMulPublic(c).toJubjubPoint(), + FastJubjubPoint.of(blinded).scalarMulPublic(c).toJubjubPoint(), + context, scaled); + } + + /** {@link #scale(BigInteger)} for a {@code long} factor. */ + public ElGamalCiphertext scale(long c) { + return scale(BigInteger.valueOf(c)); + } + + /** {@code A}, the decryption handle. */ + public JubjubPoint handle() { + return handle; + } + + /** {@code B}, the blinded message. */ + public JubjubPoint blinded() { + return blinded; + } + + /** The key context this ciphertext is under. */ + public ElGamalKeyContext context() { + return context; + } + + /** The established plaintext bound: the plaintext lies in {@code [0, bound]}. */ + public BigInteger bound() { + return bound; + } + + /** The 64-byte encoding (spec §7.2). It carries neither the key nor the bound. */ + public byte[] encode() { + return raw().encode(); + } + + /** This ciphertext without its key and bound. */ + public RawElGamalCiphertext raw() { + return new RawElGamalCiphertext(handle, blinded); + } + + /** Public inputs {@code A.u, A.v, B.u, B.v} (spec §8). */ + public List publicInputs() { + return ElGamalEncodings.affine(handle, blinded); + } + + /** Same {@code (A, B, context)}: the "exact ciphertext" a decryption share is bound to. */ + boolean sameCiphertext(ElGamalCiphertext other) { + return context.equals(other.context) + && handle.projectiveEquals(other.handle) + && blinded.projectiveEquals(other.blinded); + } + + void requireSameContext(ElGamalCiphertext other) { + if (!context.equals(other.context)) { + throw new IllegalArgumentException( + "ciphertexts are under different key contexts; homomorphic operations need one key"); + } + } + + private static BigInteger requireBound(BigInteger bound) { + if (bound.compareTo(SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException( + "plaintext bound would reach l; the result could wrap mod l"); + } + return bound; + } + + @Override + public String toString() { + return "ElGamalCiphertext{A=" + handle + ", B=" + blinded + ", bound=" + bound + + ", context=" + context + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalDecryptionException.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalDecryptionException.java new file mode 100644 index 00000000..072bb5d7 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalDecryptionException.java @@ -0,0 +1,13 @@ +package org.zeroj.circuit.lib.jubjub; + +/** + * Decryption failed closed: no integer in {@code [0, bound]} maps to the unmasked point + * ({@code elgamal-jubjub-v1} §6.3). Decryption never returns an out-of-range or approximate + * value instead. + */ +public final class ElGamalDecryptionException extends IllegalStateException { + + public ElGamalDecryptionException(String message) { + super(message); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalEncodings.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalEncodings.java new file mode 100644 index 00000000..890b0cbe --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalEncodings.java @@ -0,0 +1,79 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.BASE_FIELD_PRIME; +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.COMPRESSED_POINT_BYTES; + +/** Decoding and validation rules of {@code elgamal-jubjub-v1} §7, shared by the host types. */ +final class ElGamalEncodings { + + static final int CIPHERTEXT_BYTES = 2 * COMPRESSED_POINT_BYTES; + + private ElGamalEncodings() {} + + /** + * Decodes one point of a ciphertext or share (§7.1, §7.2): canonical encoding and + * prime-order subgroup membership. The identity is accepted. + */ + static JubjubPoint decodeSubgroupPoint(byte[] encoded, int offset, String what) { + byte[] slice = Arrays.copyOfRange(encoded, offset, offset + COMPRESSED_POINT_BYTES); + JubjubPoint point = JubjubPoint.fromBytes(slice); + return requireSubgroup(point, what); + } + + /** Decodes a 32-byte point (§7.1) and requires subgroup membership. */ + static JubjubPoint decodeSubgroupPoint(byte[] encoded, String what) { + Objects.requireNonNull(encoded, what); + if (encoded.length != COMPRESSED_POINT_BYTES) { + throw new IllegalArgumentException( + what + " must be " + COMPRESSED_POINT_BYTES + " bytes, got " + encoded.length); + } + return requireSubgroup(JubjubPoint.fromBytes(encoded), what); + } + + /** A key point (§3.1, §7.3): in the subgroup and not the identity. */ + static JubjubPoint requireKeyPoint(JubjubPoint point, String what) { + requireSubgroup(point, what); + if (point.isIdentity()) { + throw new IllegalArgumentException(what + " must not be the identity"); + } + return point.normalized(); + } + + static JubjubPoint requireSubgroup(JubjubPoint point, String what) { + Objects.requireNonNull(point, what); + if (!FastJubjubPoint.isInPrimeOrderSubgroup(point)) { + throw new IllegalArgumentException(what + " is not in the prime-order subgroup"); + } + return point.normalized(); + } + + /** + * A point given as affine integers (§7.4): each coordinate canonical in {@code [0, p)} + * without reduction, on the curve, and in the subgroup. + */ + static JubjubPoint affineSubgroupPoint(BigInteger u, BigInteger v, String what) { + Objects.requireNonNull(u, what + ".u"); + Objects.requireNonNull(v, what + ".v"); + if (u.signum() < 0 || u.compareTo(BASE_FIELD_PRIME) >= 0 + || v.signum() < 0 || v.compareTo(BASE_FIELD_PRIME) >= 0) { + throw new IllegalArgumentException(what + " coordinates must be canonical, in [0, p)"); + } + return requireSubgroup(JubjubPoint.fromAffine(u, v), what); + } + + /** Affine public inputs of points, in the given order (§8). */ + static List affine(JubjubPoint... points) { + BigInteger[] out = new BigInteger[points.length * 2]; + for (int i = 0; i < points.length; i++) { + JubjubPoint n = points[i].normalized(); + out[2 * i] = n.u(); + out[2 * i + 1] = n.v(); + } + return List.of(out); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalEncryption.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalEncryption.java new file mode 100644 index 00000000..638781dd --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalEncryption.java @@ -0,0 +1,58 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; + +/** + * A freshly encrypted ciphertext together with its opening {@code (m, k)}, returned by + * {@link ElGamal#encryptWithOpening} so that the encrypting party can prove the encryption + * relation ({@code elgamal-jubjub-v1} §9.1). + * + *

The opening is secret: anyone who learns {@code k} can recover {@code m}. Use it only to + * build the prover's witness, offline or in an isolated process (ADR-0039 compatibility/offline + * class), and discard it. {@link #toString()} redacts it. + */ +public final class ElGamalEncryption { + + private final ElGamalCiphertext ciphertext; + private final BigInteger message; + private final BigInteger randomness; + private final int width; + + ElGamalEncryption(ElGamalCiphertext ciphertext, BigInteger message, BigInteger randomness, int width) { + this.ciphertext = ciphertext; + this.message = message; + this.randomness = randomness; + this.width = width; + } + + /** The admitted ciphertext. */ + public ElGamalCiphertext ciphertext() { + return ciphertext; + } + + /** The message {@code m}: a witness value. */ + public BigInteger message() { + return message; + } + + /** The randomness {@code k}: a witness value that must stay secret. */ + public BigInteger randomness() { + return randomness; + } + + /** The width the message was encrypted at. */ + public int width() { + return width; + } + + /** The encryption statement the proof must establish: the joint key, {@code A}, {@code B}. */ + public EncryptionStatement statement() { + return new EncryptionStatement(ciphertext.context().jointKey(), + ciphertext.handle(), ciphertext.blinded(), width); + } + + @Override + public String toString() { + return "ElGamalEncryption{ciphertext=" + ciphertext + ", width=" + width + ", opening=}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalKeyContext.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalKeyContext.java new file mode 100644 index 00000000..c2cc53fa --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalKeyContext.java @@ -0,0 +1,16 @@ +package org.zeroj.circuit.lib.jubjub; + +/** + * The key an {@code elgamal-jubjub-v1} ciphertext is under, together with how that key is + * shared (ADR-0052 D2c, invariant I13). + * + *

Every safe-layer ciphertext carries its context. Homomorphic operations and decryption + * refuse ciphertexts whose contexts differ, because adding ciphertexts under different keys + * can decrypt to a wrong in-range value instead of failing. Contexts compare by value: the + * joint key and the registered share set. + */ +public sealed interface ElGamalKeyContext permits NOfNKeyContext, ThresholdKeyContext { + + /** The key ciphertexts are encrypted to. */ + ElGamalPublicKey jointKey(); +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalPublicKey.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalPublicKey.java new file mode 100644 index 00000000..7307509c --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalPublicKey.java @@ -0,0 +1,105 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HexFormat; +import java.util.List; +import java.util.Objects; + +/** + * An {@code elgamal-jubjub-v1} public key: a non-identity point of the prime-order subgroup + * (spec §3.1, ADR-0052 invariant I1). + * + *

A key is never accepted from a bare claim. It is produced by + * {@link ElGamalSecretKey#publicKey()}, by {@link VerifiedKeyShare} after a possession check, + * or as the joint key of an aggregation of verified shares ({@link #aggregate}). That is what + * makes a forgotten proof of possession, the rogue-key attack, impossible on the safe path. + */ +public final class ElGamalPublicKey { + + private final JubjubPoint point; + private final byte[] encoding; + + /** The point must already be validated as a non-identity subgroup point. */ + ElGamalPublicKey(JubjubPoint validatedPoint) { + this.point = validatedPoint.normalized(); + this.encoding = this.point.toBytes(); + } + + /** + * Sums verified key shares into an n-of-n joint key (spec §3.2, ADR-0052 D5). + * + * @return the key context: the joint key and the registered shares + * @throws IllegalArgumentException if the list is empty, holds two equal shares, or sums to + * the identity + */ + public static NOfNKeyContext aggregate(List shares) { + Objects.requireNonNull(shares, "shares"); + if (shares.isEmpty()) { + throw new IllegalArgumentException("at least one key share is required"); + } + List sorted = new ArrayList<>(shares.size()); + for (VerifiedKeyShare share : shares) { + sorted.add(Objects.requireNonNull(share, "share")); + } + sorted.sort((a, b) -> Arrays.compareUnsigned( + a.publicKey().encodingRef(), b.publicKey().encodingRef())); + FastJubjubPoint sum = FastJubjubPoint.IDENTITY; + for (int i = 0; i < sorted.size(); i++) { + if (i > 0 && Arrays.equals(sorted.get(i - 1).publicKey().encodingRef(), + sorted.get(i).publicKey().encodingRef())) { + throw new IllegalArgumentException("key shares must be pairwise distinct"); + } + sum = sum.add(FastJubjubPoint.of(sorted.get(i).publicKey().point())); + } + if (sum.isIdentity()) { + throw new IllegalArgumentException("key shares must not sum to the identity"); + } + return new NOfNKeyContext(new ElGamalPublicKey(sum.toJubjubPoint()), sorted); + } + + /** The point, normalized. */ + public JubjubPoint point() { + return point; + } + + /** Affine {@code u} (named like {@link JubjubPoint#affineU()}, unlike the projective {@code JubjubPoint.u()}). */ + public BigInteger affineU() { + return point.u(); + } + + /** Affine {@code v}. */ + public BigInteger affineV() { + return point.v(); + } + + /** The 32-byte encoding (spec §7.3). */ + public byte[] encode() { + return encoding.clone(); + } + + /** Public inputs {@code PK.u, PK.v} (spec §8). */ + public List publicInputs() { + return List.of(point.u(), point.v()); + } + + byte[] encodingRef() { + return encoding; + } + + @Override + public boolean equals(Object o) { + return o instanceof ElGamalPublicKey other && Arrays.equals(encoding, other.encoding); + } + + @Override + public int hashCode() { + return Arrays.hashCode(encoding); + } + + @Override + public String toString() { + return "ElGamalPublicKey{" + HexFormat.of().formatHex(encoding) + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalSecretKey.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalSecretKey.java new file mode 100644 index 00000000..804042e2 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ElGamalSecretKey.java @@ -0,0 +1,98 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * An {@code elgamal-jubjub-v1} secret key {@code sk ∈ [1, l)} together with its public key + * {@code [sk]·G} (spec §3.1). It serves as a single key, or as one trustee's share of an n-of-n + * joint key (§3.2). + * + *

Compatibility/offline class (ADR-0039 §3.1). Key generation and every operation + * that multiplies by {@code sk} run variable-time {@link BigInteger} arithmetic through the + * blinded best-effort schedule. Generate and use keys offline or in an isolated process. No + * method of this class makes a constant-time claim. The secret cannot be wiped from memory: + * {@code BigInteger} copies are immutable. + */ +public final class ElGamalSecretKey { + + private final BigInteger secret; + private final ElGamalPublicKey publicKey; + + private ElGamalSecretKey(BigInteger secret, JubjubPoint publicKey) { + this.secret = secret; + this.publicKey = new ElGamalPublicKey(publicKey); + } + + /** + * Samples a key: 64 random bytes reduced mod {@code l}, resampled while zero (spec §2). + * + * @param random a cryptographically secure source + */ + public static ElGamalSecretKey generate(SecureRandom random) { + Objects.requireNonNull(random, "random"); + while (true) { + BigInteger candidate = ElGamal.sample(random); + if (candidate.signum() != 0) { + return of(candidate); + } + } + } + + /** + * Wraps an existing secret. + * + * @throws IllegalArgumentException unless {@code 1 ≤ sk < l} + */ + public static ElGamalSecretKey of(BigInteger sk) { + Objects.requireNonNull(sk, "sk"); + if (sk.signum() <= 0 || sk.compareTo(SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException("secret key must satisfy 1 <= sk < l"); + } + JubjubPoint pk = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(sk).normalized(); + return new ElGamalSecretKey(sk, pk); + } + + /** The public key {@code [sk]·G}. */ + public ElGamalPublicKey publicKey() { + return publicKey; + } + + /** + * The proof-of-possession statement for this key (spec §3.3, §9.2): {@code X = G}, + * {@code P = D = [sk]·G}. A trustee proves it with {@code sk} as the witness; others check + * it through {@link VerifiedKeyShare#verify}. + */ + public DleqStatement possessionStatement() { + return DleqStatement.possession(publicKey.point()); + } + + /** + * The secret scalar, for building a proof witness only: the DLEQ relation of a possession + * or decryption-share proof takes {@code sk} as its witness (spec §9.2). + * + *

Secret. Handle it offline or in an isolated process (ADR-0039 + * compatibility/offline class). Do not decrypt with it through raw primitives + * ({@link JubjubPoint#scalarMul}, {@link RawElGamalCiphertext#unmask}, + * {@link JubjubDiscreteLog#solve}). That gives up the safe layer's checks: the established + * bound, the key context, and the subgroup check on the handle (multiplying an unvalidated + * point by {@code sk} leaks {@code sk mod 8}). It also gives up the blinded multiplication + * schedule. Every other use goes through this class's methods and {@link ElGamal}. + */ + public BigInteger secretScalar() { + return secret; + } + + /** {@code [sk]·P} for a point known to be in the prime-order subgroup. */ + JubjubPoint multiply(JubjubPoint subgroupPoint) { + return subgroupPoint.scalarMulSecretBlindedBestEffort(secret); + } + + @Override + public String toString() { + return "ElGamalSecretKey{publicKey=" + publicKey + ", secret=}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/EncryptionStatement.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/EncryptionStatement.java new file mode 100644 index 00000000..cb29f5b9 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/EncryptionStatement.java @@ -0,0 +1,68 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.List; + +/** + * The {@code R_enc(w)} statement of {@code elgamal-jubjub-v1} §9.1 for one ciphertext, as the + * library hands it to an {@link EncryptionStatementVerifier} during admission (§10.1). + * + *

The library builds it from the context's joint key, the raw ciphertext and the width. + * The verifier must check a proof for exactly these values at exactly this width: an + * admission at a narrower width than the proof's circuit would understate the plaintext + * bound. + */ +public final class EncryptionStatement { + + private final ElGamalPublicKey key; + private final JubjubPoint handle; + private final JubjubPoint blinded; + private final int width; + + EncryptionStatement(ElGamalPublicKey key, JubjubPoint handle, JubjubPoint blinded, int width) { + this.key = key; + this.handle = handle.normalized(); + this.blinded = blinded.normalized(); + this.width = width; + } + + /** The joint key {@code PK}. */ + public ElGamalPublicKey key() { + return key; + } + + /** {@code A}. */ + public JubjubPoint handle() { + return handle; + } + + /** {@code B}. */ + public JubjubPoint blinded() { + return blinded; + } + + /** The message width {@code w} the circuit must prove. */ + public int width() { + return width; + } + + /** Spec §8 order: {@code PK.u, PK.v, A.u, A.v, B.u, B.v}. */ + public List publicInputs() { + return ElGamalEncodings.affine(key.point(), handle, blinded); + } + + /** {@code PK.u, PK.v}. */ + public List keyPublicInputs() { + return key.publicInputs(); + } + + /** {@code A.u, A.v, B.u, B.v}. */ + public List ciphertextPublicInputs() { + return ElGamalEncodings.affine(handle, blinded); + } + + @Override + public String toString() { + return "EncryptionStatement{width=" + width + ", publicInputs=" + publicInputs() + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/EncryptionStatementVerifier.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/EncryptionStatementVerifier.java new file mode 100644 index 00000000..0631079b --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/EncryptionStatementVerifier.java @@ -0,0 +1,23 @@ +package org.zeroj.circuit.lib.jubjub; + +/** + * Checks that a raw ciphertext is a well-formed encryption of an in-range message + * ({@code elgamal-jubjub-v1} §9.1, §10.1), supplied by the caller at admission. + * + *

Delegated verifier obligation. Return {@code true} only if a proof of + * {@code R_enc(w)} was verified for exactly {@link EncryptionStatement#publicInputs()} (or + * the same key and ciphertext embedded in an application statement), with a verification key + * whose circuit has exactly {@link EncryptionStatement#width()}. + * + *

One legitimate delegation is an on-chain validator that already verified the statement + * before the ciphertext reached the ledger. The implementation must then establish, from chain + * data, that this ciphertext is one such validator accepted. A verifier that returns + * {@code true} without either check lets a ciphertext in with a false bound, and a homomorphic + * sum can then wrap mod {@code l} undetected. + */ +@FunctionalInterface +public interface EncryptionStatementVerifier { + + /** Returns {@code true} iff the statement is proved for this exact key, ciphertext and width. */ + boolean verify(EncryptionStatement statement); +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/FastJubjubPoint.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/FastJubjubPoint.java new file mode 100644 index 00000000..b049ab8d --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/FastJubjubPoint.java @@ -0,0 +1,188 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.zeroj.bls12381.field.MontFr381; + +import java.math.BigInteger; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * Jubjub point arithmetic in extended twisted-Edwards coordinates over Montgomery-form + * BLS12-381 scalar-field elements. Jubjub's base field is that field, so {@link MontFr381}'s + * limb arithmetic applies directly. + * + *

Never for a secret scalar. Every operation is variable-time and branches on its + * inputs. Use it for public data: decoded points, subgroup checks, homomorphic sums of + * ciphertexts, and verification equations. Decryption also uses it on secret-derived + * points (unmasking {@code B − [sk]·A}, and the plaintext search on {@code [m]·G}). + * There it inherits decryption's compatibility/offline classification (ADR-0039 §3.1). + * Multiplications by a secret scalar always go through + * {@link JubjubPoint#scalarMulSecretBlindedBestEffort}. + * + *

The addition and doubling formulas are exactly those of {@link JubjubPoint#add} and + * {@link JubjubPoint#doubled} (HWCD unified addition and dedicated doubling for {@code a = −1}), + * so the two classes compute identical projective representatives. {@code FastJubjubPointTest} + * checks that differentially. + */ +final class FastJubjubPoint { + + private static final MontFr381 TWO_D = MontFr381.fromBigInteger(JubjubCurve.TWO_D); + private static final MontFr381 TWO = MontFr381.fromLong(2); + + static final FastJubjubPoint IDENTITY = + new FastJubjubPoint(MontFr381.ZERO, MontFr381.ONE, MontFr381.ONE, MontFr381.ZERO); + + static final FastJubjubPoint GENERATOR = of(JubjubPoint.SUBGROUP_GENERATOR); + + final MontFr381 u; + final MontFr381 v; + final MontFr381 z; + final MontFr381 t; + + private FastJubjubPoint(MontFr381 u, MontFr381 v, MontFr381 z, MontFr381 t) { + this.u = u; + this.v = v; + this.z = z; + this.t = t; + } + + /** Converts a point, keeping its projective representative. */ + static FastJubjubPoint of(JubjubPoint point) { + Objects.requireNonNull(point, "point"); + return new FastJubjubPoint( + MontFr381.fromBigInteger(point.u()), + MontFr381.fromBigInteger(point.v()), + MontFr381.fromBigInteger(point.z()), + MontFr381.fromBigInteger(point.t())); + } + + /** Converts back to a normalized {@link JubjubPoint} (one inversion). */ + JubjubPoint toJubjubPoint() { + MontFr381 zInverse = z.inverse(); + return JubjubPoint.fromAffine(u.mul(zInverse).toBigInteger(), v.mul(zInverse).toBigInteger()); + } + + FastJubjubPoint add(FastJubjubPoint other) { + MontFr381 rA = v.sub(u).mul(other.v.sub(other.u)); + MontFr381 rB = v.add(u).mul(other.v.add(other.u)); + MontFr381 rC = t.mul(TWO_D).mul(other.t); + MontFr381 rD = z.mul(TWO).mul(other.z); + MontFr381 rE = rB.sub(rA); + MontFr381 rF = rD.sub(rC); + MontFr381 rG = rD.add(rC); + MontFr381 rH = rB.add(rA); + return new FastJubjubPoint(rE.mul(rF), rG.mul(rH), rF.mul(rG), rE.mul(rH)); + } + + FastJubjubPoint doubled() { + MontFr381 rA = u.square(); + MontFr381 rB = v.square(); + MontFr381 zz = z.square(); + MontFr381 rC = zz.add(zz); + MontFr381 rD = rA.neg(); + MontFr381 sum = u.add(v); + MontFr381 rE = sum.square().sub(rA).sub(rB); + MontFr381 rG = rD.add(rB); + MontFr381 rF = rG.sub(rC); + MontFr381 rH = rD.sub(rB); + return new FastJubjubPoint(rE.mul(rF), rG.mul(rH), rF.mul(rG), rE.mul(rH)); + } + + FastJubjubPoint negate() { + return new FastJubjubPoint(u.neg(), v, z, t.neg()); + } + + FastJubjubPoint subtract(FastJubjubPoint other) { + return add(other.negate()); + } + + /** + * {@code [k]·this} for a public non-negative scalar, by left-to-right + * double-and-add. The scalar is not reduced mod {@code l}, so the result is exact for + * points outside the prime-order subgroup too. + */ + FastJubjubPoint scalarMulPublic(BigInteger k) { + Objects.requireNonNull(k, "k"); + if (k.signum() < 0) { + throw new IllegalArgumentException("public scalar must be non-negative"); + } + FastJubjubPoint result = IDENTITY; + for (int i = k.bitLength() - 1; i >= 0; i--) { + result = result.doubled(); + if (k.testBit(i)) { + result = result.add(this); + } + } + return result; + } + + /** {@code [k]·this} for a small public multiplier. */ + FastJubjubPoint scalarMulPublic(long k) { + if (k < 0) { + throw new IllegalArgumentException("public scalar must be non-negative"); + } + FastJubjubPoint result = IDENTITY; + for (int i = 63 - Long.numberOfLeadingZeros(k); i >= 0; i--) { + result = result.doubled(); + if (((k >>> i) & 1L) != 0) { + result = result.add(this); + } + } + return result; + } + + /** True iff this is the identity: {@code U = 0} and {@code V = Z}. */ + boolean isIdentity() { + return u.isZero() && v.equals(z); + } + + /** True iff {@code [l]·this} is the identity. */ + boolean isInPrimeOrderSubgroup() { + return scalarMulPublic(SUBGROUP_ORDER).isIdentity(); + } + + /** Projective equality: {@code U₁·Z₂ = U₂·Z₁} and {@code V₁·Z₂ = V₂·Z₁}. */ + boolean projectiveEquals(FastJubjubPoint other) { + return u.mul(other.z).equals(other.u.mul(z)) && v.mul(other.z).equals(other.v.mul(z)); + } + + /** Subgroup check for a host point, on the fast path. */ + static boolean isInPrimeOrderSubgroup(JubjubPoint point) { + return of(point).isInPrimeOrderSubgroup(); + } + + /** Sum of host points on the fast path; returns a normalized point. */ + static JubjubPoint sum(Iterable points) { + FastJubjubPoint acc = IDENTITY; + for (JubjubPoint point : points) { + acc = acc.add(of(point)); + } + return acc.toJubjubPoint(); + } + + /** + * Replaces {@code zs[i]} by its inverse for every {@code i < count}, with one field inversion + * (Montgomery's trick). Throws if any element is zero: a single zero would otherwise poison + * every result of the batch. + */ + static void batchInvert(MontFr381[] zs, int count, MontFr381[] scratch) { + if (count == 0) { + return; + } + MontFr381 acc = MontFr381.ONE; + for (int i = 0; i < count; i++) { + if (zs[i].isZero()) { + throw new IllegalStateException("batch inversion of a zero element"); + } + scratch[i] = acc; + acc = acc.mul(zs[i]); + } + MontFr381 inverse = acc.inverse(); + for (int i = count - 1; i >= 0; i--) { + MontFr381 zi = zs[i]; + zs[i] = inverse.mul(scratch[i]); + inverse = inverse.mul(zi); + } + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/FaultAssumptionViolatedException.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/FaultAssumptionViolatedException.java new file mode 100644 index 00000000..62155599 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/FaultAssumptionViolatedException.java @@ -0,0 +1,46 @@ +package org.zeroj.circuit.lib.jubjub; + +/** + * A threshold key generation aborted because something happened that cannot happen while at + * most {@code t} participants are faulty and broadcast has agreement + * ({@code elgamal-jubjub-threshold-v1} §5.1, ADR-0053 D1a and invariant I13). + * + *

The run is not repaired: no dealer is silently excluded and the session is not restarted. + * A new attempt needs a new session. + */ +public final class FaultAssumptionViolatedException extends RuntimeException { + + /** The abort condition of spec §5.1. */ + public enum Reason { + /** A1: fewer than {@code n − t} dealers qualified. */ + TOO_FEW_QUALIFIED, + /** A2: this participant's own dealing was disqualified. */ + OWN_DEALING_DISQUALIFIED, + /** A3: a marked dealer has fewer than {@code t + 1} valid reconstruction pairs. */ + TOO_FEW_RECONSTRUCTION_PAIRS, + /** A4: valid pairs disagree, or do not reproduce the commitments. */ + INCONSISTENT_RECONSTRUCTION, + /** A5: the joint key is the identity. */ + IDENTITY_JOINT_KEY, + /** A6: this participant's share does not match its verification key. */ + SHARE_MISMATCH, + /** A7: a qualified participant confirmed a different transcript or key. */ + CONFLICTING_CONFIRMATION, + /** A8: this participant's own dealing was marked for reconstruction. */ + OWN_DEALING_MARKED, + /** A9: this participant's own complaint is missing from its delivered round-2 set. */ + OWN_COMPLAINT_MISSING + } + + private final Reason reason; + + public FaultAssumptionViolatedException(Reason reason, String detail) { + super("fault assumption violated (" + reason + "): " + detail); + this.reason = reason; + } + + /** Which abort condition fired. */ + public Reason reason() { + return reason; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/InCircuitElGamal.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/InCircuitElGamal.java new file mode 100644 index 00000000..a4d2dff4 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/InCircuitElGamal.java @@ -0,0 +1,213 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.zeroj.circuit.BitDecomposition; +import org.zeroj.circuit.CircuitAPI; +import org.zeroj.circuit.Variable; +import org.zeroj.circuit.lib.poseidon.PoseidonParamsBLS12_381T3; + +import java.lang.ref.WeakReference; +import java.math.BigInteger; +import java.util.Objects; + +/** + * In-circuit relations of {@code elgamal-jubjub-v1} (spec §9, ADR-0052 D3), at the + * {@link CircuitAPI} level. The typed annotation adapter is + * {@code org.zeroj.circuit.lib.zk.ZkElGamal}. + * + *

Encryption, {@code R_enc(w)}

+ * {@link #encrypt} proves {@code A = [k]·G} and {@code B = [m]·G + [k]·PK}: + *
    + *
  • the message decomposition has width {@code 1 ≤ w ≤ 64}. A wider declaration is refused + * when the circuit is defined, since at width 252 the witness {@code m = l} satisfies the + * same constraints as {@code m = 0};
  • + *
  • the randomness decomposition has width exactly 252, and its source wire must not be a + * public input or a constant, nor range-confined below 252 bits. That decomposition is + * consumed by both scalar multiplications (invariant I5);
  • + *
  • the key enters only as a {@link Key}: either verifier-fixed public coordinates + * ({@link #keyFromVerifierFixedPublic}) or a witness proved in the subgroup + * ({@link #keyWitnessedInSubgroup}). Both assert the curve equation and {@code PK ≠ O} + * (invariant I8). A key is bound to the circuit that admitted it. Its constraints live + * there, so it is refused anywhere else, like a foreign {@code BitDecomposition} + * (ADR-0038 Decision 1).
  • + *
+ * Cost at width 1: 6,558 rows, pinned in {@code ZkElGamalTest}. That is 505 for the shared + * decomposition, 1,001 fixed-base, 5,023 variable-base, the key, a select, one addition, and the + * affine bindings. + * + *

The guard rails catch authoring mistakes: a randomness wire that is public or constant, or + * range-confined below 252 bits through its own decomposition or one of its bits. They cannot + * see every derivation. Randomness computed from public data (for example {@code pub + 0}) + * passes them, as ADR-0051 D2 also notes for Pedersen. + * + *

Proof generation puts {@code m}, {@code k} and the DLEQ secret in the witness as field + * elements, so proving is compatibility/offline class (ADR-0039), like host encryption. + * + *

Discrete-log equality, {@code R_dleq}

+ * {@link #assertDiscreteLogEquality} proves {@code P = [x]·G} and {@code D = [x]·X} with one + * decomposition of {@code x}. All six coordinates must be public inputs, so the prover can + * never choose the base (invariant I9). If {@code X} were a private witness, a trustee who + * knows {@code x} could set {@code X = [x⁻¹]·D} and "prove" any share. {@code X ∈ 𝔾} is the + * verifier's precondition. {@code P} and {@code D} may be the identity. + */ +public final class InCircuitElGamal { + + /** The widest message, in bits (spec §4). */ + public static final int MAX_MESSAGE_BITS = 64; + + private InCircuitElGamal() {} + + /** + * An encryption key admitted through one of the two constructors (invariant I8), bound to + * the circuit that admitted it. + */ + public static final class Key { + private final InCircuitJubjub.Point point; + private final WeakReference owner; + + private Key(CircuitAPI owner, InCircuitJubjub.Point point) { + this.owner = new WeakReference<>(owner); + this.point = point; + } + + /** The key as an extended point with {@code Z = 1}. */ + public InCircuitJubjub.Point point() { + return point; + } + } + + /** + * A ciphertext computed in-circuit: an unchecked output carrier like + * {@link InCircuitJubjub.Point}. Bind it to the statement with {@link #assertAffineEquals}. + */ + public record Ciphertext(InCircuitJubjub.Point handle, InCircuitJubjub.Point blinded) {} + + /** + * A key whose affine coordinates are public inputs fixed by the verifier. Asserts the curve + * equation and {@code PK ≠ O}. Subgroup membership is the verifier's obligation, + * discharged when it fixes the key (spec §9.1, §9.3). + * + * @throws IllegalArgumentException if a coordinate is not a declared public input + */ + public static Key keyFromVerifierFixedPublic(CircuitAPI api, Variable u, Variable v) { + requireBls12381(api); + api.requirePublicInput(u); + api.requirePublicInput(v); + InCircuitJubjub.Point point = InCircuitJubjub.witnessAffine(api, u, v); + assertNotIdentityAffine(api, point); + return new Key(api, point); + } + + /** + * A key supplied by the prover, proved in the prime-order subgroup in-circuit (one 252-bit + * multiplication by {@code l}) and asserted non-identity. + */ + public static Key keyWitnessedInSubgroup(CircuitAPI api, Variable u, Variable v) { + requireBls12381(api); + InCircuitJubjub.Point point = InCircuitJubjub.witnessAffine(api, u, v); + InCircuitJubjub.assertInPrimeOrderSubgroup(api, point); + assertNotIdentityAffine(api, point); + return new Key(api, point); + } + + /** + * Proves the encryption relation and returns {@code (A, B)} as computed points. Bind them to + * the statement with {@link #assertAffineEquals}. + * + * @throws IllegalArgumentException if the message width is outside {@code [1, 64]}, the + * randomness width is not 252, or the key or a decomposition belongs to another + * circuit + */ + public static Ciphertext encrypt(CircuitAPI api, Key key, BitDecomposition message, + BitDecomposition randomness) { + requireBls12381(api); + Objects.requireNonNull(key, "key"); + if (key.owner.get() != api) { + throw new IllegalArgumentException("the ElGamal key was admitted in a different circuit; its " + + "curve, identity and subgroup constraints do not exist in this one"); + } + Objects.requireNonNull(message, "message"); + requireMessageWidth(message.width()); + requireHidingScalar(api, randomness); + api.requireOwned(message); + + InCircuitJubjub.Point handle = + InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, randomness); + InCircuitJubjub.Point mask = InCircuitJubjub.scalarMulVariableBase(api, key.point, randomness); + InCircuitJubjub.Point encoded = message.width() == 1 + ? InCircuitJubjub.select(api, message.bit(0), + InCircuitJubjub.constant(api, JubjubPoint.SUBGROUP_GENERATOR), + InCircuitJubjub.identity(api)) + : InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, message); + return new Ciphertext(handle, InCircuitJubjub.add(api, encoded, mask)); + } + + /** + * Proves {@code P = [x]·G} and {@code D = [x]·X} (spec §9.2) with one decomposition of + * {@code x}. All six coordinates must be declared public inputs. + * + * @throws IllegalArgumentException if a coordinate is not a public input, or if {@code x} is + * not a 252-bit owned decomposition of a private, unconfined wire + */ + public static void assertDiscreteLogEquality(CircuitAPI api, BitDecomposition x, + Variable baseU, Variable baseV, + Variable keyU, Variable keyV, + Variable shareU, Variable shareV) { + requireBls12381(api); + for (Variable coordinate : new Variable[]{baseU, baseV, keyU, keyV, shareU, shareV}) { + api.requirePublicInput(Objects.requireNonNull(coordinate, "coordinate")); + } + requireHidingScalar(api, x); + InCircuitJubjub.Point base = InCircuitJubjub.witnessAffine(api, baseU, baseV); + InCircuitJubjub.Point key = + InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, x); + InCircuitJubjub.Point share = InCircuitJubjub.scalarMulVariableBase(api, base, x); + assertAffineEquals(api, key, keyU, keyV); + assertAffineEquals(api, share, shareU, shareV); + } + + /** + * Asserts that a computed point has the given affine coordinates: {@code Z ≠ 0}, + * {@code u·Z = U} and {@code v·Z = V}. + */ + public static void assertAffineEquals(CircuitAPI api, InCircuitJubjub.Point point, + Variable affineU, Variable affineV) { + requireBls12381(api); + api.assertNotEqual(point.z(), api.constant(BigInteger.ZERO)); + api.assertEqual(api.mul(affineU, point.z()), point.u()); + api.assertEqual(api.mul(affineV, point.z()), point.v()); + } + + static void requireMessageWidth(int width) { + if (width < 1 || width > MAX_MESSAGE_BITS) { + throw new IllegalArgumentException("ElGamal message width must satisfy 1 <= w <= " + + MAX_MESSAGE_BITS + "; got " + width + + " (a width-252 message admits m = l, which aliases m = 0)"); + } + } + + private static void requireHidingScalar(CircuitAPI api, BitDecomposition scalar) { + Objects.requireNonNull(scalar, "scalar"); + if (scalar.width() != JubjubCurve.SCALAR_BITS) { + throw new IllegalArgumentException("ElGamal secret scalars must be decomposed at " + + JubjubCurve.SCALAR_BITS + " bits; got " + scalar.width()); + } + api.requireOwned(scalar); + api.requireNotPublicOrConstant(scalar.source()); + api.requireHidingRange(scalar.source(), JubjubCurve.SCALAR_BITS); + api.requireHidingBits(scalar.bits(), JubjubCurve.SCALAR_BITS); + } + + /** + * {@code u ≠ 0} for an affine curve point. On the curve {@code u = 0} forces + * {@code v = ±1}, so this excludes exactly the identity and the order-2 point + * {@code (0, −1)}, which is not a valid key either. + */ + private static void assertNotIdentityAffine(CircuitAPI api, InCircuitJubjub.Point point) { + api.assertNotEqual(point.u(), api.constant(BigInteger.ZERO)); + } + + private static void requireBls12381(CircuitAPI api) { + Objects.requireNonNull(api, "api"); + api.requireField(PoseidonParamsBLS12_381T3.INSTANCE.field()); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubDiscreteLog.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubDiscreteLog.java new file mode 100644 index 00000000..f8fdad05 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubDiscreteLog.java @@ -0,0 +1,276 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.zeroj.bls12381.field.MontFr381; + +import java.math.BigInteger; +import java.util.Objects; +import java.util.OptionalLong; + +/** + * Bounded discrete logarithm to the base {@code G} on Jubjub: finds the unique + * {@code t ∈ [0, bound]} with {@code [t]·G = M}, or reports that none exists + * ({@code elgamal-jubjub-v1} §6.3; ADR-0052 Q4, decided: baby-step giant-step with explicit + * limits). + * + *

Algorithm

+ * Baby-step giant-step using the symmetry {@code v(−P) = v(P)} of twisted-Edwards points. The + * table maps the affine {@code v}-coordinate of {@code [j]·G} to {@code j} for + * {@code j ∈ [0, m]}. Giant step {@code i} looks up {@code Γ_i = M − [c_i]·G} with + * {@code c_i = m + i·(2m + 1)}. If {@code t ∈ [c_i − m, c_i + m]} then {@code Γ_i = ±[j]·G} + * for some table entry {@code j}, and the candidates {@code c_i ± j} are tested. The blocks + * {@code [c_i − m, c_i + m]} tile {@code [0, bound]}, so every {@code t} is reached. Work is + * about {@code √(2·(bound + 1))} point additions, half the table of the plain algorithm. + * + *

Correctness does not rest on the table: every candidate is confirmed exactly + * ({@code [t]·G = M}, projectively) and checked against {@code [0, bound]} before it is + * returned, so a key collision can only cost time, never produce a wrong answer. The key is a + * 64-bit mix of the Montgomery limbs of {@code v}, and every slot holding an equal key is + * probed. Bounds below {@value #LINEAR_THRESHOLD} use a linear scan. + * + *

Limits

+ * A table is sized when built and refuses any search beyond {@link #maxBound()}. The defaults + * ({@value #DEFAULT_MAX_BABY_STEPS} baby steps, about 6 MiB of table, and + * {@value #DEFAULT_MAX_GIANT_STEPS} giant steps) reach bounds near {@code 2^43}. A table is + * immutable after construction and can be shared between threads and decryptions. + * + *

Timing

+ * The running time depends on {@code t}. When {@code M} is the image of a secret plaintext, + * the search is part of the compatibility/offline class (ADR-0039 §3.1) like the rest of + * decryption. It makes no constant-time claim. + */ +public final class JubjubDiscreteLog { + + /** Default cap on the table size. */ + public static final int DEFAULT_MAX_BABY_STEPS = 1 << 18; + + /** Default cap on the number of giant steps per search. */ + public static final long DEFAULT_MAX_GIANT_STEPS = 1L << 24; + + /** Bounds below this use a linear scan without a table. */ + static final int LINEAR_THRESHOLD = 1 << 12; + + private static final int CHUNK = 1024; + + private final long maxBound; + private final int babySteps; + private final long stride; + private final long keyMask; + private final long[] keys; + private final int[] values; + private final int mask; + private final FastJubjubPoint negCenter; + private final FastJubjubPoint negStride; + + private JubjubDiscreteLog(long maxBound, int babySteps, long keyMask) { + this.maxBound = maxBound; + this.babySteps = babySteps; + this.keyMask = keyMask; + if (babySteps == 0) { + this.stride = 0; + this.keys = null; + this.values = null; + this.mask = 0; + this.negCenter = null; + this.negStride = null; + return; + } + this.stride = 2L * babySteps + 1; + int capacity = tableCapacity(babySteps); // validated in create(), before any allocation + int entries = babySteps + 1; // ≤ capacity ≤ 2^30, so no overflow + this.keys = new long[capacity]; + this.values = new int[capacity]; + this.mask = capacity - 1; + this.negCenter = FastJubjubPoint.GENERATOR.scalarMulPublic(babySteps).negate(); + this.negStride = FastJubjubPoint.GENERATOR.scalarMulPublic(stride).negate(); + buildTable(entries); + } + + /** A table for bounds up to {@code maxBound}, with the default limits. */ + public static JubjubDiscreteLog forBound(long maxBound) { + return forBound(maxBound, DEFAULT_MAX_BABY_STEPS, DEFAULT_MAX_GIANT_STEPS); + } + + /** + * A table for bounds up to {@code maxBound}. + * + * @param maxBound the largest bound any search with this table may use; {@code ≥ 0} + * @param maxBabySteps cap on the table size (memory); {@code ≥ 1} + * @param maxGiantSteps cap on the giant steps of one search (time); {@code ≥ 1} + * @throws IllegalArgumentException if {@code maxBound} cannot be searched within the caps + */ + public static JubjubDiscreteLog forBound(long maxBound, int maxBabySteps, long maxGiantSteps) { + return create(maxBound, maxBabySteps, maxGiantSteps, -1L); + } + + /** Test seam: {@code keyMask} truncates table keys to force collisions. */ + static JubjubDiscreteLog create(long maxBound, int maxBabySteps, long maxGiantSteps, long keyMask) { + if (maxBound < 0) { + throw new IllegalArgumentException("maxBound must be non-negative"); + } + if (maxBabySteps < 1 || maxGiantSteps < 1) { + throw new IllegalArgumentException("search limits must be positive"); + } + if (maxBound < LINEAR_THRESHOLD) { + return new JubjubDiscreteLog(maxBound, 0, keyMask); + } + BigInteger points = BigInteger.valueOf(maxBound).add(BigInteger.ONE); + long ideal = points.shiftRight(1).sqrt().longValueExact() + 1; + int m = (int) Math.min(ideal, maxBabySteps); + tableCapacity(m); // refuses an unsupported table size up front (review F11) + long strideLength = 2L * m + 1; + // A search visits t up to bound + stride − 1, which must not overflow a long. + if (maxBound > Long.MAX_VALUE - strideLength) { + throw new IllegalArgumentException("bound " + maxBound + " is too close to Long.MAX_VALUE to search"); + } + BigInteger giants = points.add(BigInteger.valueOf(strideLength - 1)) + .divide(BigInteger.valueOf(strideLength)); + if (giants.compareTo(BigInteger.valueOf(maxGiantSteps)) > 0) { + throw new IllegalArgumentException( + "bound " + maxBound + " exceeds the search capacity of " + m + + " baby steps and " + maxGiantSteps + " giant steps"); + } + return new JubjubDiscreteLog(maxBound, m, keyMask); + } + + /** + * The open-addressing capacity for {@code babySteps + 1} entries at load factor at most 3/4: + * a power of two, at most {@code 2^30}. Computed in {@code long}, so it is exact for every + * {@code int} (review F11: {@code babySteps + 1} wrapped for {@code Integer.MAX_VALUE}). + * + * @throws IllegalArgumentException if the table would exceed {@code 2^30} slots + */ + static int tableCapacity(int babySteps) { + if (babySteps < 1) { + throw new IllegalArgumentException("babySteps must be positive"); + } + long entries = babySteps + 1L; + long wanted = Math.max(4L, entries * 4 / 3 + 1); + long capacity = Long.highestOneBit(wanted - 1) << 1; + if (capacity > (1L << 30)) { + throw new IllegalArgumentException("baby-step table too large: " + babySteps + " baby steps"); + } + return (int) capacity; + } + + /** The largest bound this table searches. */ + public long maxBound() { + return maxBound; + } + + /** + * Returns the unique {@code t ∈ [0, bound]} with {@code [t]·G = target}, or empty. + * + * @throws IllegalArgumentException if {@code bound} is negative or above {@link #maxBound()} + */ + public OptionalLong solve(JubjubPoint target, long bound) { + Objects.requireNonNull(target, "target"); + if (bound < 0 || bound > maxBound) { + throw new IllegalArgumentException( + "bound must be in [0, " + maxBound + "], got " + bound); + } + FastJubjubPoint m = FastJubjubPoint.of(target); + if (babySteps == 0 || bound < LINEAR_THRESHOLD) { + return linear(m, bound); + } + long giants = bound / stride + 1; // ⌈(bound + 1) / stride⌉, without overflow + FastJubjubPoint gamma = m.add(negCenter); + FastJubjubPoint[] chunk = new FastJubjubPoint[CHUNK]; + MontFr381[] zs = new MontFr381[CHUNK]; + MontFr381[] scratch = new MontFr381[CHUNK]; + for (long base = 0; base < giants; base += CHUNK) { + int count = (int) Math.min(CHUNK, giants - base); + for (int i = 0; i < count; i++) { + chunk[i] = gamma; + zs[i] = gamma.z; + gamma = gamma.add(negStride); + } + FastJubjubPoint.batchInvert(zs, count, scratch); + for (int i = 0; i < count; i++) { + long key = key(chunk[i].v.mul(zs[i])); + long center = babySteps + (base + i) * stride; + long found = probe(key, center, bound, m); + if (found >= 0) { + return OptionalLong.of(found); + } + } + } + return OptionalLong.empty(); + } + + private OptionalLong linear(FastJubjubPoint m, long bound) { + FastJubjubPoint running = FastJubjubPoint.IDENTITY; + for (long t = 0; t <= bound; t++) { + if (running.projectiveEquals(m)) { + return OptionalLong.of(t); + } + running = running.add(FastJubjubPoint.GENERATOR); + } + return OptionalLong.empty(); + } + + /** Tests every table entry with this key; returns the confirmed {@code t} or {@code −1}. */ + private long probe(long key, long center, long bound, FastJubjubPoint m) { + int index = slot(key); + while (values[index] != 0) { + if (keys[index] == key) { + long j = values[index] - 1L; + if (confirm(center + j, bound, m)) { + return center + j; + } + if (j != 0 && confirm(center - j, bound, m)) { + return center - j; + } + } + index = (index + 1) & mask; + } + return -1; + } + + private static boolean confirm(long t, long bound, FastJubjubPoint m) { + if (t < 0 || t > bound) { + return false; + } + return FastJubjubPoint.GENERATOR.scalarMulPublic(t).projectiveEquals(m); + } + + private void buildTable(int entries) { + FastJubjubPoint running = FastJubjubPoint.IDENTITY; + FastJubjubPoint[] chunk = new FastJubjubPoint[CHUNK]; + MontFr381[] zs = new MontFr381[CHUNK]; + MontFr381[] scratch = new MontFr381[CHUNK]; + for (int base = 0; base < entries; base += CHUNK) { + int count = Math.min(CHUNK, entries - base); + for (int i = 0; i < count; i++) { + chunk[i] = running; + zs[i] = running.z; + running = running.add(FastJubjubPoint.GENERATOR); + } + FastJubjubPoint.batchInvert(zs, count, scratch); + for (int i = 0; i < count; i++) { + insert(key(chunk[i].v.mul(zs[i])), base + i); + } + } + } + + private void insert(long key, int j) { + int index = slot(key); + while (values[index] != 0) { + index = (index + 1) & mask; + } + keys[index] = key; + values[index] = j + 1; // 0 marks an empty slot + } + + private int slot(long key) { + long h = key * 0x9E3779B97F4A7C15L; + return (int) (h ^ (h >>> 32)) & mask; + } + + /** The one key function shared by table build and lookup: a mix of {@code v}'s limbs. */ + private long key(MontFr381 affineV) { + long[] limbs = affineV.toLimbs(); + long k = limbs[0] ^ Long.rotateLeft(limbs[1], 21) ^ Long.rotateLeft(limbs[2], 42) + ^ Long.rotateLeft(limbs[3], 63); + return k & keyMask; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubPoint.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubPoint.java index e5b8ffce..e435cf0e 100644 --- a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubPoint.java +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/JubjubPoint.java @@ -1,5 +1,7 @@ package org.zeroj.circuit.lib.jubjub; +import org.zeroj.bls12381.field.MontFr381; + import java.math.BigInteger; import java.security.SecureRandom; import java.util.Arrays; @@ -504,7 +506,7 @@ public static JubjubPoint fromBytes(byte[] bytes) { } BigInteger uSquared = numerator.multiply(denominator.modInverse(BASE_FIELD_PRIME)).mod(BASE_FIELD_PRIME); - BigInteger uAff = modSqrt(uSquared, BASE_FIELD_PRIME); + BigInteger uAff = modSqrt(uSquared); if (uAff == null) { throw new IllegalArgumentException("Invalid encoded point (no square root for u²)"); } @@ -551,44 +553,55 @@ private static BigInteger fromLE(byte[] bytes) { return new BigInteger(be); } + /** The smallest quadratic non-residue mod {@code p} (checked in {@code JubjubDecodeSqrtTest}). */ + static final BigInteger TS_NON_RESIDUE = BigInteger.valueOf(5); + + /** + * Tonelli–Shanks constants for the Jubjub base field: {@code p − 1 = 2^E · S} with + * {@code S} odd. A holder class, so the constants are initialized on first use whatever the + * order of {@code JubjubPoint}'s own static fields. + */ + private static final class SqrtConstants { + static final int E = BASE_FIELD_PRIME.subtract(BigInteger.ONE).getLowestSetBit(); + static final BigInteger S = BASE_FIELD_PRIME.subtract(BigInteger.ONE).shiftRight(E); + static final BigInteger S_MINUS_ONE_HALF = S.subtract(BigInteger.ONE).shiftRight(1); + static final MontFr381 G = MontFr381.fromBigInteger(TS_NON_RESIDUE.modPow(S, BASE_FIELD_PRIME)); + + private SqrtConstants() {} + } + /** - * Tonelli–Shanks for a generic prime, returning one square root (or - * null if {@code a} is not a quadratic residue). For Jubjub's base - * field {@code p ≡ 1 (mod 4)}, so the {@code (p+1)/4} shortcut does - * not apply — use full Tonelli–Shanks. + * Tonelli–Shanks over the Jubjub base field (the BLS12-381 scalar field, so the arithmetic + * runs on {@link MontFr381}'s Montgomery limbs), returning one square root of {@code a}, or + * {@code null} if {@code a} is not a quadratic residue. {@code p ≡ 1 (mod 4)}, so the + * {@code (p+1)/4} shortcut does not apply. One exponentiation {@code w = a^((S−1)/2)} gives + * both {@code x = a·w = a^((S+1)/2)} and {@code b = x·w = a^S}. A non-residue is detected in + * the loop, where {@code b} has order exactly {@code 2^E}. It handles public encodings only. */ - private static BigInteger modSqrt(BigInteger a, BigInteger p) { + private static BigInteger modSqrt(BigInteger a) { if (a.signum() == 0) return BigInteger.ZERO; - if (a.modPow(p.subtract(BigInteger.ONE).shiftRight(1), p).equals(p.subtract(BigInteger.ONE))) { - return null; // non-residue - } - // Tonelli–Shanks - BigInteger s = p.subtract(BigInteger.ONE); - int e = 0; - while (!s.testBit(0)) { s = s.shiftRight(1); e++; } - // Find a non-residue n - BigInteger n = BigInteger.TWO; - BigInteger pMinusOneHalf = p.subtract(BigInteger.ONE).shiftRight(1); - while (!n.modPow(pMinusOneHalf, p).equals(p.subtract(BigInteger.ONE))) { - n = n.add(BigInteger.ONE); - } - BigInteger x = a.modPow(s.add(BigInteger.ONE).shiftRight(1), p); - BigInteger b = a.modPow(s, p); - BigInteger g = n.modPow(s, p); - int r = e; + MontFr381 am = MontFr381.fromBigInteger(a); + MontFr381 w = am.pow(SqrtConstants.S_MINUS_ONE_HALF); + MontFr381 x = am.mul(w); + MontFr381 b = x.mul(w); + MontFr381 g = SqrtConstants.G; + int r = SqrtConstants.E; while (true) { - BigInteger tmp = b; + MontFr381 tmp = b; int m = 0; - while (!tmp.equals(BigInteger.ONE)) { - tmp = tmp.multiply(tmp).mod(p); + while (!tmp.isOne()) { + tmp = tmp.square(); m++; if (m == r) return null; } - if (m == 0) return x; - BigInteger gs = g.modPow(BigInteger.TWO.modPow(BigInteger.valueOf(r - m - 1), p.subtract(BigInteger.ONE)), p); - g = gs.multiply(gs).mod(p); - x = x.multiply(gs).mod(p); - b = b.multiply(g).mod(p); + if (m == 0) return x.toBigInteger(); + MontFr381 gs = g; + for (int i = 0; i < r - m - 1; i++) { + gs = gs.square(); + } + g = gs.square(); + x = x.mul(gs); + b = b.mul(g); r = m; } } diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/NOfNKeyContext.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/NOfNKeyContext.java new file mode 100644 index 00000000..2375fe2b --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/NOfNKeyContext.java @@ -0,0 +1,78 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.io.ByteArrayOutputStream; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + +/** + * An n-of-n key context ({@code elgamal-jubjub-v1} §3.2): the joint key {@code Σ PK_j} and its + * possession-verified shares, sorted by encoding. Decrypting needs one verified share from + * every registered trustee. A single key is the case {@code n = 1}. + * + *

Built only by {@link ElGamalPublicKey#aggregate} or {@link #singleKey}. Two contexts are + * equal iff their joint keys and sorted share encodings are equal. + */ +public final class NOfNKeyContext implements ElGamalKeyContext { + + private final ElGamalPublicKey jointKey; + private final List shares; + private final byte[] identity; + + NOfNKeyContext(ElGamalPublicKey jointKey, List sortedShares) { + this.jointKey = jointKey; + this.shares = List.copyOf(sortedShares); + ByteArrayOutputStream out = new ByteArrayOutputStream(32 * (shares.size() + 1)); + out.writeBytes(jointKey.encodingRef()); + for (VerifiedKeyShare share : shares) { + out.writeBytes(share.publicKey().encodingRef()); + } + this.identity = out.toByteArray(); + } + + /** A single-key context for a secret this party holds. */ + public static NOfNKeyContext singleKey(ElGamalSecretKey secretKey) { + return ElGamalPublicKey.aggregate(List.of(VerifiedKeyShare.fromSecret(secretKey))); + } + + @Override + public ElGamalPublicKey jointKey() { + return jointKey; + } + + /** The registered shares, sorted by encoding. */ + public List shares() { + return shares; + } + + /** The number of registered trustees. */ + public int size() { + return shares.size(); + } + + /** The index of a registered share's key, or {@code −1}. */ + int indexOf(ElGamalPublicKey key) { + Objects.requireNonNull(key, "key"); + for (int i = 0; i < shares.size(); i++) { + if (shares.get(i).publicKey().equals(key)) { + return i; + } + } + return -1; + } + + @Override + public boolean equals(Object o) { + return o instanceof NOfNKeyContext other && Arrays.equals(identity, other.identity); + } + + @Override + public int hashCode() { + return Arrays.hashCode(identity); + } + + @Override + public String toString() { + return "NOfNKeyContext{jointKey=" + jointKey + ", trustees=" + shares.size() + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/RawElGamalCiphertext.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/RawElGamalCiphertext.java new file mode 100644 index 00000000..0fd0778a --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/RawElGamalCiphertext.java @@ -0,0 +1,123 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.COMPRESSED_POINT_BYTES; + +/** + * A decoded {@code elgamal-jubjub-v1} ciphertext {@code (A, B)} with no key and no + * plaintext bound (spec §7.2, ADR-0052 D2 raw layer). + * + *

Its points are canonical, on the curve and in the prime-order subgroup; that is all a + * decoding can establish. Points that decode correctly say nothing about the range of the + * message or about which key encrypted it. To add or decrypt on the safe path, admit the + * ciphertext with {@link ElGamal#admit}. + * + *

{@link #add} and {@link #unmask} are raw-layer conveniences. Their precondition + * (everything under one key, honest shares) is the caller's, and they give no guarantee + * against a wrapped sum, a mixed key or a malicious trustee. + */ +public final class RawElGamalCiphertext { + + private final JubjubPoint handle; + private final JubjubPoint blinded; + + /** Both points must already be validated subgroup points. */ + RawElGamalCiphertext(JubjubPoint handle, JubjubPoint blinded) { + this.handle = handle.normalized(); + this.blinded = blinded.normalized(); + } + + /** + * Decodes 64 bytes (spec §7.2): {@code encode(A) ‖ encode(B)}, each canonical and in the + * prime-order subgroup. The identity is a valid {@code A} or {@code B}. + * + * @throws IllegalArgumentException on any other input + */ + public static RawElGamalCiphertext decode(byte[] encoded) { + Objects.requireNonNull(encoded, "encoded"); + if (encoded.length != ElGamalEncodings.CIPHERTEXT_BYTES) { + throw new IllegalArgumentException("ciphertext must be " + + ElGamalEncodings.CIPHERTEXT_BYTES + " bytes, got " + encoded.length); + } + return new RawElGamalCiphertext( + ElGamalEncodings.decodeSubgroupPoint(encoded, 0, "ciphertext handle A"), + ElGamalEncodings.decodeSubgroupPoint(encoded, COMPRESSED_POINT_BYTES, "ciphertext B")); + } + + /** + * Builds a ciphertext from affine integers, for example a ledger datum (spec §7.4). Each + * coordinate must be canonical in {@code [0, p)} without reduction, and each point on the + * curve and in the subgroup. + */ + public static RawElGamalCiphertext fromAffine( + BigInteger handleU, BigInteger handleV, BigInteger blindedU, BigInteger blindedV) { + return new RawElGamalCiphertext( + ElGamalEncodings.affineSubgroupPoint(handleU, handleV, "ciphertext handle A"), + ElGamalEncodings.affineSubgroupPoint(blindedU, blindedV, "ciphertext B")); + } + + /** Builds a ciphertext from points, requiring both to be in the prime-order subgroup. */ + public static RawElGamalCiphertext of(JubjubPoint handle, JubjubPoint blinded) { + return new RawElGamalCiphertext( + ElGamalEncodings.requireSubgroup(handle, "ciphertext handle A"), + ElGamalEncodings.requireSubgroup(blinded, "ciphertext B")); + } + + /** {@code A}. */ + public JubjubPoint handle() { + return handle; + } + + /** {@code B}. */ + public JubjubPoint blinded() { + return blinded; + } + + /** The 64-byte encoding. */ + public byte[] encode() { + byte[] out = new byte[ElGamalEncodings.CIPHERTEXT_BYTES]; + System.arraycopy(handle.toBytes(), 0, out, 0, COMPRESSED_POINT_BYTES); + System.arraycopy(blinded.toBytes(), 0, out, COMPRESSED_POINT_BYTES, COMPRESSED_POINT_BYTES); + return out; + } + + /** Public inputs {@code A.u, A.v, B.u, B.v} (spec §8). */ + public List publicInputs() { + return ElGamalEncodings.affine(handle, blinded); + } + + /** + * Component-wise sum. Raw layer: no guarantee. The result is meaningful only if both + * ciphertexts are under the same key, and it carries no bound. + */ + public RawElGamalCiphertext add(RawElGamalCiphertext other) { + Objects.requireNonNull(other, "other"); + return new RawElGamalCiphertext( + FastJubjubPoint.of(handle).add(FastJubjubPoint.of(other.handle)).toJubjubPoint(), + FastJubjubPoint.of(blinded).add(FastJubjubPoint.of(other.blinded)).toJubjubPoint()); + } + + /** + * {@code B − Σ shares}. Raw layer: no guarantee against a malicious trustee, who can + * choose the result. Use {@link ElGamal#decrypt} with verified shares instead. + */ + public static JubjubPoint unmask(JubjubPoint blinded, List shares) { + Objects.requireNonNull(blinded, "blinded"); + Objects.requireNonNull(shares, "shares"); + List terms = new ArrayList<>(shares.size() + 1); + terms.add(blinded); + for (JubjubPoint share : shares) { + terms.add(Objects.requireNonNull(share, "share").negate()); + } + return FastJubjubPoint.sum(terms); + } + + @Override + public String toString() { + return "RawElGamalCiphertext{A=" + handle + ", B=" + blinded + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdKeyContext.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdKeyContext.java new file mode 100644 index 00000000..9f3b1d3a --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdKeyContext.java @@ -0,0 +1,227 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.io.ByteArrayOutputStream; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.SortedSet; +import java.util.TreeSet; + +/** + * A t-of-n key context from {@code elgamal-jubjub-threshold-v1} key generation (spec §9; + * ADR-0053 D4, D4a, D5a). It consists of: + *

    + *
  • the configuration;
  • + *
  • the qualified set {@code QUAL};
  • + *
  • the joint key {@code y} (never the identity);
  • + *
  • every participant's verification key {@code Y_j}.
  • + *
+ * + *

It is created in exactly two ways (invariant I7): + *

    + *
  • {@link #admit}: authenticated evidence of a complete run, with at least {@code t + 1} + * matching confirmations;
  • + *
  • {@link DkgParticipant#result()}: a participant's own run.
  • + *
+ * Recomputing a transcript never creates one. + * + *

Share rules (D5a), which differ from n-of-n. + *

    + *
  • Shares are keyed by identifier.
  • + *
  • A {@code Y_j} may be the identity, and two participants may have equal {@code Y_j}. + * Both occur in valid runs, so neither is rejected.
  • + *
  • No proof of possession is used: the VSS checks and admission take its place.
  • + *
  • Single-key decryption is not defined, because no full secret exists.
  • + *
+ * + *

Two contexts are equal iff their sessions, {@code QUAL}, joint keys and verification keys + * are equal, so contexts from different attempts never compare equal (I16). + */ +public final class ThresholdKeyContext implements ElGamalKeyContext { + + private final DkgConfig config; + private final SortedSet qual; + private final ElGamalPublicKey jointKey; + private final List verificationKeys; + private final byte[] transcriptDigest; + private final byte[] identity; + + ThresholdKeyContext(DkgConfig config, SortedSet qual, JubjubPoint jointKey, + List verificationKeys, byte[] transcriptDigest) { + this.config = config; + this.qual = Collections.unmodifiableSortedSet(new TreeSet<>(qual)); + this.jointKey = new ElGamalPublicKey(ElGamalEncodings.requireKeyPoint(jointKey, "joint key")); + List normalized = new ArrayList<>(verificationKeys.size()); + for (JubjubPoint y : verificationKeys) normalized.add(y.normalized()); + this.verificationKeys = List.copyOf(normalized); + this.transcriptDigest = transcriptDigest.clone(); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + out.writeBytes(config.sessionRef()); + for (int i : this.qual) out.write(i); + out.write(0); + out.writeBytes(this.jointKey.encodingRef()); + for (JubjubPoint y : this.verificationKeys) out.writeBytes(y.toBytes()); + this.identity = out.toByteArray(); + } + + /** + * Admits a key generation from authenticated evidence (spec §8). The library: + *

    + *
  1. derives the session from {@code config};
  2. + *
  3. decodes every transcript message, which checks it is well-formed for this session, + * and refuses a {@code SHARE} or {@code CONFIRMATION} among them: the transcript is + * built from delivered broadcast sets, which never hold either kind. Byte-identical + * duplicates count once;
  4. + *
  5. only then authenticates each transcript message under its sender's roster key;
  6. + *
  7. checks each round's closure, rounds 1–6;
  8. + *
  9. recomputes the outputs and the transcript digest;
  10. + *
  11. checks round 7's closure (the confirmation set), then requires at least {@code t + 1} + * distinct qualified participants whose authenticated confirmations equal the bytes it + * builds, and refuses if {@code t + 1} or more confirmed something else (abort A7's + * condition: an honest participant saw another board). Up to {@code t} differing + * confirmations may be lies and do not veto. A sender that equivocated counts as + * differing only. Malformed, foreign-session, non-confirmation and unauthenticated + * confirmations are ignored.
  12. + *
+ * + * @param config the configuration, from a trusted source + * @param transcript every broadcast message of rounds 1–6, with authenticators + * @param roundClosure round number (1–7) mapped to the closure evidence for that round + * @param confirmations round-7 confirmations, with authenticators + * @param verifier the application's authenticity and closure checks + * @throws IllegalArgumentException on a malformed, misplaced, unauthenticated or + * unclosed transcript, an unclosed confirmation set, + * {@code t + 1} or more differing confirmations, or + * fewer than {@code t + 1} matching ones + * @throws FaultAssumptionViolatedException if the recomputation hits abort A1, A3, A4 or A5 + */ + public static ThresholdKeyContext admit(DkgConfig config, List transcript, + Map roundClosure, + List confirmations, + DkgAdmissionVerifier verifier) { + Objects.requireNonNull(config, "config"); + Objects.requireNonNull(transcript, "transcript"); + Objects.requireNonNull(roundClosure, "roundClosure"); + Objects.requireNonNull(confirmations, "confirmations"); + Objects.requireNonNull(verifier, "verifier"); + // Snapshots: the verifier runs application code, which must not change what is admitted. + transcript = List.copyOf(transcript); + confirmations = List.copyOf(confirmations); + // Step 2 for every message before step 3: nothing malformed reaches the authenticator. + List decoded = new ArrayList<>(transcript.size()); + for (AuthenticatedDkgMessage authenticated : transcript) { + DkgMessage m = DkgMessage.decode(config, authenticated.message()); + if (m.kind() == DkgMessage.Kind.SHARE || m.kind() == DkgMessage.Kind.CONFIRMATION) { + throw new IllegalArgumentException(m.kind() + " messages are not part of the transcript"); + } + decoded.add(m); + } + DkgRound[] rounds = DkgTranscript.emptyRounds(); + for (int i = 0; i < decoded.size(); i++) { + DkgMessage m = decoded.get(i); + if (!verifier.authenticate(m.sender(), config.rosterKey(m.sender()), m.encode(), + transcript.get(i).authenticator())) { + throw new IllegalArgumentException("message from participant " + m.sender() + " failed authentication"); + } + rounds[m.round()].add(m); + } + DkgTranscript record = new DkgTranscript(config, rounds); + for (int r = 1; r <= 6; r++) { + if (!verifier.roundClosed(config, r, record.roundMessages(r), roundClosure.get(r))) { + throw new IllegalArgumentException("round " + r + " is not evidenced as closed and complete"); + } + } + DkgTranscript.DkgPublicOutcome outcome = record.recompute(); + byte[] digest = record.digest(); + SortedSet matching = new TreeSet<>(); + SortedSet differing = new TreeSet<>(); + DkgRound round7 = new DkgRound(7); + for (AuthenticatedDkgMessage authenticated : confirmations) { + byte[] bytes = authenticated.message(); + DkgMessage m; + try { + m = DkgMessage.decode(config, bytes); + } catch (IllegalArgumentException malformedOrStale) { + continue; // malformed, or for another session: ignored, never a veto + } + if (m.kind() != DkgMessage.Kind.CONFIRMATION) { + continue; + } + if (!verifier.authenticate(m.sender(), config.rosterKey(m.sender()), bytes, authenticated.authenticator())) { + continue; + } + round7.add(m); + if (!outcome.qual().contains(m.sender())) { + continue; + } + byte[] expected = DkgMessage.confirmation(config, m.sender(), digest, outcome.jointKey()).bytesRef(); + (Arrays.equals(expected, m.bytesRef()) ? matching : differing).add(m.sender()); + } + // Round 7 must be evidenced complete too, so differing confirmations cannot be left out. + List confirmationSet = new ArrayList<>(); + for (DkgMessage m : round7.canonical()) confirmationSet.add(m.encode()); + if (!verifier.roundClosed(config, 7, confirmationSet, roundClosure.get(7))) { + throw new IllegalArgumentException("round 7 (confirmations) is not evidenced as closed and complete"); + } + matching.removeAll(differing); // an equivocating sender counts as differing only + if (differing.size() >= config.t() + 1) { + throw new IllegalArgumentException(differing.size() + + " qualified participants confirmed a different transcript or key; the broadcast lacked agreement"); + } + if (matching.size() < config.t() + 1) { + throw new IllegalArgumentException("admission needs authenticated confirmations from at least t + 1 = " + + (config.t() + 1) + " qualified participants, got " + matching.size()); + } + return new ThresholdKeyContext(config, outcome.qual(), outcome.jointKey(), outcome.verificationKeys(), digest); + } + + @Override + public ElGamalPublicKey jointKey() { + return jointKey; + } + + /** The configuration. */ + public DkgConfig config() { + return config; + } + + /** {@code t}: decryption needs {@code t + 1} verified shares. */ + public int threshold() { + return config.t(); + } + + /** The qualified participants, who may contribute decryption shares. */ + public SortedSet qual() { + return qual; + } + + /** {@code Y_j}, possibly the identity. */ + public JubjubPoint verificationKey(int id) { + config.requireParticipant(id); + return verificationKeys.get(id - 1); + } + + /** The digest of the transcript this context was built from. */ + public byte[] transcriptDigest() { + return transcriptDigest.clone(); + } + + @Override + public boolean equals(Object o) { + return o instanceof ThresholdKeyContext other && Arrays.equals(identity, other.identity); + } + + @Override + public int hashCode() { + return Arrays.hashCode(identity); + } + + @Override + public String toString() { + return "ThresholdKeyContext{t=" + config.t() + ", n=" + config.n() + ", qual=" + qual + + ", jointKey=" + jointKey + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdKeyShare.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdKeyShare.java new file mode 100644 index 00000000..903af9fc --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdKeyShare.java @@ -0,0 +1,75 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.Objects; + +/** + * A participant's result of threshold key generation: its identifier, its secret share + * {@code x_j}, and the {@link ThresholdKeyContext} of the run. {@code [x_j]·G} equals the + * context's verification key {@code Y_j}; the participant checked that before producing this + * object (abort A6). + * + *

Secret. {@code x_j} is compatibility/offline class (ADR-0039 §3.1). It may be zero, + * with {@code Y_j = O}, in a valid run. {@link #toString()} redacts it. + */ +public final class ThresholdKeyShare { + + private final ThresholdKeyContext context; + private final int id; + private final BigInteger secret; + + ThresholdKeyShare(ThresholdKeyContext context, int id, BigInteger secret) { + this.context = context; + this.id = id; + this.secret = secret; + } + + /** + * Restores a participant's share, for example from secure storage between key generation and + * the tally. Checks that {@code id} is in the context's {@code QUAL} and that + * {@code [x]·G = Y_id}, on the blinded schedule. + * + * @throws IllegalArgumentException if either check fails or {@code x} is not in {@code [0, l)} + */ + public static ThresholdKeyShare restore(ThresholdKeyContext context, int id, BigInteger x) { + Objects.requireNonNull(context, "context"); + Objects.requireNonNull(x, "x"); + if (!context.qual().contains(id)) { + throw new IllegalArgumentException("participant " + id + " is not qualified in this context"); + } + if (x.signum() < 0 || x.compareTo(JubjubCurve.SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException("the share must satisfy 0 <= x < l"); + } + if (!JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(x).projectiveEquals(context.verificationKey(id))) { + throw new IllegalArgumentException("the share does not match participant " + id + "'s verification key"); + } + return new ThresholdKeyShare(context, id, x); + } + + /** The key context. */ + public ThresholdKeyContext context() { + return context; + } + + /** This participant's identifier. */ + public int id() { + return id; + } + + /** + * {@code x_j}, for building a decryption-share proof witness only (spec §9). Handle it + * offline or in an isolated process. + */ + public BigInteger secretScalar() { + return secret; + } + + BigInteger secret() { + return secret; + } + + @Override + public String toString() { + return "ThresholdKeyShare{id=" + id + ", context=" + context + ", secret=}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdMath.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdMath.java new file mode 100644 index 00000000..aad1a32b --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdMath.java @@ -0,0 +1,123 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * Scalar and point helpers of {@code elgamal-jubjub-threshold-v1} (spec §3, §5, §9): polynomial + * evaluation and interpolation mod {@code l}, Lagrange coefficients, and evaluation "in the + * exponent" of a commitment vector. + * + *

The scalar helpers run variable-time {@link BigInteger} arithmetic. When their inputs are + * secret (dealing, a participant's own shares), they are compatibility/offline class + * (ADR-0039 §3.1). {@link #evaluateInExponent} is for public commitment vectors only. + */ +final class ThresholdMath { + + private ThresholdMath() {} + + /** {@code Σ_k c_k·x^k mod l}, by Horner's rule. */ + static BigInteger evaluate(BigInteger[] coefficients, long x) { + BigInteger point = BigInteger.valueOf(x); + BigInteger acc = BigInteger.ZERO; + for (int k = coefficients.length - 1; k >= 0; k--) { + acc = acc.multiply(point).add(coefficients[k]).mod(SUBGROUP_ORDER); + } + return acc; + } + + /** + * {@code Σ_k [x^k]·C_k} for public points, by Horner's rule with the small multiplier + * {@code x}: about {@code t} cheap multiplications instead of {@code t + 1} full ones. + */ + static JubjubPoint evaluateInExponent(List commitments, long x) { + return evaluateInExponentFast(commitments, x).toJubjubPoint(); + } + + static FastJubjubPoint evaluateInExponentFast(List commitments, long x) { + FastJubjubPoint acc = FastJubjubPoint.IDENTITY; + for (int k = commitments.size() - 1; k >= 0; k--) { + acc = acc.scalarMulPublic(x).add(FastJubjubPoint.of(commitments.get(k))); + } + return acc; + } + + /** + * Lagrange coefficients at {@code e} for the identifiers {@code ids}: + * {@code L_j(e) = Π_{m ≠ j} (e − m)·(j − m)⁻¹ mod l}. At {@code e = 0} these are the + * coefficients {@code λ_j} that recombine a secret. + * + * @throws IllegalArgumentException if the identifiers are not distinct and non-zero + */ + static BigInteger[] lagrangeAt(int[] ids, long e) { + requireDistinctPositive(ids); + BigInteger at = BigInteger.valueOf(e); + BigInteger[] out = new BigInteger[ids.length]; + for (int a = 0; a < ids.length; a++) { + BigInteger j = BigInteger.valueOf(ids[a]); + BigInteger numerator = BigInteger.ONE; + BigInteger denominator = BigInteger.ONE; + for (int b = 0; b < ids.length; b++) { + if (a == b) continue; + BigInteger m = BigInteger.valueOf(ids[b]); + numerator = numerator.multiply(at.subtract(m)).mod(SUBGROUP_ORDER); + denominator = denominator.multiply(j.subtract(m)).mod(SUBGROUP_ORDER); + } + out[a] = numerator.multiply(denominator.modInverse(SUBGROUP_ORDER)).mod(SUBGROUP_ORDER); + } + return out; + } + + /** + * The coefficients {@code c_0 … c_{d}} of the unique polynomial of degree at most + * {@code d = xs.length − 1} through the points {@code (xs[i], ys[i])}, mod {@code l}. + */ + static BigInteger[] interpolate(int[] xs, BigInteger[] ys) { + requireDistinctPositive(xs); + if (ys.length != xs.length) { + throw new IllegalArgumentException("interpolation needs one value per point"); + } + int size = xs.length; + BigInteger[] result = new BigInteger[size]; + Arrays.fill(result, BigInteger.ZERO); + for (int a = 0; a < size; a++) { + // Basis polynomial Π_{b≠a} (z − x_b)/(x_a − x_b), expanded into coefficients. + BigInteger[] basis = new BigInteger[size]; + Arrays.fill(basis, BigInteger.ZERO); + basis[0] = BigInteger.ONE; + int degree = 0; + BigInteger denominator = BigInteger.ONE; + BigInteger xa = BigInteger.valueOf(xs[a]); + for (int b = 0; b < size; b++) { + if (a == b) continue; + BigInteger xb = BigInteger.valueOf(xs[b]); + for (int k = degree + 1; k >= 1; k--) { + basis[k] = basis[k - 1].subtract(basis[k].multiply(xb)).mod(SUBGROUP_ORDER); + } + basis[0] = basis[0].multiply(xb).negate().mod(SUBGROUP_ORDER); + degree++; + denominator = denominator.multiply(xa.subtract(xb)).mod(SUBGROUP_ORDER); + } + BigInteger scale = ys[a].multiply(denominator.modInverse(SUBGROUP_ORDER)).mod(SUBGROUP_ORDER); + for (int k = 0; k < size; k++) { + result[k] = result[k].add(basis[k].multiply(scale)).mod(SUBGROUP_ORDER); + } + } + return result; + } + + private static void requireDistinctPositive(int[] ids) { + Objects.requireNonNull(ids, "ids"); + int[] sorted = ids.clone(); + Arrays.sort(sorted); + for (int i = 0; i < sorted.length; i++) { + if (sorted[i] <= 0 || (i > 0 && sorted[i] == sorted[i - 1])) { + throw new IllegalArgumentException("identifiers must be distinct and positive"); + } + } + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdVss.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdVss.java new file mode 100644 index 00000000..ea07699e --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/ThresholdVss.java @@ -0,0 +1,182 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.SortedMap; + +import static org.zeroj.circuit.lib.jubjub.JubjubCurve.SUBGROUP_ORDER; + +/** + * Pedersen-VSS and Feldman-VSS of {@code elgamal-jubjub-threshold-v1} §3 and §5 ([GJKR07] + * Fig. 2): dealing, the share checks (4) and (5), and reconstruction from checked pairs. + * + *

Secret and public paths. Dealing and the checks of a pair a participant received + * privately multiply secrets, so their left-hand sides use the blinded best-effort schedule + * (compatibility/offline class, ADR-0039 §3.1). Pairs that were broadcast (complaint answers, + * extraction complaints, reconstruction pairs) are public and use the fast path. Right-hand + * sides depend only on broadcast commitments and are always public. + */ +final class ThresholdVss { + + private ThresholdVss() {} + + /** A dealer's polynomials, commitments and extraction values. The coefficients are secret. */ + static final class Dealing { + private final BigInteger[] a; + private final BigInteger[] b; + private final List commitments; + private final List extraction; + + private Dealing(BigInteger[] a, BigInteger[] b, List commitments, List extraction) { + this.a = a; + this.b = b; + this.commitments = commitments; + this.extraction = extraction; + } + + /** {@code C_ik = [a_ik]·G + [b_ik]·H}. */ + List commitments() { + return commitments; + } + + /** {@code A_ik = [a_ik]·G}. */ + List extraction() { + return extraction; + } + + /** {@code s_ij = f_i(j)}. */ + BigInteger share(int j) { + return ThresholdMath.evaluate(a, j); + } + + /** {@code s'_ij = f'_i(j)}. */ + BigInteger sharePrime(int j) { + return ThresholdMath.evaluate(b, j); + } + + int degree() { + return a.length - 1; + } + } + + /** Samples a dealing of degree {@code t} (spec §3: 64 bytes reduced mod {@code l} per coefficient). */ + static Dealing deal(int t, SecureRandom random) { + Objects.requireNonNull(random, "random"); + BigInteger[] a = new BigInteger[t + 1]; + BigInteger[] b = new BigInteger[t + 1]; + for (int k = 0; k <= t; k++) { + a[k] = ElGamal.sample(random); + b[k] = ElGamal.sample(random); + } + return dealWithCoefficients(a, b); + } + + /** A dealing from fixed coefficients. Package-private: test fixtures and vectors only. */ + static Dealing dealWithCoefficients(BigInteger[] a, BigInteger[] b) { + if (a.length == 0 || a.length != b.length) { + throw new IllegalArgumentException("coefficient vectors must be non-empty and equal in length"); + } + BigInteger[] ac = new BigInteger[a.length]; + BigInteger[] bc = new BigInteger[b.length]; + List commitments = new ArrayList<>(a.length); + List extraction = new ArrayList<>(a.length); + for (int k = 0; k < a.length; k++) { + ac[k] = canonical(a[k]); + bc[k] = canonical(b[k]); + JubjubPoint aG = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(ac[k]).normalized(); + JubjubPoint bH = PedersenCommitment.H.scalarMulSecretBlindedBestEffort(bc[k]); + extraction.add(aG); + commitments.add(aG.add(bH).normalized()); + } + return new Dealing(ac, bc, List.copyOf(commitments), List.copyOf(extraction)); + } + + /** Equation (4) for a pair received privately: secret left-hand side. */ + static boolean checkPedersenPrivate(List commitments, int j, BigInteger s, BigInteger sp) { + JubjubPoint left = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(canonical(s)) + .add(PedersenCommitment.H.scalarMulSecretBlindedBestEffort(canonical(sp))); + return FastJubjubPoint.of(left).projectiveEquals(ThresholdMath.evaluateInExponentFast(commitments, j)); + } + + /** Equation (4) for a broadcast pair: public left-hand side. */ + static boolean checkPedersenPublic(List commitments, int j, BigInteger s, BigInteger sp) { + FastJubjubPoint left = FastJubjubPoint.GENERATOR.scalarMulPublic(canonical(s)) + .add(FastJubjubPoint.of(PedersenCommitment.H).scalarMulPublic(canonical(sp))); + return left.projectiveEquals(ThresholdMath.evaluateInExponentFast(commitments, j)); + } + + /** Equation (5) for a pair received privately: secret left-hand side. */ + static boolean checkFeldmanPrivate(List extraction, int j, BigInteger s) { + JubjubPoint left = JubjubPoint.SUBGROUP_GENERATOR.scalarMulSecretBlindedBestEffort(canonical(s)); + return FastJubjubPoint.of(left).projectiveEquals(ThresholdMath.evaluateInExponentFast(extraction, j)); + } + + /** Equation (5) for a broadcast pair: public left-hand side. */ + static boolean checkFeldmanPublic(List extraction, int j, BigInteger s) { + return FastJubjubPoint.GENERATOR.scalarMulPublic(canonical(s)) + .projectiveEquals(ThresholdMath.evaluateInExponentFast(extraction, j)); + } + + /** The result of reconstructing a dealer: its coefficients and recomputed extraction values. */ + record Reconstructed(BigInteger[] a, BigInteger[] b, List extraction) {} + + /** + * Reconstructs a marked dealer from broadcast pairs that satisfy (4) (spec §5, R6): the + * {@code t + 1} pairs with the lowest holders define {@code f_i} and {@code f'_i}. Every other + * valid pair must lie on them, and the interpolated coefficients must reproduce the + * commitments. + * + * @param validPairs holder → {@code (s, s')}, already checked against (4) + * @throws FaultAssumptionViolatedException on fewer than {@code t + 1} pairs (A3) or any + * inconsistency (A4) + */ + static Reconstructed reconstruct(List commitments, int t, SortedMap validPairs) { + if (validPairs.size() < t + 1) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.TOO_FEW_RECONSTRUCTION_PAIRS, + validPairs.size() + " valid pairs, " + (t + 1) + " needed"); + } + int[] xs = new int[t + 1]; + BigInteger[] ys = new BigInteger[t + 1]; + BigInteger[] yps = new BigInteger[t + 1]; + int index = 0; + for (Map.Entry e : validPairs.entrySet()) { + if (index == t + 1) break; + xs[index] = e.getKey(); + ys[index] = e.getValue()[0]; + yps[index] = e.getValue()[1]; + index++; + } + BigInteger[] a = ThresholdMath.interpolate(xs, ys); + BigInteger[] b = ThresholdMath.interpolate(xs, yps); + for (Map.Entry e : validPairs.entrySet()) { + if (!ThresholdMath.evaluate(a, e.getKey()).equals(canonical(e.getValue()[0])) + || !ThresholdMath.evaluate(b, e.getKey()).equals(canonical(e.getValue()[1]))) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.INCONSISTENT_RECONSTRUCTION, + "pair of holder " + e.getKey() + " is not on the reconstructed polynomial"); + } + } + List extraction = new ArrayList<>(t + 1); + for (int k = 0; k <= t; k++) { + FastJubjubPoint aG = FastJubjubPoint.GENERATOR.scalarMulPublic(a[k]); + FastJubjubPoint bH = FastJubjubPoint.of(PedersenCommitment.H).scalarMulPublic(b[k]); + if (!aG.add(bH).projectiveEquals(FastJubjubPoint.of(commitments.get(k)))) { + throw new FaultAssumptionViolatedException(FaultAssumptionViolatedException.Reason.INCONSISTENT_RECONSTRUCTION, + "reconstructed coefficient " + k + " does not match its commitment"); + } + extraction.add(aG.toJubjubPoint()); + } + return new Reconstructed(a, b, List.copyOf(extraction)); + } + + private static BigInteger canonical(BigInteger x) { + Objects.requireNonNull(x, "scalar"); + if (x.signum() < 0 || x.compareTo(SUBGROUP_ORDER) >= 0) { + throw new IllegalArgumentException("scalar must satisfy 0 <= x < l"); + } + return x; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/VerifiedDecryptionShare.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/VerifiedDecryptionShare.java new file mode 100644 index 00000000..69ad5b9e --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/VerifiedDecryptionShare.java @@ -0,0 +1,140 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.util.Objects; + +/** + * A decryption share {@code D_j = [sk_j]·A} that is known to be correct for one admitted + * ciphertext and one registered trustee ({@code elgamal-jubjub-v1} §10.2; ADR-0052 D2b, + * invariant I14). + * + *

Obtained only by: + *

    + *
  • {@link #verify}: a caller-supplied verifier accepted the DLEQ statement the library + * built, with {@code X} = the ciphertext's handle and {@code P} = the trustee's key as + * registered in the ciphertext's context;
  • + *
  • {@link ElGamal#decryptionShare}: computed locally from a secret whose public key is + * registered.
  • + *
+ * An unverified share lets a trustee who saw the others choose the decrypted result. + */ +public final class VerifiedDecryptionShare { + + private final ElGamalCiphertext ciphertext; + private final int trustee; + private final JubjubPoint share; + private final DleqStatement statement; + + VerifiedDecryptionShare(ElGamalCiphertext ciphertext, int trustee, JubjubPoint share, DleqStatement statement) { + this.ciphertext = ciphertext; + this.trustee = trustee; + this.share = share.normalized(); + this.statement = statement; + } + + /** + * Verifies a claimed share from an n-of-n trustee. + * + * @param ciphertext the admitted ciphertext the share is for + * @param trusteeKey the trustee's public key; it must be registered in the ciphertext's + * context, which supplies {@code P} + * @param share the claimed {@code D_j}, as 32 bytes + * @param verifier checks a proof of the statement the library builds + * @throws IllegalArgumentException if the trustee is not registered, the share does not + * decode to a subgroup point, or the verifier rejects the statement + */ + public static VerifiedDecryptionShare verify( + ElGamalCiphertext ciphertext, ElGamalPublicKey trusteeKey, byte[] share, + DleqStatementVerifier verifier) { + return verify(ciphertext, trusteeKey, + ElGamalEncodings.decodeSubgroupPoint(share, "decryption share"), verifier); + } + + /** As {@link #verify(ElGamalCiphertext, ElGamalPublicKey, byte[], DleqStatementVerifier)}. */ + public static VerifiedDecryptionShare verify( + ElGamalCiphertext ciphertext, ElGamalPublicKey trusteeKey, JubjubPoint share, + DleqStatementVerifier verifier) { + Objects.requireNonNull(ciphertext, "ciphertext"); + Objects.requireNonNull(trusteeKey, "trusteeKey"); + Objects.requireNonNull(verifier, "verifier"); + if (!(ciphertext.context() instanceof NOfNKeyContext context)) { + throw new IllegalArgumentException( + "an n-of-n trustee key cannot verify a share for this context"); + } + int index = context.indexOf(trusteeKey); + if (index < 0) { + throw new IllegalArgumentException("trustee key is not registered in the ciphertext's context"); + } + JubjubPoint d = ElGamalEncodings.requireSubgroup(share, "decryption share"); + JubjubPoint registered = context.shares().get(index).publicKey().point(); + DleqStatement statement = DleqStatement.decryptionShare(ciphertext.handle(), registered, d); + if (!verifier.verify(statement)) { + throw new IllegalArgumentException("decryption-share proof rejected"); + } + return new VerifiedDecryptionShare(ciphertext, index, d, statement); + } + + /** + * Verifies a claimed share from threshold participant {@code id} (spec §9). {@code P} is the + * identifier's verification key {@code Y_j} from the ciphertext's context, which may be the + * identity; so may {@code D}. + * + * @throws IllegalArgumentException if the ciphertext is not under a threshold context, the + * participant is not in {@code QUAL}, the share does not decode to a subgroup point, + * or the verifier rejects the statement + */ + public static VerifiedDecryptionShare verify(ElGamalCiphertext ciphertext, int id, byte[] share, + DleqStatementVerifier verifier) { + return verify(ciphertext, id, ElGamalEncodings.decodeSubgroupPoint(share, "decryption share"), verifier); + } + + /** As {@link #verify(ElGamalCiphertext, int, byte[], DleqStatementVerifier)}. */ + public static VerifiedDecryptionShare verify(ElGamalCiphertext ciphertext, int id, JubjubPoint share, + DleqStatementVerifier verifier) { + Objects.requireNonNull(ciphertext, "ciphertext"); + Objects.requireNonNull(verifier, "verifier"); + if (!(ciphertext.context() instanceof ThresholdKeyContext context)) { + throw new IllegalArgumentException("a participant identifier cannot verify a share for this context"); + } + if (!context.qual().contains(id)) { + throw new IllegalArgumentException("participant " + id + " is not qualified"); + } + JubjubPoint d = ElGamalEncodings.requireSubgroup(share, "decryption share"); + DleqStatement statement = DleqStatement.decryptionShare(ciphertext.handle(), context.verificationKey(id), d); + if (!verifier.verify(statement)) { + throw new IllegalArgumentException("decryption-share proof rejected"); + } + return new VerifiedDecryptionShare(ciphertext, id, d, statement); + } + + /** {@code D_j}. */ + public JubjubPoint share() { + return share; + } + + /** The 32-byte encoding of {@code D_j}, for publication. */ + public byte[] encode() { + return share.toBytes(); + } + + /** + * The DLEQ statement {@code (X = A, P = PK_j, D = D_j)} this share satisfies. A trustee + * proves it with {@code sk_j} as the witness, so that others can verify the share. + */ + public DleqStatement statement() { + return statement; + } + + ElGamalCiphertext ciphertext() { + return ciphertext; + } + + /** The trustee: an index into the n-of-n registry, or a threshold participant identifier. */ + int trustee() { + return trustee; + } + + @Override + public String toString() { + return "VerifiedDecryptionShare{trustee=" + trustee + ", D=" + share + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/VerifiedKeyShare.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/VerifiedKeyShare.java new file mode 100644 index 00000000..a6d2342b --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/jubjub/VerifiedKeyShare.java @@ -0,0 +1,68 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.util.Objects; + +/** + * A possession-verified key share of an n-of-n joint key ({@code elgamal-jubjub-v1} §3.3, + * ADR-0052 D5 and invariant I2). + * + *

The only ways to obtain one are: + *

    + *
  • {@link #verify}: a caller-supplied verifier accepted the possession statement + * {@code (X = G, P = D = key)} that the library built;
  • + *
  • {@link #fromSecret}: the key is computed locally from a held secret. Local knowledge of + * the discrete logarithm is possession.
  • + *
+ * {@link ElGamalPublicKey#aggregate} accepts nothing else, which blocks the rogue-key attack + * ({@code PK_n = [x]·G − Σ PK_j} cannot be proved). + */ +public final class VerifiedKeyShare { + + private final ElGamalPublicKey publicKey; + + private VerifiedKeyShare(ElGamalPublicKey publicKey) { + this.publicKey = publicKey; + } + + /** + * Verifies possession of a key received as bytes. + * + * @throws IllegalArgumentException if the bytes are not a canonical, non-identity subgroup + * point (spec §7.3), or if the verifier rejects the possession statement + */ + public static VerifiedKeyShare verify(byte[] encodedKey, DleqStatementVerifier verifier) { + JubjubPoint candidate = ElGamalEncodings.decodeSubgroupPoint(encodedKey, "key share"); + return verify(candidate, verifier); + } + + /** + * Verifies possession of a key received as a point. + * + * @throws IllegalArgumentException if the point is the identity or outside the subgroup, or + * if the verifier rejects the possession statement + */ + public static VerifiedKeyShare verify(JubjubPoint candidate, DleqStatementVerifier verifier) { + Objects.requireNonNull(verifier, "verifier"); + JubjubPoint key = ElGamalEncodings.requireKeyPoint(candidate, "key share"); + if (!verifier.verify(DleqStatement.possession(key))) { + throw new IllegalArgumentException("proof of possession rejected for key share"); + } + return new VerifiedKeyShare(new ElGamalPublicKey(key)); + } + + /** A share whose secret this party holds. */ + public static VerifiedKeyShare fromSecret(ElGamalSecretKey secretKey) { + Objects.requireNonNull(secretKey, "secretKey"); + return new VerifiedKeyShare(secretKey.publicKey()); + } + + /** The share's public key. */ + public ElGamalPublicKey publicKey() { + return publicKey; + } + + @Override + public String toString() { + return "VerifiedKeyShare{" + publicKey + "}"; + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamal.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamal.java new file mode 100644 index 00000000..abf83940 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamal.java @@ -0,0 +1,116 @@ +package org.zeroj.circuit.lib.zk; + +import org.zeroj.circuit.annotation.ZkContext; +import org.zeroj.circuit.annotation.ZkField; +import org.zeroj.circuit.annotation.ZkUInt; +import org.zeroj.circuit.lib.jubjub.InCircuitElGamal; +import org.zeroj.circuit.lib.jubjub.JubjubCurve; + +import java.util.Objects; + +/** + * Typed annotation adapter for the {@code elgamal-jubjub-v1} relations (ADR-0052 D3; spec §9). + * + *

Encryption

+ * {@link #encrypt} proves {@code A = [k]·G} and {@code B = [m]·G + [k]·PK}: + *
    + *
  • the message is a {@link ZkUInt} declared {@code 1..64} bits wide. A wider declaration is + * refused when the circuit is defined;
  • + *
  • the randomness is a {@link ZkUInt} declared exactly 252 bits wide. Its wire must not be + * a public input or a constant, and its one decomposition drives both scalar + * multiplications;
  • + *
  • the key is a {@link ZkElGamalPublicKey}.
  • + *
+ * Bind the result to the statement with {@link ZkElGamalCiphertext#assertAffineEquals}. + * + *
{@code
+ * @Prove
+ * void prove(ZkContext zk,
+ *            @Public ZkField keyU, @Public ZkField keyV,
+ *            @Public ZkField aU, @Public ZkField aV, @Public ZkField bU, @Public ZkField bV,
+ *            @Secret @UInt(bits = 1) ZkUInt vote,
+ *            @Secret @UInt(bits = 252) ZkUInt randomness) {
+ *     var key = ZkElGamalPublicKey.fromVerifierFixedPublic(zk, keyU, keyV);
+ *     ZkElGamal.encrypt(zk, vote, randomness, key).assertAffineEquals(zk, aU, aV, bU, bV);
+ * }
+ * }
+ * + *

Discrete-log equality

+ * {@link #assertDiscreteLogEquality} proves {@code P = [x]·G} and {@code D = [x]·X}. All six + * coordinates must be declared public inputs (spec §9.2), so the verifier, never the prover, + * chooses the base: + *
    + *
  • {@code X = G}, {@code D = P} for a proof of possession;
  • + *
  • {@code X} = the admitted ciphertext's handle for a decryption share.
  • + *
+ * {@code X ∈ 𝔾} is the verifier's precondition. On the host, {@code DleqStatement} supplies the + * six values in this order. + * + *

Proofs over these relations need a trusted setup when proved with Groth16 (ADR-0052 D4). + * The prover's witness holds the secrets as field elements, so proof generation is + * compatibility/offline class (ADR-0039). + */ +public final class ZkElGamal { + + private ZkElGamal() {} + + private static void requirePrivateFullWidth(ZkContext zk, ZkUInt scalar, String what) { + if (scalar.bits() != JubjubCurve.SCALAR_BITS) { + throw new IllegalArgumentException("ElGamal " + what + " must be declared " + + JubjubCurve.SCALAR_BITS + " bits wide; got " + + scalar.bits()); + } + zk.builder().api().requireNotPublicOrConstant(scalar.signal().variable()); + } + + /** + * Encrypts {@code message} under {@code key} with {@code randomness}. + * + * @throws IllegalArgumentException if the message width is outside {@code [1, 64]}, the + * randomness width is not 252, or the randomness wire is public or constant + */ + public static ZkElGamalCiphertext encrypt(ZkContext zk, ZkUInt message, ZkUInt randomness, + ZkElGamalPublicKey key) { + Objects.requireNonNull(zk, "zk"); + Objects.requireNonNull(message, "message"); + Objects.requireNonNull(randomness, "randomness"); + Objects.requireNonNull(key, "key"); + zk.requireSignal(message.signal()); + zk.requireSignal(randomness.signal()); + key.requireSameContext(zk); + // Validate before minting any decomposition (the ZkPedersen convention). + if (message.bits() < 1 || message.bits() > InCircuitElGamal.MAX_MESSAGE_BITS) { + throw new IllegalArgumentException("ElGamal message width must satisfy 1 <= w <= " + + InCircuitElGamal.MAX_MESSAGE_BITS + "; got " + message.bits()); + } + requirePrivateFullWidth(zk, randomness, "randomness"); + InCircuitElGamal.Ciphertext ciphertext = InCircuitElGamal.encrypt( + zk.builder().api(), key.key(), message.decomposition(), randomness.decomposition()); + return new ZkElGamalCiphertext(zk, ciphertext); + } + + /** + * Proves {@code log_G P = log_X D} with witness {@code secret} (spec §9.2). + * + * @throws IllegalArgumentException if a coordinate is not a declared public input, or if + * {@code secret} is not a private 252-bit value + */ + public static void assertDiscreteLogEquality(ZkContext zk, ZkUInt secret, + ZkField baseU, ZkField baseV, + ZkField keyU, ZkField keyV, + ZkField shareU, ZkField shareV) { + Objects.requireNonNull(zk, "zk"); + Objects.requireNonNull(secret, "secret"); + zk.requireSignal(secret.signal()); + requirePrivateFullWidth(zk, secret, "secret"); + for (ZkField coordinate : new ZkField[]{baseU, baseV, keyU, keyV, shareU, shareV}) { + zk.requireSignal(Objects.requireNonNull(coordinate, "coordinate").signal()); + // Checked before the secret's decomposition is minted (validate before emitting). + zk.builder().api().requirePublicInput(coordinate.signal().variable()); + } + InCircuitElGamal.assertDiscreteLogEquality(zk.builder().api(), secret.decomposition(), + baseU.signal().variable(), baseV.signal().variable(), + keyU.signal().variable(), keyV.signal().variable(), + shareU.signal().variable(), shareV.signal().variable()); + } +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamalCiphertext.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamalCiphertext.java new file mode 100644 index 00000000..24515a66 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamalCiphertext.java @@ -0,0 +1,64 @@ +package org.zeroj.circuit.lib.zk; + +import org.zeroj.circuit.Signal; +import org.zeroj.circuit.annotation.ZkContext; +import org.zeroj.circuit.annotation.ZkField; +import org.zeroj.circuit.annotation.ZkValue; +import org.zeroj.circuit.lib.jubjub.InCircuitElGamal; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * A ciphertext {@code (A, B)} computed in a circuit by {@link ZkElGamal#encrypt} + * ({@code elgamal-jubjub-v1} §9.1). + * + *

It is exposed to a verifier as four public inputs, {@code A.u, A.v, B.u, B.v} (spec §8), + * bound with {@link #assertAffineEquals}. There is deliberately no in-circuit ciphertext + * addition: the profile defines plaintext bounds for host-side sums only. + */ +public final class ZkElGamalCiphertext implements ZkValue { + + private final ZkJubjubPoint handle; + private final ZkJubjubPoint blinded; + + ZkElGamalCiphertext(ZkContext context, InCircuitElGamal.Ciphertext ciphertext) { + this.handle = ZkJubjubPoint.wrap(context, ciphertext.handle()); + this.blinded = ZkJubjubPoint.wrap(context, ciphertext.blinded()); + } + + /** {@code A = [k]·G}. */ + public ZkJubjubPoint handle() { + return handle; + } + + /** {@code B = [m]·G + [k]·PK}. */ + public ZkJubjubPoint blinded() { + return blinded; + } + + /** + * Binds the ciphertext to affine coordinates, in spec §8 order. Unlike the key and DLEQ + * entry points, this does not require the coordinates to be public inputs: a ciphertext may + * legitimately be bound to a hash or another derived value. Making the binding part of the + * verifier's statement is the circuit author's job. + */ + public void assertAffineEquals(ZkContext zk, ZkField handleU, ZkField handleV, + ZkField blindedU, ZkField blindedV) { + Objects.requireNonNull(zk, "zk"); + handle.assertAffineEquals(zk, handleU, handleV); + blinded.assertAffineEquals(zk, blindedU, blindedV); + } + + @Override + public List signals() { + List out = new ArrayList<>(handle.signals()); + out.addAll(blinded.signals()); + return out; + } + + /** Points computed by the gadget from well-formed inputs; nothing further is needed. */ + @Override + public void assertWellFormed() {} +} diff --git a/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamalPublicKey.java b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamalPublicKey.java new file mode 100644 index 00000000..1e260455 --- /dev/null +++ b/zeroj-circuit-lib/src/main/java/org/zeroj/circuit/lib/zk/ZkElGamalPublicKey.java @@ -0,0 +1,106 @@ +package org.zeroj.circuit.lib.zk; + +import org.zeroj.circuit.Signal; +import org.zeroj.circuit.annotation.ZkContext; +import org.zeroj.circuit.annotation.ZkField; +import org.zeroj.circuit.annotation.ZkValue; +import org.zeroj.circuit.lib.jubjub.InCircuitElGamal; + +import java.util.List; +import java.util.Objects; + +/** + * An {@code elgamal-jubjub-v1} encryption key inside a circuit, typed by how it entered + * (ADR-0052 D3, invariant I8). Both constructors assert the curve equation and + * {@code PK ≠ O}: + *

    + *
  • {@link #fromVerifierFixedPublic}: both coordinates are declared public inputs, and + * subgroup membership is the verifier's obligation, discharged when it fixes the + * key. An example is a script parameter whose key shares carry proofs of possession.
  • + *
  • {@link #witnessInSubgroup}: the key is a prover witness, proved in the prime-order + * subgroup in-circuit (about 5,500 rows).
  • + *
+ */ +public final class ZkElGamalPublicKey implements ZkValue { + + /** How the key entered the circuit. */ + public enum Origin { + /** Public coordinates fixed by the verifier; subgroup membership is the verifier's job. */ + VERIFIER_FIXED_PUBLIC, + /** Prover-supplied, proved in the prime-order subgroup in-circuit. */ + WITNESSED_IN_SUBGROUP + } + + private final ZkField u; + private final ZkField v; + private final InCircuitElGamal.Key key; + private final Origin origin; + + private ZkElGamalPublicKey(ZkField u, ZkField v, InCircuitElGamal.Key key, Origin origin) { + this.u = u; + this.v = v; + this.key = key; + this.origin = origin; + } + + /** + * A key whose coordinates are declared public inputs fixed by the verifier. + * + * @throws IllegalArgumentException if a coordinate is not a declared public input + */ + public static ZkElGamalPublicKey fromVerifierFixedPublic(ZkContext zk, ZkField u, ZkField v) { + requireInputs(zk, u, v); + InCircuitElGamal.Key key = InCircuitElGamal.keyFromVerifierFixedPublic( + zk.builder().api(), u.signal().variable(), v.signal().variable()); + return new ZkElGamalPublicKey(u, v, key, Origin.VERIFIER_FIXED_PUBLIC); + } + + /** A prover-supplied key, proved in the prime-order subgroup and non-identity in-circuit. */ + public static ZkElGamalPublicKey witnessInSubgroup(ZkContext zk, ZkField u, ZkField v) { + requireInputs(zk, u, v); + InCircuitElGamal.Key key = InCircuitElGamal.keyWitnessedInSubgroup( + zk.builder().api(), u.signal().variable(), v.signal().variable()); + return new ZkElGamalPublicKey(u, v, key, Origin.WITNESSED_IN_SUBGROUP); + } + + /** How the key entered. */ + public Origin origin() { + return origin; + } + + /** Affine {@code u}. */ + public ZkField u() { + return u; + } + + /** Affine {@code v}. */ + public ZkField v() { + return v; + } + + InCircuitElGamal.Key key() { + return key; + } + + void requireSameContext(ZkContext zk) { + zk.requireSignal(u.signal()); + zk.requireSignal(v.signal()); + } + + @Override + public List signals() { + return List.of(u.signal(), v.signal()); + } + + /** Constraints are emitted at construction; nothing further is needed. */ + @Override + public void assertWellFormed() {} + + private static void requireInputs(ZkContext zk, ZkField u, ZkField v) { + Objects.requireNonNull(zk, "zk"); + Objects.requireNonNull(u, "u"); + Objects.requireNonNull(v, "v"); + zk.requireSignal(u.signal()); + zk.requireSignal(v.signal()); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/Blake2bDigestTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/Blake2bDigestTest.java new file mode 100644 index 00000000..6eb771c9 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/Blake2bDigestTest.java @@ -0,0 +1,97 @@ +package org.zeroj.circuit.lib.jubjub; + +import com.bloxbean.cardano.client.crypto.Blake2bUtil; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledIfSystemProperty; + +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HexFormat; +import java.util.Random; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; + +/** + * The host BLAKE2b behind the threshold session id and transcript digest, against RFC 7693 + * Appendix A and two independent implementations (BouncyCastle and Cardano's + * {@code Blake2bUtil}), across block boundaries. + */ +class Blake2bDigestTest { + + private static final HexFormat HEX = HexFormat.of(); + + @Test + @DisplayName("RFC 7693 Appendix A: BLAKE2b-512(\"abc\")") + void rfcVector() { + assertArrayEquals(HEX.parseHex("ba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12bb6fdbffa2d1" + + "7d87c5392aab792dc252d5de4533cc9518d38aa8dbf1925ab92386edd4009923"), + Blake2bDigest.digest("abc".getBytes(StandardCharsets.US_ASCII), 64)); + } + + @Test + @DisplayName("Agrees with BouncyCastle (256 and 512 bits) and Cardano's Blake2bUtil, lengths 0..300") + void differential() { + Random rnd = new Random(62); + for (int length = 0; length <= 300; length++) { + byte[] input = new byte[length]; + rnd.nextBytes(input); + assertArrayEquals(bouncyCastle(input, 256), Blake2bDigest.blake2b256(input), "len " + length); + assertArrayEquals(bouncyCastle(input, 512), Blake2bDigest.digest(input, 64), "len " + length); + assertArrayEquals(Blake2bUtil.blake2bHash256(input), Blake2bDigest.blake2b256(input), "len " + length); + } + } + + @Test + @DisplayName("Output length is 1..64 bytes") + void lengths() { + assertThrows(IllegalArgumentException.class, () -> Blake2bDigest.digest(new byte[0], 0)); + assertThrows(IllegalArgumentException.class, () -> Blake2bDigest.digest(new byte[0], 65)); + assertArrayEquals(Blake2bUtil.blake2bHash224("x".getBytes(StandardCharsets.US_ASCII)), + Blake2bDigest.digest("x".getBytes(StandardCharsets.US_ASCII), 28)); + } + + @Test + @DisplayName("Block count is ⌈length / 128⌉ (one for empty input) up to Integer.MAX_VALUE, without overflow (review F9)") + void blockCountBoundaries() { + assertEquals(1, Blake2bDigest.blockCount(0)); + assertEquals(1, Blake2bDigest.blockCount(1)); + assertEquals(1, Blake2bDigest.blockCount(128)); + assertEquals(2, Blake2bDigest.blockCount(129)); + assertEquals(16_777_215, Blake2bDigest.blockCount(2_147_483_520)); + // From 2^31 − 127 on, the old int sum (length + 127) overflowed and gave one block. + assertEquals(16_777_216, Blake2bDigest.blockCount(2_147_483_521)); + assertEquals(16_777_216, Blake2bDigest.blockCount(Integer.MAX_VALUE - 126)); + assertEquals(16_777_216, Blake2bDigest.blockCount(Integer.MAX_VALUE)); + assertThrows(IllegalArgumentException.class, () -> Blake2bDigest.blockCount(-1)); + } + + /** + * Review F9's counterexample, end to end: a 2^31 − 127-byte input, against BouncyCastle, and + * a change in its last byte changes the digest. About 2 GiB; run with + * {@code ./gradlew :zeroj-circuit-lib:heavyGadgetTest --tests '*Blake2bDigestTest*'}. + */ + @Test + @EnabledIfSystemProperty(named = "zeroj.heavy", matches = "true") + @DisplayName("Heavy: a 2^31 − 127-byte input is hashed in full and agrees with BouncyCastle (review F9)") + void largeInput() { + byte[] input = new byte[Integer.MAX_VALUE - 126]; + byte[] zero = Blake2bDigest.blake2b256(input); + assertArrayEquals(bouncyCastle(input, 256), zero); + input[input.length - 1] = 1; + byte[] one = Blake2bDigest.blake2b256(input); + assertArrayEquals(bouncyCastle(input, 256), one); + assertFalse(Arrays.equals(zero, one), "the last byte must affect the digest"); + } + + private static byte[] bouncyCastle(byte[] input, int bits) { + var digest = new org.bouncycastle.crypto.digests.Blake2bDigest(bits); + digest.update(input, 0, input.length); + byte[] out = new byte[bits / 8]; + digest.doFinal(out, 0); + return out; + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgAdmissionTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgAdmissionTest.java new file mode 100644 index 00000000..a44b79a7 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgAdmissionTest.java @@ -0,0 +1,367 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0053 M2, admission (D4a; spec §8). The test authenticator is a keyed hash under each + * roster key, standing in for a signature. Round closure is checked against the board's real + * delivered sets. Each rejection in the ADR's M2 row has a test: a fabricated record, an + * omitted complaint or answer, a truncated round, a conflicting configuration, a replay from + * another attempt, and too few confirmations. + */ +class DkgAdmissionTest { + + private static byte[] tag(byte[] key, byte[] message) { + try { + MessageDigest sha = MessageDigest.getInstance("SHA-256"); + sha.update(key); + sha.update(message); + return sha.digest(); + } catch (NoSuchAlgorithmException e) { + throw new IllegalStateException(e); + } + } + + /** Signs with the sender's roster key, as the sender's own transport would. */ + private static List signed(DkgConfig config, List messages) { + List out = new ArrayList<>(); + for (byte[] m : messages) { + int sender = m[34] & 0xFF; + out.add(new AuthenticatedDkgMessage(m, tag(config.rosterKey(sender), m))); + } + return out; + } + + /** Like {@link #signed}, tolerating bytes too short to carry a sender (signed as participant 1). */ + private static List signedLenient(DkgConfig config, List messages) { + List out = new ArrayList<>(); + for (byte[] m : messages) { + int sender = m.length > 34 ? m[34] & 0xFF : 1; + sender = sender >= 1 && sender <= config.n() ? sender : 1; + out.add(new AuthenticatedDkgMessage(m, tag(config.rosterKey(sender), m))); + } + return out; + } + + /** Authenticity by keyed hash; closure by comparison with the board's actual round sets (1–6). */ + private static DkgAdmissionVerifier verifier(DkgConfig boardConfig, List boardMessages) { + return verifier(boardConfig, boardMessages, null); + } + + /** + * As above, and round 7 compared with the board's actual confirmations. A {@code null} + * round-7 board models "the board's round 7 is exactly what was submitted". + */ + private static DkgAdmissionVerifier verifier(DkgConfig boardConfig, List boardMessages, List boardConfirmations) { + DkgTranscript board = DkgTranscript.of(boardConfig, boardMessages); + DkgRound round7 = new DkgRound(7); + if (boardConfirmations != null) { + for (byte[] c : boardConfirmations) round7.add(DkgMessage.decode(boardConfig, c)); + } + return new DkgAdmissionVerifier() { + @Override + public boolean authenticate(int sender, byte[] rosterKey, byte[] message, byte[] authenticator) { + return Arrays.equals(tag(rosterKey, message), authenticator); + } + + @Override + public boolean roundClosed(DkgConfig config, int round, List canonicalMessages, byte[] evidence) { + if (round == 7) { + if (boardConfirmations == null) return true; + List actual7 = new ArrayList<>(); + for (DkgMessage m : round7.canonical()) actual7.add(m.encode()); + return sameList(actual7, canonicalMessages); + } + List actual = board.roundMessages(round); + if (actual.size() != canonicalMessages.size()) return false; + for (int i = 0; i < actual.size(); i++) { + if (!Arrays.equals(actual.get(i), canonicalMessages.get(i))) return false; + } + return true; + } + }; + } + + private static boolean sameList(List a, List b) { + if (a.size() != b.size()) return false; + for (int i = 0; i < a.size(); i++) { + if (!Arrays.equals(a.get(i), b.get(i))) return false; + } + return true; + } + + private static final DkgAdmissionVerifier LENIENT_CLOSURE = new DkgAdmissionVerifier() { + @Override + public boolean authenticate(int sender, byte[] rosterKey, byte[] message, byte[] authenticator) { + return Arrays.equals(tag(rosterKey, message), authenticator); + } + + @Override + public boolean roundClosed(DkgConfig config, int round, List canonicalMessages, byte[] evidence) { + return true; + } + }; + + /** A run with a complaint and an answer in it, so omissions are testable. */ + private static DkgHarness runWithComplaint(DkgConfig config) { + List d = DkgHarness.dealings(1, 3, 21); + return DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() == 2) { + return List.of(new DkgHarness.Delivery(1, 2, DkgMessage.pair(config, DkgMessage.Kind.SHARE, 1, 2, + m.s().add(BigInteger.ONE).mod(JubjubCurve.SUBGROUP_ORDER), m.sPrime()).encode())); + } + return honest; + }).run(); + } + + private static final Map NO_EVIDENCE = new HashMap<>(); + + @Test + @DisplayName("A complete, authenticated, closed and confirmed run is admitted, equal to the participants' own context") + void admitted() { + DkgConfig config = DkgHarness.config(1, 3, "admission", 1); + DkgHarness h = runWithComplaint(config); + ThresholdKeyContext admitted = ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, h.confirmations()), verifier(config, h.transcriptMessages(), h.confirmations())); + assertEquals(h.participant(1).result().context(), admitted); + assertEquals(Set.of(1, 2, 3), admitted.qual()); + } + + @Test + @DisplayName("A fabricated record whose key its author knows (y = 9G) is refused without the others' authentication") + void fabricated() { + DkgConfig config = DkgHarness.config(1, 3, "admission", 1); + // One party simulates all three dealers with polynomials it chose, so it knows x = 9. + List forged = List.of( + ThresholdVss.dealWithCoefficients(new BigInteger[]{BigInteger.TWO, BigInteger.ONE}, new BigInteger[]{BigInteger.ONE, BigInteger.ONE}), + ThresholdVss.dealWithCoefficients(new BigInteger[]{BigInteger.valueOf(3), BigInteger.ONE}, new BigInteger[]{BigInteger.ONE, BigInteger.TWO}), + ThresholdVss.dealWithCoefficients(new BigInteger[]{BigInteger.valueOf(4), BigInteger.ONE}, new BigInteger[]{BigInteger.TWO, BigInteger.ONE})); + DkgHarness fake = DkgHarness.fixed(config, forged, DkgHarness.HONEST).run(); + assertTrue(fake.participant(1).result().context().jointKey().point() + .projectiveEquals(JubjubPoint.SUBGROUP_GENERATOR.scalarMul(BigInteger.valueOf(9)))); + // The forger can authenticate only as itself (participant 1). + List asOne = new ArrayList<>(); + for (byte[] m : fake.transcriptMessages()) asOne.add(new AuthenticatedDkgMessage(m, tag(config.rosterKey(1), m))); + List confirmationsAsOne = new ArrayList<>(); + for (byte[] m : fake.confirmations()) confirmationsAsOne.add(new AuthenticatedDkgMessage(m, tag(config.rosterKey(1), m))); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, asOne, NO_EVIDENCE, + confirmationsAsOne, LENIENT_CLOSURE)); + } + + @Test + @DisplayName("An omitted complaint or answer is refused by closure evidence, and by the confirmations") + void omitted() { + DkgConfig config = DkgHarness.config(1, 3, "admission", 1); + DkgHarness h = runWithComplaint(config); + for (int round : List.of(2, 3)) { + List partial = new ArrayList<>(); + for (byte[] m : h.transcriptMessages()) if ((m[32] & 0xFF) != round) partial.add(m); + assertTrue(partial.size() < h.transcriptMessages().size(), "round " + round + " had a message"); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, signed(config, partial), + NO_EVIDENCE, signed(config, h.confirmations()), verifier(config, h.transcriptMessages())), + "closure, round " + round); + // Even a verifier that skips closure is stopped: honest confirmations commit to the full digest. + Exception e = assertThrows(RuntimeException.class, () -> ThresholdKeyContext.admit(config, signed(config, partial), + NO_EVIDENCE, signed(config, h.confirmations()), LENIENT_CLOSURE)); + assertTrue(e instanceof IllegalArgumentException || e instanceof FaultAssumptionViolatedException, e.toString()); + } + } + + @Test + @DisplayName("A truncated round is refused") + void truncated() { + DkgConfig config = DkgHarness.config(2, 5, "admission", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + List truncated = new ArrayList<>(); + int dropped = 0; + for (byte[] m : h.transcriptMessages()) { + if ((m[32] & 0xFF) == 4 && dropped == 0) { dropped++; continue; } + truncated.add(m); + } + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, signed(config, truncated), + NO_EVIDENCE, signed(config, h.confirmations()), verifier(config, h.transcriptMessages()))); + } + + @Test + @DisplayName("A conflicting roster or configuration, or a replay from another attempt, is refused") + void otherConfiguration() { + DkgConfig config = DkgHarness.config(1, 3, "admission", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + DkgConfig nextAttempt = DkgHarness.config(1, 3, "admission", 2); + List roster = new ArrayList<>(); + for (int j = 1; j <= 3; j++) roster.add(config.rosterKey(j)); + roster.set(2, new byte[]{9, 9, 9}); + DkgConfig otherRoster = DkgConfig.create(1, 3, roster, config.applicationContext(), config.attempt()); + for (DkgConfig wrong : List.of(nextAttempt, otherRoster)) { + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(wrong, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, h.confirmations()), LENIENT_CLOSURE)); + } + } + + @Test + @DisplayName("Fewer than t + 1 confirmations are refused; a confirmation of another record is refused outright") + void confirmations() { + DkgConfig config = DkgHarness.config(2, 5, "admission", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + DkgAdmissionVerifier v = verifier(config, h.transcriptMessages()); + List two = h.confirmations().subList(0, 2); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, two), v), "t = 2 confirmations"); + List duplicated = new ArrayList<>(two); + duplicated.addAll(two); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, duplicated), v), "repeats count once"); + ThresholdKeyContext ok = ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, h.confirmations().subList(0, 3)), v); + assertEquals(h.participant(1).result().context(), ok); + // Up to t lies from qualified participants do not veto; t + 1 differing confirmations refuse. + List withLies = new ArrayList<>(h.confirmations().subList(0, 3)); + withLies.add(DkgMessage.confirmation(config, 4, new byte[32], ok.jointKey().point()).encode()); + withLies.add(DkgMessage.confirmation(config, 5, new byte[32], ok.jointKey().point()).encode()); + assertEquals(ok, ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, withLies), v), "t = 2 lies are ignored"); + List disagreement = new ArrayList<>(h.confirmations().subList(0, 3)); + for (int j = 3; j <= 5; j++) { + disagreement.add(DkgMessage.confirmation(config, j, new byte[32], ok.jointKey().point()).encode()); + } + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signed(config, disagreement), v), "t + 1 = 3 differing confirmations"); + // A malformed or stale confirmation is ignored, never a veto. + DkgConfig stale = DkgHarness.config(2, 5, "admission", 99); + List withStale = new ArrayList<>(h.confirmations().subList(0, 3)); + withStale.add(DkgMessage.confirmation(stale, 4, new byte[32], ok.jointKey().point()).encode()); + withStale.add(new byte[7]); + assertEquals(ok, ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, signedLenient(config, withStale), v)); + List unauthenticated = new ArrayList<>(signed(config, h.confirmations().subList(0, 2))); + byte[] third = h.confirmations().get(2); + unauthenticated.add(new AuthenticatedDkgMessage(third, new byte[32])); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, signed(config, h.transcriptMessages()), + NO_EVIDENCE, unauthenticated, v), "an unauthenticated confirmation does not count"); + } + + @Test + @DisplayName("n = 2t + 2: t + 1 differing confirmations refuse; omitting them fails round-7 closure; an equivocator counts as differing") + void differingRuleObservable() { + DkgConfig config = DkgHarness.config(1, 4, "admission-2of4", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + ThresholdKeyContext context = h.participant(1).result().context(); + JubjubPoint y = context.jointKey().point(); + byte[] other = new byte[32]; + other[0] = 1; + List board = new ArrayList<>(); + board.add(h.confirmations().stream().filter(c -> (c[34] & 0xFF) == 1).findFirst().orElseThrow()); + board.add(h.confirmations().stream().filter(c -> (c[34] & 0xFF) == 2).findFirst().orElseThrow()); + board.add(DkgMessage.confirmation(config, 3, other, y).encode()); + board.add(DkgMessage.confirmation(config, 4, other, y).encode()); + var transcript = signed(config, h.transcriptMessages()); + // Two matching, two differing (t + 1 = 2): an honest participant saw another board. + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, + signed(config, board), verifier(config, h.transcriptMessages(), board))); + // Leaving out the differing ones is caught by round-7 closure (N6). + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, + signed(config, board.subList(0, 2)), verifier(config, h.transcriptMessages(), board))); + // Equivocation: participant 2 sends a matching and a differing confirmation and counts as + // differing only. Matching {1, 3}, differing {2}: one differing is at most t, so admitted. + List equivocation = new ArrayList<>(); + equivocation.add(board.get(0)); + equivocation.add(board.get(1)); + equivocation.add(DkgMessage.confirmation(config, 2, other, y).encode()); + equivocation.add(h.confirmations().stream().filter(c -> (c[34] & 0xFF) == 3).findFirst().orElseThrow()); + assertEquals(context, ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, signed(config, equivocation), + verifier(config, h.transcriptMessages(), equivocation))); + // Without participant 3, the equivocator leaves only one matching confirmation: refused. + List tooFew = equivocation.subList(0, 3); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, + signed(config, tooFew), verifier(config, h.transcriptMessages(), tooFew))); + } + + @Test + @DisplayName("t + 1 unauthenticated differing confirmations are ignored, not counted; authenticated, they refuse") + void unauthenticatedLiesIgnored() { + DkgConfig config = DkgHarness.config(1, 4, "admission-unauthenticated", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + ThresholdKeyContext context = h.participant(1).result().context(); + JubjubPoint y = context.jointKey().point(); + byte[] other = new byte[32]; + other[0] = 1; + List lies = List.of(DkgMessage.confirmation(config, 3, other, y).encode(), + DkgMessage.confirmation(config, 4, other, y).encode()); + var transcript = signed(config, h.transcriptMessages()); + List submitted = new ArrayList<>(signed(config, h.confirmations())); + for (byte[] lie : lies) submitted.add(new AuthenticatedDkgMessage(lie, new byte[32])); // forged tags + // The forged lies are not delivered, so the board's round 7 is the honest confirmations. + assertEquals(context, ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, submitted, + verifier(config, h.transcriptMessages(), h.confirmations()))); + // Control: the same t + 1 lies, authenticated, make 3 and 4 equivocators, so differing. + List board = new ArrayList<>(h.confirmations()); + board.addAll(lies); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, + signed(config, board), verifier(config, h.transcriptMessages(), board))); + } + + @Test + @DisplayName("Round-7 closure covers confirmations from outside QUAL: they are ignored in the count but cannot be left out") + void roundSevenIncludesNonQualified() { + DkgConfig config = DkgHarness.config(1, 4, "admission-non-qual", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> + m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() == 3 ? List.of() : honest).run(); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_DISQUALIFIED, h.aborted.get(3).reason()); + ThresholdKeyContext context = h.participant(1).result().context(); + assertEquals(Set.of(1, 2, 4), context.qual()); + // Participant 3 (not in QUAL) posts an authenticated confirmation anyway. + byte[] outsider = DkgMessage.confirmation(config, 3, context.transcriptDigest(), context.jointKey().point()).encode(); + List board = new ArrayList<>(h.confirmations()); + board.add(outsider); + var transcript = signed(config, h.transcriptMessages()); + assertEquals(context, ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, signed(config, board), + verifier(config, h.transcriptMessages(), board))); + // Leaving it out of the submission no longer matches the board's round 7. + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyContext.admit(config, transcript, NO_EVIDENCE, + signed(config, h.confirmations()), verifier(config, h.transcriptMessages(), board))); + } + + @Test + @DisplayName("deliveredRound drops junk posts, so a faulty participant's malformed or stale posts cannot veto closure") + void deliveredRoundFiltersJunk() { + DkgConfig config = DkgHarness.config(1, 3, "admission-junk", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + DkgConfig stale = DkgHarness.config(1, 3, "admission-junk", 2); + List raw = new ArrayList<>(signed(config, h.transcriptMessages())); + raw.add(new AuthenticatedDkgMessage(new byte[5], new byte[32])); // malformed + byte[] foreign = DkgMessage.complaint(stale, 3, 1).encode(); + raw.add(new AuthenticatedDkgMessage(foreign, tag(config.rosterKey(3), foreign))); // other session + byte[] unauthenticated = DkgMessage.complaint(config, 3, 1).encode(); + raw.add(new AuthenticatedDkgMessage(unauthenticated, new byte[32])); // bad authenticator + DkgAdmissionVerifier strict = new DkgAdmissionVerifier() { + @Override + public boolean authenticate(int sender, byte[] rosterKey, byte[] message, byte[] authenticator) { + return Arrays.equals(tag(rosterKey, message), authenticator); + } + + @Override + public boolean roundClosed(DkgConfig c, int round, List canonicalMessages, byte[] evidence) { + if (round == 7) return true; + return sameList(DkgTranscript.deliveredRound(c, round, raw, this), canonicalMessages); + } + }; + assertEquals(h.participant(1).result().context(), ThresholdKeyContext.admit(config, + signed(config, h.transcriptMessages()), NO_EVIDENCE, signed(config, h.confirmations()), strict)); + assertEquals(0, DkgTranscript.deliveredRound(config, 2, raw, strict).size(), "the junk complaint is dropped"); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgHarness.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgHarness.java new file mode 100644 index 00000000..462c6453 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgHarness.java @@ -0,0 +1,163 @@ +package org.zeroj.circuit.lib.jubjub; + +import java.math.BigInteger; +import java.nio.charset.StandardCharsets; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.function.Function; + +/** + * A simulated bulletin board for {@link DkgParticipant} tests. Every broadcast goes to every + * participant, the sender included, and every {@code SHARE} to its recipient. An adversary + * hook can rewrite, drop, duplicate or misroute any message, so a test can script corrupt + * participants and broken transports. + */ +final class DkgHarness { + + /** One delivery: {@code bytes} from {@code sender} to {@code recipient}. */ + record Delivery(int sender, int recipient, byte[] bytes) {} + + /** Rewrites one outgoing message into the deliveries that actually happen. */ + interface Adversary { + List deliver(DkgMessage message, List honest); + } + + static final Adversary HONEST = (m, honest) -> honest; + + final DkgConfig config; + final List participants = new ArrayList<>(); + final Map aborted = new HashMap<>(); + /** Every broadcast message actually posted, by round (index 1–7). */ + final List> board = new ArrayList<>(); + private final Adversary adversary; + private final Map> injected = new HashMap<>(); + + DkgHarness(DkgConfig config, Function factory, Adversary adversary) { + this.config = config; + this.adversary = adversary; + for (int r = 0; r <= 7; r++) board.add(new ArrayList<>()); + for (int i = 1; i <= config.n(); i++) participants.add(factory.apply(i)); + } + + static DkgConfig config(int t, int n, String context, long attempt) { + List roster = new ArrayList<>(); + for (int j = 1; j <= n; j++) { + byte[] key = new byte[32]; + Arrays.fill(key, (byte) j); + roster.add(key); + } + return DkgConfig.create(t, n, roster, context.getBytes(StandardCharsets.UTF_8), attempt); + } + + static DkgHarness random(DkgConfig config, Adversary adversary) { + SecureRandom rng = new SecureRandom(); + return new DkgHarness(config, id -> DkgParticipant.create(config, id, rng), adversary); + } + + static DkgHarness fixed(DkgConfig config, List dealings, Adversary adversary) { + return new DkgHarness(config, id -> DkgParticipant.withDealing(config, id, dealings.get(id - 1)), adversary); + } + + /** Broadcasts an extra message in {@code round}, as if its sender had posted it. */ + DkgHarness inject(DkgMessage message) { + injected.computeIfAbsent(message.round(), r -> new ArrayList<>()).add(message); + return this; + } + + DkgParticipant participant(int id) { + return participants.get(id - 1); + } + + /** Runs all seven rounds. Aborts are recorded per participant, not thrown. */ + DkgHarness run() { + Map> outgoing = new HashMap<>(); + for (DkgParticipant p : participants) outgoing.put(p.id(), p.start()); + for (int round = 1; round <= 7; round++) { + List deliveries = new ArrayList<>(); + for (DkgParticipant p : participants) { + for (DkgMessage m : outgoing.getOrDefault(p.id(), List.of())) { + deliveries.addAll(adversary.deliver(m, honestDeliveries(m))); + } + } + for (DkgMessage m : injected.getOrDefault(round, List.of())) { + deliveries.addAll(honestDeliveries(m)); + } + for (Delivery d : deliveries) { + DkgMessage decoded = DkgMessage.decode(config, d.bytes()); + if (decoded.kind() != DkgMessage.Kind.SHARE && d.recipient() == decoded.sender()) { + board.get(decoded.round()).add(d.bytes()); + } + DkgParticipant target = participant(d.recipient()); + if (aborted.containsKey(target.id())) continue; + try { + if (decoded.kind() == DkgMessage.Kind.SHARE) { + target.receivePrivate(d.sender(), d.bytes()); + } else { + target.receiveBroadcast(d.sender(), d.bytes()); + } + } catch (IllegalArgumentException ignored) { + // a refused message is absent + } + } + outgoing.clear(); + for (DkgParticipant p : participants) { + if (aborted.containsKey(p.id())) continue; + try { + outgoing.put(p.id(), p.closeRound()); + } catch (FaultAssumptionViolatedException e) { + aborted.put(p.id(), e); + } + } + } + return this; + } + + List honestDeliveries(DkgMessage m) { + List out = new ArrayList<>(); + if (m.kind() == DkgMessage.Kind.SHARE) { + out.add(new Delivery(m.sender(), m.subject(), m.encode())); + } else { + for (int j = 1; j <= config.n(); j++) out.add(new Delivery(m.sender(), j, m.encode())); + } + return out; + } + + /** The broadcast messages of rounds 1–6 as posted (from the sender's own copy). */ + List transcriptMessages() { + List out = new ArrayList<>(); + for (int r = 1; r <= 6; r++) out.addAll(board.get(r)); + return out; + } + + List confirmations() { + return board.get(7); + } + + /** Honest polynomials {@code a_ik}, {@code b_ik} from a deterministic source. */ + static List dealings(int t, int n, long seed) { + Random rnd = new Random(seed); + List out = new ArrayList<>(); + for (int i = 0; i < n; i++) { + BigInteger[] a = new BigInteger[t + 1]; + BigInteger[] b = new BigInteger[t + 1]; + for (int k = 0; k <= t; k++) { + a[k] = new BigInteger(300, rnd).mod(JubjubCurve.SUBGROUP_ORDER); + b[k] = new BigInteger(300, rnd).mod(JubjubCurve.SUBGROUP_ORDER); + } + out.add(ThresholdVss.dealWithCoefficients(a, b)); + } + return out; + } + + /** {@code Σ_{i∈qual} [a_i0]·G} from the true polynomials. */ + static JubjubPoint trueKey(List dealings, List qual) { + FastJubjubPoint acc = FastJubjubPoint.IDENTITY; + for (int i : qual) acc = acc.add(FastJubjubPoint.of(dealings.get(i - 1).extraction().get(0))); + return acc.toJubjubPoint(); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgParticipantTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgParticipantTest.java new file mode 100644 index 00000000..ec7a2e88 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/DkgParticipantTest.java @@ -0,0 +1,600 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Random; +import java.util.Set; +import java.util.SortedSet; +import java.util.TreeSet; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0053 M2: {@link DkgParticipant} and {@link DkgTranscript} against honest runs, every + * adversarial behaviour and omission in the ADR's M2 row, and the abort catalogue of spec §5.1. + */ +class DkgParticipantTest { + + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + + private static DkgHarness.Delivery broadcastTo(DkgMessage m, int recipient, byte[] bytes) { + return new DkgHarness.Delivery(m.sender(), recipient, bytes); + } + + private static List everyone(DkgHarness h, DkgMessage m, byte[] bytes) { + List out = new ArrayList<>(); + for (int j = 1; j <= h.config.n(); j++) out.add(broadcastTo(m, j, bytes)); + return out; + } + + /** Asserts every non-aborted participant finished with the same context, and the shares match it. */ + private static ThresholdKeyContext agreed(DkgHarness h, Set expectedAborted) { + assertEquals(expectedAborted, h.aborted.keySet(), "aborted: " + h.aborted); + ThresholdKeyContext context = null; + for (DkgParticipant p : h.participants) { + if (expectedAborted.contains(p.id())) continue; + ThresholdKeyShare share = p.result(); + if (context == null) context = share.context(); + assertEquals(context, share.context(), "participant " + p.id()); + assertTrue(JubjubPoint.SUBGROUP_GENERATOR.scalarMul(share.secretScalar()) + .projectiveEquals(context.verificationKey(p.id())), "share of " + p.id()); + } + DkgTranscript.DkgPublicOutcome recomputed = DkgTranscript.of(h.config, h.transcriptMessages()).recompute(); + assertEquals(context.qual(), recomputed.qual()); + assertTrue(recomputed.jointKey().projectiveEquals(context.jointKey().point())); + assertArrayEquals(DkgTranscript.of(h.config, h.transcriptMessages()).digest(), context.transcriptDigest()); + return context; + } + + private static BigInteger combine(ThresholdKeyContext context, List shares, int[] subset) { + BigInteger[] lambda = ThresholdMath.lagrangeAt(subset, 0); + BigInteger x = BigInteger.ZERO; + for (int i = 0; i < subset.length; i++) { + x = x.add(lambda[i].multiply(shares.get(subset[i] - 1).secretScalar())).mod(L); + } + return x; + } + + // ------------------------------------------------------------------ honest + + @Nested + @DisplayName("Honest runs") + class Honest { + + @Test + @DisplayName("Every (t, n) up to (3, 7): all agree on QUAL, y and Y_j, and every (t + 1)-subset recombines the key") + void honestRuns() { + for (int[] tn : new int[][]{{1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}}) { + DkgConfig config = DkgHarness.config(tn[0], tn[1], "honest", tn[0] * 100L + tn[1]); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + ThresholdKeyContext context = agreed(h, Set.of()); + assertEquals(tn[1], context.qual().size()); + List shares = new ArrayList<>(); + for (DkgParticipant p : h.participants) shares.add(p.result()); + BigInteger x = combine(context, shares, firstSubset(tn[0] + 1)); + assertTrue(JubjubPoint.SUBGROUP_GENERATOR.scalarMul(x).projectiveEquals(context.jointKey().point())); + int[] last = new int[tn[0] + 1]; + for (int i = 0; i <= tn[0]; i++) last[i] = tn[1] - tn[0] + i; + assertEquals(x, combine(context, shares, last)); + } + } + + @Test + @DisplayName("The transcript digest does not depend on arrival order; secret shares are redacted") + void shuffleAndRedaction() { + DkgConfig config = DkgHarness.config(1, 3, "shuffle", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + List messages = new ArrayList<>(h.transcriptMessages()); + byte[] digest = DkgTranscript.of(config, messages).digest(); + for (int i = 0; i < 5; i++) { + Collections.shuffle(messages, new Random(i)); + assertArrayEquals(digest, DkgTranscript.of(config, messages).digest()); + } + messages.add(messages.get(0)); // a byte-identical duplicate counts once + assertArrayEquals(digest, DkgTranscript.of(config, messages).digest()); + ThresholdKeyShare share = h.participant(1).result(); + assertFalse(share.toString().contains(share.secretScalar().toString())); + } + } + + private static int[] firstSubset(int size) { + int[] s = new int[size]; + for (int i = 0; i < size; i++) s[i] = i + 1; + return s; + } + + // ------------------------------------------------------------------ adversarial + + @Nested + @DisplayName("Adversarial simulations") + class Adversarial { + + @Test + @DisplayName("A bad share is complained about and answered; the dealer stays qualified") + void badShareAnswered() { + DkgConfig config = DkgHarness.config(1, 3, "bad-share", 1); + List d = DkgHarness.dealings(1, 3, 1); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() == 2) { + return List.of(new DkgHarness.Delivery(1, 2, DkgMessage.pair(config, DkgMessage.Kind.SHARE, 1, 2, + m.s().add(BigInteger.ONE).mod(L), m.sPrime()).encode())); + } + return honest; + }).run(); + ThresholdKeyContext c = agreed(h, Set.of()); + assertEquals(Set.of(1, 2, 3), c.qual()); + assertTrue(c.jointKey().point().projectiveEquals(DkgHarness.trueKey(d, List.of(1, 2, 3)))); + } + + @Test + @DisplayName("A false complaint against an honest dealer is answered; nothing changes") + void falseComplaint() { + DkgConfig config = DkgHarness.config(1, 3, "false-complaint", 1); + List d = DkgHarness.dealings(1, 3, 2); + DkgHarness h = DkgHarness.fixed(config, d, DkgHarness.HONEST) + .inject(DkgMessage.complaint(config, 3, 1)) // participant 3 complains without cause + .run(); + ThresholdKeyContext c = agreed(h, Set.of()); + assertEquals(Set.of(1, 2, 3), c.qual()); + assertTrue(c.jointKey().point().projectiveEquals(DkgHarness.trueKey(d, List.of(1, 2, 3)))); + assertEquals(1, DkgTranscript.of(config, h.transcriptMessages()).roundMessages(3).size(), "dealer 1 answered"); + } + + @Test + @DisplayName("More than t complaints disqualify the dealer") + void tooManyComplaints() { + DkgConfig config = DkgHarness.config(2, 5, "many-complaints", 1); + List d = DkgHarness.dealings(2, 5, 3); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() >= 3) { + return List.of(new DkgHarness.Delivery(1, m.subject(), DkgMessage.pair(config, DkgMessage.Kind.SHARE, 1, + m.subject(), m.s().add(BigInteger.ONE).mod(L), m.sPrime()).encode())); + } + if (m.kind() == DkgMessage.Kind.ANSWER && m.sender() == 1) { + return honest; // even correct answers cannot save a dealer with > t complaints + } + return honest; + }).run(); + ThresholdKeyContext c = agreed(h, Set.of(1)); + assertEquals(Set.of(2, 3, 4, 5), c.qual()); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_DISQUALIFIED, h.aborted.get(1).reason()); + } + + @Test + @DisplayName("A complaint answered with a pair that fails (4) disqualifies the dealer") + void badAnswer() { + DkgConfig config = DkgHarness.config(1, 3, "bad-answer", 1); + List d = DkgHarness.dealings(1, 3, 4); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() == 2) { + return List.of(new DkgHarness.Delivery(1, 2, DkgMessage.pair(config, DkgMessage.Kind.SHARE, 1, 2, + m.s().add(BigInteger.ONE).mod(L), m.sPrime()).encode())); + } + if (m.kind() == DkgMessage.Kind.ANSWER && m.sender() == 1) { + byte[] bad = DkgMessage.pair(config, DkgMessage.Kind.ANSWER, 1, m.subject(), + m.s().add(BigInteger.ONE).mod(L), m.sPrime()).encode(); + List out = new ArrayList<>(); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(1, x.recipient(), bad)); + return out; + } + return honest; + }).run(); + ThresholdKeyContext c = agreed(h, Set.of(1)); + assertEquals(Set.of(2, 3), c.qual()); + } + + @Test + @DisplayName("Phase-2 Feldman cheat: a false A_i is complained about and reconstructed; the key is unchanged") + void feldmanCheat() { + DkgConfig config = DkgHarness.config(1, 3, "feldman-cheat", 1); + List d = DkgHarness.dealings(1, 3, 5); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 3) { + List forged = new ArrayList<>(m.points()); + forged.set(1, forged.get(1).add(JubjubPoint.SUBGROUP_GENERATOR).normalized()); + byte[] bytes = DkgMessage.points(config, DkgMessage.Kind.EXTRACTION, 3, forged).encode(); + List out = new ArrayList<>(); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(3, x.recipient(), bytes)); + return out; + } + return honest; + }).run(); + // The others' valid complaints mark dealer 3, which then aborts (A8). + ThresholdKeyContext c = agreed(h, Set.of(3)); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED, h.aborted.get(3).reason()); + assertEquals(Set.of(1, 2, 3), c.qual()); + assertTrue(c.jointKey().point().projectiveEquals(DkgHarness.trueKey(d, List.of(1, 2, 3)))); + assertEquals(Set.of(3), DkgTranscript.of(config, h.transcriptMessages()).recompute().marked()); + } + + @Test + @DisplayName("Rushing order: a dealer choosing A_i0 after seeing the honest values cannot bias y") + void rushing() { + DkgConfig config = DkgHarness.config(1, 3, "rushing", 1); + List d = DkgHarness.dealings(1, 3, 6); + JubjubPoint target = JubjubPoint.SUBGROUP_GENERATOR.scalarMul(BigInteger.valueOf(424242)); + JubjubPoint honestSum = d.get(0).extraction().get(0).add(d.get(1).extraction().get(0)); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 3) { + List biased = new ArrayList<>(m.points()); + biased.set(0, target.add(honestSum.negate()).normalized()); // makes Σ A_i0 = target + byte[] bytes = DkgMessage.points(config, DkgMessage.Kind.EXTRACTION, 3, biased).encode(); + List out = new ArrayList<>(); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(3, x.recipient(), bytes)); + return out; + } + return honest; + }).run(); + ThresholdKeyContext c = agreed(h, Set.of(3)); + assertFalse(c.jointKey().point().projectiveEquals(target), "the bias attempt failed"); + assertTrue(c.jointKey().point().projectiveEquals(DkgHarness.trueKey(d, List.of(1, 2, 3)))); + } + + @Test + @DisplayName("Replays from another session, round or target, and mismatched senders, are refused") + void replays() { + DkgConfig config = DkgHarness.config(1, 3, "replay", 1); + DkgConfig other = DkgHarness.config(1, 3, "replay", 2); + List d = DkgHarness.dealings(1, 3, 7); + DkgParticipant p = DkgParticipant.withDealing(config, 1, d.get(0)); + DkgParticipant q = DkgParticipant.withDealing(other, 2, d.get(1)); + p.start(); + List foreign = q.start(); + assertThrows(IllegalArgumentException.class, () -> p.receiveBroadcast(2, foreign.get(0).encode()), "another attempt"); + DkgParticipant sender = DkgParticipant.withDealing(config, 2, d.get(1)); + List out = sender.start(); + byte[] commitments = out.get(0).encode(); + assertThrows(IllegalArgumentException.class, () -> p.receiveBroadcast(3, commitments), "sender mismatch"); + assertThrows(IllegalArgumentException.class, () -> p.receivePrivate(2, commitments), "a broadcast kind on the private channel"); + byte[] shareForThree = out.stream().filter(m -> m.kind() == DkgMessage.Kind.SHARE && m.subject() == 3) + .findFirst().orElseThrow().encode(); + assertThrows(IllegalArgumentException.class, () -> p.receivePrivate(2, shareForThree), "another target"); + byte[] shareForOne = out.stream().filter(m -> m.kind() == DkgMessage.Kind.SHARE && m.subject() == 1) + .findFirst().orElseThrow().encode(); + assertThrows(IllegalArgumentException.class, () -> p.receiveBroadcast(2, shareForOne), "a SHARE on the broadcast channel"); + byte[] complaint = DkgMessage.complaint(config, 2, 1).encode(); + assertThrows(IllegalArgumentException.class, () -> p.receiveBroadcast(2, complaint), "a round-2 message in round 1"); + } + + @Test + @DisplayName("Non-canonical scalars and non-subgroup points do not decode") + void malformed() { + DkgConfig config = DkgHarness.config(1, 3, "malformed", 1); + ThresholdVss.Dealing d = DkgHarness.dealings(1, 3, 8).get(0); + byte[] good = DkgMessage.points(config, DkgMessage.Kind.COMMITMENTS, 1, d.commitments()).encode(); + byte[] torsion = good.clone(); + JubjubPoint t8 = JubjubPoint.FULL_GENERATOR.scalarMul(L); + System.arraycopy(d.commitments().get(0).add(t8).toBytes(), 0, torsion, DkgMessage.HEADER_BYTES, 32); + assertThrows(IllegalArgumentException.class, () -> DkgMessage.decode(config, torsion)); + byte[] share = DkgMessage.pair(config, DkgMessage.Kind.SHARE, 1, 2, BigInteger.ONE, BigInteger.TWO).encode(); + System.arraycopy(DkgMessage.i2osp32(L), 0, share, DkgMessage.HEADER_BYTES, 32); + assertThrows(IllegalArgumentException.class, () -> DkgMessage.decode(config, share)); + assertThrows(IllegalArgumentException.class, () -> DkgMessage.decode(config, Arrays.copyOf(good, good.length - 1))); + } + } + + // ------------------------------------------------------------------ omissions + + @Nested + @DisplayName("Omissions and conflicts") + class Omissions { + + @Test + @DisplayName("A missing commitment vector disqualifies the dealer") + void missingCommitments() { + DkgConfig config = DkgHarness.config(1, 3, "missing-c", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> + m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() == 3 ? List.of() : honest).run(); + ThresholdKeyContext c = agreed(h, Set.of(3)); + assertEquals(Set.of(1, 2), c.qual()); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_DISQUALIFIED, h.aborted.get(3).reason()); + } + + @Test + @DisplayName("A single unanswered complaint (n = 3, t = 1) disqualifies the dealer") + void unansweredComplaint() { + DkgConfig config = DkgHarness.config(1, 3, "unanswered", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() == 2) return List.of(); + if (m.kind() == DkgMessage.Kind.ANSWER && m.sender() == 1) return List.of(); + return honest; + }).run(); + ThresholdKeyContext c = agreed(h, Set.of(1)); + assertEquals(Set.of(2, 3), c.qual()); + } + + @Test + @DisplayName("Conflicting commitment vectors disqualify; conflicting extraction vectors are reconstructed") + void conflicts() { + DkgConfig config = DkgHarness.config(1, 3, "conflicts", 1); + List d = DkgHarness.dealings(1, 3, 9); + List alt = DkgHarness.dealings(1, 3, 10); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() == 3) { + byte[] second = DkgMessage.points(config, DkgMessage.Kind.COMMITMENTS, 3, alt.get(2).commitments()).encode(); + List out = new ArrayList<>(honest); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(3, x.recipient(), second)); + return out; + } + return honest; + }).run(); + assertEquals(Set.of(1, 2), agreed(h, Set.of(3)).qual()); + + DkgHarness h2 = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 2) { + byte[] second = DkgMessage.points(config, DkgMessage.Kind.EXTRACTION, 2, alt.get(1).extraction()).encode(); + List out = new ArrayList<>(honest); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(2, x.recipient(), second)); + return out; + } + return honest; + }).run(); + ThresholdKeyContext c = agreed(h2, Set.of(2)); + assertTrue(c.jointKey().point().projectiveEquals(DkgHarness.trueKey(d, List.of(1, 2, 3)))); + } + + @Test + @DisplayName("A withheld extraction vector is reconstructed: the key equals the run without withholding") + void withheldExtraction() { + DkgConfig config = DkgHarness.config(2, 5, "withheld", 1); + List d = DkgHarness.dealings(2, 5, 11); + ThresholdKeyContext honest = agreed(DkgHarness.fixed(config, d, DkgHarness.HONEST).run(), Set.of()); + DkgHarness h = DkgHarness.fixed(config, d, (m, h0) -> + m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 4 ? List.of() : h0).run(); + ThresholdKeyContext c = agreed(h, Set.of(4)); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED, h.aborted.get(4).reason()); + assertTrue(c.jointKey().point().projectiveEquals(honest.jointKey().point())); + for (int j = 1; j <= 5; j++) { + assertTrue(c.verificationKey(j).projectiveEquals(honest.verificationKey(j))); + } + assertEquals(honest, c, "same session, QUAL and keys: the same context (spec §9)"); + assertFalse(Arrays.equals(honest.transcriptDigest(), c.transcriptDigest()), "but a different record"); + } + + @Test + @DisplayName("Too few reconstruction pairs abort with 'fault assumption violated'") + void tooFewPairs() { + DkgConfig config = DkgHarness.config(1, 3, "few-pairs", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 3) return List.of(); + if (m.kind() == DkgMessage.Kind.RECONSTRUCTION && m.sender() == 2) return List.of(); + return honest; + }).run(); + for (int id : List.of(1, 2)) { + assertEquals(FaultAssumptionViolatedException.Reason.TOO_FEW_RECONSTRUCTION_PAIRS, h.aborted.get(id).reason()); + } + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED, h.aborted.get(3).reason()); + } + } + + // ------------------------------------------------------------------ aborts + + @Nested + @DisplayName("Abort catalogue (spec §5.1)") + class Aborts { + + @Test + @DisplayName("A1: fewer than n − t qualified dealers") + void tooFewQualified() { + DkgConfig config = DkgHarness.config(1, 3, "a1", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> + m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() >= 2 ? List.of() : honest).run(); + assertEquals(FaultAssumptionViolatedException.Reason.TOO_FEW_QUALIFIED, h.aborted.get(1).reason()); + } + + @Test + @DisplayName("A5: polynomials whose constant terms sum to 0 give y = O and abort") + void identityKey() { + DkgConfig config = DkgHarness.config(1, 3, "a5", 1); + List d = List.of( + ThresholdVss.dealWithCoefficients(new BigInteger[]{BigInteger.ONE, BigInteger.TWO}, new BigInteger[]{BigInteger.ONE, BigInteger.ONE}), + ThresholdVss.dealWithCoefficients(new BigInteger[]{BigInteger.TWO, BigInteger.ONE}, new BigInteger[]{BigInteger.TWO, BigInteger.ONE}), + ThresholdVss.dealWithCoefficients(new BigInteger[]{L.subtract(BigInteger.valueOf(3)), BigInteger.TEN}, new BigInteger[]{BigInteger.TEN, BigInteger.ONE})); + DkgHarness h = DkgHarness.fixed(config, d, DkgHarness.HONEST).run(); + for (int id : List.of(1, 2, 3)) { + assertEquals(FaultAssumptionViolatedException.Reason.IDENTITY_JOINT_KEY, h.aborted.get(id).reason()); + } + } + + @Test + @DisplayName("A6: a participant whose own extraction complaint was dropped from its view sees a share mismatch") + void shareMismatch() { + DkgConfig config = DkgHarness.config(1, 3, "a6", 1); + List d = DkgHarness.dealings(1, 3, 12); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 3) { + List forged = new ArrayList<>(m.points()); + forged.set(1, forged.get(1).add(JubjubPoint.SUBGROUP_GENERATOR).normalized()); + byte[] bytes = DkgMessage.points(config, DkgMessage.Kind.EXTRACTION, 3, forged).encode(); + List out = new ArrayList<>(); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(3, x.recipient(), bytes)); + return out; + } + if (m.kind() == DkgMessage.Kind.EXTRACTION_COMPLAINT) { + // broadcast without agreement: participant 1 never sees any complaint + return honest.stream().filter(x -> x.recipient() != 1).toList(); + } + return honest; + }).run(); + assertEquals(FaultAssumptionViolatedException.Reason.SHARE_MISMATCH, h.aborted.get(1).reason()); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED, h.aborted.get(3).reason()); + } + + @Test + @DisplayName("A8: if every dealer's EXTRACTION is late, every participant aborts; nobody confirms, so the run cannot be admitted") + void allExtractionsLate() { + DkgConfig config = DkgHarness.config(1, 3, "a8", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> + m.kind() == DkgMessage.Kind.EXTRACTION ? List.of() : honest).run(); + for (int id : List.of(1, 2, 3)) { + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED, h.aborted.get(id).reason()); + } + assertTrue(h.confirmations().isEmpty(), "no confirmations: admission needs t + 1"); + } + + @Test + @DisplayName("A7: up to t lying confirmations are ignored; t + 1 differing confirmations abort the rest") + void conflictingConfirmations() { + DkgConfig config = DkgHarness.config(1, 3, "a7", 1); + DkgHarness oneLie = DkgHarness.random(config, (m, honest) -> lie(config, m, honest, Set.of(2))).run(); + agreed(oneLie, Set.of()); + DkgHarness twoLies = DkgHarness.random(config, (m, honest) -> lie(config, m, honest, Set.of(2, 3))).run(); + assertEquals(FaultAssumptionViolatedException.Reason.CONFLICTING_CONFIRMATION, twoLies.aborted.get(1).reason()); + } + + private List lie(DkgConfig config, DkgMessage m, List honest, Set liars) { + if (m.kind() == DkgMessage.Kind.CONFIRMATION && liars.contains(m.sender())) { + byte[] lie = DkgMessage.confirmation(config, m.sender(), new byte[32], m.confirmedKey()).encode(); + List out = new ArrayList<>(); + for (DkgHarness.Delivery x : honest) out.add(new DkgHarness.Delivery(m.sender(), x.recipient(), lie)); + return out; + } + return honest; + } + + @Test + @DisplayName("I1: parameters outside t >= 1, 2t + 1 <= n <= 64 are refused") + void parameters() { + assertThrows(IllegalArgumentException.class, () -> DkgHarness.config(0, 3, "x", 1)); + assertThrows(IllegalArgumentException.class, () -> DkgHarness.config(2, 4, "x", 1)); + assertThrows(IllegalArgumentException.class, () -> DkgHarness.config(1, 65, "x", 1)); + assertThrows(IllegalArgumentException.class, + () -> DkgConfig.create(1, 3, List.of(new byte[1], new byte[1]), new byte[0], 1)); + assertThrows(IllegalArgumentException.class, + () -> DkgConfig.create(1, 3, List.of(new byte[1], new byte[0], new byte[1]), new byte[0], 1)); + } + + @Test + @DisplayName("I1: t and n near int overflow are refused, so no accepted t aliases another's session (review F10)") + void parametersNearOverflow() { + List roster = List.of(new byte[]{1}, new byte[]{2}, new byte[]{3}); + // Review F10's counterexample: 2t + 1 overflowed int, accepting t = 2^30 + 1 for n = 3, + // whose low byte equals t = 1 in the session. + assertThrows(IllegalArgumentException.class, + () -> DkgConfig.create(0x4000_0001, 3, roster, new byte[0], 1)); + for (int t : new int[]{Integer.MAX_VALUE, Integer.MAX_VALUE / 2, Integer.MAX_VALUE / 2 + 1, + 0x4000_0000, 0x4000_0001, 257, 32, -1, Integer.MIN_VALUE}) { + for (int n : new int[]{3, 64, 65, Integer.MAX_VALUE, -1, Integer.MIN_VALUE}) { + // Every combination here is invalid: t ≥ 32 needs n ≥ 65, and n ≤ 0 or ≥ 65. + assertThrows(IllegalArgumentException.class, + () -> DkgConfig.create(t, n, roster, new byte[0], 1), "t=" + t + ", n=" + n); + } + } + // The valid boundaries still pass and keep distinct sessions. + DkgConfig low = DkgConfig.create(1, 3, roster, new byte[0], 1); + assertEquals(1, low.t()); + List large = new ArrayList<>(); + for (int j = 1; j <= 64; j++) large.add(new byte[]{(byte) j}); + DkgConfig high = DkgConfig.create(31, 64, large, new byte[0], 1); + assertEquals(31, high.t()); + assertThrows(IllegalArgumentException.class, () -> DkgConfig.create(32, 64, large, new byte[0], 1)); + assertNotEquals(low, high); + } + + @Test + @DisplayName("I16: contexts and sessions from different attempts are never equal") + void attempts() { + DkgConfig a = DkgHarness.config(1, 3, "attempts", 1); + DkgConfig b = DkgHarness.config(1, 3, "attempts", 2); + assertNotEquals(a, b); + List d = DkgHarness.dealings(1, 3, 13); + ThresholdKeyContext ca = agreed(DkgHarness.fixed(a, d, DkgHarness.HONEST).run(), Set.of()); + ThresholdKeyContext cb = agreed(DkgHarness.fixed(b, d, DkgHarness.HONEST).run(), Set.of()); + assertTrue(ca.jointKey().point().projectiveEquals(cb.jointKey().point()), "same polynomials, same key"); + assertNotEquals(ca, cb, "but different attempts"); + } + } + + // ------------------------------------------------------------------ review round 1 (ADR-0053) + + @Nested + @DisplayName("Review round 1: sticky aborts, A9, the A7 matching rule, restore, roster") + class ReviewRound1 { + + @Test + @DisplayName("An abort is final: late messages and further closeRound/result calls are refused") + void abortsAreSticky() { + DkgConfig config = DkgHarness.config(1, 3, "sticky", 1); + List d = DkgHarness.dealings(1, 3, 31); + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> + m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() == 3 ? List.of() : honest).run(); + DkgParticipant p3 = h.participant(3); + FaultAssumptionViolatedException first = h.aborted.get(3); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_DEALING_DISQUALIFIED, first.reason()); + byte[] late = DkgMessage.points(config, DkgMessage.Kind.COMMITMENTS, 3, d.get(2).commitments()).encode(); + assertThrows(FaultAssumptionViolatedException.class, () -> p3.receiveBroadcast(3, late)); + assertThrows(FaultAssumptionViolatedException.class, p3::closeRound); + assertThrows(FaultAssumptionViolatedException.class, p3::result); + } + + @Test + @DisplayName("A9: a participant whose own complaint is missing from its view aborts (no NPE, no unchecked adoption)") + void ownComplaintMissing() { + DkgConfig config = DkgHarness.config(1, 3, "a9", 1); + DkgHarness h = DkgHarness.random(config, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() == 2) return List.of(); + if (m.kind() == DkgMessage.Kind.COMPLAINT && m.sender() == 2) { + return honest.stream().filter(x -> x.recipient() != 2).toList(); // not delivered back to 2 + } + return honest; + }).run(); + assertEquals(FaultAssumptionViolatedException.Reason.OWN_COMPLAINT_MISSING, h.aborted.get(2).reason()); + } + + @Test + @DisplayName("A7: a participant on a minority view (fewer than t + 1 matching confirmations) aborts instead of finishing") + void minorityViewAborts() { + DkgConfig config = DkgHarness.config(1, 3, "minority", 1); + List d = DkgHarness.dealings(1, 3, 32); + List alt = DkgHarness.dealings(1, 3, 33); + // Dealer 3 equivocates privately: participant 2 also receives (as if broadcast) a + // second, conflicting COMMITMENTS, so 2 alone disqualifies dealer 3. + DkgHarness h = DkgHarness.fixed(config, d, (m, honest) -> { + if (m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() == 3) { + List out = new ArrayList<>(honest); + out.add(new DkgHarness.Delivery(3, 2, DkgMessage.points(config, DkgMessage.Kind.COMMITMENTS, 3, + alt.get(2).commitments()).encode())); + return out; + } + return honest; + }).run(); + assertEquals(FaultAssumptionViolatedException.Reason.CONFLICTING_CONFIRMATION, h.aborted.get(2).reason(), + "participant 2's own view has only its own matching confirmation"); + assertFalse(h.aborted.containsKey(1)); + } + + @Test + @DisplayName("ThresholdKeyShare.restore checks QUAL membership and [x]G = Y_j") + void restore() { + DkgConfig config = DkgHarness.config(1, 3, "restore", 1); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + ThresholdKeyShare s1 = h.participant(1).result(); + ThresholdKeyContext ctx = s1.context(); + ThresholdKeyShare again = ThresholdKeyShare.restore(ctx, 1, s1.secretScalar()); + assertEquals(s1.secretScalar(), again.secretScalar()); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyShare.restore(ctx, 2, s1.secretScalar())); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyShare.restore(ctx, 4, s1.secretScalar())); + assertThrows(IllegalArgumentException.class, () -> ThresholdKeyShare.restore(ctx, 1, L)); + } + + @Test + @DisplayName("Duplicate roster keys are refused") + void duplicateRoster() { + byte[] key = new byte[32]; + assertThrows(IllegalArgumentException.class, + () -> DkgConfig.create(1, 3, List.of(key, key.clone(), new byte[]{1}), new byte[0], 1)); + } + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalApiSurfaceTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalApiSurfaceTest.java new file mode 100644 index 00000000..a97fdcbc --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalApiSurfaceTest.java @@ -0,0 +1,87 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.lang.reflect.Constructor; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.util.ArrayList; +import java.util.List; +import java.util.Set; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * Regression guard for the invariants that ADR-0052 enforces by type rather than by a runtime + * check (I2, I14, I16, and "a re-decoded ciphertext cannot be combined or decrypted"). If a + * safe-layer type gains a public constructor, becomes a record, or a new public method turns + * a raw ciphertext into an admitted one, these invariants could be bypassed without any other + * test failing. The ADR-0046 API-surface test follows the same idea. + */ +class ElGamalApiSurfaceTest { + + private static final List> SAFE_TYPES = List.of( + ElGamalCiphertext.class, VerifiedKeyShare.class, VerifiedDecryptionShare.class, + ElGamalPublicKey.class, NOfNKeyContext.class, EncryptionStatement.class, + DleqStatement.class, ElGamalEncryption.class, ElGamalSecretKey.class, + ThresholdKeyContext.class, ThresholdKeyShare.class, DkgMessage.class); + + @Test + @DisplayName("Safe-layer types are final, not records, and expose no public or protected constructor") + void noPublicConstructors() { + for (Class type : SAFE_TYPES) { + assertTrue(Modifier.isFinal(type.getModifiers()), type + " must be final"); + assertFalse(type.isRecord(), type + " must not be a record (its canonical constructor is public)"); + for (Constructor c : type.getDeclaredConstructors()) { + int m = c.getModifiers(); + assertFalse(Modifier.isPublic(m) || Modifier.isProtected(m), "constructor " + c); + } + } + } + + @Test + @DisplayName("ElGamalKeyContext stays sealed to the library's two context kinds") + void contextSealed() { + assertTrue(ElGamalKeyContext.class.isSealed()); + assertEquals(Set.of(NOfNKeyContext.class, ThresholdKeyContext.class), + Set.of(ElGamalKeyContext.class.getPermittedSubclasses())); + } + + @Test + @DisplayName("Only ElGamal.admit turns a raw ciphertext into an admitted one") + void onlyAdmitAdmits() { + List found = new ArrayList<>(); + for (Class type : List.of(ElGamal.class, ElGamalCiphertext.class, RawElGamalCiphertext.class, + NOfNKeyContext.class, ThresholdKeyContext.class)) { + for (Method m : type.getDeclaredMethods()) { + if (!Modifier.isPublic(m.getModifiers())) continue; + boolean takesRaw = List.of(m.getParameterTypes()).contains(RawElGamalCiphertext.class); + if (takesRaw && m.getReturnType() == ElGamalCiphertext.class) { + found.add(type.getSimpleName() + "." + m.getName()); + } + } + } + assertEquals(List.of("ElGamal.admit"), found); + } + + @Test + @DisplayName("Possession, share and admission entry points require a verifier or a held secret") + void entryPoints() { + for (Method m : VerifiedKeyShare.class.getDeclaredMethods()) { + if (Modifier.isPublic(m.getModifiers()) && m.getReturnType() == VerifiedKeyShare.class) { + List> params = List.of(m.getParameterTypes()); + assertTrue(params.contains(DleqStatementVerifier.class) || params.contains(ElGamalSecretKey.class), + "VerifiedKeyShare." + m.getName()); + } + } + for (Method m : VerifiedDecryptionShare.class.getDeclaredMethods()) { + if (Modifier.isPublic(m.getModifiers()) && m.getReturnType() == VerifiedDecryptionShare.class) { + assertTrue(List.of(m.getParameterTypes()).contains(DleqStatementVerifier.class), + "VerifiedDecryptionShare." + m.getName()); + } + } + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalBenchmark.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalBenchmark.java new file mode 100644 index 00000000..6617f809 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalBenchmark.java @@ -0,0 +1,100 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledIfSystemProperty; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.List; +import java.util.Random; +import java.util.function.Supplier; + +/** + * ADR-0052 M1 host performance matrix: decoding, admission-side checks, encryption, sums, + * shares and the bounded discrete-log search. Records numbers; asserts nothing. Results are + * evidence for the JVM and CPU that ran them only. + * + *

Run: {@code ./gradlew :zeroj-circuit-lib:elgamalBenchmark} + */ +@EnabledIfSystemProperty(named = "zeroj.elgamalBench", matches = "true") +class ElGamalBenchmark { + + private static final SecureRandom RNG = new SecureRandom(); + private static final JubjubPoint G = JubjubPoint.SUBGROUP_GENERATOR; + + private static double microsPerOp(int ops, Runnable body) { + for (int i = 0; i < Math.max(1, ops / 4); i++) body.run(); // warm-up + long start = System.nanoTime(); + for (int i = 0; i < ops; i++) body.run(); + return (System.nanoTime() - start) / 1_000.0 / ops; + } + + private static T timed(String label, Supplier body) { + long start = System.nanoTime(); + T result = body.get(); + System.out.printf("| %s | %.1f ms |%n", label, (System.nanoTime() - start) / 1e6); + return result; + } + + @Test + void matrix() { + ElGamalSecretKey sk = ElGamalSecretKey.generate(RNG); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + ElGamalCiphertext sample = ElGamal.encrypt(ctx, 1, 1, RNG); + byte[] pointBytes = sample.handle().toBytes(); + byte[] ctBytes = sample.encode(); + JubjubPoint a = sample.handle(); + + System.out.println("| Operation | µs/op |"); + System.out.println("|---|---:|"); + System.out.printf("| Point decode (`JubjubPoint.fromBytes`, no subgroup check) | %.1f |%n", + microsPerOp(400, () -> JubjubPoint.fromBytes(pointBytes))); + System.out.printf("| Subgroup check, BigInteger (`isInSubgroup`) | %.1f |%n", + microsPerOp(100, a::isInSubgroup)); + System.out.printf("| Subgroup check, Montgomery fast path | %.1f |%n", + microsPerOp(400, () -> FastJubjubPoint.isInPrimeOrderSubgroup(a))); + System.out.printf("| Ciphertext decode (64 bytes, two subgroup checks) | %.1f |%n", + microsPerOp(200, () -> RawElGamalCiphertext.decode(ctBytes))); + System.out.printf("| Encrypt (3 blinded secret multiplications) | %.1f |%n", + microsPerOp(40, () -> ElGamal.encrypt(ctx, 1, 1, RNG))); + System.out.printf("| Decryption share (1 blinded secret multiplication) | %.1f |%n", + microsPerOp(80, () -> ElGamal.decryptionShare(sk, sample))); + + List many = new ArrayList<>(); + for (int i = 0; i < 2_000; i++) many.add(ElGamal.encrypt(ctx, i & 1, 1, RNG)); + System.out.printf("| Homomorphic sum, per ciphertext (2,000-term `sum`) | %.2f |%n", + microsPerOp(5, () -> ElGamalCiphertext.sum(many)) / many.size()); + System.out.println(); + + System.out.println("| Discrete log | Time |"); + System.out.println("|---|---:|"); + Random rnd = new Random(58); + for (int bits : new int[]{16, 24, 32, 40}) { + long bound = (1L << bits) - 1; + JubjubDiscreteLog table = timed("table build, bound 2^" + bits, + () -> JubjubDiscreteLog.forBound(bound)); + long t = rnd.nextLong() & bound; + JubjubPoint target = G.scalarMul(BigInteger.valueOf(t)); + timed("solve (random t), bound 2^" + bits, () -> table.solve(target, bound)); + JubjubPoint worst = G.scalarMul(BigInteger.valueOf(bound)); + timed("solve (t = bound, worst case), bound 2^" + bits, () -> table.solve(worst, bound)); + } + } + + @Test + void dkg() { + System.out.println(); + System.out.println("| DKG (t, n) | Whole run, all n participants | Per participant |"); + System.out.println("|---|---:|---:|"); + for (int[] tn : new int[][]{{1, 3}, {2, 5}, {3, 7}, {5, 11}, {10, 21}}) { + DkgConfig config = DkgHarness.config(tn[0], tn[1], "bench", tn[1]); + DkgHarness.random(config, DkgHarness.HONEST).run(); // warm-up + long start = System.nanoTime(); + DkgHarness h = DkgHarness.random(config, DkgHarness.HONEST).run(); + double ms = (System.nanoTime() - start) / 1e6; + if (!h.aborted.isEmpty()) throw new AssertionError("aborted: " + h.aborted); + System.out.printf("| (%d, %d) | %.0f ms | %.0f ms |%n", tn[0], tn[1], ms, ms / tn[1]); + } + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalHostApiTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalHostApiTest.java new file mode 100644 index 00000000..53abd237 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalHostApiTest.java @@ -0,0 +1,673 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicReference; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertSame; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0052 M1: the {@code elgamal-jubjub-v1} host API. Covers the M1 exit criteria + * (invariants I1–I4, I6, I7, I10, I11, I13–I16) and every M1 negative listed in the ADR, + * verbatim. + * + *

Proofs do not exist at this layer (the circuits are M2), so two test doubles stand in for + * the caller-supplied verifiers. Each checks the statement against secrets or openings known + * to the test, so a passing verification is a true statement, not a stub returning + * {@code true}. + */ +class ElGamalHostApiTest { + + private static final JubjubPoint G = JubjubPoint.SUBGROUP_GENERATOR; + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + private static final JubjubPoint ORDER_2 = JubjubPoint.fromAffine( + BigInteger.ZERO, JubjubCurve.BASE_FIELD_PRIME.subtract(BigInteger.ONE)); + private static final SecureRandom RNG = new SecureRandom(); + + @AfterEach + void clearObserver() { + JubjubPoint.clearSecretScheduleObserverForTesting(); + } + + // ------------------------------------------------------------------ test doubles + + /** Accepts a DLEQ statement iff it knows an {@code x} with {@code P = [x]G} and {@code D = [x]X}. */ + static final class KnownSecretsDleqVerifier implements DleqStatementVerifier { + private final List secrets = new ArrayList<>(); + final List seen = new ArrayList<>(); + + KnownSecretsDleqVerifier know(BigInteger... xs) { + secrets.addAll(Arrays.asList(xs)); + return this; + } + + @Override + public boolean verify(DleqStatement s) { + seen.add(s); + for (BigInteger x : secrets) { + if (G.scalarMul(x).projectiveEquals(s.publicKey())) { + return s.base().scalarMul(x).projectiveEquals(s.share()); + } + } + return false; + } + } + + /** Accepts an encryption statement iff a known opening {@code (m, k)} reproduces it with {@code m < 2^w}. */ + static final class OpeningCheckingVerifier implements EncryptionStatementVerifier { + private final Map openings = new HashMap<>(); + + void open(JubjubPoint handle, BigInteger m, BigInteger k) { + openings.put(Arrays.toString(handle.toBytes()), new BigInteger[]{m, k}); + } + + @Override + public boolean verify(EncryptionStatement s) { + BigInteger[] opening = openings.get(Arrays.toString(s.handle().toBytes())); + if (opening == null) return false; + BigInteger m = opening[0]; + BigInteger k = opening[1]; + if (m.signum() < 0 || m.bitLength() > s.width()) return false; + return G.scalarMul(k).projectiveEquals(s.handle()) + && G.scalarMul(m).add(s.key().point().scalarMul(k)).projectiveEquals(s.blinded()); + } + } + + private static NOfNKeyContext context(BigInteger... secrets) { + List shares = new ArrayList<>(); + for (BigInteger s : secrets) { + shares.add(VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(s))); + } + return ElGamalPublicKey.aggregate(shares); + } + + private static RawElGamalCiphertext rawEncrypt(BigInteger m, BigInteger k, JubjubPoint pk) { + return RawElGamalCiphertext.of(G.scalarMul(k), G.scalarMul(m).add(pk.scalarMul(k))); + } + + // ------------------------------------------------------------------ round trips + + @Nested + @DisplayName("Round trips and homomorphism") + class RoundTrips { + + @Test + @DisplayName("Single key: encrypt then decrypt at several widths, including 0 and 2^w − 1") + void singleKey() { + ElGamalSecretKey sk = ElGamalSecretKey.generate(RNG); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + for (int w : new int[]{1, 2, 8, 16}) { + for (long m : new long[]{0, 1, (1L << w) - 1}) { + ElGamalCiphertext c = ElGamal.encrypt(ctx, m, w, RNG); + assertEquals(BigInteger.ONE.shiftLeft(w).subtract(BigInteger.ONE), c.bound()); + assertEquals(m, ElGamal.decryptWithSecret(c, sk, c.bound().longValueExact())); + } + } + } + + @Test + @DisplayName("Property: random sums and scalings decrypt to the integer result (n-of-n, 1–5 trustees)") + void homomorphism() { + Random rnd = new Random(57); + for (int round = 0; round < 6; round++) { + int n = 1 + rnd.nextInt(5); + List keys = new ArrayList<>(); + List shares = new ArrayList<>(); + for (int j = 0; j < n; j++) { + ElGamalSecretKey k = ElGamalSecretKey.generate(RNG); + keys.add(k); + shares.add(VerifiedKeyShare.fromSecret(k)); + } + NOfNKeyContext ctx = ElGamalPublicKey.aggregate(shares); + long expected = 0; + List cts = new ArrayList<>(); + for (int i = 0; i < 1 + rnd.nextInt(6); i++) { + long m = rnd.nextInt(1000); + expected += m; + cts.add(ElGamal.encrypt(ctx, m, 10, RNG)); + } + long factor = 1 + rnd.nextInt(5); + ElGamalCiphertext total = ElGamalCiphertext.sum(cts).scale(factor); + List ds = new ArrayList<>(); + for (ElGamalSecretKey k : keys) { + ds.add(ElGamal.decryptionShare(k, total)); + } + long maxPlaintext = total.bound().longValueExact(); + assertEquals(expected * factor, ElGamal.decrypt(total, ds, maxPlaintext)); + // Pairwise add agrees with the one-pass sum. + ElGamalCiphertext folded = cts.get(0); + for (int i = 1; i < cts.size(); i++) folded = folded.add(cts.get(i)); + assertArrayEquals(ElGamalCiphertext.sum(cts).encode(), folded.encode()); + } + } + + @Test + @DisplayName("I4: encryption randomness is 64 bytes reduced mod l, as pedersen-jubjub-v1 §3.1") + void randomnessSampling() { + byte[] fixed = new byte[64]; + Arrays.fill(fixed, (byte) 0xA5); + SecureRandom stub = new SecureRandom() { + @Override + public void nextBytes(byte[] bytes) { + System.arraycopy(fixed, 0, bytes, 0, bytes.length); + } + }; + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(9)); + ElGamalCiphertext c = ElGamal.encrypt(NOfNKeyContext.singleKey(sk), 3, 4, stub); + BigInteger k = new BigInteger(1, fixed).mod(L); + assertTrue(G.scalarMul(k).projectiveEquals(c.handle())); + assertTrue(G.scalarMul(BigInteger.valueOf(3)).add(sk.publicKey().point().scalarMul(k)) + .projectiveEquals(c.blinded())); + } + + @Test + @DisplayName("Secret multiplications run the blinded 316-iteration schedule (encryption ×3, share ×1)") + void secretSchedule() { + AtomicInteger schedules = new AtomicInteger(); + List lengths = new ArrayList<>(); + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(11)); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + JubjubPoint.installSecretScheduleObserverForTesting(new JubjubPoint.SecretScheduleObserver() { + @Override public void scheduleStarted(int iterations) { + schedules.incrementAndGet(); + lengths.add(iterations); + } + @Override public void addition() {} + @Override public void doubling() {} + }); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 0, 1, RNG); + assertEquals(3, schedules.get(), "[k]G, [k]PK and [m]G, even for m = 0"); + ElGamal.decryptionShare(sk, c); + assertEquals(4, schedules.get()); + assertTrue(lengths.stream().allMatch(n -> n == 316), "blinded schedule length: " + lengths); + } + } + + // ------------------------------------------------------------------ keys (I1, I2) + + @Nested + @DisplayName("Keys and aggregation (I1, I2)") + class Keys { + + @Test + @DisplayName("Secret keys are canonical and non-zero; toString redacts the secret") + void secretKeyRange() { + assertThrows(IllegalArgumentException.class, () -> ElGamalSecretKey.of(BigInteger.ZERO)); + assertThrows(IllegalArgumentException.class, () -> ElGamalSecretKey.of(L)); + assertThrows(IllegalArgumentException.class, () -> ElGamalSecretKey.of(BigInteger.ONE.negate())); + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(12345)); + assertFalse(sk.toString().contains("12345")); + assertTrue(sk.toString().contains("redacted")); + } + + @Test + @DisplayName("Aggregation refuses empty, duplicate and cancelling share sets") + void aggregationRefusals() { + assertThrows(IllegalArgumentException.class, () -> ElGamalPublicKey.aggregate(List.of())); + VerifiedKeyShare a = VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(BigInteger.valueOf(3))); + VerifiedKeyShare aAgain = VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(BigInteger.valueOf(3))); + assertThrows(IllegalArgumentException.class, () -> ElGamalPublicKey.aggregate(List.of(a, aAgain))); + VerifiedKeyShare minusA = VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(L.subtract(BigInteger.valueOf(3)))); + assertThrows(IllegalArgumentException.class, () -> ElGamalPublicKey.aggregate(List.of(a, minusA)), + "an identity sum is refused"); + } + + @Test + @DisplayName("Partial cancellation (P, −P, Q) aggregates to Q: one party knowing both cancelling secrets gains nothing, and Q's holder alone can decrypt") + void partialCancellation() { + VerifiedKeyShare p = VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(BigInteger.valueOf(3))); + VerifiedKeyShare minusP = VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(L.subtract(BigInteger.valueOf(3)))); + VerifiedKeyShare q = VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(BigInteger.valueOf(7))); + NOfNKeyContext ctx = ElGamalPublicKey.aggregate(List.of(p, minusP, q)); + assertTrue(ctx.jointKey().point().projectiveEquals(G.scalarMul(BigInteger.valueOf(7)))); + assertEquals(3, ctx.size(), "all three stay registered for distributed decryption"); + // Documented consequence (spec §3.2): Q's holder knows the joint secret on its own. + ElGamalCiphertext c = ElGamal.encrypt(ctx, 5, 3, RNG); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.decryptWithSecret(c, ElGamalSecretKey.of(BigInteger.valueOf(3)), 7)); + } + + @Test + @DisplayName("I1: identity, small-order and malformed key shares are refused before the verifier runs") + void keyShareValidation() { + AtomicInteger calls = new AtomicInteger(); + DleqStatementVerifier counting = s -> { calls.incrementAndGet(); return true; }; + assertThrows(IllegalArgumentException.class, () -> VerifiedKeyShare.verify(JubjubPoint.IDENTITY, counting)); + assertThrows(IllegalArgumentException.class, () -> VerifiedKeyShare.verify(ORDER_2, counting)); + assertThrows(IllegalArgumentException.class, + () -> VerifiedKeyShare.verify(G.add(ORDER_2), counting), "mixed-order point"); + assertThrows(IllegalArgumentException.class, () -> VerifiedKeyShare.verify(new byte[31], counting)); + byte[] nonCanonical = new byte[32]; + Arrays.fill(nonCanonical, (byte) 0xFF); + nonCanonical[31] = 0x7F; + assertThrows(IllegalArgumentException.class, () -> VerifiedKeyShare.verify(nonCanonical, counting)); + assertEquals(0, calls.get()); + } + + @Test + @DisplayName("I2, rogue key: a key nobody can prove possession of is refused") + void rogueKey() { + BigInteger honest = BigInteger.valueOf(5); + KnownSecretsDleqVerifier verifier = new KnownSecretsDleqVerifier().know(honest, BigInteger.valueOf(11)); + VerifiedKeyShare honestShare = VerifiedKeyShare.verify(G.scalarMul(honest), verifier); + DleqStatement pop = verifier.seen.get(0); + assertEquals(DleqStatement.Kind.POSSESSION, pop.kind()); + assertTrue(pop.base().projectiveEquals(G)); + assertTrue(pop.share().projectiveEquals(pop.publicKey())); + // PK_rogue = [x]G − PK_honest: the attacker knows x but not log_G PK_rogue. + JubjubPoint rogue = G.scalarMul(BigInteger.valueOf(42)).add(honestShare.publicKey().point().negate()); + assertThrows(IllegalArgumentException.class, () -> VerifiedKeyShare.verify(rogue, verifier)); + assertThrows(IllegalArgumentException.class, + () -> VerifiedKeyShare.verify(G.scalarMul(BigInteger.valueOf(6)), s -> false)); + } + + @Test + @DisplayName("Contexts compare by joint key and sorted share set, independent of input order") + void contextEquality() { + NOfNKeyContext ab = context(BigInteger.valueOf(3), BigInteger.valueOf(5)); + NOfNKeyContext ba = context(BigInteger.valueOf(5), BigInteger.valueOf(3)); + NOfNKeyContext single = context(BigInteger.valueOf(8)); + assertEquals(ab, ba); + assertEquals(ab.hashCode(), ba.hashCode()); + assertEquals(ab.jointKey(), single.jointKey(), "same joint key 8G"); + assertNotEquals(ab, single, "different share sets are different contexts"); + } + } + + // ------------------------------------------------------------------ decoding (I3, I11) + + @Nested + @DisplayName("Decoding and encodings (I3, I11)") + class Decoding { + + @Test + @DisplayName("Ciphertext decoding: wrong length, non-canonical and small-order refused; identity accepted (non-square: reference vectors)") + void ciphertextDecoding() { + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(17)); + byte[] good = ElGamal.encrypt(NOfNKeyContext.singleKey(sk), 1, 1, RNG).encode(); + assertEquals(64, good.length); + assertArrayEquals(good, RawElGamalCiphertext.decode(good).encode()); + assertThrows(IllegalArgumentException.class, () -> RawElGamalCiphertext.decode(Arrays.copyOf(good, 63))); + assertThrows(IllegalArgumentException.class, () -> RawElGamalCiphertext.decode(Arrays.copyOf(good, 65))); + byte[] nonCanonical = good.clone(); + Arrays.fill(nonCanonical, 0, 31, (byte) 0xFF); + nonCanonical[31] = (byte) 0x7F; + assertThrows(IllegalArgumentException.class, () -> RawElGamalCiphertext.decode(nonCanonical)); + byte[] smallOrder = good.clone(); + System.arraycopy(ORDER_2.toBytes(), 0, smallOrder, 32, 32); + assertThrows(IllegalArgumentException.class, () -> RawElGamalCiphertext.decode(smallOrder)); + byte[] identities = new byte[64]; + System.arraycopy(JubjubPoint.IDENTITY.toBytes(), 0, identities, 0, 32); + System.arraycopy(JubjubPoint.IDENTITY.toBytes(), 0, identities, 32, 32); + assertTrue(RawElGamalCiphertext.decode(identities).handle().isIdentity()); + } + + @Test + @DisplayName("Affine import: coordinates must be canonical without reduction, on-curve and in the subgroup") + void affineImport() { + JubjubPoint g = G.normalized(); + BigInteger p = JubjubCurve.BASE_FIELD_PRIME; + assertThrows(IllegalArgumentException.class, + () -> RawElGamalCiphertext.fromAffine(g.u().add(p), g.v(), g.u(), g.v())); + assertThrows(IllegalArgumentException.class, + () -> RawElGamalCiphertext.fromAffine(g.u(), g.v(), BigInteger.ONE, BigInteger.ONE)); + assertThrows(IllegalArgumentException.class, + () -> RawElGamalCiphertext.fromAffine(BigInteger.ZERO, p.subtract(BigInteger.ONE), g.u(), g.v())); + RawElGamalCiphertext ok = RawElGamalCiphertext.fromAffine(g.u(), g.v(), g.u(), g.v()); + assertEquals(List.of(g.u(), g.v(), g.u(), g.v()), ok.publicInputs()); + } + + @Test + @DisplayName("I11: public-input orders are exactly those of spec §8") + void publicInputOrders() { + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(19)); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + BigInteger k = BigInteger.valueOf(23); + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, k); + JubjubPoint a = c.handle(); + JubjubPoint b = c.blinded(); + JubjubPoint pk = ctx.jointKey().point(); + assertEquals(List.of(a.u(), a.v(), b.u(), b.v()), c.publicInputs()); + assertEquals(List.of(pk.u(), pk.v()), ctx.jointKey().publicInputs()); + AtomicReference captured = new AtomicReference<>(); + ElGamal.admit(c.raw(), ctx, 1, s -> { captured.set(s); return true; }); + assertEquals(List.of(pk.u(), pk.v(), a.u(), a.v(), b.u(), b.v()), captured.get().publicInputs()); + assertEquals(1, captured.get().width()); + VerifiedDecryptionShare share = ElGamal.decryptionShare(sk, c); + JubjubPoint d = share.share(); + assertEquals(List.of(a.u(), a.v(), pk.u(), pk.v(), d.u(), d.v()), share.statement().publicInputs()); + JubjubPoint g = G.normalized(); + assertEquals(List.of(g.u(), g.v(), pk.u(), pk.v(), pk.u(), pk.v()), sk.possessionStatement().publicInputs()); + } + } + + // ------------------------------------------------------------------ bounds and admission (I6, I7, I16) + + @Nested + @DisplayName("Messages, bounds and admission (I6, I7, I10, I16)") + class Bounds { + + private final ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(29)); + private final NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + + @Test + @DisplayName("I6: widths outside 1..64 and messages outside [0, 2^w) are refused; m = l is never admitted") + void messageRange() { + assertThrows(IllegalArgumentException.class, () -> ElGamal.encrypt(ctx, 0, 0, RNG)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encrypt(ctx, 0, 65, RNG)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encrypt(ctx, 2, 1, RNG)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encrypt(ctx, -1, 8, RNG)); + BigInteger max64 = BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE); + ElGamalCiphertext top = ElGamal.encrypt(ctx, max64, 64, RNG); + assertEquals(max64, top.bound()); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.encrypt(ctx, BigInteger.ONE.shiftLeft(64), 64, RNG)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encrypt(ctx, L, 64, RNG)); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.admit(top.raw(), ctx, 65, s -> true)); + } + + @Test + @DisplayName("I7: bounds combine on add and scale; a bound reaching l is refused") + void boundArithmetic() { + ElGamalCiphertext a = ElGamal.encrypt(ctx, 5, 3, RNG); + ElGamalCiphertext b = ElGamal.encrypt(ctx, 9, 4, RNG); + assertEquals(BigInteger.valueOf(7 + 15), a.add(b).bound()); + assertEquals(BigInteger.valueOf(7 * 6), a.scale(6).bound()); + assertThrows(IllegalArgumentException.class, () -> a.scale(0)); + assertThrows(IllegalArgumentException.class, () -> a.scale(L)); + ElGamalCiphertext wide = ElGamal.encrypt(ctx, 1, 64, RNG); + assertThrows(IllegalArgumentException.class, () -> wide.scale(BigInteger.ONE.shiftLeft(190)), + "(2^64 − 1)·2^190 ≥ l"); + assertEquals(14, ElGamal.decryptWithSecret(a.add(b), sk, 22)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decryptWithSecret(a.add(b), sk, 21), + "the search limit must cover the established bound"); + } + + @Test + @DisplayName("I16: admission builds the statement itself and accepts nothing on a failed check") + void admission() { + BigInteger k = BigInteger.valueOf(77); + RawElGamalCiphertext raw = rawEncrypt(BigInteger.valueOf(6), k, ctx.jointKey().point()); + OpeningCheckingVerifier verifier = new OpeningCheckingVerifier(); + verifier.open(raw.handle(), BigInteger.valueOf(6), k); + assertThrows(IllegalArgumentException.class, () -> ElGamal.admit(raw, ctx, 2, verifier), + "6 does not fit 2 bits"); + ElGamalCiphertext admitted = ElGamal.admit(raw, ctx, 3, verifier); + assertEquals(BigInteger.valueOf(7), admitted.bound()); + assertEquals(6, ElGamal.decryptWithSecret(admitted, sk, 7)); + // Under another context the same bytes are a different statement and fail. + NOfNKeyContext other = NOfNKeyContext.singleKey(ElGamalSecretKey.of(BigInteger.valueOf(31))); + assertThrows(IllegalArgumentException.class, () -> ElGamal.admit(raw, other, 3, verifier)); + } + + @Test + @DisplayName("Serialising drops key and bound: a re-decoded ciphertext is raw and must be admitted again") + void serialisationIsRaw() { + ElGamalCiphertext c = ElGamal.encrypt(ctx, 3, 2, RNG); + RawElGamalCiphertext again = RawElGamalCiphertext.decode(c.encode()); + assertArrayEquals(c.encode(), again.encode()); + // RawElGamalCiphertext has no bound, no context and no decrypt path: only admission. + assertThrows(IllegalArgumentException.class, () -> ElGamal.admit(again, ctx, 2, s -> false)); + } + + @Test + @DisplayName("Wrapped terms: Enc(l−1) + Enc(1) decrypts to 0 raw, and Enc(l−1) cannot be admitted at any width ≤ 64") + void wrapCannotBeAdmitted() { + JubjubPoint pk = ctx.jointKey().point(); + BigInteger k1 = BigInteger.valueOf(101); + BigInteger k2 = BigInteger.valueOf(202); + RawElGamalCiphertext big = rawEncrypt(L.subtract(BigInteger.ONE), k1, pk); + RawElGamalCiphertext one = rawEncrypt(BigInteger.ONE, k2, pk); + RawElGamalCiphertext wrapped = big.add(one); + JubjubPoint m = RawElGamalCiphertext.unmask(wrapped.blinded(), + List.of(wrapped.handle().scalarMul(sk.secretScalar()))); + assertTrue(m.isIdentity(), "the raw sum decrypts to 0, an in-range lie"); + OpeningCheckingVerifier verifier = new OpeningCheckingVerifier(); + verifier.open(big.handle(), L.subtract(BigInteger.ONE), k1); + verifier.open(one.handle(), BigInteger.ONE, k2); + for (int w = 1; w <= 64; w++) { + int width = w; + assertThrows(IllegalArgumentException.class, () -> ElGamal.admit(big, ctx, width, verifier)); + } + assertEquals(BigInteger.ONE, ElGamal.admit(one, ctx, 1, verifier).bound()); + } + + @Test + @DisplayName("I10: decryption fails closed when no plaintext in [0, bound] matches") + void failsClosed() { + // A lying verifier admits Enc(100) at width 3: the bound is false, so the search fails. + RawElGamalCiphertext lie = rawEncrypt(BigInteger.valueOf(100), BigInteger.valueOf(5), ctx.jointKey().point()); + ElGamalCiphertext admitted = ElGamal.admit(lie, ctx, 3, s -> true); + assertThrows(ElGamalDecryptionException.class, () -> ElGamal.decryptWithSecret(admitted, sk, 7)); + } + } + + // ------------------------------------------------------------------ keys vs contexts (I13) + + @Nested + @DisplayName("Key contexts (I13)") + class Contexts { + + @Test + @DisplayName("Mixed-key add is refused: Enc(1;1,3G) + Enc(1;1,2G)") + void mixedKeyAdd() { + NOfNKeyContext three = context(BigInteger.valueOf(3)); + NOfNKeyContext two = context(BigInteger.valueOf(2)); + ElGamalCiphertext c1 = ElGamal.encryptWithRandomness(three, BigInteger.ONE, 1, BigInteger.ONE); + ElGamalCiphertext c2 = ElGamal.encryptWithRandomness(two, BigInteger.ONE, 1, BigInteger.ONE); + assertThrows(IllegalArgumentException.class, () -> c1.add(c2)); + assertThrows(IllegalArgumentException.class, () -> ElGamalCiphertext.sum(List.of(c1, c2))); + // Raw, the same sum decrypts to the wrong in-range value 1 under secret 3. + RawElGamalCiphertext raw = c1.raw().add(c2.raw()); + JubjubPoint m = RawElGamalCiphertext.unmask(raw.blinded(), + List.of(raw.handle().scalarMul(BigInteger.valueOf(3)))); + assertTrue(m.projectiveEquals(G)); + } + + @Test + @DisplayName("decryptWithSecret refuses secret 4 for (G, 4G) under PK = 3G") + void wrongSecret() { + NOfNKeyContext ctx = context(BigInteger.valueOf(3)); + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, BigInteger.ONE); + assertTrue(c.handle().projectiveEquals(G)); + assertTrue(c.blinded().projectiveEquals(G.scalarMul(BigInteger.valueOf(4)))); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.decryptWithSecret(c, ElGamalSecretKey.of(BigInteger.valueOf(4)), 1)); + assertEquals(1, ElGamal.decryptWithSecret(c, ElGamalSecretKey.of(BigInteger.valueOf(3)), 1)); + } + + @Test + @DisplayName("A trustee share passed as the full secret is refused, and an unregistered secret cannot make a share") + void trusteeShareIsNotTheSecret() { + ElGamalSecretKey s1 = ElGamalSecretKey.of(BigInteger.valueOf(3)); + ElGamalSecretKey s2 = ElGamalSecretKey.of(BigInteger.valueOf(5)); + NOfNKeyContext ctx = ElGamalPublicKey.aggregate( + List.of(VerifiedKeyShare.fromSecret(s1), VerifiedKeyShare.fromSecret(s2))); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 1, 1, RNG); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decryptWithSecret(c, s1, 1)); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.decryptionShare(ElGamalSecretKey.of(BigInteger.valueOf(8)), c), + "8 = 3 + 5 is the joint secret, not a registered share"); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.decryptionShare(ElGamalSecretKey.of(BigInteger.valueOf(6)), c)); + } + } + + // ------------------------------------------------------------------ shares (I14, I15) + + @Nested + @DisplayName("Verified decryption shares (I14, I15)") + class Shares { + + private final ElGamalSecretKey s1 = ElGamalSecretKey.of(BigInteger.valueOf(3)); + private final ElGamalSecretKey s2 = ElGamalSecretKey.of(BigInteger.valueOf(5)); + private final NOfNKeyContext ctx = ElGamalPublicKey.aggregate( + List.of(VerifiedKeyShare.fromSecret(s1), VerifiedKeyShare.fromSecret(s2))); + private final KnownSecretsDleqVerifier verifier = + new KnownSecretsDleqVerifier().know(BigInteger.valueOf(3), BigInteger.valueOf(5)); + + @Test + @DisplayName("The forged in-range share (D2 = 36G for 35G; keys 3G, 5G; m = 1, k = 7) is refused") + void forgedShare() { + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, BigInteger.valueOf(7)); + assertTrue(c.handle().projectiveEquals(G.scalarMul(BigInteger.valueOf(7)))); + JubjubPoint honest1 = G.scalarMul(BigInteger.valueOf(21)); + JubjubPoint honest2 = G.scalarMul(BigInteger.valueOf(35)); + JubjubPoint forged2 = G.scalarMul(BigInteger.valueOf(36)); + // Raw, the forgery decrypts to 0, an in-range lie. + assertTrue(RawElGamalCiphertext.unmask(c.blinded(), List.of(honest1, forged2)).isIdentity()); + VerifiedDecryptionShare d1 = VerifiedDecryptionShare.verify(c, s1.publicKey(), honest1, verifier); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, s2.publicKey(), forged2, verifier)); + VerifiedDecryptionShare d2 = VerifiedDecryptionShare.verify(c, s2.publicKey(), honest2.toBytes(), verifier); + assertEquals(1, ElGamal.decrypt(c, List.of(d1, d2), 1)); + DleqStatement checked = verifier.seen.get(verifier.seen.size() - 1); + assertEquals(DleqStatement.Kind.DECRYPTION_SHARE, checked.kind()); + assertTrue(checked.base().projectiveEquals(c.handle()), "X is the admitted handle"); + assertTrue(checked.publicKey().projectiveEquals(s2.publicKey().point()), "P is the registered key"); + } + + @Test + @DisplayName("Missing, repeated, foreign-key, wrong-handle and invalid-proof shares are refused") + void malformedShareSets() { + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, BigInteger.valueOf(7)); + VerifiedDecryptionShare d1 = ElGamal.decryptionShare(s1, c); + VerifiedDecryptionShare d2 = ElGamal.decryptionShare(s2, c); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1), 1), "missing"); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1, d1), 1), "repeated"); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1, d2, d2), 1), "extra"); + ElGamalSecretKey foreign = ElGamalSecretKey.of(BigInteger.valueOf(9)); + assertThrows(IllegalArgumentException.class, () -> VerifiedDecryptionShare.verify(c, foreign.publicKey(), + c.handle().scalarMul(BigInteger.valueOf(9)), new KnownSecretsDleqVerifier().know(BigInteger.valueOf(9))), + "foreign key"); + // Same handle (same k), different B: a share for c does not decrypt c2. + ElGamalCiphertext c2 = ElGamal.encryptWithRandomness(ctx, BigInteger.ZERO, 1, BigInteger.valueOf(7)); + assertTrue(c2.handle().projectiveEquals(c.handle())); + VerifiedDecryptionShare e2 = ElGamal.decryptionShare(s2, c2); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c2, List.of(d1, e2), 1), + "a share is bound to the exact (A, B, context)"); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, s1.publicKey(), c.handle().scalarMul(BigInteger.valueOf(3)), s -> false), + "invalid proof"); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, s1.publicKey(), ORDER_2, s -> true), + "a share outside the subgroup"); + assertEquals(1, ElGamal.decrypt(c, List.of(d2, d1), 1), "order of shares does not matter"); + } + + @Test + @DisplayName("I15: a share is computed only on an admitted handle; the verified share proves its own statement") + void sharesOnAdmittedHandles() { + ElGamalCiphertext c = ElGamal.encrypt(ctx, 1, 1, RNG); + VerifiedDecryptionShare d1 = ElGamal.decryptionShare(s1, c); + assertTrue(verifier.verify(d1.statement()), "a locally computed share satisfies its DLEQ statement"); + assertSame(c, d1.ciphertext()); + assertArrayEquals(d1.share().toBytes(), d1.encode()); + } + } + + // ------------------------------------------------------------------ review round 1 additions + + @Nested + @DisplayName("Openings, wrong handles, bound properties") + class ReviewAdditions { + + @Test + @DisplayName("encryptWithOpening: the opening reproduces (A, B); statement() equals what admit builds; refusals; redacted") + void opening() { + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(41)); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + ElGamalEncryption e = ElGamal.encryptWithOpening(ctx, BigInteger.valueOf(9), 4, RNG); + JubjubPoint pk = ctx.jointKey().point(); + assertTrue(G.scalarMul(e.randomness()).projectiveEquals(e.ciphertext().handle())); + assertTrue(G.scalarMul(e.message()).add(pk.scalarMul(e.randomness())).projectiveEquals(e.ciphertext().blinded())); + assertEquals(4, e.width()); + AtomicReference built = new AtomicReference<>(); + ElGamal.admit(e.ciphertext().raw(), ctx, 4, s -> { built.set(s); return true; }); + assertEquals(built.get().publicInputs(), e.statement().publicInputs()); + assertEquals(built.get().width(), e.statement().width()); + assertFalse(e.toString().contains(e.randomness().toString())); + assertFalse(e.toString().contains(e.randomness().toString(16))); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encryptWithOpening(ctx, BigInteger.ONE, 65, RNG)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encryptWithOpening(ctx, BigInteger.valueOf(16), 4, RNG)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.encryptWithOpening(ctx, L, 64, RNG)); + assertEquals(9, ElGamal.decryptWithSecret(e.ciphertext(), sk, 15)); + } + + @Test + @DisplayName("secretScalar round-trips and is the witness of the possession statement") + void secretScalar() { + ElGamalSecretKey sk = ElGamalSecretKey.generate(RNG); + assertEquals(sk.publicKey(), ElGamalSecretKey.of(sk.secretScalar()).publicKey()); + assertTrue(new KnownSecretsDleqVerifier().know(sk.secretScalar()).verify(sk.possessionStatement())); + } + + @Test + @DisplayName("Wrong handle: a share computed on another ciphertext's A fails verification; a share verified for another A is refused") + void wrongHandle() { + ElGamalSecretKey s1 = ElGamalSecretKey.of(BigInteger.valueOf(3)); + ElGamalSecretKey s2 = ElGamalSecretKey.of(BigInteger.valueOf(5)); + NOfNKeyContext ctx = ElGamalPublicKey.aggregate( + List.of(VerifiedKeyShare.fromSecret(s1), VerifiedKeyShare.fromSecret(s2))); + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, BigInteger.valueOf(7)); + ElGamalCiphertext other = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, BigInteger.valueOf(8)); + KnownSecretsDleqVerifier verifier = new KnownSecretsDleqVerifier().know(BigInteger.valueOf(3), BigInteger.valueOf(5)); + JubjubPoint onOtherHandle = other.handle().scalarMul(BigInteger.valueOf(5)); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, s2.publicKey(), onOtherHandle, verifier), + "D = [sk]A' is not a share of c: the statement uses c's own handle"); + VerifiedDecryptionShare forOther = VerifiedDecryptionShare.verify(other, s2.publicKey(), onOtherHandle, verifier); + VerifiedDecryptionShare d1 = ElGamal.decryptionShare(s1, c); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1, forOther), 1), + "a share verified for a different handle is refused"); + } + + @Test + @DisplayName("Property: bounds follow the integer model exactly and are refused exactly at ≥ l") + void boundProperty() { + Random rnd = new Random(65); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(ElGamalSecretKey.of(BigInteger.valueOf(43))); + ElGamalCiphertext base = ElGamal.encrypt(ctx, 1, 64, RNG); + BigInteger b = base.bound(); + BigInteger limit = L.subtract(BigInteger.ONE).divide(b); // largest c with c·b < l + assertEquals(b.multiply(limit), base.scale(limit).bound()); + assertThrows(IllegalArgumentException.class, () -> base.scale(limit.add(BigInteger.ONE))); + for (int i = 0; i < 40; i++) { + int w1 = 1 + rnd.nextInt(64); + int w2 = 1 + rnd.nextInt(64); + ElGamalCiphertext a = ElGamal.encrypt(ctx, 0, w1, RNG); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 0, w2, RNG); + BigInteger model = BigInteger.ONE.shiftLeft(w1).subtract(BigInteger.ONE) + .add(BigInteger.ONE.shiftLeft(w2).subtract(BigInteger.ONE)); + assertEquals(model, a.add(c).bound()); + BigInteger factor = new BigInteger(1 + rnd.nextInt(250), rnd).add(BigInteger.ONE); + if (factor.compareTo(L) >= 0) continue; + BigInteger scaled = a.bound().multiply(factor); + if (scaled.compareTo(L) < 0) { + assertEquals(scaled, a.scale(factor).bound()); + } else { + assertThrows(IllegalArgumentException.class, () -> a.scale(factor)); + } + } + } + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalReferenceVectorsTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalReferenceVectorsTest.java new file mode 100644 index 00000000..48d903b2 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ElGamalReferenceVectorsTest.java @@ -0,0 +1,338 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.math.BigInteger; +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HexFormat; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; + +/** + * ADR-0052 M0/M1: the library against the independent {@code elgamal-jubjub-v1} reference. + * + *

{@code src/test/resources/elgamal-reference/reference-output.txt} was produced by a + * standard-library Python implementation written from {@code docs/specs/elgamal-jubjub-v1.md} + * and {@code docs/specs/pedersen-jubjub-v1.md} only: affine arithmetic, generic Tonelli–Shanks, + * linear discrete logs. No ZeroJ Java source was read. Every value below is therefore computed + * twice, by unrelated code, and compared here. The reference also cross-checked the + * {@code zeroj-usecases} prototype's vectors. Regenerate with + * {@code python3 elgamal_jubjub_v1_reference.py} in that directory. + */ +class ElGamalReferenceVectorsTest { + + private static final String RESOURCE = "/elgamal-reference/reference-output.txt"; + private static final HexFormat HEX = HexFormat.of(); + private static final JubjubPoint G = JubjubPoint.SUBGROUP_GENERATOR; + private static Map ref; + + @BeforeAll + static void load() throws IOException { + ref = new LinkedHashMap<>(); + try (InputStream in = Objects.requireNonNull( + ElGamalReferenceVectorsTest.class.getResourceAsStream(RESOURCE), RESOURCE); + var reader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) { + String line; + while ((line = reader.readLine()) != null) { + if (line.isBlank() || line.startsWith("#")) continue; + int eq = line.indexOf('='); + ref.put(line.substring(0, eq), line.substring(eq + 1)); + } + } + } + + private static String get(String key) { + return Objects.requireNonNull(ref.get(key), () -> "missing reference key " + key); + } + + private static BigInteger num(String key) { + String s = get(key); + boolean negative = s.startsWith("-"); + String body = negative ? s.substring(1) : s; + BigInteger value = body.startsWith("0x") ? new BigInteger(body.substring(2), 16) : new BigInteger(body); + return negative ? value.negate() : value; + } + + private static byte[] bytes(String key) { + return HEX.parseHex(get(key)); + } + + private static BigInteger scalar(String tag) { + return num("scalar." + tag); + } + + /** {@code scalar(tag) = OS2IP(SHA-256("zeroj.elgamal.v1.test." + tag)) mod l} (spec §12). */ + private static BigInteger derive(String tag) throws NoSuchAlgorithmException { + byte[] h = MessageDigest.getInstance("SHA-256") + .digest(("zeroj.elgamal.v1.test." + tag).getBytes(StandardCharsets.UTF_8)); + return new BigInteger(1, h).mod(JubjubCurve.SUBGROUP_ORDER); + } + + private static void assertPoint(String prefix, JubjubPoint point) { + JubjubPoint n = point.normalized(); + assertEquals(num(prefix + ".u"), n.u(), prefix + ".u"); + assertEquals(num(prefix + ".v"), n.v(), prefix + ".v"); + } + + private static void assertCiphertext(String prefix, ElGamalCiphertext c) { + assertPoint(prefix + ".A", c.handle()); + assertPoint(prefix + ".B", c.blinded()); + assertArrayEquals(bytes(prefix + ".encoding"), c.encode(), prefix + ".encoding"); + } + + private static List numbers(String key) { + List out = new ArrayList<>(); + for (String part : get(key).split(",")) out.add(new BigInteger(part.substring(2), 16)); + return out; + } + + @Test + @DisplayName("The reference run passed its own checks and matched every spec pin") + void referenceRunPassed() { + assertEquals("elgamal-jubjub-v1", get("profile")); + assertEquals("pass", get("result")); + int checks = 0; + for (var e : ref.entrySet()) { + if (e.getKey().startsWith("check.") || e.getKey().startsWith("spec_match.")) { + assertEquals("true", e.getValue(), e.getKey()); + checks++; + } + } + assertTrue(checks > 100, "checks: " + checks); + assertEquals(JubjubCurve.BASE_FIELD_PRIME, num("curve.p")); + assertEquals(JubjubCurve.SUBGROUP_ORDER, num("curve.l")); + assertEquals(JubjubCurve.D, num("curve.d")); + assertPoint("G", G); + assertArrayEquals(bytes("G.encoding"), G.toBytes()); + } + + @Test + @DisplayName("§12 test scalars: the Java derivation equals the reference's") + void scalars() throws NoSuchAlgorithmException { + for (String tag : List.of("sk", "k0", "k1", "k16", "k64", "share1", "share2", "share3", + "ballot1", "ballot2", "ballot3", "ballot4", "ballot5", "wrap1", "wrap2")) { + assertEquals(scalar(tag), derive(tag), tag); + } + } + + @Test + @DisplayName("Single key: public key, encryptions at widths 1/16/64, add, scale and decryption") + void singleKey() { + ElGamalSecretKey sk = ElGamalSecretKey.of(scalar("sk")); + assertPoint("single.pk", sk.publicKey().point()); + assertArrayEquals(bytes("single.pk.encoding"), sk.publicKey().encode()); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + Map cts = new LinkedHashMap<>(); + for (String c : List.of("m0w1", "m1w1", "m12345w16", "mmaxw64")) { + String p = "single.enc." + c; + ElGamalCiphertext ct = ElGamal.encryptWithRandomness( + ctx, num(p + ".m"), num(p + ".w").intValueExact(), num(p + ".k")); + assertCiphertext(p, ct); + assertEquals(num(p + ".bound"), ct.bound(), p + ".bound"); + if (ref.containsKey(p + ".dec")) { + assertEquals(num(p + ".dec").longValueExact(), + ElGamal.decryptWithSecret(ct, sk, ct.bound().longValueExact())); + } + cts.put(c, ct); + } + ElGamalCiphertext add01 = cts.get("m0w1").add(cts.get("m1w1")); + assertCiphertext("single.add01", add01); + assertEquals(num("single.add01.bound"), add01.bound()); + assertEquals(num("single.add01.dec").longValueExact(), ElGamal.decryptWithSecret(add01, sk, 2)); + ElGamalCiphertext scaled = cts.get("m12345w16").scale(3); + assertCiphertext("single.scale3_12345", scaled); + assertEquals(num("single.scale3_12345.bound"), scaled.bound()); + assertEquals(num("single.scale3_12345.dec").longValueExact(), + ElGamal.decryptWithSecret(scaled, sk, scaled.bound().longValueExact())); + // The bound rule's boundary for width 64 (c·(2^64 − 1) < l). + ElGamalCiphertext top = cts.get("mmaxw64"); + assertEquals(num("bound.w64.b"), top.bound()); + top.scale(num("bound.w64.max_scale_accepted")); + assertThrows(IllegalArgumentException.class, () -> top.scale(num("bound.w64.min_scale_refused"))); + } + + @Test + @DisplayName("n-of-n: shares, joint key, registered order, ballots, sum, shares, statements and tally") + void nOfN() { + List keys = new ArrayList<>(); + List shares = new ArrayList<>(); + for (int j = 1; j <= 3; j++) { + ElGamalSecretKey k = ElGamalSecretKey.of(num("nofn.share" + j + ".sk")); + assertArrayEquals(bytes("nofn.share" + j + ".pk.encoding"), k.publicKey().encode()); + keys.add(k); + shares.add(VerifiedKeyShare.fromSecret(k)); + } + NOfNKeyContext ctx = ElGamalPublicKey.aggregate(shares); + assertPoint("nofn.pk", ctx.jointKey().point()); + assertArrayEquals(bytes("nofn.pk.encoding"), ctx.jointKey().encode()); + String[] order = get("nofn.registered_encodings").split(","); + for (int i = 0; i < order.length; i++) { + assertArrayEquals(HEX.parseHex(order[i]), ctx.shares().get(i).publicKey().encode(), "registered " + i); + } + + List ballots = new ArrayList<>(); + for (int i = 1; i <= 5; i++) { + String p = "nofn.ballot" + i; + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, num(p + ".m"), 1, num(p + ".k")); + assertCiphertext(p, c); + ballots.add(c); + } + AtomicReference statement = new AtomicReference<>(); + ElGamal.admit(ballots.get(0).raw(), ctx, 1, s -> { statement.set(s); return true; }); + assertEquals(numbers("nofn.encstmt.ballot1.publicInputs"), statement.get().publicInputs()); + + ElGamalCiphertext sum = ElGamalCiphertext.sum(ballots); + assertCiphertext("nofn.sum", sum); + assertEquals(num("nofn.sum.bound"), sum.bound()); + List ds = new ArrayList<>(); + for (int j = 1; j <= 3; j++) { + VerifiedDecryptionShare d = ElGamal.decryptionShare(keys.get(j - 1), sum); + assertPoint("nofn.D" + j, d.share()); + assertArrayEquals(bytes("nofn.D" + j + ".encoding"), d.encode()); + assertEquals(numbers("nofn.dleq" + j + ".publicInputs"), d.statement().publicInputs()); + assertEquals(numbers("nofn.pop" + j + ".publicInputs"), keys.get(j - 1).possessionStatement().publicInputs()); + ds.add(d); + } + assertEquals(num("nofn.tally").longValueExact(), ElGamal.decrypt(sum, ds, 5)); + List points = ds.stream().map(VerifiedDecryptionShare::share).toList(); + assertPoint("nofn.M", RawElGamalCiphertext.unmask(sum.blinded(), points)); + } + + @Test + @DisplayName("Registered-share order is unsigned lexicographic over encodings (the sortvec vector)") + void sortOrder() { + List shares = new ArrayList<>(); + for (String multiple : get("sortvec.multiples").split(",")) { + shares.add(VerifiedKeyShare.fromSecret(ElGamalSecretKey.of(new BigInteger(multiple)))); + } + NOfNKeyContext ctx = ElGamalPublicKey.aggregate(shares); + String[] multiples = get("sortvec.multiples").split(","); + String[] encodings = get("sortvec.encodings").split(","); + String[] expected = get("sortvec.registered_order").split(","); + for (int i = 0; i < expected.length; i++) { + int index = Arrays.asList(multiples).indexOf(expected[i]); + assertArrayEquals(HEX.parseHex(encodings[index]), ctx.shares().get(i).publicKey().encode()); + } + } + + @Test + @DisplayName("ADR counterexamples: wrong secret, mixed key, forged share, wrapped sum") + void counterexamples() { + // Wrong secret: (G, 4G) under PK = 3G. + NOfNKeyContext three = NOfNKeyContext.singleKey(ElGamalSecretKey.of(BigInteger.valueOf(3))); + ElGamalCiphertext c = ElGamal.encryptWithRandomness(three, BigInteger.ONE, 1, BigInteger.ONE); + assertPoint("cx.wrongsecret.PK", three.jointKey().point()); + assertPoint("cx.wrongsecret.A", c.handle()); + assertPoint("cx.wrongsecret.B", c.blinded()); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.decryptWithSecret(c, ElGamalSecretKey.of(num("cx.wrongsecret.secret_wrong")), 1)); + assertEquals(num("cx.wrongsecret.dec_right").longValueExact(), + ElGamal.decryptWithSecret(c, ElGamalSecretKey.of(num("cx.wrongsecret.secret_right")), 1)); + + // Mixed key: refused safely; the raw sum is the reference's. + NOfNKeyContext two = NOfNKeyContext.singleKey(ElGamalSecretKey.of(BigInteger.TWO)); + ElGamalCiphertext c2 = ElGamal.encryptWithRandomness(two, BigInteger.ONE, 1, BigInteger.ONE); + assertArrayEquals(bytes("cx.mixed.c1.encoding"), c.encode()); + assertArrayEquals(bytes("cx.mixed.c2.encoding"), c2.encode()); + assertThrows(IllegalArgumentException.class, () -> c.add(c2)); + assertArrayEquals(bytes("cx.mixed.sum.encoding"), c.raw().add(c2.raw()).encode()); + + // Forged share: keys 3G, 5G; m = 1, k = 7. + ElGamalSecretKey s1 = ElGamalSecretKey.of(BigInteger.valueOf(3)); + ElGamalSecretKey s2 = ElGamalSecretKey.of(BigInteger.valueOf(5)); + NOfNKeyContext ctx = ElGamalPublicKey.aggregate( + List.of(VerifiedKeyShare.fromSecret(s1), VerifiedKeyShare.fromSecret(s2))); + assertPoint("cx.forged.PK", ctx.jointKey().point()); + ElGamalCiphertext f = ElGamal.encryptWithRandomness(ctx, BigInteger.ONE, 1, BigInteger.valueOf(7)); + assertPoint("cx.forged.A", f.handle()); + assertPoint("cx.forged.B", f.blinded()); + assertPoint("cx.forged.D1", ElGamal.decryptionShare(s1, f).share()); + assertPoint("cx.forged.D2", ElGamal.decryptionShare(s2, f).share()); + JubjubPoint forged = JubjubPoint.fromAffine(num("cx.forged.D2_forged.u"), num("cx.forged.D2_forged.v")); + ElGamalHostApiTest.KnownSecretsDleqVerifier verifier = + new ElGamalHostApiTest.KnownSecretsDleqVerifier().know(BigInteger.valueOf(3), BigInteger.valueOf(5)); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(f, s2.publicKey(), forged, verifier)); + + // Wrapped sum: decrypts to 0 raw; Enc(l − 1) is refused at width 64. + ElGamalSecretKey sk = ElGamalSecretKey.of(scalar("sk")); + JubjubPoint pk = sk.publicKey().point(); + BigInteger m1 = num("cx.wrap.m1"); + RawElGamalCiphertext w1 = RawElGamalCiphertext.of(G.scalarMul(num("cx.wrap.k1")), + G.scalarMul(m1).add(pk.scalarMul(num("cx.wrap.k1")))); + RawElGamalCiphertext w2 = RawElGamalCiphertext.of(G.scalarMul(num("cx.wrap.k2")), + G.add(pk.scalarMul(num("cx.wrap.k2")))); + assertArrayEquals(bytes("cx.wrap.c1.encoding"), w1.encode()); + assertArrayEquals(bytes("cx.wrap.c2.encoding"), w2.encode()); + assertArrayEquals(bytes("cx.wrap.sum.encoding"), w1.add(w2).encode()); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.encryptWithRandomness(NOfNKeyContext.singleKey(sk), m1, 64, num("cx.wrap.k1"))); + } + + @Test + @DisplayName("Decoding vectors: every reject is rejected, every accept round-trips") + void decodingVectors() { + int cases = 0; + for (String key : ref.keySet()) { + if (!key.startsWith("decode_neg.") || !key.endsWith(".input")) continue; + String name = key.substring("decode_neg.".length(), key.length() - ".input".length()); + String p = "decode_neg." + name; + byte[] input = bytes(p + ".input"); + boolean accept = get(p + ".expected").equals("accept"); + String kind = get(p + ".kind"); + cases++; + try { + byte[] reencoded = switch (kind) { + case "ciphertext" -> RawElGamalCiphertext.decode(input).encode(); + case "publickey" -> VerifiedKeyShare.verify(input, s -> true).publicKey().encode(); + default -> throw new AssertionError("unknown kind " + kind); + }; + if (!accept) fail(name + " should be rejected (" + get(p + ".expected") + ")"); + assertArrayEquals(input, reencoded, name); + } catch (IllegalArgumentException e) { + if (accept) fail(name + " should be accepted: " + e.getMessage()); + } + } + assertTrue(cases >= 22, "decode cases: " + cases); + } + + @Test + @DisplayName("Affine vectors: canonical, on-curve, in the subgroup, and non-identity for keys") + void affineVectors() { + int cases = 0; + for (String key : ref.keySet()) { + if (!key.startsWith("affine_neg.") || !key.endsWith(".expected")) continue; + String p = key.substring(0, key.length() - ".expected".length()); + boolean accept = get(key).equals("accept"); + String kind = get(p + ".kind"); + cases++; + try { + JubjubPoint point = ElGamalEncodings.affineSubgroupPoint(num(p + ".u"), num(p + ".v"), p); + if (kind.equals("publickey")) ElGamalEncodings.requireKeyPoint(point, p); + if (!accept) fail(p + " should be rejected (" + get(key) + ")"); + } catch (IllegalArgumentException e) { + if (accept) fail(p + " should be accepted: " + e.getMessage()); + } + } + assertTrue(cases >= 11, "affine cases: " + cases); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/FastJubjubPointTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/FastJubjubPointTest.java new file mode 100644 index 00000000..17b73a85 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/FastJubjubPointTest.java @@ -0,0 +1,134 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.zeroj.bls12381.field.MontFr381; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import java.util.Random; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * {@link FastJubjubPoint} against {@link JubjubPoint}, which stays the oracle. The fast path is + * used for public data only (subgroup checks, sums, the discrete-log search), so its results + * must equal the BigInteger path on every input, torsion points included. + */ +class FastJubjubPointTest { + + private static final JubjubPoint G = JubjubPoint.SUBGROUP_GENERATOR; + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + private static final JubjubPoint ORDER_2 = JubjubPoint.fromAffine( + BigInteger.ZERO, JubjubCurve.BASE_FIELD_PRIME.subtract(BigInteger.ONE)); + /** {@code [l]·G_full} has order 8. */ + private static final JubjubPoint ORDER_8 = JubjubPoint.FULL_GENERATOR.scalarMul(L); + + private static BigInteger random(Random rnd, int bits) { + return new BigInteger(bits, rnd); + } + + private static void assertSameRepresentative(JubjubPoint expected, FastJubjubPoint actual) { + assertEquals(expected.u(), actual.u.toBigInteger(), "U"); + assertEquals(expected.v(), actual.v.toBigInteger(), "V"); + assertEquals(expected.z(), actual.z.toBigInteger(), "Z"); + assertEquals(expected.t(), actual.t.toBigInteger(), "T"); + } + + @Test + @DisplayName("add, doubled and negate give the same projective representative as JubjubPoint") + void addAndDoubleMatchExactly() { + Random rnd = new Random(52); + List points = new ArrayList<>(List.of( + JubjubPoint.IDENTITY, G, ORDER_2, ORDER_8, JubjubPoint.FULL_GENERATOR)); + for (int i = 0; i < 12; i++) { + points.add(G.scalarMul(random(rnd, 252)).add(ORDER_8.scalarMul(BigInteger.valueOf(i)))); + } + for (JubjubPoint p : points) { + FastJubjubPoint fp = FastJubjubPoint.of(p); + assertSameRepresentative(p.doubled(), fp.doubled()); + assertSameRepresentative(p.negate(), fp.negate()); + for (JubjubPoint q : points) { + assertSameRepresentative(p.add(q), fp.add(FastJubjubPoint.of(q))); + } + } + } + + @Test + @DisplayName("Public scalar multiplication equals JubjubPoint.scalarMul, including k = 0 and k = l") + void scalarMulMatches() { + Random rnd = new Random(53); + List scalars = new ArrayList<>(List.of( + BigInteger.ZERO, BigInteger.ONE, BigInteger.TWO, L, L.subtract(BigInteger.ONE), + L.add(BigInteger.ONE), BigInteger.ONE.shiftLeft(252).subtract(BigInteger.ONE))); + for (int i = 0; i < 16; i++) { + scalars.add(random(rnd, 1 + rnd.nextInt(256))); + } + for (JubjubPoint base : List.of(G, JubjubPoint.FULL_GENERATOR, ORDER_8, ORDER_2)) { + for (BigInteger k : scalars) { + FastJubjubPoint fast = FastJubjubPoint.of(base).scalarMulPublic(k); + assertTrue(base.scalarMul(k).projectiveEquals(fast.toJubjubPoint()), "k=" + k); + } + } + for (long k : new long[]{0, 1, 2, 3, 4095, Long.MAX_VALUE}) { + assertTrue(G.scalarMul(BigInteger.valueOf(k)) + .projectiveEquals(FastJubjubPoint.GENERATOR.scalarMulPublic(k).toJubjubPoint())); + } + assertThrows(IllegalArgumentException.class, + () -> FastJubjubPoint.GENERATOR.scalarMulPublic(BigInteger.ONE.negate())); + assertThrows(IllegalArgumentException.class, () -> FastJubjubPoint.GENERATOR.scalarMulPublic(-1L)); + } + + @Test + @DisplayName("Subgroup check agrees with JubjubPoint.isInSubgroup on subgroup and torsion points") + void subgroupCheckMatches() { + Random rnd = new Random(54); + assertTrue(FastJubjubPoint.isInPrimeOrderSubgroup(JubjubPoint.IDENTITY)); + assertTrue(FastJubjubPoint.isInPrimeOrderSubgroup(G)); + assertFalse(FastJubjubPoint.isInPrimeOrderSubgroup(ORDER_2)); + assertFalse(FastJubjubPoint.isInPrimeOrderSubgroup(ORDER_8)); + assertFalse(FastJubjubPoint.isInPrimeOrderSubgroup(JubjubPoint.FULL_GENERATOR)); + for (int i = 0; i < 8; i++) { + JubjubPoint p = G.scalarMul(random(rnd, 252)).add(ORDER_8.scalarMul(BigInteger.valueOf(i))); + assertEquals(p.isInSubgroup(), FastJubjubPoint.isInPrimeOrderSubgroup(p), "torsion index " + i); + } + } + + @Test + @DisplayName("Projective equality, identity test and round trip to JubjubPoint") + void equalityAndRoundTrip() { + FastJubjubPoint g = FastJubjubPoint.GENERATOR; + FastJubjubPoint scaled = g.add(g).add(g).subtract(g).subtract(g); + assertTrue(scaled.projectiveEquals(g)); + assertFalse(g.projectiveEquals(g.doubled())); + assertTrue(g.subtract(g).isIdentity()); + assertFalse(g.isIdentity()); + assertTrue(G.projectiveEquals(scaled.toJubjubPoint())); + assertTrue(JubjubPoint.IDENTITY.projectiveEquals(FastJubjubPoint.IDENTITY.toJubjubPoint())); + assertTrue(G.add(G).projectiveEquals(FastJubjubPoint.sum(List.of(G, G)))); + } + + @Test + @DisplayName("Batch inversion inverts every element and refuses a zero element") + void batchInvert() { + Random rnd = new Random(55); + int n = 37; + MontFr381[] zs = new MontFr381[n]; + MontFr381[] original = new MontFr381[n]; + for (int i = 0; i < n; i++) { + zs[i] = MontFr381.fromBigInteger(random(rnd, 254).add(BigInteger.ONE)); + original[i] = zs[i]; + } + FastJubjubPoint.batchInvert(zs, n, new MontFr381[n]); + for (int i = 0; i < n; i++) { + assertTrue(original[i].mul(zs[i]).isOne(), "element " + i); + } + MontFr381[] withZero = {MontFr381.ONE, MontFr381.ZERO, MontFr381.ONE}; + assertThrows(IllegalStateException.class, + () -> FastJubjubPoint.batchInvert(withZero, 3, new MontFr381[3])); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/InCircuitElGamalTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/InCircuitElGamalTest.java new file mode 100644 index 00000000..d6bf8045 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/InCircuitElGamalTest.java @@ -0,0 +1,292 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.zeroj.api.CurveId; +import org.zeroj.circuit.BitDecomposition; +import org.zeroj.circuit.CircuitBuilder; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.concurrent.atomic.AtomicReference; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0052 M2 at the {@link org.zeroj.circuit.CircuitAPI} level: the library's own host + * encryption, {@link ElGamal}, against {@link InCircuitElGamal} on the same {@code (m, k)} + * (the differential the ADR's verification section asks for), and the low-level guard rails. + */ +class InCircuitElGamalTest { + + private static CircuitBuilder circuit(int width) { + return CircuitBuilder.create("in-circuit-elgamal-w" + width) + .publicVar("pkU").publicVar("pkV") + .publicVar("aU").publicVar("aV").publicVar("bU").publicVar("bV") + .secretVar("m").secretVar("k") + .define(api -> { + var key = InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")); + var ct = InCircuitElGamal.encrypt(api, key, + api.decompose(api.var("m"), width), api.decompose(api.var("k"), 252)); + InCircuitElGamal.assertAffineEquals(api, ct.handle(), api.var("aU"), api.var("aV")); + InCircuitElGamal.assertAffineEquals(api, ct.blinded(), api.var("bU"), api.var("bV")); + }); + } + + private static Map> witness(ElGamalCiphertext c, BigInteger m, BigInteger k) { + Map> w = new HashMap<>(); + List key = c.context().jointKey().publicInputs(); + List ct = c.publicInputs(); + w.put("pkU", List.of(key.get(0))); + w.put("pkV", List.of(key.get(1))); + w.put("aU", List.of(ct.get(0))); + w.put("aV", List.of(ct.get(1))); + w.put("bU", List.of(ct.get(2))); + w.put("bV", List.of(ct.get(3))); + w.put("m", List.of(m)); + w.put("k", List.of(k)); + return w; + } + + @Test + @DisplayName("Differential: ElGamal.encrypt output verifies in-circuit for the same (m, k), widths 1, 8, 64") + void hostVersusCircuit() { + Random rnd = new Random(61); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(ElGamalSecretKey.generate(new SecureRandom())); + for (int width : new int[]{1, 8, 64}) { + CircuitBuilder circuit = circuit(width); + for (int i = 0; i < 3; i++) { + BigInteger m = new BigInteger(width, rnd); + BigInteger k = ElGamal.sample(new SecureRandom()); + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, m, width, k); + assertDoesNotThrow(() -> circuit.calculateWitness(witness(c, m, k), CurveId.BLS12_381), + "w=" + width + " m=" + m); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + witness(c, m, k.add(BigInteger.ONE).mod(JubjubCurve.SUBGROUP_ORDER)), CurveId.BLS12_381)); + } + } + } + + @Test + @DisplayName("Foreign decompositions, wrong widths and a constant randomness wire are refused at definition") + void guardRails() { + var captured = new AtomicReference(); + CircuitBuilder.create("foreign").secretVar("k") + .define(api -> captured.set(api.decompose(api.var("k"), 252))); + BitDecomposition foreign = captured.get(); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("victim") + .publicVar("pkU").publicVar("pkV").secretVar("m") + .define(api -> InCircuitElGamal.encrypt(api, + InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")), + api.decompose(api.var("m"), 1), foreign)), "foreign randomness"); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("constant-k") + .publicVar("pkU").publicVar("pkV").secretVar("m") + .define(api -> InCircuitElGamal.encrypt(api, + InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")), + api.decompose(api.var("m"), 1), api.decompose(api.constant(BigInteger.TEN), 252))), + "constant randomness"); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("zero-width") + .publicVar("pkU").publicVar("pkV").secretVar("m").secretVar("k") + .define(api -> InCircuitElGamal.encrypt(api, + InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")), + api.decompose(api.var("m"), 65), api.decompose(api.var("k"), 252))), "width 65"); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("secret-key") + .secretVar("pkU").secretVar("pkV") + .define(api -> InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")))); + } + + // ------------------------------------------------------------------ review round 1 (M2) + + private static final BigInteger P = JubjubCurve.BASE_FIELD_PRIME; + private static final BigInteger K = new BigInteger("0e6e9d50fbbb41bd6191632fcbf588bd6843f389aa856195f9a69d8cff98a304", 16); + + private static CircuitBuilder declare(String name, boolean keyPublic) { + CircuitBuilder b = CircuitBuilder.create(name); + b = keyPublic ? b.publicVar("pkU").publicVar("pkV") : b.secretVar("pkU").secretVar("pkV"); + return b.publicVar("aU").publicVar("aV").publicVar("bU").publicVar("bV").secretVar("m").secretVar("k"); + } + + private static CircuitBuilder encryption(String name, boolean keyPublic, int width) { + return declare(name, keyPublic).define(api -> { + var key = keyPublic + ? InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")) + : InCircuitElGamal.keyWitnessedInSubgroup(api, api.var("pkU"), api.var("pkV")); + var ct = InCircuitElGamal.encrypt(api, key, api.decompose(api.var("m"), width), api.decompose(api.var("k"), 252)); + InCircuitElGamal.assertAffineEquals(api, ct.handle(), api.var("aU"), api.var("aV")); + InCircuitElGamal.assertAffineEquals(api, ct.blinded(), api.var("bU"), api.var("bV")); + }); + } + + /** + * The same computation as {@link InCircuitElGamal#encrypt} with no key checks at all (no + * curve equation, no identity, no subgroup), but with the (A, B) binding. It yields the + * (A, B) the real circuit computes for an arbitrary (u, v). A witness this twin accepts and + * the real circuit rejects fails only on a key check: the negative is isolated. + */ + private static CircuitBuilder twin(int width) { + return declare("twin-w" + width, true).define(api -> { + var u = api.var("pkU"); + var v = api.var("pkV"); + var key = new InCircuitJubjub.Point(u, v, api.constant(BigInteger.ONE), api.mul(u, v)); + var k = api.decompose(api.var("k"), 252); + var m = api.decompose(api.var("m"), width); + var handle = InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, k); + var mask = InCircuitJubjub.scalarMulVariableBase(api, key, k); + var encoded = width == 1 + ? InCircuitJubjub.select(api, m.bit(0), InCircuitJubjub.constant(api, JubjubPoint.SUBGROUP_GENERATOR), + InCircuitJubjub.identity(api)) + : InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, m); + var blinded = InCircuitJubjub.add(api, encoded, mask); + InCircuitElGamal.assertAffineEquals(api, handle, api.var("aU"), api.var("aV")); + InCircuitElGamal.assertAffineEquals(api, blinded, api.var("bU"), api.var("bV")); + }); + } + + /** Runs the twin unbound to learn the (A, B) it computes for (u, v), then binds them. */ + private static Map> consistentWitness(int width, BigInteger u, BigInteger v, + BigInteger m, BigInteger k) { + AtomicReference out = new AtomicReference<>(); + CircuitBuilder probe = declare("probe", true).define(api -> { + var pu = api.var("pkU"); + var pv = api.var("pkV"); + var key = new InCircuitJubjub.Point(pu, pv, api.constant(BigInteger.ONE), api.mul(pu, pv)); + var kd = api.decompose(api.var("k"), 252); + var md = api.decompose(api.var("m"), width); + var handle = InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, kd); + var mask = InCircuitJubjub.scalarMulVariableBase(api, key, kd); + var encoded = width == 1 + ? InCircuitJubjub.select(api, md.bit(0), InCircuitJubjub.constant(api, JubjubPoint.SUBGROUP_GENERATOR), + InCircuitJubjub.identity(api)) + : InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, md); + out.set(new InCircuitJubjub.Point[]{handle, InCircuitJubjub.add(api, encoded, mask)}); + api.assertEqual(api.var("aU"), api.var("aU")); // keep the public wires referenced + }); + Map> w = new HashMap<>(); + w.put("pkU", List.of(u)); + w.put("pkV", List.of(v)); + w.put("m", List.of(m)); + w.put("k", List.of(k)); + for (String n : List.of("aU", "aV", "bU", "bV")) w.put(n, List.of(BigInteger.ZERO)); + BigInteger[] full = probe.calculateWitness(w, CurveId.BLS12_381); + String[][] names = {{"aU", "aV"}, {"bU", "bV"}}; + for (int i = 0; i < 2; i++) { + InCircuitJubjub.Point p = out.get()[i]; + BigInteger zi = full[p.z().id()].modInverse(P); + w.put(names[i][0], List.of(full[p.u().id()].multiply(zi).mod(P))); + w.put(names[i][1], List.of(full[p.v().id()].multiply(zi).mod(P))); + } + return w; + } + + @Test + @DisplayName("I8: a Key admitted in one circuit is refused in another (both origins)") + void foreignKeyRefused() { + for (boolean keyPublic : new boolean[]{true, false}) { + AtomicReference captured = new AtomicReference<>(); + declare("A", keyPublic).define(api -> captured.set(keyPublic + ? InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")) + : InCircuitElGamal.keyWitnessedInSubgroup(api, api.var("pkU"), api.var("pkV")))); + InCircuitElGamal.Key foreign = captured.get(); + var e = assertThrows(IllegalArgumentException.class, () -> declare("B", keyPublic).define(api -> + InCircuitElGamal.encrypt(api, foreign, api.decompose(api.var("m"), 1), api.decompose(api.var("k"), 252)))); + assertTrue(e.getMessage().contains("different circuit"), e.getMessage()); + } + } + + @Test + @DisplayName("Isolated negatives: an off-curve key with consistent (A, B) passes the unchecked twin and fails only the key checks") + void offCurveKeyIsolated() { + Map> w = consistentWitness(1, BigInteger.ONE, BigInteger.ONE, BigInteger.ONE, K); + assertDoesNotThrow(() -> twin(1).calculateWitness(w, CurveId.BLS12_381), "the twin accepts it"); + assertThrows(ArithmeticException.class, () -> encryption("real-fixed", true, 1).calculateWitness(w, CurveId.BLS12_381)); + assertThrows(ArithmeticException.class, () -> encryption("real-witnessed", false, 1).calculateWitness(w, CurveId.BLS12_381)); + // Positive control: the same construction for a valid key is accepted by the real circuit, + // so the twin still computes exactly what encrypt computes. + JubjubPoint valid = JubjubPoint.SUBGROUP_GENERATOR.scalarMul(BigInteger.valueOf(77)).normalized(); + Map> control = consistentWitness(1, valid.u(), valid.v(), BigInteger.ONE, K); + assertDoesNotThrow(() -> encryption("real-fixed", true, 1).calculateWitness(control, CurveId.BLS12_381)); + assertDoesNotThrow(() -> encryption("real-witnessed", false, 1).calculateWitness(control, CurveId.BLS12_381)); + Map> identity = consistentWitness(1, BigInteger.ZERO, BigInteger.ONE, BigInteger.ONE, K); + assertDoesNotThrow(() -> twin(1).calculateWitness(identity, CurveId.BLS12_381)); + assertThrows(ArithmeticException.class, () -> encryption("real-fixed", true, 1).calculateWitness(identity, CurveId.BLS12_381)); + } + + @Test + @DisplayName("Isolated DLEQ negative: an off-curve base with consistent D fails only the base's curve check") + void offCurveBaseIsolated() { + BigInteger x = BigInteger.valueOf(123456789); + AtomicReference out = new AtomicReference<>(); + CircuitBuilder probe = CircuitBuilder.create("dleq-probe").secretVar("xu").secretVar("xv").secretVar("x") + .define(api -> { + var xu = api.var("xu"); + var xv = api.var("xv"); + var base = new InCircuitJubjub.Point(xu, xv, api.constant(BigInteger.ONE), api.mul(xu, xv)); + var xd = api.decompose(api.var("x"), 252); + out.set(new InCircuitJubjub.Point[]{ + InCircuitJubjub.scalarMulFixedBase(api, JubjubPoint.SUBGROUP_GENERATOR, xd), + InCircuitJubjub.scalarMulVariableBase(api, base, xd)}); + }); + Map> pw = new HashMap<>(); + pw.put("xu", List.of(BigInteger.ONE)); + pw.put("xv", List.of(BigInteger.ONE)); + pw.put("x", List.of(x)); + BigInteger[] full = probe.calculateWitness(pw, CurveId.BLS12_381); + BigInteger[] coords = new BigInteger[4]; + for (int i = 0; i < 2; i++) { + InCircuitJubjub.Point p = out.get()[i]; + BigInteger zi = full[p.z().id()].modInverse(P); + coords[2 * i] = full[p.u().id()].multiply(zi).mod(P); + coords[2 * i + 1] = full[p.v().id()].multiply(zi).mod(P); + } + CircuitBuilder real = CircuitBuilder.create("dleq-real") + .publicVar("xU").publicVar("xV").publicVar("pU").publicVar("pV").publicVar("dU").publicVar("dV").secretVar("x") + .define(api -> InCircuitElGamal.assertDiscreteLogEquality(api, api.decompose(api.var("x"), 252), + api.var("xU"), api.var("xV"), api.var("pU"), api.var("pV"), api.var("dU"), api.var("dV"))); + Map> w = new HashMap<>(); + w.put("xU", List.of(BigInteger.ONE)); + w.put("xV", List.of(BigInteger.ONE)); + w.put("pU", List.of(coords[0])); + w.put("pV", List.of(coords[1])); + w.put("dU", List.of(coords[2])); + w.put("dV", List.of(coords[3])); + w.put("x", List.of(x)); + var e = assertThrows(ArithmeticException.class, () -> real.calculateWitness(w, CurveId.BLS12_381)); + assertTrue(JubjubPoint.SUBGROUP_GENERATOR.scalarMul(x).normalized().u().equals(coords[0]), "P itself is honest"); + // With an on-curve base the same construction is accepted: only the curve row rejected it. + JubjubPoint onCurve = JubjubPoint.SUBGROUP_GENERATOR.scalarMul(K).normalized(); + JubjubPoint d = onCurve.scalarMul(x).normalized(); + w.put("xU", List.of(onCurve.u())); + w.put("xV", List.of(onCurve.v())); + w.put("dU", List.of(d.u())); + w.put("dV", List.of(d.v())); + assertDoesNotThrow(() -> real.calculateWitness(w, CurveId.BLS12_381), e.getMessage()); + } + + @Test + @DisplayName("Hiding guard rails: randomness confined below 252 bits via its range or a recomposition of its bits is refused") + void hidingGuardRails() { + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("confined-range") + .publicVar("pkU").publicVar("pkV").secretVar("m").secretVar("k") + .define(api -> { + api.decompose(api.var("k"), 64); // proves k < 2^64 + InCircuitElGamal.encrypt(api, + InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")), + api.decompose(api.var("m"), 1), api.decompose(api.var("k"), 252)); + }), "k range-confined by its own decomposition"); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("confined-bits") + .publicVar("pkU").publicVar("pkV").secretVar("m").secretVar("k") + .define(api -> { + var kd = api.decompose(api.var("k"), 252); + api.decompose(api.fromBinary(kd.bits()), 128); // confines the recomposed k to 128 bits + InCircuitElGamal.encrypt(api, + InCircuitElGamal.keyFromVerifierFixedPublic(api, api.var("pkU"), api.var("pkV")), + api.decompose(api.var("m"), 1), kd); + }), "k confined through a recomposition of its bits"); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/JubjubDecodeSqrtTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/JubjubDecodeSqrtTest.java new file mode 100644 index 00000000..cd6fbd36 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/JubjubDecodeSqrtTest.java @@ -0,0 +1,69 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.util.Arrays; +import java.util.Random; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; + +/** + * The Tonelli–Shanks constants behind {@link JubjubPoint#fromBytes}, and decoding checked + * against the Euler criterion on random inputs: every 32-byte string either decodes to a point + * that re-encodes to exactly those bytes, or is rejected for a reason the criterion confirms. + */ +class JubjubDecodeSqrtTest { + + private static final BigInteger P = JubjubCurve.BASE_FIELD_PRIME; + private static final BigInteger HALF = P.subtract(BigInteger.ONE).shiftRight(1); + + @Test + @DisplayName("The cached non-residue 5 is the smallest quadratic non-residue mod p") + void nonResidue() { + for (int n = 2; n < 5; n++) { + assertEquals(BigInteger.ONE, BigInteger.valueOf(n).modPow(HALF, P), n + " is a residue"); + } + assertEquals(P.subtract(BigInteger.ONE), JubjubPoint.TS_NON_RESIDUE.modPow(HALF, P)); + } + + @Test + @DisplayName("Random encodings: canonical round trip, or a rejection the Euler criterion confirms") + void randomEncodings() { + Random rnd = new Random(59); + int decoded = 0; + for (int i = 0; i < 2_000; i++) { + byte[] bytes = new byte[32]; + rnd.nextBytes(bytes); + BigInteger v = littleEndian(bytes); + try { + JubjubPoint point = JubjubPoint.fromBytes(bytes); + decoded++; + assertArrayEquals(bytes, point.toBytes(), "decode then encode is the identity"); + } catch (IllegalArgumentException e) { + if (v.compareTo(P) >= 0) continue; + BigInteger vv = v.multiply(v).mod(P); + BigInteger num = vv.subtract(BigInteger.ONE).mod(P); + BigInteger den = JubjubCurve.D.multiply(vv).add(BigInteger.ONE).mod(P); + BigInteger uu = num.multiply(den.modInverse(P)).mod(P); + boolean nonSquare = uu.signum() != 0 && uu.modPow(HALF, P).equals(P.subtract(BigInteger.ONE)); + boolean zeroWithSign = uu.signum() == 0 && (bytes[31] & 0x80) != 0; + if (!nonSquare && !zeroWithSign) { + fail("rejected a decodable encoding: " + Arrays.toString(bytes) + " — " + e.getMessage()); + } + } + } + assertTrue(decoded > 400, "roughly half of the in-range strings decode: " + decoded); + } + + private static BigInteger littleEndian(byte[] bytes) { + byte[] be = new byte[33]; + for (int i = 0; i < 32; i++) be[32 - i] = bytes[i]; + be[1] &= 0x7F; // clear the sign bit (byte 31 of the little-endian input) + return new BigInteger(be); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/JubjubDiscreteLogTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/JubjubDiscreteLogTest.java new file mode 100644 index 00000000..727c9af0 --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/JubjubDiscreteLogTest.java @@ -0,0 +1,125 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.util.OptionalLong; +import java.util.Random; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** The bounded discrete-log search ({@code elgamal-jubjub-v1} §6.3, ADR-0052 Q4). */ +class JubjubDiscreteLogTest { + + private static final JubjubPoint G = JubjubPoint.SUBGROUP_GENERATOR; + + private static JubjubPoint pointOf(long t) { + return G.scalarMul(BigInteger.valueOf(t)); + } + + @Test + @DisplayName("Linear range: finds every t in [0, bound] and nothing above it") + void linearRange() { + JubjubDiscreteLog table = JubjubDiscreteLog.forBound(100); + for (long t = 0; t <= 100; t++) { + assertEquals(OptionalLong.of(t), table.solve(pointOf(t), 100), "t=" + t); + } + assertEquals(OptionalLong.empty(), table.solve(pointOf(101), 100)); + assertEquals(OptionalLong.empty(), table.solve(pointOf(50), 49)); + } + + @Test + @DisplayName("Baby-step giant-step: block edges, both signs, the bound itself and one past it") + void bsgsEdges() { + long bound = 1_000_003; + JubjubDiscreteLog table = JubjubDiscreteLog.forBound(bound); + long m = (long) Math.floor(Math.sqrt((bound + 1) / 2.0)) + 1; + long stride = 2 * m + 1; + long[] probes = {0, 1, m - 1, m, m + 1, 2 * m, stride, stride + m, 3 * stride - 1, + bound - 1, bound, 4096, 4095, 123_456}; + for (long t : probes) { + assertEquals(OptionalLong.of(t), table.solve(pointOf(t), bound), "t=" + t); + } + assertEquals(OptionalLong.empty(), table.solve(pointOf(bound + 1), bound)); + assertEquals(OptionalLong.empty(), table.solve(pointOf(bound + 5_000_000), bound)); + // A smaller bound on the same table: the giant-step loop stops at the requested bound. + assertEquals(OptionalLong.of(5000), table.solve(pointOf(5000), 5000)); + assertEquals(OptionalLong.empty(), table.solve(pointOf(5001), 5000)); + } + + @Test + @DisplayName("Random targets up to 2^32 are found exactly") + void randomLarge() { + long bound = (1L << 32) - 1; + JubjubDiscreteLog table = JubjubDiscreteLog.forBound(bound); + Random rnd = new Random(56); + for (int i = 0; i < 6; i++) { + long t = rnd.nextLong() & bound; + assertEquals(OptionalLong.of(t), table.solve(pointOf(t), bound), "t=" + t); + } + } + + @Test + @DisplayName("A point that is not a small multiple of G is reported absent, never approximated") + void absentTargets() { + JubjubDiscreteLog table = JubjubDiscreteLog.forBound(100_000); + assertEquals(OptionalLong.empty(), table.solve(PedersenCommitment.H, 100_000)); + assertEquals(OptionalLong.empty(), + table.solve(G.scalarMul(JubjubCurve.SUBGROUP_ORDER.subtract(BigInteger.ONE)), 100_000)); + } + + @Test + @DisplayName("Forced key collisions cost time only: every candidate is confirmed exactly") + void collisionsAreConfirmed() { + long bound = 200_000; + // 4-bit keys: almost every lookup hits many unrelated entries. + JubjubDiscreteLog table = JubjubDiscreteLog.create( + bound, JubjubDiscreteLog.DEFAULT_MAX_BABY_STEPS, JubjubDiscreteLog.DEFAULT_MAX_GIANT_STEPS, 0xFL); + for (long t : new long[]{0, 1, 4096, 77_777, bound}) { + assertEquals(OptionalLong.of(t), table.solve(pointOf(t), bound), "t=" + t); + } + assertEquals(OptionalLong.empty(), table.solve(pointOf(bound + 1), bound)); + } + + @Test + @DisplayName("Limits are explicit: searches beyond the table or the caps are refused up front") + void limits() { + assertThrows(IllegalArgumentException.class, () -> JubjubDiscreteLog.forBound(-1)); + assertThrows(IllegalArgumentException.class, () -> JubjubDiscreteLog.forBound(10, 0, 1)); + assertThrows(IllegalArgumentException.class, () -> JubjubDiscreteLog.forBound(10, 1, 0)); + // 2^40 points cannot be covered by 2^10 baby steps and 2^10 giant steps. + assertThrows(IllegalArgumentException.class, + () -> JubjubDiscreteLog.forBound(1L << 40, 1 << 10, 1 << 10)); + JubjubDiscreteLog table = JubjubDiscreteLog.forBound(10_000); + assertThrows(IllegalArgumentException.class, () -> table.solve(G, 10_001)); + assertThrows(IllegalArgumentException.class, () -> table.solve(G, -1)); + assertTrue(JubjubDiscreteLog.forBound(Long.MAX_VALUE >> 20).maxBound() > 0); + } + + @Test + @DisplayName("Custom caps cannot overflow the table size or the search arithmetic (review F11)") + void customCapsOverflow() { + // Review F11's counterexample: babySteps + 1 wrapped, giving an empty four-slot table that + // found neither 0 nor 1. It is now refused before anything is allocated. + assertThrows(IllegalArgumentException.class, + () -> JubjubDiscreteLog.forBound(Long.MAX_VALUE, Integer.MAX_VALUE, Long.MAX_VALUE)); + assertThrows(IllegalArgumentException.class, () -> JubjubDiscreteLog.tableCapacity(Integer.MAX_VALUE)); + assertThrows(IllegalArgumentException.class, () -> JubjubDiscreteLog.tableCapacity(0)); + assertEquals(4, JubjubDiscreteLog.tableCapacity(1)); + assertEquals(1 << 19, JubjubDiscreteLog.tableCapacity(JubjubDiscreteLog.DEFAULT_MAX_BABY_STEPS)); + // The largest table: 805,306,366 baby steps in 2^30 slots; one more needs 2^31. + assertEquals(1 << 30, JubjubDiscreteLog.tableCapacity(805_306_366)); + assertThrows(IllegalArgumentException.class, () -> JubjubDiscreteLog.tableCapacity(805_306_367)); + // A bound whose search would step past Long.MAX_VALUE is refused rather than wrapped. + assertThrows(IllegalArgumentException.class, + () -> JubjubDiscreteLog.forBound(Long.MAX_VALUE, 1 << 10, Long.MAX_VALUE)); + // Supported custom caps still find small plaintexts, including 0 and 1. + JubjubDiscreteLog custom = JubjubDiscreteLog.forBound(1 << 20, 1 << 6, 1 << 16); + for (long t : new long[]{0, 1, 4095, 4096, 123_457, 1 << 20}) { + assertEquals(OptionalLong.of(t), custom.solve(pointOf(t), 1 << 20), "t=" + t); + } + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdDecryptionTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdDecryptionTest.java new file mode 100644 index 00000000..fd55fcaf --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdDecryptionTest.java @@ -0,0 +1,192 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.List; +import java.util.Set; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0053 M3: threshold decryption on ADR-0052's safe API (D5, D5a; invariants I8, I9, I15). + * Shares are verified against {@code Y_j} taken from the context by identifier. The F7 + * fixtures, with an identity-valued share and with equal {@code Y_j}, decrypt through the safe + * context, and every {@code (t + 1)}-subset decrypts identically. + */ +class ThresholdDecryptionTest { + + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + private static final SecureRandom RNG = new SecureRandom(); + + private static List run(DkgHarness h) { + h.run(); + assertTrue(h.aborted.isEmpty(), "aborted: " + h.aborted); + List out = new ArrayList<>(); + for (DkgParticipant p : h.participants) out.add(p.result()); + return out; + } + + private static List subsets(int n, int size) { + List out = new ArrayList<>(); + collect(1, n, 0, new int[size], out); + return out; + } + + private static void collect(int start, int n, int depth, int[] current, List out) { + if (depth == current.length) { + out.add(current.clone()); + return; + } + for (int i = start; i <= n; i++) { + current[depth] = i; + collect(i + 1, n, depth + 1, current, out); + } + } + + /** Verifies shares against the participants' real secrets: a passing check is a true statement. */ + private static ElGamalHostApiTest.KnownSecretsDleqVerifier verifierFor(List shares) { + ElGamalHostApiTest.KnownSecretsDleqVerifier v = new ElGamalHostApiTest.KnownSecretsDleqVerifier(); + for (ThresholdKeyShare s : shares) v.know(s.secretScalar()); + return v; + } + + @Test + @DisplayName("2-of-3, 3-of-5, 4-of-7: every (t + 1)-subset and the full set decrypt the same value; Σ λ_j x_j = x") + void allSubsets() { + for (int[] tn : new int[][]{{1, 3}, {2, 5}, {3, 7}}) { + int t = tn[0]; + int n = tn[1]; + DkgConfig config = DkgHarness.config(t, n, "threshold", n); + List keys = run(DkgHarness.random(config, DkgHarness.HONEST)); + ThresholdKeyContext ctx = keys.get(0).context(); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 5, 3, RNG); + List shares = new ArrayList<>(); + ElGamalHostApiTest.KnownSecretsDleqVerifier v = verifierFor(keys); + for (ThresholdKeyShare k : keys) { + VerifiedDecryptionShare own = ElGamal.decryptionShare(k, c); + shares.add(VerifiedDecryptionShare.verify(c, k.id(), own.encode(), v)); + } + for (int[] s : subsets(n, t + 1)) { + List chosen = new ArrayList<>(); + for (int id : s) chosen.add(shares.get(id - 1)); + assertEquals(5, ElGamal.decrypt(c, chosen, 7)); + BigInteger[] lambda = ThresholdMath.lagrangeAt(s, 0); + BigInteger x = BigInteger.ZERO; + for (int i = 0; i < s.length; i++) x = x.add(lambda[i].multiply(keys.get(s[i] - 1).secretScalar())).mod(L); + assertTrue(JubjubPoint.SUBGROUP_GENERATOR.scalarMul(x).projectiveEquals(ctx.jointKey().point())); + } + assertEquals(5, ElGamal.decrypt(c, shares, 7), "all n shares: the extra ones are checked"); + } + } + + @Test + @DisplayName("F7 fixtures: F(z) = 3 − 3z (Y_1 = O, D_1 = O) and F(z) = 3 (equal Y_j) decrypt from every pair") + void f7Fixtures() { + for (BigInteger thirdSlope : List.of(L.subtract(BigInteger.valueOf(6)), L.subtract(BigInteger.valueOf(3)))) { + DkgConfig config = DkgHarness.config(1, 3, "f7", thirdSlope.longValue() & 0xFF); + BigInteger[] slopes = {BigInteger.ONE, BigInteger.TWO, thirdSlope}; + List d = new ArrayList<>(); + for (int i = 0; i < 3; i++) { + d.add(ThresholdVss.dealWithCoefficients(new BigInteger[]{BigInteger.ONE, slopes[i]}, + new BigInteger[]{ElGamal.sample(RNG), ElGamal.sample(RNG)})); + } + List keys = run(DkgHarness.fixed(config, d, DkgHarness.HONEST)); + ThresholdKeyContext ctx = keys.get(0).context(); + assertTrue(ctx.jointKey().point().projectiveEquals(JubjubPoint.SUBGROUP_GENERATOR.scalarMul(BigInteger.valueOf(3)))); + if (thirdSlope.equals(L.subtract(BigInteger.valueOf(6)))) { + assertTrue(ctx.verificationKey(1).isIdentity(), "Y_1 = O is valid and kept"); + assertEquals(BigInteger.ZERO, keys.get(0).secretScalar()); + } else { + assertTrue(ctx.verificationKey(1).projectiveEquals(ctx.verificationKey(2))); + assertTrue(ctx.verificationKey(2).projectiveEquals(ctx.verificationKey(3))); + } + ElGamalCiphertext c = ElGamal.encrypt(ctx, 1, 1, RNG); + ElGamalHostApiTest.KnownSecretsDleqVerifier v = verifierFor(keys); + List shares = new ArrayList<>(); + for (ThresholdKeyShare k : keys) { + VerifiedDecryptionShare own = ElGamal.decryptionShare(k, c); + shares.add(VerifiedDecryptionShare.verify(c, k.id(), own.share(), v)); + } + if (thirdSlope.equals(L.subtract(BigInteger.valueOf(6)))) { + assertTrue(shares.get(0).share().isIdentity(), "D_1 = O"); + } + for (int[] s : subsets(3, 2)) { + assertEquals(1, ElGamal.decrypt(c, List.of(shares.get(s[0] - 1), shares.get(s[1] - 1)), 1)); + } + } + } + + @Test + @DisplayName("Negatives: too few, duplicate identifier, unqualified identifier, wrong ciphertext, invalid proof, inconsistent subset, single-key") + void negatives() { + DkgConfig config = DkgHarness.config(1, 3, "threshold-negatives", 1); + // Dealer 3 is disqualified, so identifier 3 is outside QUAL. + DkgHarness h = DkgHarness.random(config, (m, honest) -> + m.kind() == DkgMessage.Kind.COMMITMENTS && m.sender() == 3 ? List.of() : honest).run(); + assertEquals(Set.of(3), h.aborted.keySet()); + ThresholdKeyShare k1 = h.participant(1).result(); + ThresholdKeyShare k2 = h.participant(2).result(); + ThresholdKeyContext ctx = k1.context(); + assertEquals(Set.of(1, 2), ctx.qual()); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 1, 1, RNG); + ElGamalHostApiTest.KnownSecretsDleqVerifier v = verifierFor(List.of(k1, k2)); + VerifiedDecryptionShare d1 = ElGamal.decryptionShare(k1, c); + VerifiedDecryptionShare d2 = ElGamal.decryptionShare(k2, c); + assertEquals(1, ElGamal.decrypt(c, List.of(d1, d2), 1)); + + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1), 1), "fewer than t + 1"); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1, d1), 1), "duplicate identifier"); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, 3, c.handle(), s -> true), "identifier outside QUAL"); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, 9, c.handle(), s -> true), "unknown identifier"); + ElGamalCiphertext other = ElGamal.encrypt(ctx, 0, 1, RNG); + VerifiedDecryptionShare e2 = ElGamal.decryptionShare(k2, other); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decrypt(c, List.of(d1, e2), 1), "wrong ciphertext"); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, 2, d2.share().add(JubjubPoint.SUBGROUP_GENERATOR), v), "invalid proof"); + assertThrows(IllegalArgumentException.class, + () -> ElGamal.decryptWithSecret(c, ElGamalSecretKey.of(BigInteger.ONE), 1), "no single-key path"); + + // Cross-kind: n-of-n material against a threshold ciphertext, and the reverse. + ElGamalSecretKey sk = ElGamalSecretKey.of(BigInteger.valueOf(5)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decryptionShare(sk, c)); + assertThrows(IllegalArgumentException.class, + () -> VerifiedDecryptionShare.verify(c, sk.publicKey(), c.handle(), s -> true)); + ElGamalCiphertext nOfN = ElGamal.encrypt(NOfNKeyContext.singleKey(sk), 1, 1, RNG); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decryptionShare(k1, nOfN)); + assertThrows(IllegalArgumentException.class, () -> VerifiedDecryptionShare.verify(nOfN, 1, nOfN.handle(), s -> true)); + assertThrows(IllegalArgumentException.class, () -> c.add(nOfN), "different contexts"); + } + + @Test + @DisplayName("An inconsistent extra share (accepted by a lying verifier) is detected against the interpolation") + void inconsistentSubset() { + DkgConfig config = DkgHarness.config(1, 3, "inconsistent", 1); + List keys = run(DkgHarness.random(config, DkgHarness.HONEST)); + ThresholdKeyContext ctx = keys.get(0).context(); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 1, 1, RNG); + VerifiedDecryptionShare d1 = ElGamal.decryptionShare(keys.get(0), c); + VerifiedDecryptionShare d2 = ElGamal.decryptionShare(keys.get(1), c); + VerifiedDecryptionShare lie = VerifiedDecryptionShare.verify(c, 3, + ElGamal.decryptionShare(keys.get(2), c).share().add(JubjubPoint.SUBGROUP_GENERATOR), s -> true); + assertThrows(IllegalStateException.class, () -> ElGamal.decrypt(c, List.of(d1, d2, lie), 1)); + } + + @Test + @DisplayName("A share secret that does not match Y_j cannot produce a share (I15 specialised)") + void secretMustMatch() { + DkgConfig config = DkgHarness.config(1, 3, "secret-match", 1); + List keys = run(DkgHarness.random(config, DkgHarness.HONEST)); + ThresholdKeyContext ctx = keys.get(0).context(); + ElGamalCiphertext c = ElGamal.encrypt(ctx, 1, 1, RNG); + ThresholdKeyShare forged = new ThresholdKeyShare(ctx, 1, keys.get(1).secretScalar()); + assertThrows(IllegalArgumentException.class, () -> ElGamal.decryptionShare(forged, c)); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdReferenceVectorsTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdReferenceVectorsTest.java new file mode 100644 index 00000000..08e74c2a --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdReferenceVectorsTest.java @@ -0,0 +1,734 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.DynamicTest; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestFactory; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.math.BigInteger; +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HexFormat; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.TreeMap; +import java.util.TreeSet; +import java.util.function.Supplier; +import java.util.stream.Stream; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; + +/** + * ADR-0053 M0–M3: the library against the independent {@code elgamal-jubjub-threshold-v1} + * reference. {@code src/test/resources/elgamal-threshold-reference/reference-output.txt} was + * produced by a standard-library Python implementation written from the spec, the [GJKR07] + * Fig. 2 text and the Jubjub definition. No ZeroJ Java source was read. + * + *

Every fixture is run through the Java {@link DkgParticipant}s and compared value by value: + * the session, the commitments, the shares, every broadcast message's bytes, the transcript + * digest, {@code QUAL}, the marks, the aborts, {@code y}, {@code Y_j}, {@code x_j}, the + * confirmations, the Lagrange coefficients and the threshold decryptions. The adversarial fixture + * replays the spec's §11 script. Every replayable {@code case.*} vector (abort, rule, finding, + * admission, combine, parameter and well-formedness cases) is replayed from its keys alone. + * Regenerate with + * {@code python3 elgamal_jubjub_threshold_v1_reference.py} in that directory. + */ +class ThresholdReferenceVectorsTest { + + private static final String RESOURCE = "/elgamal-threshold-reference/reference-output.txt"; + private static final HexFormat HEX = HexFormat.of(); + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + private static Map ref; + + @BeforeAll + static void load() throws IOException { + ref = new LinkedHashMap<>(); + try (InputStream in = Objects.requireNonNull( + ThresholdReferenceVectorsTest.class.getResourceAsStream(RESOURCE), RESOURCE); + var reader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) { + String line; + while ((line = reader.readLine()) != null) { + if (line.isBlank() || line.startsWith("#")) continue; + int eq = line.indexOf('='); + ref.put(line.substring(0, eq), line.substring(eq + 1)); + } + } + } + + private static String get(String key) { + return Objects.requireNonNull(ref.get(key), () -> "missing reference key " + key); + } + + private static BigInteger num(String key) { + String s = get(key); + return s.startsWith("0x") ? new BigInteger(s.substring(2), 16) : new BigInteger(s); + } + + private static byte[] bytes(String key) { + return HEX.parseHex(get(key)); + } + + private static Set ids(String key) { + Set out = new TreeSet<>(); + String v = get(key); + if (v.isEmpty()) return out; + for (String part : v.split(",")) out.add(Integer.parseInt(part.split(":")[0])); + return out; + } + + private static DkgConfig config(String f) { + int t = num(f + ".t").intValueExact(); + int n = num(f + ".n").intValueExact(); + List roster = new ArrayList<>(); + for (int j = 1; j <= n; j++) { + byte[] key = new byte[32]; + Arrays.fill(key, (byte) j); + roster.add(key); + } + return DkgConfig.create(t, n, roster, bytes(f + ".ctx"), num(f + ".attempt").longValueExact()); + } + + private static List dealings(String f, int t, int n) { + List out = new ArrayList<>(); + for (int i = 1; i <= n; i++) { + BigInteger[] a = new BigInteger[t + 1]; + BigInteger[] b = new BigInteger[t + 1]; + for (int k = 0; k <= t; k++) { + a[k] = num(f + ".a." + i + "." + k); + b[k] = num(f + ".b." + i + "." + k); + } + ThresholdVss.Dealing d = ThresholdVss.dealWithCoefficients(a, b); + for (int k = 0; k <= t; k++) { + assertArrayEquals(bytes(f + ".C." + i + "." + k), d.commitments().get(k).toBytes(), f + " C." + i + "." + k); + assertArrayEquals(bytes(f + ".A." + i + "." + k), d.extraction().get(k).toBytes(), f + " A." + i + "." + k); + } + for (int j = 1; j <= n; j++) { + assertEquals(num(f + ".s." + i + "." + j), d.share(j), f + " s." + i + "." + j); + assertEquals(num(f + ".sp." + i + "." + j), d.sharePrime(j), f + " sp." + i + "." + j); + } + out.add(d); + } + return out; + } + + private static FaultAssumptionViolatedException.Reason reason(String code) { + return switch (code) { + case "A1" -> FaultAssumptionViolatedException.Reason.TOO_FEW_QUALIFIED; + case "A2" -> FaultAssumptionViolatedException.Reason.OWN_DEALING_DISQUALIFIED; + case "A3" -> FaultAssumptionViolatedException.Reason.TOO_FEW_RECONSTRUCTION_PAIRS; + case "A4" -> FaultAssumptionViolatedException.Reason.INCONSISTENT_RECONSTRUCTION; + case "A5" -> FaultAssumptionViolatedException.Reason.IDENTITY_JOINT_KEY; + case "A6" -> FaultAssumptionViolatedException.Reason.SHARE_MISMATCH; + case "A7" -> FaultAssumptionViolatedException.Reason.CONFLICTING_CONFIRMATION; + case "A8" -> FaultAssumptionViolatedException.Reason.OWN_DEALING_MARKED; + default -> throw new IllegalArgumentException(code); + }; + } + + /** The spec §11 adversarial-4of7 script as harness deviations; everything else is §5. */ + private static DkgHarness.Adversary adversarialScript(DkgConfig config) { + return (m, honest) -> { + if (m.kind() == DkgMessage.Kind.SHARE && m.sender() == 1 && m.subject() == 2 + || m.kind() == DkgMessage.Kind.SHARE && m.sender() == 3 && m.subject() == 4) { + byte[] bad = DkgMessage.pair(config, DkgMessage.Kind.SHARE, m.sender(), m.subject(), + m.s().add(BigInteger.ONE).mod(L), m.sPrime()).encode(); + return List.of(new DkgHarness.Delivery(m.sender(), m.subject(), bad)); + } + if (m.kind() == DkgMessage.Kind.ANSWER && m.sender() == 3) return List.of(); + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 1) return List.of(); + if (m.kind() == DkgMessage.Kind.EXTRACTION && m.sender() == 5) { + List forged = new ArrayList<>(m.points()); + forged.set(1, forged.get(1).add(JubjubPoint.SUBGROUP_GENERATOR).normalized()); + byte[] bytes = DkgMessage.points(config, DkgMessage.Kind.EXTRACTION, 5, forged).encode(); + List out = new ArrayList<>(); + for (DkgHarness.Delivery d : honest) out.add(new DkgHarness.Delivery(5, d.recipient(), bytes)); + return out; + } + return honest; + }; + } + + private static void checkFixture(String f, DkgHarness.Adversary adversary) { + DkgConfig config = config(f); + assertArrayEquals(bytes(f + ".session"), config.session(), f + " session"); + assertArrayEquals(bytes("session." + f), config.session()); + List dealings = dealings(f, config.t(), config.n()); + DkgHarness h = DkgHarness.fixed(config, dealings, adversary).run(); + + // Every broadcast message, byte for byte, and the per-round counts. + List referenceMessages = new ArrayList<>(); + for (var e : ref.entrySet()) { + if (e.getKey().startsWith(f + ".msg.")) referenceMessages.add(HEX.parseHex(e.getValue())); + } + DkgTranscript ours = DkgTranscript.of(config, h.transcriptMessages()); + DkgTranscript theirs = DkgTranscript.of(config, referenceMessages); + String[] counts = get(f + ".counts").split(","); + for (int r = 1; r <= 6; r++) { + List a = ours.roundMessages(r); + List b = theirs.roundMessages(r); + assertEquals(Integer.parseInt(counts[r - 1]), a.size(), f + " round " + r + " count"); + assertEquals(b.size(), a.size(), f + " round " + r); + for (int i = 0; i < a.size(); i++) assertArrayEquals(b.get(i), a.get(i), f + " round " + r + " message " + i); + } + assertArrayEquals(bytes(f + ".digest"), ours.digest(), f + " digest"); + if (ref.containsKey(f + ".transcript")) assertArrayEquals(bytes(f + ".transcript"), ours.encode(), f + " transcript"); + + // Public outcome. + DkgTranscript.DkgPublicOutcome outcome = ours.recompute(); + assertEquals(ids(f + ".qual"), outcome.qual(), f + " QUAL"); + assertEquals(ids(f + ".marked"), outcome.marked(), f + " marked"); + assertArrayEquals(bytes(f + ".y"), outcome.jointKey().toBytes(), f + " y"); + for (int j = 1; j <= config.n(); j++) { + assertArrayEquals(bytes(f + ".Y." + j), outcome.verificationKeys().get(j - 1).toBytes(), f + " Y." + j); + } + + // Aborts, secret shares and confirmations. + for (int j = 1; j <= config.n(); j++) { + String code = ref.getOrDefault(f + ".participant_abort." + j, "none"); + if (code.equals("none")) { + assertTrue(!h.aborted.containsKey(j), f + " participant " + j + " aborted: " + h.aborted.get(j)); + ThresholdKeyShare share = h.participant(j).result(); + assertEquals(num(f + ".x." + j), share.secretScalar(), f + " x." + j); + } else { + assertEquals(reason(code), h.aborted.get(j).reason(), f + " participant " + j); + } + } + for (byte[] confirmation : h.confirmations()) { + int sender = confirmation[34] & 0xFF; + assertArrayEquals(bytes(f + ".confirmation." + sender), confirmation, f + " confirmation " + sender); + } + } + + private static void checkDecryption(String f) { + DkgConfig config = config(f); + DkgHarness h = DkgHarness.fixed(config, dealings(f, config.t(), config.n()), DkgHarness.HONEST).run(); + List keys = new ArrayList<>(); + for (DkgParticipant p : h.participants) keys.add(p.result()); + ThresholdKeyContext ctx = keys.get(0).context(); + ElGamalCiphertext c = ElGamal.encryptWithRandomness(ctx, num(f + ".enc.m"), + num(f + ".enc.width").intValueExact(), num("scalar.enc.k")); + assertArrayEquals(bytes(f + ".enc.A"), c.handle().toBytes(), f + " enc.A"); + assertArrayEquals(bytes(f + ".enc.B"), c.blinded().toBytes(), f + " enc.B"); + List shares = new ArrayList<>(); + for (ThresholdKeyShare k : keys) { + VerifiedDecryptionShare d = ElGamal.decryptionShare(k, c); + assertArrayEquals(bytes(f + ".D." + k.id()), d.encode(), f + " D." + k.id()); + shares.add(d); + } + long m = num(f + ".enc.m").longValueExact(); + long bound = c.bound().longValueExact(); + int subsets = 0; + for (var e : ref.entrySet()) { + String prefix = f + ".decrypt."; + if (!e.getKey().startsWith(prefix) || e.getKey().endsWith(".all")) continue; + String subset = e.getKey().substring(prefix.length()); + int[] s = Arrays.stream(subset.split("-")).mapToInt(Integer::parseInt).toArray(); + BigInteger[] lambda = ThresholdMath.lagrangeAt(s, 0); + List chosen = new ArrayList<>(); + for (int i = 0; i < s.length; i++) { + assertEquals(num(f + ".lagrange." + subset + "." + s[i]), lambda[i], f + " lambda " + subset); + chosen.add(shares.get(s[i] - 1)); + } + assertEquals(Long.parseLong(e.getValue()), ElGamal.decrypt(c, chosen, bound), f + " subset " + subset); + assertEquals(m, Long.parseLong(e.getValue())); + subsets++; + } + assertTrue(subsets > 0, f + " has subsets"); + assertEquals(num(f + ".decrypt.all").longValueExact(), ElGamal.decrypt(c, shares, bound)); + } + + @Test + @DisplayName("The reference run passed its own checks and matched every spec pin") + void referenceRunPassed() { + assertEquals("elgamal-jubjub-threshold-v1", get("profile")); + assertEquals("pass", get("result")); + int checks = 0; + for (var e : ref.entrySet()) { + String k = e.getKey(); + if (k.startsWith("check.") || k.startsWith("spec_match.") || k.contains(".check.")) { + assertEquals("true", e.getValue(), k); + checks++; + } + } + assertTrue(checks > 300, "checks: " + checks); + assertArrayEquals(bytes("G.encoding"), JubjubPoint.SUBGROUP_GENERATOR.toBytes()); + assertArrayEquals(bytes("H.encoding"), PedersenCommitment.H.toBytes()); + } + + @Test + @DisplayName("Session ids, BLAKE2b and the test-scalar derivation") + void sessionAndScalars() throws NoSuchAlgorithmException { + List roster = new ArrayList<>(); + for (int j = 1; j <= 3; j++) { + byte[] key = new byte[32]; + Arrays.fill(key, (byte) j); + roster.add(key); + } + DkgConfig c = DkgConfig.create(1, 3, roster, "zeroj.test.election".getBytes(StandardCharsets.UTF_8), 1); + assertArrayEquals(bytes("session.session"), c.session()); + int scalars = 0; + for (var e : ref.entrySet()) { + if (!e.getKey().startsWith("scalar.")) continue; + String tag = e.getKey().substring("scalar.".length()); + byte[] h = MessageDigest.getInstance("SHA-256") + .digest(("zeroj.elgamal.threshold.v1.test." + tag).getBytes(StandardCharsets.UTF_8)); + assertEquals(num(e.getKey()), new BigInteger(1, h).mod(L), tag); + scalars++; + } + assertTrue(scalars >= 56, "scalars: " + scalars); + } + + @Test + @DisplayName("Honest 2-of-3, 3-of-5 and 4-of-7: participants, transcript, outputs and every subset's decryption") + void honest() { + for (String f : List.of("honest-2of3", "honest-3of5", "honest-4of7")) { + checkFixture(f, DkgHarness.HONEST); + checkDecryption(f); + } + } + + @Test + @DisplayName("F7 fixtures: zero share (Y_1 = O) and equal shares, through the safe context") + void f7() { + for (String f : List.of("zero-share", "equal-shares")) { + checkFixture(f, DkgHarness.HONEST); + checkDecryption(f); + } + assertEquals("true", get("zero-share.Y.1.identity")); + } + + @Test + @DisplayName("Adversarial 4-of-7: the §11 script reproduces every message, abort and output") + void adversarial() { + checkFixture("adversarial-4of7", adversarialScript(config("adversarial-4of7"))); + assertEquals("true", get("adversarial-4of7.y_equals_reference")); + } + + // ---------------------------------------------------------------- case.* vectors + + private static final List FIXTURES = + List.of("honest-2of3", "honest-3of5", "honest-4of7", "zero-share", "equal-shares", "adversarial-4of7"); + private static final Map FIXTURE_RUNS = new HashMap<>(); + + /** Authenticates every post: the delivered sets of {@code raw.*} posts. */ + private static final DkgAdmissionVerifier TRUSTING = new DkgAdmissionVerifier() { + @Override + public boolean authenticate(int sender, byte[] rosterKey, byte[] message, byte[] authenticator) { + return true; + } + + @Override + public boolean roundClosed(DkgConfig config, int round, List canonicalMessages, byte[] evidence) { + return true; + } + }; + + /** One {@code case...*} vector: its keys with that prefix removed. */ + private record Case(String name, Map keys) { + boolean has(String key) { + return keys.containsKey(key); + } + + boolean hasPrefix(String prefix) { + return keys.keySet().stream().anyMatch(k -> k.startsWith(prefix)); + } + + String get(String key) { + return Objects.requireNonNull(keys.get(key), () -> name + ": missing " + key); + } + + /** {@code prefix1, prefix2, …}, which must be numbered without gaps. */ + List list(String prefix) { + List out = new ArrayList<>(); + for (int i = 1; keys.containsKey(prefix + i); i++) out.add(HEX.parseHex(keys.get(prefix + i))); + long numbered = keys.keySet().stream() + .filter(k -> k.startsWith(prefix) && k.substring(prefix.length()).matches("\\d+")).count(); + assertEquals(numbered, out.size(), name + ": " + prefix + "* is not numbered 1..k"); + return out; + } + } + + private static Map cases() { + Map> grouped = new TreeMap<>(); + for (var e : ref.entrySet()) { + String k = e.getKey(); + if (!k.startsWith("case.")) continue; + int familyEnd = k.indexOf('.', "case.".length()); + int nameEnd = k.indexOf('.', familyEnd + 1); + grouped.computeIfAbsent(k.substring("case.".length(), nameEnd), x -> new LinkedHashMap<>()) + .put(k.substring(nameEnd + 1), e.getValue()); + } + Map out = new TreeMap<>(); + grouped.forEach((name, keys) -> out.put(name, new Case(name, keys))); + return out; + } + + /** A parsed {@code config} and roster, not yet validated by the library. */ + private record ConfigInput(int t, int n, List roster, byte[] context, BigInteger attempt) { + /** The API takes the unsigned 64-bit attempt as a {@code long}. */ + boolean attemptExpressible() { + return attempt.signum() >= 0 && attempt.bitLength() <= 64; + } + + DkgConfig create() { + assertTrue(attemptExpressible(), "attempt " + attempt + " cannot be passed to the API"); + return DkgConfig.create(t, n, roster, context, attempt.longValue()); + } + } + + /** + * {@code t,n,ctx-hex,attempt}. The roster is {@code standard} ({@code key_j} = 32 bytes of + * {@code j}), {@code lengths:} (each {@code key_j} = bytes of {@code j} at that length) or + * {@code hex:} (explicit keys). Parsing errors fail the test; they never count as a rejection. + */ + private static ConfigInput configInput(Case c) { + String[] f = c.get("config").split(",", -1); + assertEquals(4, f.length, c.name() + " config"); + int n = Integer.parseInt(f[1]); + String roster = c.keys().getOrDefault("roster", "standard"); + List keys = new ArrayList<>(); + if (roster.startsWith("hex:")) { + for (String key : roster.substring("hex:".length()).split(",", -1)) keys.add(HEX.parseHex(key)); + } else { + String[] lengths = roster.equals("standard") ? null : roster.substring("lengths:".length()).split(","); + assertTrue(lengths == null || lengths.length == n, c.name() + " roster"); + for (int j = 1; j <= n; j++) { + byte[] key = new byte[lengths == null ? 32 : Integer.parseInt(lengths[j - 1])]; + Arrays.fill(key, (byte) j); + keys.add(key); + } + } + return new ConfigInput(Integer.parseInt(f[0]), n, keys, HEX.parseHex(f[2]), new BigInteger(f[3])); + } + + private static DkgConfig caseConfig(Case c) { + return configInput(c).create(); + } + + private static Set idSet(String value) { + Set out = new TreeSet<>(); + if (!value.isEmpty()) for (String part : value.split(",")) out.add(Integer.parseInt(part)); + return out; + } + + private static List authenticated(List messages) { + List out = new ArrayList<>(); + for (byte[] m : messages) out.add(new AuthenticatedDkgMessage(m, new byte[0])); + return out; + } + + private static boolean sameBytes(List a, List b) { + if (a.size() != b.size()) return false; + for (int i = 0; i < a.size(); i++) if (!Arrays.equals(a.get(i), b.get(i))) return false; + return true; + } + + @TestFactory + @DisplayName("Every replayable case vector reaches the reference's outcome") + Stream caseVectors() { + Map cases = cases(); + assertEquals(num("info.case_count").intValueExact(), cases.size(), "case count"); + return cases.values().stream().map(c -> DynamicTest.dynamicTest(c.name(), () -> replay(c))); + } + + private static void replay(Case c) { + if (c.has("params")) { + replayParameters(c); + } else if (c.has("decode")) { + replayDecode(c); + } else if (c.has("ciphertext")) { + replayCombine(c); + } else if (c.get("expect").equals("admit") || c.get("expect").equals("refuse")) { + replayAdmission(c); + } else { + replayRecomputation(c); + } + } + + /** {@code rule.param_*}: spec §1 bounds, and the derived session of every accepted one. */ + private static void replayParameters(Case c) { + ConfigInput input = configInput(c); + switch (c.get("params")) { + case "accept" -> assertArrayEquals(HEX.parseHex(c.get("session")), input.create().session(), c.name() + " session"); + case "reject" -> { + if (!input.attemptExpressible()) return; // refused by the API's type, as the spec's u64 requires + assertThrows(IllegalArgumentException.class, () -> DkgConfig.create(input.t(), input.n(), + input.roster(), input.context(), input.attempt().longValue()), c.name()); + } + default -> fail(c.name() + ": unknown params " + c.get("params")); + } + } + + /** {@code wf.*}: §4 well-formedness of the single message {@code msg.1}. */ + private static void replayDecode(Case c) { + DkgConfig config = caseConfig(c); + List messages = c.list("msg."); + assertEquals(1, messages.size(), c.name()); + byte[] m = messages.get(0); + switch (c.get("decode")) { + case "accept" -> assertArrayEquals(m, DkgMessage.decode(config, m).encode(), c.name() + " re-encodes"); + case "reject" -> assertThrows(IllegalArgumentException.class, () -> DkgMessage.decode(config, m), c.name()); + default -> fail(c.name() + ": unknown decode " + c.get("decode")); + } + } + + /** + * Abort, rule and finding cases: the public recomputation of the case transcript. The posts + * {@code raw.*}, where given, must give the same delivered sets. + */ + private static void replayRecomputation(Case c) { + DkgConfig config = caseConfig(c); + String expect = c.get("expect"); + List messages = c.list("msg."); + assertFalse(messages.isEmpty(), c.name() + ": a recomputation case needs its transcript"); + if (c.has("H")) { + replayTrapdoor(c, config, messages); + return; + } + DkgTranscript transcript = DkgTranscript.of(config, messages); + List canonical = new ArrayList<>(); + for (int r = 1; r <= 6; r++) canonical.addAll(transcript.roundMessages(r)); + assertTrue(sameBytes(messages, canonical), c.name() + ": msg.* is not in Java's §6 order"); + List raw = c.list("raw."); + if (!raw.isEmpty()) { + List posts = authenticated(raw); + for (int r = 1; r <= 6; r++) { + assertTrue(sameBytes(transcript.roundMessages(r), DkgTranscript.deliveredRound(config, r, posts, TRUSTING)), + c.name() + ": raw posts give another delivered set in round " + r); + } + } + if (expect.startsWith("abort=")) { + FaultAssumptionViolatedException e = + assertThrows(FaultAssumptionViolatedException.class, transcript::recompute, c.name()); + assertEquals(reason(expect.substring("abort=".length())), e.reason(), c.name()); + return; + } + Map fields = new HashMap<>(); + for (String part : expect.split(";", -1)) { + int eq = part.indexOf('='); + fields.put(part.substring(0, eq), part.substring(eq + 1)); + } + DkgTranscript.DkgPublicOutcome outcome = transcript.recompute(); + assertEquals(idSet(fields.get("qual")), outcome.qual(), c.name() + " QUAL"); + assertEquals(idSet(fields.get("marked")), outcome.marked(), c.name() + " marked"); + assertArrayEquals(HEX.parseHex(fields.get("y")), outcome.jointKey().toBytes(), c.name() + " y"); + } + + /** + * The A4 trapdoor vectors use a reference-only base {@code H' = [w]·G}, under which a pair off + * the dealer's polynomial still satisfies (4); the profile's {@code H} cannot be swapped out. + * The (4) filter is therefore applied here, in test code and under {@code H'}. The library's + * reconstruction must then refuse with A4 on its check that every valid pair lies on the + * interpolated polynomial, which does not involve {@code H}. + */ + private static void replayTrapdoor(Case c, DkgConfig config, List messages) { + assertEquals("abort=A4", c.get("expect"), c.name()); + FastJubjubPoint hPrime = FastJubjubPoint.of(JubjubPoint.fromBytes(HEX.parseHex(c.get("H")))); + assertFalse(hPrime.projectiveEquals(FastJubjubPoint.of(PedersenCommitment.H)), c.name()); + Map> commitments = new HashMap<>(); + Map>> pairs = new TreeMap<>(); + for (byte[] bytes : messages) { + DkgMessage m = DkgMessage.decode(config, bytes); + if (m.kind() == DkgMessage.Kind.COMMITMENTS) { + assertTrue(commitments.put(m.sender(), m.points()) == null, c.name() + ": conflicting commitments"); + } else if (m.kind() == DkgMessage.Kind.RECONSTRUCTION) { + pairs.computeIfAbsent(m.subject(), x -> new TreeMap<>()) + .computeIfAbsent(m.sender(), x -> new ArrayList<>()).add(new BigInteger[]{m.s(), m.sPrime()}); + } + } + assertFalse(pairs.isEmpty(), c.name() + ": no reconstruction"); + int refused = 0; + for (var dealer : pairs.entrySet()) { + List cs = commitments.get(dealer.getKey()); + TreeMap valid = new TreeMap<>(); + for (var holder : dealer.getValue().entrySet()) { + if (holder.getValue().size() != 1) continue; // conflicting pairs are excluded (R6) + BigInteger[] pair = holder.getValue().get(0); + FastJubjubPoint left = FastJubjubPoint.GENERATOR.scalarMulPublic(pair[0]) + .add(hPrime.scalarMulPublic(pair[1])); + FastJubjubPoint right = FastJubjubPoint.IDENTITY; + for (int k = 0; k < cs.size(); k++) { + right = right.add(FastJubjubPoint.of(cs.get(k)) + .scalarMulPublic(BigInteger.valueOf(holder.getKey()).pow(k).mod(L))); + } + if (left.projectiveEquals(right)) valid.put(holder.getKey(), pair); + } + try { + ThresholdVss.reconstruct(cs, config.t(), valid); + } catch (FaultAssumptionViolatedException e) { + assertEquals(FaultAssumptionViolatedException.Reason.INCONSISTENT_RECONSTRUCTION, e.reason(), c.name()); + assertTrue(e.getMessage().contains("not on the reconstructed polynomial"), c.name() + ": " + e.getMessage()); + refused++; + } + } + assertTrue(refused > 0, c.name() + ": every reconstruction succeeded"); + } + + /** + * Admission cases (§8). The verifier is modelled from the keys alone: + * {@code authenticate} fails exactly for the {@code unauthenticated.*} bytes, and, when the + * case gives a board ({@code board..*}), {@code roundClosed} holds iff the presented list + * is that board's delivered set. Without a board, closure holds, as in the reference. A + * refusal must also happen at the case's {@code step}. + */ + private static void replayAdmission(Case c) { + DkgConfig config = caseConfig(c); + List messages = c.list("msg."); + List transcript = authenticated(messages); + List confirmations = authenticated(c.list("confirmation.")); + List unauthenticated = c.list("unauthenticated."); + boolean boardModelled = c.hasPrefix("board."); + assertEquals(boardModelled, c.has("closure"), c.name() + ": closure key and board.* disagree"); + if (boardModelled) assertEquals("board", c.get("closure"), c.name()); + Map> board = new HashMap<>(); + for (int r = 1; r <= 7; r++) board.put(r, authenticated(c.list("board." + r + "."))); + List authenticated = new ArrayList<>(); + List closed = new ArrayList<>(); + DkgAdmissionVerifier verifier = new DkgAdmissionVerifier() { + @Override + public boolean authenticate(int sender, byte[] rosterKey, byte[] message, byte[] authenticator) { + assertArrayEquals(config.rosterKey(sender), rosterKey, c.name() + ": roster key of the header's sender"); + authenticated.add(sender); + return unauthenticated.stream().noneMatch(u -> Arrays.equals(u, message)); + } + + @Override + public boolean roundClosed(DkgConfig cfg, int round, List canonicalMessages, byte[] evidence) { + closed.add(round); + return !boardModelled + || sameBytes(canonicalMessages, DkgTranscript.deliveredRound(cfg, round, board.get(round), this)); + } + }; + Map closure = new HashMap<>(); + for (int r = 1; r <= 7; r++) closure.put(r, new byte[0]); + switch (c.get("expect")) { + case "admit" -> { + ThresholdKeyContext.admit(config, transcript, closure, confirmations, verifier); + assertEquals(List.of(1, 2, 3, 4, 5, 6, 7), closed, c.name() + ": closure asked for every round"); + } + case "refuse" -> { + RuntimeException e = assertThrows(RuntimeException.class, + () -> ThresholdKeyContext.admit(config, transcript, closure, confirmations, verifier), c.name()); + int step = Integer.parseInt(c.get("step")); + String at = c.name() + " (step " + step + "): " + e; + assertEquals(step == 5, e instanceof FaultAssumptionViolatedException, at); + assertTrue(e instanceof IllegalArgumentException || e instanceof FaultAssumptionViolatedException, at); + if (step >= 3) { + DkgTranscript.of(config, messages); // well-formed: the refusal came later than step 2 + assertFalse(authenticated.isEmpty(), at + ": refused without authenticating"); + } + switch (step) { + case 2 -> { + assertThrows(IllegalArgumentException.class, () -> DkgTranscript.of(config, messages), at); + assertTrue(authenticated.isEmpty() && closed.isEmpty(), at + ": refused after step 2"); + } + case 3 -> assertTrue(closed.isEmpty(), at + ": closure asked before authentication refused"); + case 4, 5 -> assertTrue(!closed.isEmpty() && !closed.contains(7), at + ": refused outside steps 4-5"); + case 6 -> { + assertTrue(closed.contains(7), at + ": refused before step 6"); + DkgTranscript.of(config, messages).recompute(); + } + default -> fail(at + ": unknown step"); + } + } + default -> fail(c.name() + ": unknown expect"); + } + } + + /** The fixture run whose configuration and {@code QUAL} a combine case was built on. */ + private static DkgHarness fixtureRun(DkgConfig config, Set qual) { + DkgHarness match = null; + for (String f : FIXTURES) { + if (!config(f).equals(config)) continue; + DkgHarness h = FIXTURE_RUNS.computeIfAbsent(f, x -> DkgHarness.fixed(config(x), + dealings(x, config.t(), config.n()), + x.equals("adversarial-4of7") ? adversarialScript(config(x)) : DkgHarness.HONEST).run()); + if (ids(f + ".qual").equals(qual)) { + assertTrue(match == null, "two fixtures match"); + match = h; + } + } + return Objects.requireNonNull(match, "no fixture has this configuration and QUAL"); + } + + /** + * Combine cases (§9): the shares are taken as DLEQ-verified, so the library's own checks, the + * {@code QUAL} membership, the share count and the extra-share consistency, must decide. + * {@code not_plaintext:} is an unverified bad share among the first {@code t + 1}: no check + * can see it, and the result must not be {@code m}. + */ + private static void replayCombine(Case c) { + DkgConfig config = caseConfig(c); + Set qual = idSet(c.get("qual")); + DkgHarness h = fixtureRun(config, qual); + ThresholdKeyShare anyKey = null; + for (DkgParticipant p : h.participants) { + if (!h.aborted.containsKey(p.id())) { + anyKey = p.result(); + break; + } + } + ThresholdKeyContext context = Objects.requireNonNull(anyKey).context(); + assertEquals(qual, context.qual(), c.name() + " QUAL"); + BigInteger bound = new BigInteger(c.get("bound")); + int width = bound.bitLength(); + assertEquals(BigInteger.ONE.shiftLeft(width).subtract(BigInteger.ONE), bound, c.name() + ": bound is 2^w - 1"); + ElGamalCiphertext ct = ElGamal.admit( + RawElGamalCiphertext.decode(HEX.parseHex(c.get("ciphertext"))), context, width, s -> true); + Map submitted = new TreeMap<>(); + for (var e : c.keys().entrySet()) { + if (e.getKey().startsWith("share.")) { + submitted.put(Integer.parseInt(e.getKey().substring("share.".length())), HEX.parseHex(e.getValue())); + } + } + String expect = c.get("expect"); + if (expect.startsWith("plaintext:")) { + List shares = new ArrayList<>(); + for (var e : submitted.entrySet()) { + VerifiedDecryptionShare ours = ElGamal.decryptionShare(h.participant(e.getKey()).result(), ct); + assertArrayEquals(ours.encode(), e.getValue(), c.name() + " D." + e.getKey()); + shares.add(VerifiedDecryptionShare.verify(ct, e.getKey(), e.getValue(), s -> true)); + } + assertEquals(Long.parseLong(expect.substring("plaintext:".length())), + ElGamal.decrypt(ct, shares, bound.longValueExact()), c.name()); + return; + } + Supplier combine = () -> { + List shares = new ArrayList<>(); + for (var s : submitted.entrySet()) shares.add(VerifiedDecryptionShare.verify(ct, s.getKey(), s.getValue(), d -> true)); + return ElGamal.decrypt(ct, shares, bound.longValueExact()); + }; + if (expect.startsWith("not_plaintext:")) { + long forbidden = Long.parseLong(expect.substring("not_plaintext:".length())); + try { + assertNotEquals(forbidden, combine.get(), c.name()); + } catch (ElGamalDecryptionException noMatch) { + // also not the forbidden value + } + return; + } + assertEquals("error", expect, c.name()); + RuntimeException e = assertThrows(RuntimeException.class, combine::get, c.name()); + // IllegalArgumentException: refused share set; IllegalStateException: an extra share + // disagrees with the interpolation (ElGamal.decrypt's documented contract). + assertTrue(e instanceof IllegalArgumentException || e instanceof IllegalStateException, c.name() + ": " + e); + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdVssTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdVssTest.java new file mode 100644 index 00000000..10277b0a --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/jubjub/ThresholdVssTest.java @@ -0,0 +1,207 @@ +package org.zeroj.circuit.lib.jubjub; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; + +import java.math.BigInteger; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Random; +import java.util.SortedMap; +import java.util.TreeMap; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0053 M1: the VSS primitives and Lagrange arithmetic. Property tests: any {@code t + 1} + * shares reconstruct the same value, and {@code t} shares leave every secret equally possible + * (the simulation check of [GJKR07] §2.2, on small parameters). Also the F7 fixtures + * ({@code F(z) = 3 − 3z} and {@code F(z) = 3}) from every subset. + */ +class ThresholdVssTest { + + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + private static final SecureRandom RNG = new SecureRandom(); + + private static BigInteger[] randomPoly(Random rnd, int t) { + BigInteger[] c = new BigInteger[t + 1]; + for (int k = 0; k <= t; k++) c[k] = new BigInteger(260, rnd).mod(L); + return c; + } + + private static List subsets(int n, int size) { + List out = new ArrayList<>(); + int[] current = new int[size]; + subsets(1, n, 0, current, out); + return out; + } + + private static void subsets(int start, int n, int depth, int[] current, List out) { + if (depth == current.length) { + out.add(current.clone()); + return; + } + for (int i = start; i <= n; i++) { + current[depth] = i; + subsets(i + 1, n, depth + 1, current, out); + } + } + + @Test + @DisplayName("Interpolation inverts evaluation; Lagrange at 0 recombines from every (t + 1)-subset") + void lagrangeProperties() { + Random rnd = new Random(63); + for (int[] tn : new int[][]{{1, 3}, {2, 5}, {3, 7}}) { + int t = tn[0]; + int n = tn[1]; + BigInteger[] f = randomPoly(rnd, t); + BigInteger[] shares = new BigInteger[n + 1]; + for (int j = 1; j <= n; j++) shares[j] = ThresholdMath.evaluate(f, j); + for (int[] s : subsets(n, t + 1)) { + BigInteger[] lambda = ThresholdMath.lagrangeAt(s, 0); + BigInteger secret = BigInteger.ZERO; + BigInteger[] ys = new BigInteger[s.length]; + for (int i = 0; i < s.length; i++) { + secret = secret.add(lambda[i].multiply(shares[s[i]])).mod(L); + ys[i] = shares[s[i]]; + } + assertEquals(f[0], secret, "subset " + Arrays.toString(s)); + assertArrayEquals(f, ThresholdMath.interpolate(s, ys)); + // Interpolating at another identifier reproduces its share. + for (int e = 1; e <= n; e++) { + BigInteger[] le = ThresholdMath.lagrangeAt(s, e); + BigInteger at = BigInteger.ZERO; + for (int i = 0; i < s.length; i++) at = at.add(le[i].multiply(shares[s[i]])).mod(L); + assertEquals(shares[e], at); + } + } + } + assertThrows(IllegalArgumentException.class, () -> ThresholdMath.lagrangeAt(new int[]{1, 1}, 0)); + assertThrows(IllegalArgumentException.class, () -> ThresholdMath.lagrangeAt(new int[]{0, 2}, 0)); + } + + @Test + @DisplayName("t shares determine nothing: for every candidate secret there is exactly one consistent polynomial") + void tSharesHideTheSecret() { + // Small-parameter simulation (t = 2): fix t shares, then for each of several candidate + // secrets the unique degree-t polynomial through (0, candidate) and the t shares exists + // and reproduces those shares. A view of t shares is therefore identical for all secrets. + Random rnd = new Random(64); + BigInteger[] f = randomPoly(rnd, 2); + int[] observed = {2, 5}; + BigInteger[] seen = {ThresholdMath.evaluate(f, 2), ThresholdMath.evaluate(f, 5)}; + for (BigInteger candidate : List.of(BigInteger.ZERO, BigInteger.ONE, f[0], L.subtract(BigInteger.ONE))) { + // Interpolate through x = 7 chosen so the point (7, y) makes f(0) = candidate. + BigInteger[] l0 = ThresholdMath.lagrangeAt(new int[]{2, 5, 7}, 0); + BigInteger partial = l0[0].multiply(seen[0]).add(l0[1].multiply(seen[1])).mod(L); + BigInteger y7 = candidate.subtract(partial).multiply(l0[2].modInverse(L)).mod(L); + BigInteger[] g = ThresholdMath.interpolate(new int[]{2, 5, 7}, new BigInteger[]{seen[0], seen[1], y7}); + assertEquals(candidate, g[0]); + for (int i = 0; i < observed.length; i++) { + assertEquals(seen[i], ThresholdMath.evaluate(g, observed[i])); + } + } + } + + @Test + @DisplayName("Dealt shares pass (4) and (5) on both paths; a tampered share or blinding fails") + void shareChecks() { + ThresholdVss.Dealing d = ThresholdVss.deal(2, RNG); + for (int j = 1; j <= 5; j++) { + BigInteger s = d.share(j); + BigInteger sp = d.sharePrime(j); + assertTrue(ThresholdVss.checkPedersenPrivate(d.commitments(), j, s, sp)); + assertTrue(ThresholdVss.checkPedersenPublic(d.commitments(), j, s, sp)); + assertTrue(ThresholdVss.checkFeldmanPrivate(d.extraction(), j, s)); + assertTrue(ThresholdVss.checkFeldmanPublic(d.extraction(), j, s)); + BigInteger bad = s.add(BigInteger.ONE).mod(L); + assertFalse(ThresholdVss.checkPedersenPrivate(d.commitments(), j, bad, sp)); + assertFalse(ThresholdVss.checkPedersenPublic(d.commitments(), j, s, sp.add(BigInteger.ONE).mod(L))); + assertFalse(ThresholdVss.checkFeldmanPublic(d.extraction(), j, bad)); + assertFalse(ThresholdVss.checkPedersenPublic(d.commitments(), j % 5 + 1, s, sp), "another holder's index"); + } + assertThrows(IllegalArgumentException.class, + () -> ThresholdVss.checkPedersenPublic(d.commitments(), 1, L, BigInteger.ZERO), "non-canonical scalar"); + } + + @Test + @DisplayName("Reconstruction: any t + 1 valid pairs recover the dealer; too few or inconsistent pairs abort") + void reconstruction() { + int t = 2; + ThresholdVss.Dealing d = ThresholdVss.deal(t, RNG); + for (int[] s : subsets(5, t + 1)) { + SortedMap pairs = new TreeMap<>(); + for (int j : s) pairs.put(j, new BigInteger[]{d.share(j), d.sharePrime(j)}); + ThresholdVss.Reconstructed r = ThresholdVss.reconstruct(d.commitments(), t, pairs); + for (int k = 0; k <= t; k++) { + assertTrue(r.extraction().get(k).projectiveEquals(d.extraction().get(k))); + } + } + SortedMap few = new TreeMap<>(); + few.put(1, new BigInteger[]{d.share(1), d.sharePrime(1)}); + few.put(2, new BigInteger[]{d.share(2), d.sharePrime(2)}); + var tooFew = assertThrows(FaultAssumptionViolatedException.class, + () -> ThresholdVss.reconstruct(d.commitments(), t, few)); + assertEquals(FaultAssumptionViolatedException.Reason.TOO_FEW_RECONSTRUCTION_PAIRS, tooFew.reason()); + + SortedMap inconsistent = new TreeMap<>(); + for (int j = 1; j <= 4; j++) inconsistent.put(j, new BigInteger[]{d.share(j), d.sharePrime(j)}); + inconsistent.put(4, new BigInteger[]{d.share(4).add(BigInteger.ONE).mod(L), d.sharePrime(4)}); + var bad = assertThrows(FaultAssumptionViolatedException.class, + () -> ThresholdVss.reconstruct(d.commitments(), t, inconsistent)); + assertEquals(FaultAssumptionViolatedException.Reason.INCONSISTENT_RECONSTRUCTION, bad.reason()); + + // Pairs from another dealing do not reproduce these commitments. + ThresholdVss.Dealing other = ThresholdVss.deal(t, RNG); + SortedMap foreign = new TreeMap<>(); + for (int j = 1; j <= 3; j++) foreign.put(j, new BigInteger[]{other.share(j), other.sharePrime(j)}); + var mismatch = assertThrows(FaultAssumptionViolatedException.class, + () -> ThresholdVss.reconstruct(d.commitments(), t, foreign)); + assertEquals(FaultAssumptionViolatedException.Reason.INCONSISTENT_RECONSTRUCTION, mismatch.reason()); + assertTrue(mismatch.getMessage().contains("does not match its commitment"), mismatch.getMessage()); + } + + @Test + @DisplayName("F7 fixtures: F(z) = 3 − 3z (x_1 = 0) and F(z) = 3 (equal shares) recombine from every subset") + void f7Fixtures() { + for (BigInteger[] slopes : List.of( + new BigInteger[]{BigInteger.ONE, BigInteger.TWO, L.subtract(BigInteger.valueOf(6))}, + new BigInteger[]{BigInteger.ONE, BigInteger.TWO, L.subtract(BigInteger.valueOf(3))})) { + List dealers = new ArrayList<>(); + for (int i = 0; i < 3; i++) { + dealers.add(ThresholdVss.dealWithCoefficients( + new BigInteger[]{BigInteger.ONE, slopes[i]}, + new BigInteger[]{ElGamal.sample(RNG), ElGamal.sample(RNG)})); + } + BigInteger[] x = new BigInteger[4]; + for (int j = 1; j <= 3; j++) { + x[j] = BigInteger.ZERO; + for (ThresholdVss.Dealing d : dealers) x[j] = x[j].add(d.share(j)).mod(L); + } + BigInteger slopeSum = slopes[0].add(slopes[1]).add(slopes[2]).mod(L); + if (slopeSum.equals(L.subtract(BigInteger.valueOf(3)))) { + assertEquals(BigInteger.ZERO, x[1], "F(1) = 3 − 3 = 0"); + } else { + assertEquals(BigInteger.valueOf(3), x[1]); + assertEquals(x[1], x[2]); + assertEquals(x[2], x[3]); + } + for (int[] s : subsets(3, 2)) { + BigInteger[] lambda = ThresholdMath.lagrangeAt(s, 0); + BigInteger secret = lambda[0].multiply(x[s[0]]).add(lambda[1].multiply(x[s[1]])).mod(L); + assertEquals(BigInteger.valueOf(3), secret); + } + // Zero slopes are legal: an extraction value may be the identity. + ThresholdVss.Dealing flat = ThresholdVss.dealWithCoefficients( + new BigInteger[]{BigInteger.ONE, BigInteger.ZERO}, new BigInteger[]{BigInteger.TEN, BigInteger.ONE}); + assertTrue(flat.extraction().get(1).isIdentity()); + assertTrue(ThresholdVss.checkFeldmanPublic(flat.extraction(), 3, BigInteger.ONE)); + } + } +} diff --git a/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/zk/ZkElGamalTest.java b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/zk/ZkElGamalTest.java new file mode 100644 index 00000000..ea41199e --- /dev/null +++ b/zeroj-circuit-lib/src/test/java/org/zeroj/circuit/lib/zk/ZkElGamalTest.java @@ -0,0 +1,356 @@ +package org.zeroj.circuit.lib.zk; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.zeroj.api.CurveId; +import org.zeroj.circuit.CircuitBuilder; +import org.zeroj.circuit.annotation.ZkContext; +import org.zeroj.circuit.annotation.ZkField; +import org.zeroj.circuit.annotation.ZkUInt; +import org.zeroj.circuit.lib.jubjub.JubjubCurve; +import org.zeroj.circuit.lib.jubjub.JubjubPoint; +import org.zeroj.circuit.r1cs.R1CSConstraintSystem; + +import java.math.BigInteger; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.concurrent.atomic.AtomicReference; + +import static org.junit.jupiter.api.Assertions.assertAll; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +/** + * ADR-0052 M2: the {@code elgamal-jubjub-v1} relations (spec §9) through the typed adapter. + * Covers every M2 negative in the ADR: mismatched scalars, a message above its width, a width + * above 64 refused at definition, an identity or off-curve key, a wrong share or base, and + * public or narrow randomness. Also covers the I8/I9 provenance rules and the constraint pins. + */ +class ZkElGamalTest { + + private static final JubjubPoint G = JubjubPoint.SUBGROUP_GENERATOR; + private static final BigInteger L = JubjubCurve.SUBGROUP_ORDER; + private static final BigInteger P = JubjubCurve.BASE_FIELD_PRIME; + private static final JubjubPoint T8 = JubjubPoint.FULL_GENERATOR.scalarMul(L); + private static final JubjubPoint ORDER_2 = JubjubPoint.fromAffine(BigInteger.ZERO, P.subtract(BigInteger.ONE)); + + // ------------------------------------------------------------------ circuits + + private static CircuitBuilder encryptionCircuit(int width, boolean keyPublic, boolean randomnessPublic) { + CircuitBuilder b = CircuitBuilder.create("elgamal-enc-w" + width); + b = keyPublic ? b.publicVar("pkU").publicVar("pkV") : b.secretVar("pkU").secretVar("pkV"); + b = b.publicVar("aU").publicVar("aV").publicVar("bU").publicVar("bV").secretVar("m"); + b = randomnessPublic ? b.publicVar("k") : b.secretVar("k"); + return b.defineSignals(c -> { + var zk = new ZkContext(c); + ZkField pkU = keyPublic ? ZkField.publicInput(c, "pkU") : ZkField.secret(c, "pkU"); + ZkField pkV = keyPublic ? ZkField.publicInput(c, "pkV") : ZkField.secret(c, "pkV"); + var key = keyPublic + ? ZkElGamalPublicKey.fromVerifierFixedPublic(zk, pkU, pkV) + : ZkElGamalPublicKey.witnessInSubgroup(zk, pkU, pkV); + ZkUInt m = ZkUInt.secret(c, "m", width); + ZkUInt k = randomnessPublic ? ZkUInt.publicInput(c, "k", 252) : ZkUInt.secret(c, "k", 252); + ZkElGamal.encrypt(zk, m, k, key).assertAffineEquals(zk, + ZkField.publicInput(c, "aU"), ZkField.publicInput(c, "aV"), + ZkField.publicInput(c, "bU"), ZkField.publicInput(c, "bV")); + }); + } + + private static CircuitBuilder dleqCircuit() { + return CircuitBuilder.create("elgamal-dleq") + .publicVar("xU").publicVar("xV").publicVar("pU").publicVar("pV") + .publicVar("dU").publicVar("dV").secretVar("x") + .defineSignals(c -> { + var zk = new ZkContext(c); + ZkElGamal.assertDiscreteLogEquality(zk, ZkUInt.secret(c, "x", 252), + ZkField.publicInput(c, "xU"), ZkField.publicInput(c, "xV"), + ZkField.publicInput(c, "pU"), ZkField.publicInput(c, "pV"), + ZkField.publicInput(c, "dU"), ZkField.publicInput(c, "dV")); + }); + } + + // ------------------------------------------------------------------ witnesses + + private static void put(Map> w, String prefix, JubjubPoint p) { + JubjubPoint n = p.normalized(); + w.put(prefix + "U", List.of(n.u())); + w.put(prefix + "V", List.of(n.v())); + } + + private static Map> encWitness(JubjubPoint pk, BigInteger m, BigInteger k, + JubjubPoint a, JubjubPoint b) { + Map> w = new HashMap<>(); + put(w, "pk", pk); + put(w, "a", a); + put(w, "b", b); + w.put("m", List.of(m)); + w.put("k", List.of(k)); + return w; + } + + private static Map> honestEnc(JubjubPoint pk, BigInteger m, BigInteger k) { + return encWitness(pk, m, k, G.scalarMul(k), G.scalarMul(m).add(pk.scalarMul(k))); + } + + private static Map> dleqWitness(JubjubPoint base, BigInteger x, + JubjubPoint key, JubjubPoint share) { + Map> w = new HashMap<>(); + put(w, "x", base); + put(w, "p", key); + put(w, "d", share); + w.put("x", List.of(x)); + return w; + } + + private static final BigInteger SK = new BigInteger("0281799c40fb5bca4f8cc6af4812fae96cdf7113e1ab203ea4d73fb7027e8343", 16); + private static final JubjubPoint PK = G.scalarMul(SK); + private static final BigInteger K = new BigInteger("0e6e9d50fbbb41bd6191632fcbf588bd6843f389aa856195f9a69d8cff98a304", 16); + + // ------------------------------------------------------------------ encryption + + @Test + @DisplayName("Honest encryptions have a witness at widths 1, 16 and 64, including m = 0 and m = 2^w − 1") + void honestEncryption() { + for (int w : new int[]{1, 16, 64}) { + CircuitBuilder circuit = encryptionCircuit(w, true, false); + for (BigInteger m : List.of(BigInteger.ZERO, BigInteger.ONE, + BigInteger.ONE.shiftLeft(w).subtract(BigInteger.ONE))) { + assertDoesNotThrow(() -> circuit.calculateWitness(honestEnc(PK, m, K), CurveId.BLS12_381), + "w=" + w + " m=" + m); + } + } + // k ≥ l (still below 2^252) gives the same points as k mod l, because both bases lie in + // the subgroup: harmless. A k that does not fit 252 bits has no witness at all. + CircuitBuilder circuit = encryptionCircuit(1, true, false); + BigInteger small = BigInteger.valueOf(5); + assertDoesNotThrow(() -> circuit.calculateWitness(encWitness(PK, BigInteger.ONE, small.add(L), + G.scalarMul(small), G.add(PK.scalarMul(small))), CurveId.BLS12_381)); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness(encWitness(PK, BigInteger.ONE, K.add(L), + G.scalarMul(K), G.add(PK.scalarMul(K))), CurveId.BLS12_381), "k + l ≥ 2^252"); + } + + @Test + @DisplayName("Mismatched scalars, a wrong key and a wrong message have no witness") + void mismatchedScalars() { + CircuitBuilder circuit = encryptionCircuit(16, true, false); + BigInteger m = BigInteger.valueOf(12345); + BigInteger k2 = K.add(BigInteger.ONE); + // A from k, B from k + 1. + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + encWitness(PK, m, K, G.scalarMul(K), G.scalarMul(m).add(PK.scalarMul(k2))), CurveId.BLS12_381)); + // B under another key. + JubjubPoint other = G.scalarMul(BigInteger.valueOf(7)); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + encWitness(PK, m, K, G.scalarMul(K), G.scalarMul(m).add(other.scalarMul(K))), CurveId.BLS12_381)); + // Witness message differs from the encrypted one. + Map> w = honestEnc(PK, m, K); + w.put("m", List.of(m.add(BigInteger.ONE))); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness(w, CurveId.BLS12_381)); + } + + @Test + @DisplayName("A message above its width has no witness, even when the points match it") + void messageAboveWidth() { + CircuitBuilder circuit = encryptionCircuit(1, true, false); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + honestEnc(PK, BigInteger.TWO, K), CurveId.BLS12_381)); + CircuitBuilder wide = encryptionCircuit(64, true, false); + assertThrows(ArithmeticException.class, () -> wide.calculateWitness( + honestEnc(PK, BigInteger.ONE.shiftLeft(64), K), CurveId.BLS12_381)); + } + + @Test + @DisplayName("A message width above 64 is refused at definition (at 252, m = l would alias m = 0)") + void widthAbove64Refused() { + assertThrows(IllegalArgumentException.class, () -> encryptionCircuit(65, true, false)); + assertThrows(IllegalArgumentException.class, () -> encryptionCircuit(252, true, false)); + } + + @Test + @DisplayName("Public or narrow randomness is refused at definition") + void randomnessGuardRails() { + assertThrows(IllegalArgumentException.class, () -> encryptionCircuit(1, true, true), "public k"); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("narrow-k") + .publicVar("pkU").publicVar("pkV").secretVar("m").secretVar("k") + .defineSignals(c -> { + var zk = new ZkContext(c); + var key = ZkElGamalPublicKey.fromVerifierFixedPublic(zk, + ZkField.publicInput(c, "pkU"), ZkField.publicInput(c, "pkV")); + ZkElGamal.encrypt(zk, ZkUInt.secret(c, "m", 1), ZkUInt.secret(c, "k", 128), key); + }), "128-bit k"); + } + + @Test + @DisplayName("I8: identity, off-curve and order-2 keys have no witness; secret coordinates cannot be 'verifier-fixed'") + void keyProvenance() { + CircuitBuilder fixed = encryptionCircuit(1, true, false); + assertThrows(ArithmeticException.class, () -> fixed.calculateWitness( + honestEnc(JubjubPoint.IDENTITY, BigInteger.ONE, K), CurveId.BLS12_381), "identity key"); + assertThrows(ArithmeticException.class, () -> fixed.calculateWitness( + honestEnc(ORDER_2, BigInteger.ONE, K), CurveId.BLS12_381), "order-2 key"); + Map> offCurve = honestEnc(PK, BigInteger.ONE, K); + offCurve.put("pkU", List.of(BigInteger.ONE)); + offCurve.put("pkV", List.of(BigInteger.ONE)); + assertThrows(ArithmeticException.class, () -> fixed.calculateWitness(offCurve, CurveId.BLS12_381), "off-curve key"); + + CircuitBuilder witnessed = encryptionCircuit(1, false, false); + assertDoesNotThrow(() -> witnessed.calculateWitness(honestEnc(PK, BigInteger.ONE, K), CurveId.BLS12_381)); + assertThrows(ArithmeticException.class, () -> witnessed.calculateWitness( + honestEnc(JubjubPoint.IDENTITY, BigInteger.ONE, K), CurveId.BLS12_381), "identity key"); + assertThrows(ArithmeticException.class, () -> witnessed.calculateWitness( + honestEnc(PK.add(T8), BigInteger.ONE, K), CurveId.BLS12_381), "torsion-shifted key"); + // With verifier-fixed public coordinates the subgroup check is the verifier's job: the + // circuit alone accepts a torsion-shifted key (documented obligation, spec §9.3). + assertDoesNotThrow(() -> fixed.calculateWitness(honestEnc(PK.add(T8), BigInteger.ONE, K), CurveId.BLS12_381)); + + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("secret-key-coords") + .secretVar("pkU").secretVar("pkV") + .defineSignals(c -> ZkElGamalPublicKey.fromVerifierFixedPublic(new ZkContext(c), + ZkField.secret(c, "pkU"), ZkField.secret(c, "pkV")))); + } + + @Test + @DisplayName("A ZkElGamalPublicKey from another circuit is refused") + void foreignTypedKeyRefused() { + var captured = new AtomicReference(); + CircuitBuilder.create("key-source").publicVar("pkU").publicVar("pkV").defineSignals(c -> { + var zk = new ZkContext(c); + captured.set(ZkElGamalPublicKey.fromVerifierFixedPublic(zk, ZkField.publicInput(c, "pkU"), ZkField.publicInput(c, "pkV"))); + }); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("key-sink") + .secretVar("m").secretVar("k").defineSignals(c -> { + var zk = new ZkContext(c); + ZkElGamal.encrypt(zk, ZkUInt.secret(c, "m", 1), ZkUInt.secret(c, "k", 252), captured.get()); + })); + } + + // ------------------------------------------------------------------ DLEQ + + @Test + @DisplayName("DLEQ: possession and share statements have witnesses; a wrong share, base or secret has none") + void dleq() { + CircuitBuilder circuit = dleqCircuit(); + BigInteger x = SK; + assertDoesNotThrow(() -> circuit.calculateWitness(dleqWitness(G, x, PK, PK), CurveId.BLS12_381), "possession"); + JubjubPoint a = G.scalarMul(K); + JubjubPoint d = a.scalarMul(x); + assertDoesNotThrow(() -> circuit.calculateWitness(dleqWitness(a, x, PK, d), CurveId.BLS12_381), "share"); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + dleqWitness(a, x, PK, d.add(G)), CurveId.BLS12_381), "wrong share"); + JubjubPoint otherBase = G.scalarMul(K.add(BigInteger.ONE)); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + dleqWitness(otherBase, x, PK, d), CurveId.BLS12_381), "wrong base"); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness( + dleqWitness(a, x.add(BigInteger.ONE), PK, d), CurveId.BLS12_381), "secret of another key"); + Map> offCurve = dleqWitness(a, x, PK, d); + offCurve.put("xU", List.of(BigInteger.ONE)); + offCurve.put("xV", List.of(BigInteger.ONE)); + assertThrows(ArithmeticException.class, () -> circuit.calculateWitness(offCurve, CurveId.BLS12_381), "off-curve base"); + } + + @Test + @DisplayName("DLEQ identity values: x = 0 gives P = D = O, which is a valid statement (threshold shares)") + void dleqIdentity() { + CircuitBuilder circuit = dleqCircuit(); + JubjubPoint a = G.scalarMul(K); + assertDoesNotThrow(() -> circuit.calculateWitness( + dleqWitness(a, BigInteger.ZERO, JubjubPoint.IDENTITY, JubjubPoint.IDENTITY), CurveId.BLS12_381)); + assertDoesNotThrow(() -> circuit.calculateWitness( + dleqWitness(JubjubPoint.IDENTITY, SK, PK, JubjubPoint.IDENTITY), CurveId.BLS12_381), + "an identity handle A = O is a valid base"); + } + + @Test + @DisplayName("I9: every DLEQ coordinate must be a declared public input; narrow x is refused") + void dleqProvenance() { + String[] names = {"xU", "xV", "pU", "pV", "dU", "dV"}; + for (String secretName : names) { + assertThrows(IllegalArgumentException.class, () -> { + CircuitBuilder b = CircuitBuilder.create("dleq-secret-" + secretName); + for (String n : names) b = n.equals(secretName) ? b.secretVar(n) : b.publicVar(n); + b.secretVar("x").defineSignals(c -> { + var zk = new ZkContext(c); + ZkField[] f = new ZkField[6]; + for (int i = 0; i < 6; i++) { + f[i] = names[i].equals(secretName) ? ZkField.secret(c, names[i]) : ZkField.publicInput(c, names[i]); + } + ZkElGamal.assertDiscreteLogEquality(zk, ZkUInt.secret(c, "x", 252), f[0], f[1], f[2], f[3], f[4], f[5]); + }); + }, "secret " + secretName); + } + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("dleq-derived-base") + .publicVar("xU").publicVar("xV").publicVar("pU").publicVar("pV").publicVar("dU").publicVar("dV").secretVar("x") + .defineSignals(c -> { + var zk = new ZkContext(c); + var xU = ZkField.publicInput(c, "xU"); + ZkField derived = ZkField.wrap(zk, c.wrap(c.api().add(xU.signal().variable(), c.api().constant(BigInteger.ZERO)))); + ZkElGamal.assertDiscreteLogEquality(zk, ZkUInt.secret(c, "x", 252), derived, + ZkField.publicInput(c, "xV"), ZkField.publicInput(c, "pU"), ZkField.publicInput(c, "pV"), + ZkField.publicInput(c, "dU"), ZkField.publicInput(c, "dV")); + }), "derived base coordinate"); + assertThrows(IllegalArgumentException.class, () -> CircuitBuilder.create("dleq-narrow") + .publicVar("xU").publicVar("xV").publicVar("pU").publicVar("pV").publicVar("dU").publicVar("dV").secretVar("x") + .defineSignals(c -> { + var zk = new ZkContext(c); + ZkElGamal.assertDiscreteLogEquality(zk, ZkUInt.secret(c, "x", 200), + ZkField.publicInput(c, "xU"), ZkField.publicInput(c, "xV"), + ZkField.publicInput(c, "pU"), ZkField.publicInput(c, "pV"), + ZkField.publicInput(c, "dU"), ZkField.publicInput(c, "dV")); + }), "200-bit x"); + } + + // ------------------------------------------------------------------ host vs circuit + + @Test + @DisplayName("Differential: random (m, k) encrypted by the host formula verify in-circuit at width 32") + void differential() { + CircuitBuilder circuit = encryptionCircuit(32, true, false); + Random rnd = new Random(60); + for (int i = 0; i < 4; i++) { + BigInteger m = new BigInteger(32, rnd); + BigInteger k = new BigInteger(252, rnd).mod(L); + JubjubPoint pk = G.scalarMul(new BigInteger(250, rnd).add(BigInteger.ONE)); + assertDoesNotThrow(() -> circuit.calculateWitness(honestEnc(pk, m, k), CurveId.BLS12_381)); + } + } + + // ------------------------------------------------------------------ cost + + private static long nnz(R1CSConstraintSystem cs) { + long n = 0; + for (var row : cs.constraints()) n += row.a().size() + row.b().size() + row.c().size(); + return n; + } + + @Test + @DisplayName("Constraint pins: encryption at widths 1/16/64 (verifier-fixed key), witnessed key, DLEQ") + void constraintPins() { + R1CSConstraintSystem w1 = encryptionCircuit(1, true, false).compileR1CS(CurveId.BLS12_381); + R1CSConstraintSystem w16 = encryptionCircuit(16, true, false).compileR1CS(CurveId.BLS12_381); + R1CSConstraintSystem w64 = encryptionCircuit(64, true, false).compileR1CS(CurveId.BLS12_381); + R1CSConstraintSystem witnessed = encryptionCircuit(1, false, false).compileR1CS(CurveId.BLS12_381); + R1CSConstraintSystem dleq = dleqCircuit().compileR1CS(CurveId.BLS12_381); + System.out.printf("elgamal rows/nnz: w1 %d/%d, w16 %d/%d, w64 %d/%d, witnessed-key %d/%d, dleq %d/%d%n", + w1.constraints().size(), nnz(w1), w16.constraints().size(), nnz(w16), + w64.constraints().size(), nnz(w64), witnessed.constraints().size(), nnz(witnessed), + dleq.constraints().size(), nnz(dleq)); + assertAll( + () -> assertEquals(PIN_W1, w1.constraints().size(), "w1 rows"), + () -> assertEquals(PIN_W16, w16.constraints().size(), "w16 rows"), + () -> assertEquals(PIN_W64, w64.constraints().size(), "w64 rows"), + () -> assertEquals(PIN_WITNESSED, witnessed.constraints().size(), "witnessed-key rows"), + () -> assertEquals(PIN_DLEQ, dleq.constraints().size(), "dleq rows")); + } + + // Measured 2026-10-05. The width-1 path selects [m]·G; wider messages use the windowed + // fixed-base multiplication over the message's own decomposition. DLEQ equals the usecase + // prototype's trustee-dleq circuit (6,546), the same relation. + private static final int PIN_W1 = 6_558; + private static final int PIN_W16 = 6_650; + private static final int PIN_W64 = 6_938; + private static final int PIN_WITNESSED = 12_105; + private static final int PIN_DLEQ = 6_546; +} diff --git a/zeroj-circuit-lib/src/test/resources/elgamal-reference/README.md b/zeroj-circuit-lib/src/test/resources/elgamal-reference/README.md new file mode 100644 index 00000000..9b8cfdcb --- /dev/null +++ b/zeroj-circuit-lib/src/test/resources/elgamal-reference/README.md @@ -0,0 +1,273 @@ +# ElGamal-Jubjub v1 independent reference + +This is an independent reproduction of the `elgamal-jubjub-v1` profile, written from the +normative spec alone. Its output serves as evidence against ZeroJ's Java implementation +(ADR-0052 milestone M0). + +## Files + +- `elgamal_jubjub_v1_reference.py`: Python 3, standard library only. It implements: + - Jubjub affine twisted-Edwards arithmetic (`a = −1`). It uses the unified addition law with + one Fermat inversion per addition, and doubling goes through the same law. Scalar + multiplication is right-to-left double-and-add on the raw, unreduced integer. The + subgroup check is `[l]·P == O`. + - The derivation of `d = −10240/10241 mod p` and `G = [8]·G_full`, which are then compared + with the pinned values. + - Generic Tonelli–Shanks square roots, and the point encoding and decoding of + `pedersen-jubjub-v1` §4. + - §3.2 key contexts with every refusal rule, and the registered share order. + - §4 encryption, and §5 `add` and `scale` with the context rule and the bound rule. + - §6 single-key and n-of-n decryption, with plaintext recovery by linear search + (published limit `2^18` steps). + - §7 ciphertext, public-key and affine-coordinate validation. + - §8 public-input orders. + - The R_dleq relation, checked directly with the witness. There are no proofs. + - The §12 test vectors, the ADR counterexamples and a cross-check of the prototype output. +- `reference-output.txt`: the script's output, as `key=value` lines under a `#` header. + +## Independence rules followed + +Read: + +- `docs/specs/elgamal-jubjub-v1.md`, the spec under test. +- `docs/specs/pedersen-jubjub-v1.md`, for `p`, `l`, `a`, the cofactor, `G_full` and `G` + (§1, §2.1) and the point encoding (§4). +- `../pedersen-reference/README.md`, only for the README and output conventions. +- `zeroj-usecases/private-voting/src/test/resources/elgamal-reference/reference-output.txt`, + the prototype's output values, only for the cross-check. + +Not read: any `.java` file, any other `.py` file (including the prototype script next to +that output), any build output, and any other file in either repository. Neither repository +was searched. Where the spec was unclear, the most literal reading was implemented and the +issue is recorded below, not resolved from code. + +The script takes `p`, `l`, the cofactor and `G_full` from the spec as inputs. It derives +`d` and `G` itself. The pinned `d`, `G` and `encode(G)` are typed in by hand only as +comparison targets. The BLS12-381 parameter `z = −0xd201000000010000` is used only to check +that `p = z⁴ − z² + 1`. + +## Running + +``` +cd zeroj-circuit-lib/src/test/resources/elgamal-reference +python3 elgamal_jubjub_v1_reference.py # embedded prototype copy +python3 elgamal_jubjub_v1_reference.py --prototype PATH # parse a prototype file instead +``` + +The run takes about 10 s, mostly the linear search that recovers `37035`. The script prints +to stdout and rewrites `reference-output.txt`. Apart from the `# Python:` header line, the +output is deterministic. + +| Status | Meaning | +|---|---| +| 0 | Every `check.*` and `spec_match.*` is `true`, and every negative vector's `observed` equals its `expected`. | +| 1 | Something failed. The output is still written, ending in `result=fail`, and the failing keys go to stderr. An unexpected exception also gives status 1, with an `error=` line. | + +Mutated copies of the script were run to confirm that it fails. Each of these was detected: + +- a wrong pinned `G.u`; +- big-endian `v` in the encoding; +- an inverted parity choice in decoding; +- reducing `v mod p` instead of rejecting `v ≥ p`; +- dropping the ZIP 216 rule; +- dropping the subgroup check; +- a wrong sign of `d`; +- reducing affine coordinates mod `p`; +- dropping the §6.1 key check; +- dropping the §5 bound rule; +- one changed hex digit in the prototype's `M`; +- sorting shares by the encoding read as a little-endian integer. + +The last one was caught only by the supplementary `sortvec` vector (finding 10). + +## Output format + +Each line is `key=value`: + +- Field elements and coordinates are `0x` plus 64 lowercase hex digits. This also applies to + `curve.p`, `curve.l`, the scalars, and the out-of-range affine integers such as `G.u + p`. + The one negative integer, `affine_neg.u_negative_alias.u`, is written `-0x` plus 64 hex + digits. +- These integers are decimal: `.m`, `.w`, `.bound`, `.dec`, `nofn.tally`, the small `cx.*` + integers (`secret_*`, `k`, `m`, `result_*`, `dec*`), `bound.*`, `sortvec.multiples` and the + `info.*` counters. The exception is `cx.wrap.m1`, which is `l − 1` in hex. +- Byte strings are bare lowercase hex: point encodings (64 hex characters), ciphertext + encodings (128 hex characters) and negative-decode inputs. +- Lists, such as `publicInputs`, `registered_order` and `registered_encodings`, are + comma-separated. +- Checks are `true` or `false`. + +| Key family | Content | +|---|---| +| `profile`, `curve.{p,l,d,cofactor}`, `G_full.*`, `G.{u,v,encoding}` | Constants, with `d` and `G` derived here. | +| `spec_match.{d,G,G_encoding}` | Comparison with the values the spec pins. | +| `scalar.` | §12 `scalar(tag)` for `sk`, `k0`, `k1`, `k16`, `k64`, `share1..3` and `ballot1..5`, plus the reference-local `wrap1` and `wrap2`. | +| `single.pk.*`, `single.enc..*` (`c` ∈ `m0w1`, `m1w1`, `m12345w16`, `mmaxw64`) | Single-key vectors: `m`, `w`, `k`, `A.u/v`, `B.u/v`, `encoding`, `bound`, `dec_point_ok`, and `dec` except for `mmaxw64`. | +| `single.add01.*`, `single.scale3_12345.*` | `add(Enc(0), Enc(1))` (bound 2, dec 1) and `scale(3, Enc(12345))` (bound 196605, dec 37035). | +| `nofn.share.*`, `nofn.pk.*`, `nofn.registered_order`, `nofn.registered_encodings` | Three trustees, the joint key and the §3.2 sorted order. | +| `nofn.ballot.*`, `nofn.sum.*`, `nofn.D.*`, `nofn.M.*`, `nofn.tally` | Five ballots `1,0,1,1,0` at `w = 1`, their sum (bound 5), the decryption shares on `sumA`, `M = 3G` and the tally `3`. | +| `nofn.dleq.publicInputs`, `nofn.pop.publicInputs`, `nofn.encstmt.ballot1.{w,publicInputs}` | §8 orders: the share statement `(X = sumA, P = PK_j, D = D_j)`, the proof of possession `(G, PK_j, PK_j)`, and the encryption statement `(PK, A₁, B₁)` under the joint key. | +| `sortvec.*`, `info.sortvec.*` | A supplementary sort vector over `[1]G`, `[2]G` and `[4]G`, with the orders that four wrong comparators would give (finding 10). | +| `cx.wrongsecret.*` | `(G, 4G)` under `PK = 3G`: secret 4 gives `M = O` and dec 0, secret 3 gives dec 1, and §6.1 refuses secret 4. | +| `cx.mixed.*` | `Enc(1; 1, 3G) + Enc(1; 1, 2G) = (2G, 7G)` decrypts to 1 under secret 3. The context rule refuses the `add`. | +| `cx.forged.*` | Keys `3G` and `5G`, `m = 1`, `k = 7`: `A = 7G`, `B = 57G`, `D1 = 21G`, `D2 = 35G` and the forged `36G`. The honest result is 1, the forged result 0, and the forged share fails the DLEQ relation. | +| `cx.wrap.*` | The raw sum of `Enc(l − 1)` and `Enc(1)` under `single.pk` has `M = O` and dec 0. `l − 1` does not fit at `w = 64`, §4 refuses it, and the §5 bound rule refuses the `add`. | +| `bound.w64.*` | The largest `c` that `scale(c, ·)` accepts on a `w = 64` ciphertext, and the smallest it refuses. | +| `decode_neg..{input,kind,expected,observed}` | Byte-level vectors (§7.2, §7.3). `kind` is `ciphertext` or `publickey`. | +| `affine_neg..{u,v,kind,expected,observed}` | §7.4 integer-coordinate vectors. `kind` is `point` (a ciphertext component, where the identity is allowed) or `publickey`. | +| `check.prototype.`, `check.prototype.tally` | Every prototype point, recomputed under this spec. | +| `check.*` | Internal checks, including `roundtrip.*` for every positive encoding. | +| `info.*` | Diagnostics that are not pass/fail. | +| `result` | `pass` or `fail`. Always the last line. | + +`expected` takes these values. The spec requires rejection but does not name outcome +categories (finding 7), so the labels are this reference's own. + +| Label | Rule | +|---|---| +| `reject_length` | The length is not 32 (a point) or 64 (a ciphertext). | +| `reject_noncanonical_v` | Pedersen §4 rule 2: `v ≥ p`. | +| `reject_non_square` | Rule 4. | +| `reject_u_zero_sign_set` | Rule 5 (ZIP 216). | +| `reject_not_in_subgroup` | §7.2 or §7.3: the point is not in `𝔾`. | +| `reject_identity_key` | §7.3: `PK = O`. | +| `reject_noncanonical`, `reject_off_curve` | §7.4 rules 1 and 2. | +| `accept` | The input is valid. | + +The non-canonical `v` vectors are aliases of valid points: + +- `ct_A_noncanonical_v` and `pk_noncanonical_v` encode `v([4]G) + p`. A decoder that reduces + `v mod p` would accept `[4]G`. +- `ct_B_noncanonical_v_identity_alias` encodes `v = p + 1`, which reduces to the identity. +- `affine_neg.u_plus_p`, `affine_neg.v_plus_p` and `affine_neg.u_negative_alias` are + aliases of `G` mod `p`. + +## Result + +`result=pass`. Every check passes, and every value the spec pins (`d`, `G` and `encode(G)`) +matches. Each counterexample in spec §6.1, §10.2 and §12 reproduces exactly as stated. + +## Prototype cross-check + +The prototype's `reference-output.txt` (in `zeroj-usecases/private-voting`) is embedded in +the script verbatim, and a run confirmed it is byte-identical to that file. The script parses +the prototype's scalars `sk1..3` and `k1..5` and its votes `v1..5`. Under this spec it +recomputes: + +- `PK_j = [sk_j]·G` and `PK = Σ PK_j`; +- `A_i = [k_i]·G` and `B_i = [v_i]·G + [k_i]·PK`; +- `sumA` and `sumB`; +- `D_j = [sk_j]·sumA` and `M = sumB − Σ D_j`; +- the tally, by linear search. + +**The cross-check passed.** All 21 listed points (`A1..A5`, `B1..B5`, `G`, `PK1..PK3`, `PK`, +`sumA`, `sumB`, `D1..D3`, `M`) match, and the tally is `3`. A second run with `--prototype` +pointed at the live file gave identical output, apart from the `info.prototype_source` line. + +The prototype's scalars are not the §12 `scalar(tag)` values +(`info.prototype_scalars_equal_spec12_scalars=false`). The two vector sets are therefore +independent. + +## Spec ambiguities and findings + +1. **§12, no values are pinned.** The "Pinned values" table is empty ("filled from the + reference output at M0"). Only `d`, `G` and `encode(G)`, from §1 and pedersen §2.1, can be + compared with the spec. A wrong tag prefix, tag spelling or byte order in `scalar(tag)` + would pass every check here. Until the table is filled from this output, the §12 vectors + rest on this reference agreeing with the Java code, not on the spec. +2. **§12, tag construction.** The spec writes `"share" + j` and `"ballot" + i` without saying + how the integer becomes text. *Interpretation:* decimal ASCII, no padding, 1-based: + `share1..share3` and `ballot1..ballot5`. Ballot `i` carries the `i`-th message of the list + `1, 0, 1, 1, 0`. +3. **§12, a zero secret from `scalar(tag)`.** §2 resamples secret keys until they are + non-zero, but the §12 derivation has no such step. *Interpretation:* the derived secrets + are used as they are. All four (`sk`, `share1..3`) are non-zero + (`check.secret_scalars_nonzero`), so the point is moot for these tags. The spec could say + so, or define a fallback. +4. **§12, `Enc(m; k, PK)` notation.** The counterexamples write `Enc(1; 1, 3G)`, but §4 never + defines an argument order. *Interpretation:* `Enc(m; k, PK)`, which reproduces the stated + `(G, 4G)` and the stated results. +5. **§12, expected values not stated.** §12 lists the cases but not the results they should + give. *Interpretations:* + - The decryption shares are taken on the **sum**: `D_j = [sk_j]·Σ A_i`, not per ballot. + - The bounds follow §5: 2 for `add01`, `3·(2¹⁶ − 1) = 196605` for the scale case and 5 + for the sum. + - The pinned statements are the DLEQ share statement on `sumA`, the proof of possession + for each `PK_j`, and the encryption statement for ballot 1 under the joint key. + - For `m = 2⁶⁴ − 1`, only `B − [sk]·A = [m]·G` is asserted. Recovering it by search is + beyond any linear-search limit, and §6.3 lets an implementation refuse it. +6. **§10.1 conflicts with §5 (most significant).** §10.1 says a ciphertext obtains a key + context and a bound "in exactly two ways": local encryption or verified admission. It adds + that "no other way to attach a bound or a key exists". But §5 gives the result of + `add`/`scale` a bound, and §12 and §6.2 decrypt such a result, the five-ballot sum. That + sum was neither encrypted locally nor admitted. §10.2 also requires `A` to come "from the + admitted ciphertext". *Interpretation:* the result of a §5 operation on admitted + ciphertexts is admitted, inherits their common context and carries the §5 bound. §10.1 + should say this explicitly, or limit "exactly two ways" to raw ciphertexts. +7. **§7, outcome categories and precedence.** The spec lists rejection conditions but no + distinguishable outcomes. It also gives no precedence when several apply: both halves of a + ciphertext bad, or a half that fails to decode against one that fails the subgroup check. + *Interpretation:* the `expected` labels are this reference's classification, and halves + are examined in the order `A` then `B`, each decoded and then subgroup-checked. Every + vector here violates exactly one rule, so no precedence question arises. A consumer should + assert reject versus accept, and treat the category as informative. +8. **§7.4, signed integers.** Ledger datum integers are signed, and rule 1 (`0 ≤ u`) + correctly covers negative values. A vector with `u = G.u − p` (≡ `G.u`) is included, which + an implementation that reduces mod `p` would accept as `G`. This is not an ambiguity. It + is noted because the value is serialised with a `-0x` prefix, which a consumer must parse. +9. **§3.2, context equality.** "Equal if and only if their joint keys are equal and their + sorted share encodings are equal": the first condition follows from the second, since + `PK = Σ PK_j`. A consequence worth confirming: the single-key context `{PK}` and the + 3-share context with the same `PK` are **different** contexts, so their ciphertexts cannot + be combined. +10. **§3.2, sort-order pitfall.** "Unsigned lexicographic byte order" applies to the + **little-endian** encodings, so the first byte compared is the least significant byte of + `v`. The §12 shares give the order `2,3,1`, which separates it from numeric-`v` order + (`3,1,2`) and from signed-byte order (`3,1,2`). They do **not** separate it from "the 32 + bytes read as a little-endian integer" (`2,3,1` again), because the sign bit at `2²⁵⁵` + dominates. The supplementary vector `sortvec` (`[1]G`, `[2]G`, `[4]G` → `2,4,1`) separates + all four wrong comparators, including numeric `u`. *Recommendation:* pin a sort vector. +11. **§2, `k = 0` is allowed (informational).** `k ∈ [0, l)` admits `k = 0`, which gives + `A = O` and `B = [m]·G` and so reveals `m`. The probability is `1/l ≈ 2⁻²⁵²`, so this is + harmless. It is consistent with §7.2 accepting an identity `A`. Unlike `sk`, `k` is not + resampled. The spec could say that this is deliberate. +12. **§3.3, the proof of possession is not bound to a context (informational).** The PoP + statement `(X = G, P = PK_j, D = PK_j)` carries no election or trustee identifier, so one + proof is valid for that key in every context. This still prevents rogue keys: a copied + key is a duplicate within one context, and a party that copies a key into another context + cannot decrypt with it. But a PoP does not authenticate who registered the key. That is + protocol-level, outside this profile. +13. **§5, the wrap example is outside the profile.** "The raw sum of encryptions of `l − 1` + and `1`" cannot be produced by §4, because `l − 1 ≥ 2⁶⁴`. The reference builds it with the + raw formula `([k]·G, [m]·G + [k]·PK)`, using the reference-local tags `wrap1` and `wrap2`, + which are not §12 tags. It confirms that §4 and the §5 bound rule each refuse it. + +Everything else checked agrees with the spec's stated claims: + +- `d` is a non-square, and `−1` is a square; +- pedersen §4 rule 3 is unreachable; +- `G_full` has order `8l`, and `#E = 8l` by the Hasse bound; +- `2⁶⁴ − 1 < l` and `2²⁵¹ < l < 2²⁵²`; +- the §2 sampler bias is below `2⁻²⁵⁹`; +- the §6.1, §10.2 and §12 counterexample arithmetic is correct. + +## Spec revision after this run + +The findings were resolved in `docs/specs/elgamal-jubjub-v1.md` before any library code was +checked against this output. The reference output did not change. + +| Finding | Resolution in the spec | +|---|---| +| 1. §12 pins no values | §12 now pins `scalar("sk")`, both public keys, four ciphertext encodings, the registered order, `D_1`, the tally and the forged-share result. All are copied from this output. | +| 2. Tag spelling | §12: decimal, unpadded, 1-based (`share1`, `ballot5`). | +| 3. Zero test secret | §12: a vector set whose secret derives to zero is invalid. It is not resampled; none does. | +| 4. `Enc(m; k, PK)` | Defined in §4. | +| 5. Expected results unstated | §12 states the bounds, `D_j = [sk_j]·A_sum`, and which statements are pinned. | +| 6. §10.1 vs §5 | §10.1 gains a third way in: a §5 combination of admitted ciphertexts under one context, carrying the §5 bound. | +| 7. Rejection precedence | §7.2: a decoder rejects if any rule fails; no precedence among reasons is defined. Consumers compare accept versus reject only. | +| 8. Signed affine integers | No change: §7.4 rule 1 already rejects negatives. | +| 9. Context equality | §3.2: equality by sorted share encodings. A single key and a share set with the same sum are different contexts. | +| 10. Sort comparator | §3.2 pins byte-0-first unsigned comparison, and §12 adds the `sortvec` order. | +| 11. `k = 0` | §4 states it is deliberate, with probability about `2⁻²⁵²`. | +| 12. Possession is context-free | §3.3 states it. Applications authenticate key registration separately. | +| 13. Wrap example | No change: §5 already presents it as the case the bound rule excludes. | diff --git a/zeroj-circuit-lib/src/test/resources/elgamal-reference/elgamal_jubjub_v1_reference.py b/zeroj-circuit-lib/src/test/resources/elgamal-reference/elgamal_jubjub_v1_reference.py new file mode 100644 index 00000000..ccab8345 --- /dev/null +++ b/zeroj-circuit-lib/src/test/resources/elgamal-reference/elgamal_jubjub_v1_reference.py @@ -0,0 +1,1121 @@ +#!/usr/bin/env python3 +"""Independent reference for the ZeroJ ``elgamal-jubjub-v1`` profile. + +Written from ``docs/specs/elgamal-jubjub-v1.md`` and ``docs/specs/pedersen-jubjub-v1.md`` +alone (curve constants, the base G and the point encoding come from the latter). No Java +source, no other Python file and no other repository file was read while writing it. + +Python 3, standard library only. The algorithms are deliberately simple and direct: + +* affine twisted-Edwards arithmetic (a = -1) with the unified addition law, one Fermat + inversion per addition, and doubling done by the same addition; +* right-to-left double-and-add on the raw (unreduced) integer scalar; +* subgroup membership as ``[l]P == O``; +* a generic Tonelli-Shanks square root; +* linear search for small discrete logarithms. + +Usage, from this directory:: + + python3 elgamal_jubjub_v1_reference.py [--prototype PATH] + +Prints ``key=value`` lines and rewrites ``reference-output.txt`` next to this script. +Exit status 0 means every check and every spec comparison passed, 1 means at least one did +not (the failing keys go to stderr; the output is still written). + +``--prototype PATH`` parses a prototype output file instead of the embedded verbatim copy +(see ``PROTOTYPE_OUTPUT`` below). +""" + +import hashlib +import math +import os +import platform +import sys + +HERE = os.path.dirname(os.path.abspath(__file__)) +OUTPUT_FILE = os.path.join(HERE, "reference-output.txt") +PROFILE = "elgamal-jubjub-v1" + +# --------------------------------------------------------------------------------------------- +# Inputs: pedersen-jubjub-v1.md §1 (p, l, a, cofactor) and §2.1 (G_full), which +# elgamal-jubjub-v1.md §1 adopts. d is NOT taken from the spec: it is derived below. +# --------------------------------------------------------------------------------------------- +P = 0x73EDA753299D7D483339D80809A1D80553BDA402FFFE5BFEFFFFFFFF00000001 +L = 0x0E7DB4EA6533AFA906673B0101343B00A6682093CCC81082D0970E5ED6F72CB7 +COFACTOR = 8 +G_FULL = (0x62EDCBB8BF3787C88B0F03DDD60A8187CAF55D1B29BF81AFE4B3D35DF1A7ADFE, 11) + +# --------------------------------------------------------------------------------------------- +# Comparison targets typed by hand from the specs. They are never used as inputs. +# --------------------------------------------------------------------------------------------- +PIN_D = 0x2A9318E74BFA2B48F5FD9207E6BD7FD4292D7F6D37579D2601065FD6D6343EB1 +PIN_G_U = 0x3EA5C4673A121CA35ED37EE3B172F5EE04315C657FBE375F512DFEA318D56FE5 +PIN_G_V = 0x57137B83EA6EDB4F78F7D30D3F616CB3B9AA6E8E40808413C10CEA38D50C55CB +PIN_G_ENC = "cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7" + +# BLS12-381 curve parameter z (public knowledge). Used only to sanity-check that p is the +# BLS12-381 scalar-field order r = z^4 - z^2 + 1; never used to compute anything else. +BLS12_381_Z = -0xD201000000010000 + +# This reference's published plaintext-search limit (spec §6.3): linear search only, and +# refused above this many steps. +SEARCH_LIMIT = 1 << 18 + +# Verbatim copy of the prototype output +# zeroj-usecases/private-voting/src/test/resources/elgamal-reference/reference-output.txt +# (only this output file was read; the script beside it was not). Used only for the +# cross-check: its scalars and votes are inputs, its points are comparison targets. +PROTOTYPE_OUTPUT = """\ +scalar sk1 04d1fe8403d794ac8a0fe6f27351172e9cf52c88a20b8bfa38c669863feba815 +scalar sk2 0adb993226bc73a2a0927947921cfbd46192367b85593b6814c5fe540be6ccd1 +scalar sk3 091d973e9f4d748a2f020a3ae9255fddd539b6d655c53f070745931367e01334 +scalar k1 04b512806ac40491de91873fa67782988e8d2317c86f96b4985a74ebcdefc491 +vote v1 1 +A1 24d731b3830db22bf1cbbb3db05d3111e18c7f6ea9c090bb8893fe180bc46ad8 411c4ecbbc73c6621df6c5458f1d5cb392f5c9f7f184c1138cf0a5699e66cd8e +B1 490ca1f82d3b0b96eed6dbc31c7ee6694f6a286e6eb6b4be774ccca3a3300d87 1244b9618a2b8a7e86c60d9435ec6980cf294fd8f2939dfdc91eff06a817bf65 +scalar k2 09d48660dd773ec05603a58385f10dfced84ab70ed3eaaa4e4ba4803b643913b +vote v2 0 +A2 553bb6274ab11ee832f9fa88652dc3e904bd203d9edc1e26cb96ff75e616567a 3ceddb8180321eb518f830a6d2d03279d375c30a8cd51027ae7594ee58651f1f +B2 4a39ecadcf2baef72147d0d08019d8c62a5bdeceba5802eb134612b5e1c0c88c 352548776e293258ec855bf79237e5df7cf484cdef430bba70677e194164e0a0 +scalar k3 054b224581dda63e334cbd7aa0f5fa97634f1619aab470616ab027e9fdb7bb86 +vote v3 1 +A3 32a6eb2c19d9ff249cbd20d7970379e358e082ede99edadfc2940d1d6dc5f771 0daf199a04bd4f17e9baccbfc7c59046bd6f7ae165e853d9792495f87d1dc191 +B3 5ba3434a20e5dae7ebf1044c59449e797927d76c51d0fdc2b2114d1e57b973ce 29ddf232c514d9bd5c499c51fe1c8ad700e40d70109a0508473481c5fec909a9 +scalar k4 037e5e72b592bd8e471b67da883551d5a15888cdc152e0ec9a15611ed479a817 +vote v4 1 +A4 0c739b0ce3bbd3a3e509a472f0fc75d5681c7dc5b334f21b036d4475f429e9e3 0db99b500c94e1f83c21f7c4dc6eda603d0176147378e08d7e4e69eb2a02a338 +B4 4c4f27a3fdd76f5827a55c0126a470f1e5cbc8dea6bbc1e170180296cdae7596 55ba08dac449d3597eef19b0601b1ca8dfc2372afdc707bfa73f7043f2d6b98a +scalar k5 0a450d0c462a440d23d7237f4dac4998b32a59fe39c581cc6f11c3dc62c6c45a +vote v5 0 +A5 08cbcc3baac32302d8671d7ab4a3b5ce08576f434ef7a772319825ccd5d026ad 636dc2dcdcbec5d808f256a91b09cc8a4b1c97bac56a47c2e0cd99ef03518ca1 +B5 27d24473e8aa0147a230106896f4fa05121b155ff912f71a0a5939f93164e232 5209b4ec195cb6d9493a4c52d5dc8e63fd67418c7a0d598721c91b2d0fc93bb9 +G 3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +PK1 61e9605e8e899913a3574190e9b1aed1ef55a3575da061f70f30b7ed2f9cea00 0055cce24c827d50115bc27023d94c275f55990bee85632b62ad3e7b92d54a38 +PK2 1b6178a8b72e239c26f48e4196302e14bdb3c354c238e42dd7c1256ef99a8beb 050631fa38402eb82c2790500914f40c2c2c38bd9edc2efbe47f5961142da369 +PK3 488680c743d2b2d8e3a2019da7da251142fd3ea142df7cc85c447f85ceaea517 28ef135a3a5fd1e6846f022395e87b5c5de548c16dd08ebb0569aaf1e845e7a6 +PK 0b367e0af00b1dc8a199e6c3d7ed5a3f1f5f37194e1f7f13735a5e1073d680da 3c67122a56a1850eef6c62bd4ff2672c7a620fccf12c6dd9fbe3389fd68abb61 +sumA 0df6b80a173c5cffb3c9cf05bd3805028592eae889877e7b8059e137515cfc58 3dd9f7a4985085fa95f3f0fe5485c5260fa3b886cab184d82a9a7fc9d2a7f1f7 +sumB 1d1d38f09c128c6c0aae25033745f812ddd60a93239df7acc9bc034e06b19fc0 5f5a83574d99a1f8c1aca599166dff242ed0162b62224a96c72c4b8295daabdb +D1 62c9843c3610e667d8374b9fa5f6c1d735d29240b02231f155b5a44b07b8a54a 6e693554f6e43d899cc19124ad7e5aaf4b54b959852308fcb14a3546dcc3d849 +D2 4cd539431dc2e2a8eaf14676fe69f32abb3b0534812d647ebab3ab5dd7849a3f 47a25e10fbf83d5b583e6fa4f54ba6b3c123d022087eb17ae87ba2aa0f8616e0 +D3 255b6920222d31de0447ee8e761fc63cfad102e0f6cbc0e0f54692652fc43662 61d4e52c477b588ff0f0bdba376b5feede3652253ac49bc7dc9bc99d609d2d8a +M 13d8c3c67691262cc869a019d5cbe5b22257879e46c56955beee75fcb689bbcd 479c33dba2949dba817ee156520e1df08d959c01c75a0058aea437cbd15d29c5 +tally T 3 +""" + + +# ============================================================================================= +# Field F_p +# ============================================================================================= + +def inv(x): + """Inverse in F_p by Fermat's little theorem (p is prime).""" + x %= P + if x == 0: + raise ZeroDivisionError("inverse of zero in F_p") + return pow(x, P - 2, P) + + +def legendre(x): + """Euler's criterion: 0, 1 or p - 1.""" + return pow(x % P, (P - 1) // 2, P) + + +def is_square(x): + x %= P + return x == 0 or legendre(x) == 1 + + +def sqrt_mod_p(x): + """Generic Tonelli-Shanks. Returns some root r with r^2 = x, or raises.""" + x %= P + if x == 0: + return 0 + if legendre(x) != 1: + raise ValueError("not a square") + q, s = P - 1, 0 + while q % 2 == 0: + q //= 2 + s += 1 + z = 2 + while legendre(z) != P - 1: + z += 1 + m = s + c = pow(z, q, P) + t = pow(x, q, P) + r = pow(x, (q + 1) // 2, P) + while t != 1: + i = 1 + t2 = t * t % P + while t2 != 1: + t2 = t2 * t2 % P + i += 1 + b = pow(c, 1 << (m - i - 1), P) + m = i + c = b * b % P + t = t * c % P + r = r * b % P + if r * r % P != x: + raise AssertionError("Tonelli-Shanks produced a wrong root") + return r + + +def is_probable_prime(n): + """Miller-Rabin with the first 20 primes as bases.""" + if n < 2: + return False + bases = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71] + for q in bases: + if n % q == 0: + return n == q + d, s = n - 1, 0 + while d % 2 == 0: + d //= 2 + s += 1 + for a in bases: + x = pow(a, d, n) + if x in (1, n - 1): + continue + for _ in range(s - 1): + x = x * x % n + if x == n - 1: + break + else: + return False + return True + + +# d = -10240 / 10241 mod p, derived here and compared with the pinned value later. +D = (-10240 * inv(10241)) % P +A_COEF = P - 1 # a = -1 + + +# ============================================================================================= +# Jubjub, affine twisted Edwards: -u^2 + v^2 = 1 + d u^2 v^2 +# ============================================================================================= + +IDENTITY = (0, 1) + + +def on_curve(pt): + u, v = pt + if not (0 <= u < P and 0 <= v < P): + return False + uu = u * u % P + vv = v * v % P + return (A_COEF * uu + vv - 1 - D * uu % P * vv) % P == 0 + + +def add(p1, p2): + """Unified affine addition for a = -1: + u3 = (u1 v2 + v1 u2) / (1 + d u1 u2 v1 v2) + v3 = (v1 v2 + u1 u2) / (1 - d u1 u2 v1 v2) + Complete on Jubjub (d non-square, a square); both denominators are inverted together.""" + u1, v1 = p1 + u2, v2 = p2 + t = D * u1 % P * u2 % P * v1 % P * v2 % P + num_u = (u1 * v2 + v1 * u2) % P + num_v = (v1 * v2 + u1 * u2) % P + den_u = (1 + t) % P + den_v = (1 - t) % P + z = inv(den_u * den_v) + return (num_u * den_v % P * z % P, num_v * den_u % P * z % P) + + +def neg(pt): + return ((-pt[0]) % P, pt[1]) + + +def sub(p1, p2): + return add(p1, neg(p2)) + + +def mul(k, pt): + """Right-to-left double-and-add on the integer k itself (never reduced).""" + if k < 0: + return mul(-k, neg(pt)) + result = IDENTITY + addend = pt + while k: + if k & 1: + result = add(result, addend) + addend = add(addend, addend) + k >>= 1 + return result + + +def in_subgroup(pt): + return on_curve(pt) and mul(L, pt) == IDENTITY + + +def point_sum(points): + acc = IDENTITY + for q in points: + acc = add(acc, q) + return acc + + +# ============================================================================================= +# Encoding (pedersen-jubjub-v1 §4, adopted by elgamal-jubjub-v1 §7.1) +# ============================================================================================= + +def encode(pt): + u, v = pt + b = bytearray(v.to_bytes(32, "little")) + if u & 1: + b[31] |= 0x80 + return bytes(b) + + +def raw_v_bytes(v, sign): + """32 bytes holding the integer v little-endian (v < 2^255) and the given sign bit.""" + b = bytearray(v.to_bytes(32, "little")) + if b[31] & 0x80: + raise ValueError("v does not fit below the sign bit") + if sign: + b[31] |= 0x80 + return bytes(b) + + +def decode_point(data): + """Returns (status, point). status 'ok' or one of the reject_* outcomes of pedersen §4.""" + if len(data) != 32: + return "reject_length", None + sign = data[31] >> 7 + b = bytearray(data) + b[31] &= 0x7F + v = int.from_bytes(bytes(b), "little") + if v >= P: + return "reject_noncanonical_v", None + vv = v * v % P + den = (D * vv + 1) % P + if den == 0: + return "reject_den_zero", None # unreachable on Jubjub + w = (vv - 1) * inv(den) % P + if not is_square(w): + return "reject_non_square", None + u = sqrt_mod_p(w) + if u == 0 and sign == 1: + return "reject_u_zero_sign_set", None + if (u & 1) != sign: + u = (P - u) % P + pt = (u, v) + if not on_curve(pt): + raise AssertionError("decoded point is off the curve") + return "ok", pt + + +def decode_ciphertext(data): + """§7.2: exactly 64 bytes; each half decodes and lies in the subgroup; identity allowed. + Halves are examined in order A then B (precedence is not specified by the spec).""" + if len(data) != 64: + return "reject_length", None + halves = [] + for chunk in (data[:32], data[32:]): + status, pt = decode_point(chunk) + if status != "ok": + return status, None + if not in_subgroup(pt): + return "reject_not_in_subgroup", None + halves.append(pt) + return "accept", (halves[0], halves[1]) + + +def decode_public_key(data): + """§7.3: §7.1 decoding, subgroup membership, not the identity.""" + status, pt = decode_point(data) + if status != "ok": + return status, None + if not in_subgroup(pt): + return "reject_not_in_subgroup", None + if pt == IDENTITY: + return "reject_identity_key", None + return "accept", pt + + +def validate_affine(u, v, is_key): + """§7.4 rules 1-4, in order.""" + if not (0 <= u < P and 0 <= v < P): + return "reject_noncanonical" + if not on_curve((u, v)): + return "reject_off_curve" + if not in_subgroup((u, v)): + return "reject_not_in_subgroup" + if is_key and (u, v) == IDENTITY: + return "reject_identity_key" + return "accept" + + +# ============================================================================================= +# Profile objects: key context (§3.2), ciphertexts (§4, §5), decryption (§6) +# ============================================================================================= + +class Refused(Exception): + pass + + +class DecryptionFailed(Exception): + pass + + +class Context: + """Joint-key context over possession-verified shares (§3.2). The shares passed here are + computed locally from secrets held by this script, which is possession (§3.3).""" + + def __init__(self, shares): + if not shares: + raise Refused("empty share list") + for s in shares: + if s == IDENTITY or not in_subgroup(s): + raise Refused("share is the identity or not in the subgroup") + encs = [encode(s) for s in shares] + if len(set(encs)) != len(encs): + raise Refused("duplicate share") + pk = point_sum(shares) + if pk == IDENTITY: + raise Refused("joint key is the identity") + self.pk = pk + self.shares = list(shares) + self.sorted_encodings = sorted(encs) # bytes compare as unsigned lexicographic + + def __eq__(self, other): + return (isinstance(other, Context) and self.pk == other.pk + and self.sorted_encodings == other.sorted_encodings) + + def __hash__(self): + return hash((self.pk, tuple(self.sorted_encodings))) + + +class Ciphertext: + def __init__(self, a, b, ctx, bound): + self.A = a + self.B = b + self.ctx = ctx + self.bound = bound + + def encoding(self): + return encode(self.A) + encode(self.B) + + +def encrypt(ctx, m, w, k): + """§4 with explicit randomness k (test vectors only; real k comes from §2).""" + if not (1 <= w <= 64): + raise Refused("width out of range") + if not (0 <= m < (1 << w)): + raise Refused("message out of range for width") + if not (0 <= k < L): + raise Refused("k out of range") + a = mul(k, G) + b = add(mul(m, G), mul(k, ctx.pk)) + return Ciphertext(a, b, ctx, (1 << w) - 1) + + +def ct_add(c1, c2): + """§5 add: same context only; result bound b1 + b2 must stay below l.""" + if c1.ctx != c2.ctx: + raise Refused("different key contexts") + bound = c1.bound + c2.bound + if bound >= L: + raise Refused("result bound >= l") + return Ciphertext(add(c1.A, c2.A), add(c1.B, c2.B), c1.ctx, bound) + + +def ct_scale(c, ct): + """§5 scale: 1 <= c < l; result bound c*b must stay below l.""" + if not (1 <= c < L): + raise Refused("scale factor out of range") + bound = c * ct.bound + if bound >= L: + raise Refused("result bound >= l") + return Ciphertext(mul(c, ct.A), mul(c, ct.B), ct.ctx, bound) + + +def recover(m_point, bound, max_plaintext): + """§6.3 by linear search: the unique t in [0, bound] with [t]G = M, or failure.""" + if bound > max_plaintext: + raise Refused("bound exceeds maxPlaintext") + if max_plaintext > SEARCH_LIMIT: + raise Refused("beyond this reference's search limit") + cur = IDENTITY + for t in range(bound + 1): + if cur == m_point: + return t + cur = add(cur, G) + raise DecryptionFailed("no t in [0, bound]") + + +def decrypt_single(ct, sk, max_plaintext): + """§6.1: the secret's public key must equal the ciphertext's joint key.""" + if mul(sk, G) != ct.ctx.pk: + raise Refused("secret does not match the joint key") + return recover(sub(ct.B, mul(sk, ct.A)), ct.bound, max_plaintext) + + +def decrypt_nofn(ct, verified_shares, max_plaintext): + """§6.2: verified_shares maps encode(PK_j) -> D_j; exactly one per registered trustee.""" + if sorted(verified_shares.keys()) != ct.ctx.sorted_encodings: + raise Refused("share set differs from the registered set") + m_point = sub(ct.B, point_sum(verified_shares[e] for e in ct.ctx.sorted_encodings)) + return recover(m_point, ct.bound, max_plaintext) + + +def dleq_holds(x_scalar, base_x, p_point, d_point): + """The R_dleq relation (§9.2) checked directly with the witness: P = [x]G, D = [x]X.""" + return mul(x_scalar, G) == p_point and mul(x_scalar, base_x) == d_point + + +def test_scalar(tag): + """§12: OS2IP(SHA-256(UTF-8("zeroj.elgamal.v1.test." + tag))) mod l.""" + digest = hashlib.sha256(("zeroj.elgamal.v1.test." + tag).encode("utf-8")).digest() + return int.from_bytes(digest, "big") % L + + +# ============================================================================================= +# Output helpers +# ============================================================================================= + +OUT = [] +FAILURES = [] + + +def emit(key, value): + OUT.append("%s=%s" % (key, value)) + + +def tf(b): + return "true" if b else "false" + + +def fe(x): + """Field element / coordinate: 0x + 64 lowercase hex digits (sign prefix if negative).""" + return ("-" if x < 0 else "") + "0x%064x" % abs(x) + + +def check(name, cond): + cond = bool(cond) + emit("check." + name, tf(cond)) + if not cond: + FAILURES.append("check." + name) + return cond + + +def spec_match(name, cond): + cond = bool(cond) + emit("spec_match." + name, tf(cond)) + if not cond: + FAILURES.append("spec_match." + name) + return cond + + +def emit_point(prefix, pt, with_encoding=True): + emit(prefix + ".u", fe(pt[0])) + emit(prefix + ".v", fe(pt[1])) + if with_encoding: + emit(prefix + ".encoding", encode(pt).hex()) + + +def emit_ct(prefix, a, b): + emit_point(prefix + ".A", a, False) + emit_point(prefix + ".B", b, False) + emit(prefix + ".encoding", (encode(a) + encode(b)).hex()) + + +def pub_inputs(*points): + vals = [] + for pt in points: + vals.extend([pt[0], pt[1]]) + return ",".join(fe(x) for x in vals) + + +ROUNDTRIP_OK = [] + + +def roundtrip_point(pt): + status, q = decode_point(encode(pt)) + ok = status == "ok" and q == pt + ROUNDTRIP_OK.append(ok) + return ok + + +def roundtrip_ct(a, b): + status, q = decode_ciphertext(encode(a) + encode(b)) + ok = status == "accept" and q == (a, b) + ROUNDTRIP_OK.append(ok) + return ok + + +def refuses(fn, *args): + try: + fn(*args) + except Refused: + return True + return False + + +# ============================================================================================= +# Main +# ============================================================================================= + +G = None # set in main() after derivation + + +def main(argv): + global G + proto_text = PROTOTYPE_OUTPUT + proto_source = "embedded" + if len(argv) >= 3 and argv[1] == "--prototype": + with open(argv[2], "r", encoding="utf-8") as fh: + proto_text = fh.read() + proto_source = "file" + + OUT.append("# Independent reference output for profile %s" % PROFILE) + OUT.append("# Command: python3 elgamal_jubjub_v1_reference.py") + OUT.append("# Python: %s" % platform.python_version()) + OUT.append("# Independence: written from docs/specs/elgamal-jubjub-v1.md and " + "docs/specs/pedersen-jubjub-v1.md only; no Java source or other script was read.") + OUT.append("# Formats: field elements 0x+64 hex; .m/.w/.bound/.dec/tally decimal; " + "byte strings bare hex.") + emit("profile", PROFILE) + + # ---------------------------------------------------------------- §1 curve and constants + emit("curve.p", fe(P)) + emit("curve.l", fe(L)) + emit("curve.d", fe(D)) + emit("curve.cofactor", COFACTOR) + check("p_probable_prime", is_probable_prime(P)) + check("l_probable_prime", is_probable_prime(L)) + z = BLS12_381_Z + check("p_is_bls12_381_scalar_order", P == z ** 4 - z ** 2 + 1) + check("p_1_mod_4_minus_one_is_square", P % 4 == 1 and is_square(P - 1)) + check("d_is_nonsquare", not is_square(D)) + check("d_times_10241_is_minus_10240", D * 10241 % P == (-10240) % P) + check("decode_rule3_unreachable", not is_square((-inv(D)) % P)) + check("l_between_2pow251_and_2pow252", (1 << 251) < L < (1 << 252)) + check("max_w64_message_below_l", (1 << 64) - 1 < L) + check("sampler_bias_below_2pow_minus259", L * (1 << 259) < (1 << 512)) + spec_match("d", D == PIN_D) + + # ---------------------------------------------------------------- generator + check("g_full_on_curve", on_curve(G_FULL)) + G = mul(COFACTOR, G_FULL) + emit_point("G_full", G_FULL, False) + emit_point("G", G) + check("g_full_order_is_8l", mul(8 * L, G_FULL) == IDENTITY + and mul(4 * L, G_FULL) != IDENTITY and mul(8, G_FULL) != IDENTITY) + # #E lies in the Hasse interval |#E - (p + 1)| <= 2 sqrt(p), which has width < 8l, and is + # a multiple of the order 8l of G_full, so #E = 8l iff 8l itself is in the interval. + hasse_t = P + 1 - 8 * L + check("curve_order_is_8l_by_hasse", hasse_t * hasse_t <= 4 * P + and 4 * math.isqrt(P) + 4 < 8 * L) + check("g_on_curve", on_curve(G)) + check("g_not_identity", G != IDENTITY) + check("g_in_subgroup", in_subgroup(G)) + spec_match("G", G == (PIN_G_U, PIN_G_V)) + spec_match("G_encoding", encode(G).hex() == PIN_G_ENC) + check("roundtrip.G", roundtrip_point(G)) + + # Small-order torsion points derived from G_full. + t8 = mul(L, G_FULL) + t4 = add(t8, t8) + t2 = add(t4, t4) + check("torsion_t8_order_8", mul(8, t8) == IDENTITY and mul(4, t8) != IDENTITY) + check("torsion_t4_has_v_zero", t4[1] == 0 and t4[0] * t4[0] % P == P - 1) + check("torsion_t2_is_0_minus1", t2 == (0, P - 1)) + + # Arithmetic sanity. + check("arith_l_plus_1_times_G_is_G", mul(L + 1, G) == G) + check("arith_linearity", add(mul(123456789, G), mul(987654321, G)) == mul(1111111110, G)) + check("arith_neg", add(G, neg(G)) == IDENTITY) + + # ---------------------------------------------------------------- §12 test scalars + tags = ["sk", "k0", "k1", "k16", "k64", "share1", "share2", "share3", + "ballot1", "ballot2", "ballot3", "ballot4", "ballot5", "wrap1", "wrap2"] + sc = {} + for tag in tags: + sc[tag] = test_scalar(tag) + emit("scalar." + tag, fe(sc[tag])) + check("secret_scalars_nonzero", all(sc[t] != 0 for t in ("sk", "share1", "share2", "share3"))) + + # ---------------------------------------------------------------- single key + sk = sc["sk"] + pk = mul(sk, G) + single = Context([pk]) + emit_point("single.pk", pk) + check("roundtrip.single.pk", roundtrip_point(pk)) + status, dpk = decode_public_key(encode(pk)) + check("single.pk_decodes_as_key", status == "accept" and dpk == pk) + + cases = [("m0w1", 0, 1, "k0"), ("m1w1", 1, 1, "k1"), + ("m12345w16", 12345, 16, "k16"), ("mmaxw64", (1 << 64) - 1, 64, "k64")] + cts = {} + for name, m, w, ktag in cases: + k = sc[ktag] + ct = encrypt(single, m, w, k) + cts[name] = ct + pre = "single.enc." + name + emit(pre + ".m", m) + emit(pre + ".w", w) + emit(pre + ".k", fe(k)) + emit_ct(pre, ct.A, ct.B) + emit(pre + ".bound", ct.bound) + m_point = sub(ct.B, mul(sk, ct.A)) + emit(pre + ".dec_point_ok", tf(m_point == mul(m, G))) + if m_point != mul(m, G): + FAILURES.append(pre + ".dec_point_ok") + if ct.bound <= SEARCH_LIMIT: + dec = decrypt_single(ct, sk, ct.bound) + emit(pre + ".dec", dec) + check(name + "_decrypts", dec == m) + check("roundtrip." + pre, roundtrip_ct(ct.A, ct.B)) + check(name + "_A_is_kG", ct.A == mul(k, G)) + + # Homomorphism. + c01 = ct_add(cts["m0w1"], cts["m1w1"]) + emit_ct("single.add01", c01.A, c01.B) + emit("single.add01.bound", c01.bound) + d01 = decrypt_single(c01, sk, c01.bound) + emit("single.add01.dec", d01) + k01 = (sc["k0"] + sc["k1"]) % L + check("homomorphism_add", c01.A == mul(k01, G) and c01.B == add(mul(1, G), mul(k01, pk)) + and d01 == 1 and c01.bound == 2) + check("roundtrip.single.add01", roundtrip_ct(c01.A, c01.B)) + + c3 = ct_scale(3, cts["m12345w16"]) + emit_ct("single.scale3_12345", c3.A, c3.B) + emit("single.scale3_12345.bound", c3.bound) + d3 = decrypt_single(c3, sk, c3.bound) + emit("single.scale3_12345.dec", d3) + k3 = 3 * sc["k16"] % L + check("homomorphism_scale", c3.A == mul(k3, G) and c3.B == add(mul(37035, G), mul(k3, pk)) + and d3 == 37035 and c3.bound == 3 * ((1 << 16) - 1)) + check("roundtrip.single.scale3_12345", roundtrip_ct(c3.A, c3.B)) + check("decrypt_refuses_bound_above_max", refuses(decrypt_single, c3, sk, c3.bound - 1)) + check("encrypt_refuses_m_out_of_width", refuses(encrypt, single, 2, 1, sc["k1"])) + check("encrypt_refuses_w65", refuses(encrypt, single, 0, 65, sc["k1"])) + check("encrypt_refuses_w0", refuses(encrypt, single, 0, 0, sc["k1"])) + + # ---------------------------------------------------------------- n-of-n + share_sk = {j: sc["share%d" % j] for j in (1, 2, 3)} + share_pk = {j: mul(share_sk[j], G) for j in (1, 2, 3)} + for j in (1, 2, 3): + emit("nofn.share%d.sk" % j, fe(share_sk[j])) + emit_point("nofn.share%d.pk" % j, share_pk[j]) + check("roundtrip.nofn.share%d.pk" % j, roundtrip_point(share_pk[j])) + ctx = Context([share_pk[1], share_pk[2], share_pk[3]]) + emit_point("nofn.pk", ctx.pk) + check("roundtrip.nofn.pk", roundtrip_point(ctx.pk)) + check("nofn_pk_is_sum_of_secret_shares", ctx.pk == mul(sum(share_sk.values()) % L, G)) + + order = sorted((1, 2, 3), key=lambda j: encode(share_pk[j])) + emit("nofn.registered_order", ",".join(str(j) for j in order)) + emit("nofn.registered_encodings", ",".join(encode(share_pk[j]).hex() for j in order)) + + # Independent comparator: explicit byte loop, unsigned. + def lex_less(x, y): + for bx, by in zip(x, y): + if bx != by: + return bx < by + return len(x) < len(y) + ordered_ok = all(lex_less(encode(share_pk[order[i]]), encode(share_pk[order[i + 1]])) + for i in range(len(order) - 1)) + check("registered_order_unsigned_lexicographic", ordered_ok + and [encode(share_pk[j]) for j in order] == ctx.sorted_encodings) + numeric_v_order = sorted((1, 2, 3), key=lambda j: share_pk[j][1]) + signed_order = sorted((1, 2, 3), key=lambda j: [b - 256 if b >= 128 else b + for b in encode(share_pk[j])]) + emit("info.registered_order_if_sorted_by_numeric_v", + ",".join(str(j) for j in numeric_v_order)) + emit("info.registered_order_if_sorted_by_signed_bytes", + ",".join(str(j) for j in signed_order)) + le_int_order = sorted((1, 2, 3), key=lambda j: int.from_bytes(encode(share_pk[j]), "little")) + emit("info.registered_order_if_sorted_by_le_integer_of_encoding", + ",".join(str(j) for j in le_int_order)) + permuted = Context([share_pk[3], share_pk[1], share_pk[2]]) + check("context_equal_under_share_permutation", permuted == ctx) + + # Supplementary sort vector (not in spec §12): keys [i]G for the first triple of small + # multiples whose unsigned-lexicographic order differs from every plausible wrong order. + # The §12 shares do not separate unsigned-lexicographic from "little-endian integer of the + # 32 encoding bytes" (the sign bit at 2^255 dominates both ways for them). + wrong_orders = { + "numeric_v": lambda q: q[1], + "numeric_u": lambda q: q[0], + "signed_bytes": lambda q: [b - 256 if b >= 128 else b for b in encode(q)], + "le_integer_of_encoding": lambda q: int.from_bytes(encode(q), "little"), + } + sort_triple = None + for i1 in range(1, 16): + for i2 in range(i1 + 1, 16): + for i3 in range(i2 + 1, 16): + pts = {i: mul(i, G) for i in (i1, i2, i3)} + good = sorted(pts, key=lambda i: encode(pts[i])) + if all(sorted(pts, key=lambda i, f=f: f(pts[i])) != good + for f in wrong_orders.values()): + sort_triple = (i1, i2, i3) + break + if sort_triple: + break + if sort_triple: + break + sv_pts = {i: mul(i, G) for i in sort_triple} + sv_order = sorted(sort_triple, key=lambda i: encode(sv_pts[i])) + emit("sortvec.multiples", ",".join(str(i) for i in sort_triple)) + emit("sortvec.encodings", ",".join(encode(sv_pts[i]).hex() for i in sort_triple)) + emit("sortvec.registered_order", ",".join(str(i) for i in sv_order)) + for wname, f in wrong_orders.items(): + emit("info.sortvec.order_if_sorted_by_" + wname, + ",".join(str(i) for i in sorted(sort_triple, key=lambda i, f=f: f(sv_pts[i])))) + sv_ctx = Context([sv_pts[i] for i in sort_triple]) + sv_lex_ok = all(lex_less(encode(sv_pts[sv_order[n]]), encode(sv_pts[sv_order[n + 1]])) + for n in range(2)) + check("sortvec_registered_order", sv_lex_ok + and sv_ctx.sorted_encodings == [encode(sv_pts[i]) for i in sv_order]) + + # §3.2 refusal rules. + check("context_refuses_empty", refuses(Context, [])) + check("context_refuses_identity_share", refuses(Context, [share_pk[1], IDENTITY])) + check("context_refuses_non_subgroup_share", refuses(Context, [share_pk[1], add(G, t2)])) + check("context_refuses_duplicate_share", refuses(Context, [share_pk[1], share_pk[1]])) + check("context_refuses_identity_sum", refuses(Context, [share_pk[1], neg(share_pk[1])])) + + messages = [1, 0, 1, 1, 0] + ballots = [] + for i, m in enumerate(messages, start=1): + k = sc["ballot%d" % i] + ct = encrypt(ctx, m, 1, k) + ballots.append(ct) + pre = "nofn.ballot%d" % i + emit(pre + ".m", m) + emit(pre + ".w", 1) + emit(pre + ".k", fe(k)) + emit_ct(pre, ct.A, ct.B) + check("roundtrip." + pre, roundtrip_ct(ct.A, ct.B)) + + total = ballots[0] + for ct in ballots[1:]: + total = ct_add(total, ct) + emit_ct("nofn.sum", total.A, total.B) + emit("nofn.sum.bound", total.bound) + check("roundtrip.nofn.sum", roundtrip_ct(total.A, total.B)) + ksum = sum(sc["ballot%d" % i] for i in range(1, 6)) % L + check("nofn_sum_homomorphic", total.A == mul(ksum, G) + and total.B == add(mul(3, G), mul(ksum, ctx.pk)) and total.bound == 5) + + dshares = {} + for j in (1, 2, 3): + dj = mul(share_sk[j], total.A) + dshares[j] = dj + emit_point("nofn.D%d" % j, dj) + check("roundtrip.nofn.D%d" % j, roundtrip_point(dj)) + check("nofn_D%d_dleq_relation" % j, dleq_holds(share_sk[j], total.A, share_pk[j], dj)) + check("nofn_pop%d_dleq_relation" % j, + dleq_holds(share_sk[j], G, share_pk[j], share_pk[j])) + m_point = sub(total.B, point_sum(dshares[j] for j in (1, 2, 3))) + emit_point("nofn.M", m_point, False) + verified = {encode(share_pk[j]): dshares[j] for j in (1, 2, 3)} + tally = decrypt_nofn(total, verified, total.bound) + emit("nofn.tally", tally) + check("nofn_tally_is_3", tally == 3 and m_point == mul(3, G)) + check("nofn_joint_secret_decrypts_same", + decrypt_single(total, sum(share_sk.values()) % L, total.bound) == 3) + missing = {encode(share_pk[j]): dshares[j] for j in (1, 2)} + check("nofn_refuses_missing_share", refuses(decrypt_nofn, total, missing, 5)) + foreign = dict(missing) + foreign[encode(mul(7, G))] = mul(7, total.A) + check("nofn_refuses_foreign_share", refuses(decrypt_nofn, total, foreign, 5)) + + for j in (1, 2, 3): + emit("nofn.dleq%d.publicInputs" % j, pub_inputs(total.A, share_pk[j], dshares[j])) + for j in (1, 2, 3): + emit("nofn.pop%d.publicInputs" % j, pub_inputs(G, share_pk[j], share_pk[j])) + emit("nofn.encstmt.ballot1.w", 1) + emit("nofn.encstmt.ballot1.publicInputs", pub_inputs(ctx.pk, ballots[0].A, ballots[0].B)) + + # ---------------------------------------------------------------- counterexamples + # §6.1: (G, 4G) under PK = 3G (k = 1, m = 1). + ctx3 = Context([mul(3, G)]) + cw = encrypt(ctx3, 1, 1, 1) + check("cx_wrongsecret_is_G_4G", cw.A == G and cw.B == mul(4, G)) + emit_point("cx.wrongsecret.PK", ctx3.pk, False) + emit_point("cx.wrongsecret.A", cw.A, False) + emit_point("cx.wrongsecret.B", cw.B, False) + emit("cx.wrongsecret.secret_wrong", 4) + m_wrong = sub(cw.B, mul(4, cw.A)) + emit_point("cx.wrongsecret.M_wrong", m_wrong, False) + emit("cx.wrongsecret.M_wrong_is_identity", tf(m_wrong == IDENTITY)) + dec_wrong = recover(m_wrong, cw.bound, cw.bound) + emit("cx.wrongsecret.dec_wrong", dec_wrong) + emit("cx.wrongsecret.secret_right", 3) + m_right = sub(cw.B, mul(3, cw.A)) + emit_point("cx.wrongsecret.M_right", m_right, False) + dec_right = decrypt_single(cw, 3, cw.bound) + emit("cx.wrongsecret.dec_right", dec_right) + emit("cx.wrongsecret.wrong_secret_pk_matches", tf(mul(4, G) == ctx3.pk)) + check("cx_wrongsecret", m_wrong == IDENTITY and dec_wrong == 0 and dec_right == 1 + and m_right == G) + check("cx_wrongsecret_refused_by_key_check", refuses(decrypt_single, cw, 4, 1)) + + # §12: Enc(1; k=1, 3G) + Enc(1; k=1, 2G), decrypted under secret 3. + ctx2 = Context([mul(2, G)]) + cm1 = encrypt(ctx3, 1, 1, 1) + cm2 = encrypt(ctx2, 1, 1, 1) + emit_point("cx.mixed.PK1", ctx3.pk, False) + emit_point("cx.mixed.PK2", ctx2.pk, False) + emit_ct("cx.mixed.c1", cm1.A, cm1.B) + emit_ct("cx.mixed.c2", cm2.A, cm2.B) + mixed_a = add(cm1.A, cm2.A) + mixed_b = add(cm1.B, cm2.B) + emit_ct("cx.mixed.sum", mixed_a, mixed_b) + emit("cx.mixed.secret", 3) + mixed_m = sub(mixed_b, mul(3, mixed_a)) + emit_point("cx.mixed.M", mixed_m, False) + mixed_dec = recover(mixed_m, 2, 2) + emit("cx.mixed.dec", mixed_dec) + emit("cx.mixed.sum_of_messages", 2) + check("cx_mixed", mixed_a == mul(2, G) and mixed_b == mul(7, G) and mixed_dec == 1) + check("cx_mixed_add_refused_by_context", refuses(ct_add, cm1, cm2)) + + # §10.2: keys 3G, 5G; m = 1, k = 7; forged D2 = 36G. + ctxf = Context([mul(3, G), mul(5, G)]) + cf = encrypt(ctxf, 1, 1, 7) + d1 = mul(3, cf.A) + d2 = mul(5, cf.A) + d2_forged = mul(36, G) + emit_point("cx.forged.PK1", mul(3, G), False) + emit_point("cx.forged.PK2", mul(5, G), False) + emit_point("cx.forged.PK", ctxf.pk, False) + emit("cx.forged.m", 1) + emit("cx.forged.k", 7) + emit_point("cx.forged.A", cf.A, False) + emit_point("cx.forged.B", cf.B, False) + emit_point("cx.forged.D1", d1, False) + emit_point("cx.forged.D2", d2, False) + emit_point("cx.forged.D2_forged", d2_forged, False) + m_honest = sub(sub(cf.B, d1), d2) + m_forged = sub(sub(cf.B, d1), d2_forged) + emit_point("cx.forged.M_honest", m_honest, False) + emit_point("cx.forged.M_forged", m_forged, False) + r_honest = decrypt_nofn(cf, {encode(mul(3, G)): d1, encode(mul(5, G)): d2}, 1) + r_forged = recover(m_forged, 1, 1) + emit("cx.forged.result_honest", r_honest) + emit("cx.forged.result_forged", r_forged) + forged_ok = dleq_holds(5, cf.A, mul(5, G), d2_forged) + emit("cx.forged.D2_forged_satisfies_dleq", tf(forged_ok)) + check("cx_forged", cf.A == mul(7, G) and cf.B == mul(57, G) and d1 == mul(21, G) + and d2 == mul(35, G) and r_honest == 1 and r_forged == 0 and not forged_ok) + + # §5 wraparound: raw Enc(l - 1) + Enc(1) under single.pk decrypts to 0. + kw1, kw2 = sc["wrap1"], sc["wrap2"] + wa1, wb1 = mul(kw1, G), add(mul(L - 1, G), mul(kw1, pk)) # raw formula, outside §4 + wa2, wb2 = mul(kw2, G), add(mul(1, G), mul(kw2, pk)) + emit("cx.wrap.m1", fe(L - 1)) + emit("cx.wrap.k1", fe(kw1)) + emit_ct("cx.wrap.c1", wa1, wb1) + emit("cx.wrap.m2", 1) + emit("cx.wrap.k2", fe(kw2)) + emit_ct("cx.wrap.c2", wa2, wb2) + ws_a, ws_b = add(wa1, wa2), add(wb1, wb2) + emit_ct("cx.wrap.sum", ws_a, ws_b) + wm = sub(ws_b, mul(sk, ws_a)) + emit_point("cx.wrap.M", wm, False) + emit("cx.wrap.M_is_identity", tf(wm == IDENTITY)) + wdec = recover(wm, 1, 1) + emit("cx.wrap.dec", wdec) + fits = (L - 1) < (1 << 64) + emit("cx.wrap.lminus1_fits_w64", tf(fits)) + emit("cx.wrap.encrypt_lminus1_refused", tf(refuses(encrypt, single, L - 1, 64, kw1))) + raw1 = Ciphertext(wa1, wb1, single, L - 1) # a bound the profile can never attach + raw2 = Ciphertext(wa2, wb2, single, 1) + emit("cx.wrap.add_refused_by_bound_rule", tf(refuses(ct_add, raw1, raw2))) + check("cx_wrap", wm == IDENTITY and wdec == 0 and not fits + and refuses(encrypt, single, L - 1, 64, kw1) and refuses(ct_add, raw1, raw2)) + + # ---------------------------------------------------------------- §5 bound rule (w = 64) + b64 = (1 << 64) - 1 + max_c = (L - 1) // b64 + emit("bound.w64.b", b64) + emit("bound.w64.max_scale_accepted", max_c) + emit("bound.w64.min_scale_refused", max_c + 1) + accepted = not refuses(ct_scale, max_c, cts["mmaxw64"]) + refused = refuses(ct_scale, max_c + 1, cts["mmaxw64"]) + check("bound_rule_scale_w64", accepted and refused and max_c * b64 < L <= (max_c + 1) * b64) + + # ---------------------------------------------------------------- §7 decoding negatives + # A non-canonical alias of a subgroup point: the smallest i >= 1 with v([i]G) + p < 2^255, + # so that a decoder that reduced v mod p would accept a valid point. + i_alias = 1 + while True: + q = mul(i_alias, G) + if q[1] + P < (1 << 255): + break + i_alias += 1 + alias_pt = mul(i_alias, G) + alias_bytes = raw_v_bytes(alias_pt[1] + P, alias_pt[0] & 1) + emit("info.noncanonical_alias.multiple_of_G", i_alias) + # Smallest v >= 2 whose (v^2 - 1)/(d v^2 + 1) is a non-square. + v_ns = 2 + while is_square((v_ns * v_ns - 1) * inv(D * v_ns * v_ns + 1)): + v_ns += 1 + emit("info.smallest_nonsquare_v", v_ns) + + valid = cts["m1w1"] + va, vb = encode(valid.A), encode(valid.B) + vct = va + vb + g_plus_t2 = add(G, t2) + g_plus_t8 = add(G, t8) + dneg = [ + ("ct_len63", "ciphertext", vct[:63], "reject_length"), + ("ct_len65", "ciphertext", vct + b"\x00", "reject_length"), + ("ct_A_noncanonical_v", "ciphertext", alias_bytes + vb, "reject_noncanonical_v"), + ("ct_B_noncanonical_v_identity_alias", "ciphertext", va + raw_v_bytes(P + 1, 0), + "reject_noncanonical_v"), + ("ct_B_non_square", "ciphertext", va + raw_v_bytes(v_ns, 0), "reject_non_square"), + ("ct_A_u_zero_sign_set", "ciphertext", raw_v_bytes(1, 1) + vb, "reject_u_zero_sign_set"), + ("ct_A_order2", "ciphertext", encode(t2) + vb, "reject_not_in_subgroup"), + ("ct_B_order4", "ciphertext", va + encode(t4), "reject_not_in_subgroup"), + ("ct_B_order8", "ciphertext", va + encode(t8), "reject_not_in_subgroup"), + ("ct_A_G_plus_order2", "ciphertext", encode(g_plus_t2) + vb, "reject_not_in_subgroup"), + ("ct_identity_both", "ciphertext", encode(IDENTITY) + encode(IDENTITY), "accept"), + ("ct_valid_m1w1", "ciphertext", vct, "accept"), + ("pk_len31", "publickey", encode(G)[:31], "reject_length"), + ("pk_len33", "publickey", encode(G) + b"\x00", "reject_length"), + ("pk_noncanonical_v", "publickey", alias_bytes, "reject_noncanonical_v"), + ("pk_non_square", "publickey", raw_v_bytes(v_ns, 0), "reject_non_square"), + ("pk_identity_sign_set", "publickey", raw_v_bytes(1, 1), "reject_u_zero_sign_set"), + ("pk_identity", "publickey", encode(IDENTITY), "reject_identity_key"), + ("pk_order2", "publickey", encode(t2), "reject_not_in_subgroup"), + ("pk_order4", "publickey", encode(t4), "reject_not_in_subgroup"), + ("pk_G_plus_order8", "publickey", encode(g_plus_t8), "reject_not_in_subgroup"), + ("pk_G", "publickey", encode(G), "accept"), + ("pk_single", "publickey", encode(pk), "accept"), + ] + all_match = True + for name, kind, data, expected in dneg: + if kind == "ciphertext": + observed, _ = decode_ciphertext(data) + else: + observed, _ = decode_public_key(data) + pre = "decode_neg." + name + emit(pre + ".input", data.hex()) + emit(pre + ".kind", kind) + emit(pre + ".expected", expected) + emit(pre + ".observed", observed) + if observed != expected: + all_match = False + FAILURES.append(pre) + check("decode_neg_all_match", all_match) + # The alias really is an alias, and the order-2 encoding carries no sign bit. + check("noncanonical_alias_reduces_to_subgroup_point", + int.from_bytes(bytes(alias_bytes[:31]) + bytes([alias_bytes[31] & 0x7F]), + "little") % P == alias_pt[1] and in_subgroup(alias_pt)) + check("g_plus_order2_in_full_group_only", on_curve(g_plus_t2) and not in_subgroup(g_plus_t2) + and mul(2 * L, g_plus_t2) == IDENTITY) + + # ---------------------------------------------------------------- §7.4 affine negatives + aneg = [ + ("u_plus_p", G[0] + P, G[1], "point", "reject_noncanonical"), + ("v_plus_p", G[0], G[1] + P, "point", "reject_noncanonical"), + ("u_negative_alias", G[0] - P, G[1], "point", "reject_noncanonical"), + ("off_curve_1_1", 1, 1, "point", "reject_off_curve"), + ("order2", 0, P - 1, "point", "reject_not_in_subgroup"), + ("order4", t4[0], t4[1], "point", "reject_not_in_subgroup"), + ("G_plus_order8", g_plus_t8[0], g_plus_t8[1], "point", "reject_not_in_subgroup"), + ("identity_point", 0, 1, "point", "accept"), + ("identity_key", 0, 1, "publickey", "reject_identity_key"), + ("G_point", G[0], G[1], "point", "accept"), + ("G_key", G[0], G[1], "publickey", "accept"), + ] + all_match = True + for name, u, v, kind, expected in aneg: + observed = validate_affine(u, v, kind == "publickey") + pre = "affine_neg." + name + emit(pre + ".u", fe(u)) + emit(pre + ".v", fe(v)) + emit(pre + ".kind", kind) + emit(pre + ".expected", expected) + emit(pre + ".observed", observed) + if observed != expected: + all_match = False + FAILURES.append(pre) + check("affine_neg_all_match", all_match) + check("affine_aliases_reduce_to_G", ((G[0] + P) % P, (G[1] + P) % P) == G + and (G[0] - P) % P == G[0]) + + # ---------------------------------------------------------------- prototype cross-check + emit("info.prototype_source", proto_source) + scal, votes, points, tallies, order_names = {}, {}, {}, {}, [] + parse_ok = True + for line in proto_text.splitlines(): + parts = line.split() + if not parts: + continue + if parts[0] == "scalar" and len(parts) == 3: + scal[parts[1]] = int(parts[2], 16) + elif parts[0] == "vote" and len(parts) == 3: + votes[parts[1]] = int(parts[2]) + elif parts[0] == "tally" and len(parts) == 3: + tallies[parts[1]] = int(parts[2]) + elif len(parts) == 3: + points[parts[0]] = (int(parts[1], 16), int(parts[2], 16)) + order_names.append(parts[0]) + else: + parse_ok = False + check("prototype_parsed", parse_ok and points and tallies) + + trustees = sorted(int(n[2:]) for n in scal if n.startswith("sk")) + voters = sorted(int(n[1:]) for n in votes if n.startswith("v")) + rec = {"G": G} + p_shares = [mul(scal["sk%d" % j], G) for j in trustees] + for j, s in zip(trustees, p_shares): + rec["PK%d" % j] = s + p_ctx = Context(p_shares) + rec["PK"] = p_ctx.pk + p_cts = [] + for i in voters: + ct = encrypt(p_ctx, votes["v%d" % i], 1, scal["k%d" % i]) + rec["A%d" % i] = ct.A + rec["B%d" % i] = ct.B + p_cts.append(ct) + p_sum = p_cts[0] + for ct in p_cts[1:]: + p_sum = ct_add(p_sum, ct) + rec["sumA"] = p_sum.A + rec["sumB"] = p_sum.B + p_d = {} + for j in trustees: + p_d[j] = mul(scal["sk%d" % j], p_sum.A) + rec["D%d" % j] = p_d[j] + rec["M"] = sub(p_sum.B, point_sum(p_d[j] for j in trustees)) + p_tally = decrypt_nofn(p_sum, {encode(rec["PK%d" % j]): p_d[j] for j in trustees}, + p_sum.bound) + for name in order_names: + check("prototype." + name, rec.get(name) == points[name]) + check("prototype.tally", tallies.get("T") == p_tally == sum(votes.values())) + check("prototype.all_points_listed_were_recomputed", set(order_names) <= set(rec)) + spec_tags = set(sc.values()) + emit("info.prototype_scalars_equal_spec12_scalars", + tf(any(v in spec_tags for v in scal.values()))) + + # ---------------------------------------------------------------- summary + check("roundtrip_all_positive_encodings", all(ROUNDTRIP_OK)) + result = "pass" if not FAILURES else "fail" + emit("result", result) + return result + + +if __name__ == "__main__": + try: + main(sys.argv) + except Exception as exc: # a crash is a failure; the partial output is still written + FAILURES.append("exception %s: %s" % (type(exc).__name__, exc)) + emit("error", type(exc).__name__) + emit("result", "fail") + text = "\n".join(OUT) + "\n" + with open(OUTPUT_FILE, "w", encoding="utf-8") as fh: + fh.write(text) + sys.stdout.write(text) + if FAILURES: + for f in FAILURES: + sys.stderr.write("FAILED: %s\n" % f) + sys.exit(1) + sys.exit(0) diff --git a/zeroj-circuit-lib/src/test/resources/elgamal-reference/reference-output.txt b/zeroj-circuit-lib/src/test/resources/elgamal-reference/reference-output.txt new file mode 100644 index 00000000..e8c395e1 --- /dev/null +++ b/zeroj-circuit-lib/src/test/resources/elgamal-reference/reference-output.txt @@ -0,0 +1,548 @@ +# Independent reference output for profile elgamal-jubjub-v1 +# Command: python3 elgamal_jubjub_v1_reference.py +# Python: 3.13.5 +# Independence: written from docs/specs/elgamal-jubjub-v1.md and docs/specs/pedersen-jubjub-v1.md only; no Java source or other script was read. +# Formats: field elements 0x+64 hex; .m/.w/.bound/.dec/tally decimal; byte strings bare hex. +profile=elgamal-jubjub-v1 +curve.p=0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001 +curve.l=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7 +curve.d=0x2a9318e74bfa2b48f5fd9207e6bd7fd4292d7f6d37579d2601065fd6d6343eb1 +curve.cofactor=8 +check.p_probable_prime=true +check.l_probable_prime=true +check.p_is_bls12_381_scalar_order=true +check.p_1_mod_4_minus_one_is_square=true +check.d_is_nonsquare=true +check.d_times_10241_is_minus_10240=true +check.decode_rule3_unreachable=true +check.l_between_2pow251_and_2pow252=true +check.max_w64_message_below_l=true +check.sampler_bias_below_2pow_minus259=true +spec_match.d=true +check.g_full_on_curve=true +G_full.u=0x62edcbb8bf3787c88b0f03ddd60a8187caf55d1b29bf81afe4b3d35df1a7adfe +G_full.v=0x000000000000000000000000000000000000000000000000000000000000000b +G.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +G.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +G.encoding=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +check.g_full_order_is_8l=true +check.curve_order_is_8l_by_hasse=true +check.g_on_curve=true +check.g_not_identity=true +check.g_in_subgroup=true +spec_match.G=true +spec_match.G_encoding=true +check.roundtrip.G=true +check.torsion_t8_order_8=true +check.torsion_t4_has_v_zero=true +check.torsion_t2_is_0_minus1=true +check.arith_l_plus_1_times_G_is_G=true +check.arith_linearity=true +check.arith_neg=true +scalar.sk=0x0281799c40fb5bca4f8cc6af4812fae96cdf7113e1ab203ea4d73fb7027e8343 +scalar.k0=0x05f500208fdd684433db003076042f112f58cc5067c135258e1d75019be9b529 +scalar.k1=0x0c47220790cbce371640508b1ee6b95c49c5e797684a818513013b18be7a9752 +scalar.k16=0x0e6e9d50fbbb41bd6191632fcbf588bd6843f389aa856195f9a69d8cff98a304 +scalar.k64=0x0ad3667db6250c83a4680f25f8c5698dfd5a69d4c4f6a0bf57099ba81651ce29 +scalar.share1=0x00cd62f0ad0e5b4871e3462c926fbe888efa449036910fae73e2f36dd6f4a3a2 +scalar.share2=0x0170b4fa2b15e5934be595cc5449254912a71fb7f174d5ef582c649774646538 +scalar.share3=0x09dd04ac37f1453667d80c48d9792794e05514b75aa854f8854201bcc9a444c5 +scalar.ballot1=0x0dd9a9ff645f0af1538b14a7131084831da51dd7599c9ce45a8f7770b7505f78 +scalar.ballot2=0x06a4e1a5d60dee807603463c717dfb2d325ef6853f17b1c01822f787687558b9 +scalar.ballot3=0x05ec025cabe57d3ac62f75873acb8f452e3fe7de7a3dd1b98ab459901ba13f2e +scalar.ballot4=0x045a111e2c2f7edbb563ad6e32002965fc1f78f08db90891ab7c7ffa538020de +scalar.ballot5=0x0667f71fe05d5b0fb5acda67e1c7aa7d8462eafdd47de5897b3844a4d2bf7c72 +scalar.wrap1=0x0dedd7801e128848d5c24813060014f641ea897fa331c35d3c37fadd77f7a66b +scalar.wrap2=0x016a461133b4e82407daad94b08f49ecd6378b23792827cc016e9f9b1cef67a6 +check.secret_scalars_nonzero=true +single.pk.u=0x5cae073f7063c3e221a2f86dbefb5e876876e17a0375917df39def1b2e72b7ae +single.pk.v=0x683e42297b4737eba1d5f5c4ef9a939246bd3833fd10ac61675ac69aa6d5d736 +single.pk.encoding=36d7d5a69ac65a6761ac10fd3338bd4692939aefc4f5d5a1eb37477b29423e68 +check.roundtrip.single.pk=true +check.single.pk_decodes_as_key=true +single.enc.m0w1.m=0 +single.enc.m0w1.w=1 +single.enc.m0w1.k=0x05f500208fdd684433db003076042f112f58cc5067c135258e1d75019be9b529 +single.enc.m0w1.A.u=0x5bbe29ce260d1bdcc060a27156c7253fe502ebe8c2babc3340a23fd1284fd406 +single.enc.m0w1.A.v=0x6b974b6e25997cac2ff2f01c830a0390d8a8c44397248b9e76d60ca2702ba973 +single.enc.m0w1.B.u=0x4b44cc61799f05e228e90f5176c6123caeca97df0795f4ff2d1728a5280288da +single.enc.m0w1.B.v=0x2e3b8598ed829ba1ccc82e4ad8f8ddaaa079db221b4e338572792539298e41ce +single.enc.m0w1.encoding=73a92b70a20cd6769e8b249743c4a8d890030a831cf0f22fac7c99256e4b976bce418e293925797285334e1b22db79a0aaddf8d84a2ec8cca19b82ed98853b2e +single.enc.m0w1.bound=1 +single.enc.m0w1.dec_point_ok=true +single.enc.m0w1.dec=0 +check.m0w1_decrypts=true +check.roundtrip.single.enc.m0w1=true +check.m0w1_A_is_kG=true +single.enc.m1w1.m=1 +single.enc.m1w1.w=1 +single.enc.m1w1.k=0x0c47220790cbce371640508b1ee6b95c49c5e797684a818513013b18be7a9752 +single.enc.m1w1.A.u=0x1479041ac733e366f93bf8fb0005346d07a40e864fe594386e13612d1d58814d +single.enc.m1w1.A.v=0x226e87efefddcbde14e9211fb26650b457b346513ef0682ebc9b703d7a65605c +single.enc.m1w1.B.u=0x23c7342ce96c449df1e41cf72c5368e4340297ad8327c6253463ec12ae905cc8 +single.enc.m1w1.B.v=0x72f7c51d0877069d0668d4953d8888b7482bbdd130819af94577e4bb14a21501 +single.enc.m1w1.encoding=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea20115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772 +single.enc.m1w1.bound=1 +single.enc.m1w1.dec_point_ok=true +single.enc.m1w1.dec=1 +check.m1w1_decrypts=true +check.roundtrip.single.enc.m1w1=true +check.m1w1_A_is_kG=true +single.enc.m12345w16.m=12345 +single.enc.m12345w16.w=16 +single.enc.m12345w16.k=0x0e6e9d50fbbb41bd6191632fcbf588bd6843f389aa856195f9a69d8cff98a304 +single.enc.m12345w16.A.u=0x354733e0ef2ae5afe0e7ef2375ed71974f2cc2de09e277648c10753c39a8ab64 +single.enc.m12345w16.A.v=0x5a8d92537ca2199485c8327db7d9d75ab6d905111fef2b7297f10393708f99b1 +single.enc.m12345w16.B.u=0x3ca4bd0f837e3d9e79a7057cf72c4544e7da43fbef590929415e40456ae637c3 +single.enc.m12345w16.B.v=0x0333e98cbef06abd2964004a53764a7aa146555cd49896f8f2d9ef988dc3f738 +single.enc.m12345w16.encoding=b1998f709303f197722bef1f1105d9b65ad7d9b77d32c8859419a27c53928d5a38f7c38d98efd9f2f89698d45c5546a17a4a76534a006429bd6af0be8ce93383 +single.enc.m12345w16.bound=65535 +single.enc.m12345w16.dec_point_ok=true +single.enc.m12345w16.dec=12345 +check.m12345w16_decrypts=true +check.roundtrip.single.enc.m12345w16=true +check.m12345w16_A_is_kG=true +single.enc.mmaxw64.m=18446744073709551615 +single.enc.mmaxw64.w=64 +single.enc.mmaxw64.k=0x0ad3667db6250c83a4680f25f8c5698dfd5a69d4c4f6a0bf57099ba81651ce29 +single.enc.mmaxw64.A.u=0x60e3999393ea4bc5eae22b31a149dde7027c1017f8c37fa97437e0e676001a69 +single.enc.mmaxw64.A.v=0x60ce37215921b375f4f804890df9fbec4c23c623081bb299315bc15716fbd586 +single.enc.mmaxw64.B.u=0x1550721b56ecccd5543014840c008da6b89be53d3f8d8532970ae72e7aa5607e +single.enc.mmaxw64.B.v=0x0315b4b1c287fb255a8c1be7531cd03582fbca0c3475b0aa52c370bbeaa184a1 +single.enc.mmaxw64.encoding=86d5fb1657c15b3199b21b0823c6234cecfbf90d8904f8f475b321592137cee0a184a1eabb70c352aab075340ccafb8235d01c53e71b8c5a25fb87c2b1b41503 +single.enc.mmaxw64.bound=18446744073709551615 +single.enc.mmaxw64.dec_point_ok=true +check.roundtrip.single.enc.mmaxw64=true +check.mmaxw64_A_is_kG=true +single.add01.A.u=0x180af53e654104a5a93f5f69159ed84c7e364e33f463f693ed80f6b634f0174f +single.add01.A.v=0x0ce4d8fa180b999c133265f4c9c976d03ee2308a824551d2831d42f35793fa83 +single.add01.B.u=0x0acfee252cc1a720698f9649024235727ce674e2f56d7357869d259bc7a6c83f +single.add01.B.v=0x6156c07cc8776a48c04d65d3ff3bbb68a0b1d725a81f6951d114a49599442a51 +single.add01.encoding=83fa9357f3421d83d25145828a30e23ed076c9c9f46532139c990b18fad8e48c512a449995a414d151691fa825d7b1a068bb3bffd3654dc0486a77c87cc056e1 +single.add01.bound=2 +single.add01.dec=1 +check.homomorphism_add=true +check.roundtrip.single.add01=true +single.scale3_12345.A.u=0x4eb601cfe29a28ccce37888806b707876e20c544db9c5393332f1de583897fe4 +single.scale3_12345.A.v=0x53c34bbdcb184e7f450498cb091db6e51e9e48e1c1c9d4f3a1031d95f9163f19 +single.scale3_12345.B.u=0x20d20c1af32684d3d293f6df87b3418d23d77617018480d8a2e68fc23a4c85b2 +single.scale3_12345.B.v=0x003f663155e9ad040f75d3e1f7e66ba3fb9af5582bbb73ff597106cc9fbdee2c +single.scale3_12345.encoding=193f16f9951d03a1f3d4c9c1e1489e1ee5b61d09cb9804457f4e18cbbd4bc3532ceebd9fcc067159ff73bb2b58f59afba36be6f7e1d3750f04ade95531663f00 +single.scale3_12345.bound=196605 +single.scale3_12345.dec=37035 +check.homomorphism_scale=true +check.roundtrip.single.scale3_12345=true +check.decrypt_refuses_bound_above_max=true +check.encrypt_refuses_m_out_of_width=true +check.encrypt_refuses_w65=true +check.encrypt_refuses_w0=true +nofn.share1.sk=0x00cd62f0ad0e5b4871e3462c926fbe888efa449036910fae73e2f36dd6f4a3a2 +nofn.share1.pk.u=0x675562786d962db9772711bb30e3901c70095d458150097af616bd2f250099fd +nofn.share1.pk.v=0x39a6641e88a5608e252de5a8ba1b23d630f61767ed373589e33e3679901a228c +nofn.share1.pk.encoding=8c221a9079363ee3893537ed6717f630d6231bbaa8e52d258e60a5881e64a6b9 +check.roundtrip.nofn.share1.pk=true +nofn.share2.sk=0x0170b4fa2b15e5934be595cc5449254912a71fb7f174d5ef582c649774646538 +nofn.share2.pk.u=0x0da2404ef6e38472758619282c4ba49bb0ec7de134b57fd450d7d58aadc7cdb2 +nofn.share2.pk.v=0x54ccde55bad40ac46d0d7af3026c34ddc2eb4df572a0aee3b565b570f6c0a378 +nofn.share2.pk.encoding=78a3c0f670b565b5e3aea072f54debc2dd346c02f37a0d6dc40ad4ba55decc54 +check.roundtrip.nofn.share2.pk=true +nofn.share3.sk=0x09dd04ac37f1453667d80c48d9792794e05514b75aa854f8854201bcc9a444c5 +nofn.share3.pk.u=0x2ef38de5ec921e53d13b2e23b952ae3543ce3f35a447ca7dba631610d9a625b1 +nofn.share3.pk.v=0x12ed8b2fcf2064d42fdef0b2fa3610754aa0cfc750c81f37b76fb70706f8bf8a +nofn.share3.pk.encoding=8abff80607b76fb7371fc850c7cfa04a751036fab2f0de2fd46420cf2f8bed92 +check.roundtrip.nofn.share3.pk=true +nofn.pk.u=0x316d00feff1b82aec5d0cefc2f435f275388b6f05d49b7368b38fd2a7b483659 +nofn.pk.v=0x3d7bccefae653376d696aae0ca8bed8ad33512c7f45d2f3b5992310faa95600d +nofn.pk.encoding=0d6095aa0f3192593b2f5df4c71235d38aed8bcae0aa96d6763365aeefcc7bbd +check.roundtrip.nofn.pk=true +check.nofn_pk_is_sum_of_secret_shares=true +nofn.registered_order=2,3,1 +nofn.registered_encodings=78a3c0f670b565b5e3aea072f54debc2dd346c02f37a0d6dc40ad4ba55decc54,8abff80607b76fb7371fc850c7cfa04a751036fab2f0de2fd46420cf2f8bed92,8c221a9079363ee3893537ed6717f630d6231bbaa8e52d258e60a5881e64a6b9 +check.registered_order_unsigned_lexicographic=true +info.registered_order_if_sorted_by_numeric_v=3,1,2 +info.registered_order_if_sorted_by_signed_bytes=3,1,2 +info.registered_order_if_sorted_by_le_integer_of_encoding=2,3,1 +check.context_equal_under_share_permutation=true +sortvec.multiples=1,2,4 +sortvec.encodings=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7,719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab1,b675faf151c4c7e3974af311dd61c88bc053e723d60e5f4582c90474b113b300 +sortvec.registered_order=2,4,1 +info.sortvec.order_if_sorted_by_numeric_v=4,2,1 +info.sortvec.order_if_sorted_by_numeric_u=1,2,4 +info.sortvec.order_if_sorted_by_signed_bytes=4,1,2 +info.sortvec.order_if_sorted_by_le_integer_of_encoding=4,2,1 +check.sortvec_registered_order=true +check.context_refuses_empty=true +check.context_refuses_identity_share=true +check.context_refuses_non_subgroup_share=true +check.context_refuses_duplicate_share=true +check.context_refuses_identity_sum=true +nofn.ballot1.m=1 +nofn.ballot1.w=1 +nofn.ballot1.k=0x0dd9a9ff645f0af1538b14a7131084831da51dd7599c9ce45a8f7770b7505f78 +nofn.ballot1.A.u=0x1ea2f8185df7794f2418adbd40418b8cda1c4b9116b0aa2bff940cfd268dc5f1 +nofn.ballot1.A.v=0x19819845a5ad9b2b351558abfacc6ebd7e1c8280aa3deabcf3e153520b241481 +nofn.ballot1.B.u=0x5d38d9a835b0b1119199095e6013c5d41db9e81dbd508c246d5e1b3b3541f175 +nofn.ballot1.B.v=0x103b6a86eec010556911b7d845c860968588d53b81c3fe1375836ddcd4bf9641 +nofn.ballot1.encoding=8114240b5253e1f3bcea3daa80821c7ebd6eccfaab5815352b9bada5459881994196bfd4dc6d837513fec3813bd588859660c845d8b711695510c0ee866a3b90 +check.roundtrip.nofn.ballot1=true +nofn.ballot2.m=0 +nofn.ballot2.w=1 +nofn.ballot2.k=0x06a4e1a5d60dee807603463c717dfb2d325ef6853f17b1c01822f787687558b9 +nofn.ballot2.A.u=0x165b929b2e3ee6a2cd4a5547f630c81f35b90427ef70dad94527d85a5c3c7847 +nofn.ballot2.A.v=0x17772e2f891c7a43fc2bb5f056a7bc9b6c3ce7b7c5930262e6f250a78c79b81d +nofn.ballot2.B.u=0x1bb083d71b51025a5b710ed57bcf3bfa3ad3f751933ce9acd3076e9d716a44be +nofn.ballot2.B.v=0x724c915b114364b3e6215eefabb39d47834030ec0f6cb26014ce20612d420777 +nofn.ballot2.encoding=1db8798ca750f2e6620293c5b7e73c6c9bbca756f0b52bfc437a1c892f2e77977707422d6120ce1460b26c0fec304083479db3abef5e21e6b36443115b914c72 +check.roundtrip.nofn.ballot2=true +nofn.ballot3.m=1 +nofn.ballot3.w=1 +nofn.ballot3.k=0x05ec025cabe57d3ac62f75873acb8f452e3fe7de7a3dd1b98ab459901ba13f2e +nofn.ballot3.A.u=0x277819f29a91b868239d777e89f517f29a0052cb10f5ea78353b82e4b1613ddc +nofn.ballot3.A.v=0x03931464a8b2e37ec714fed9376886884ff1acc5098c98993ceb118b16325874 +nofn.ballot3.B.u=0x14cc52de17daab9c2d8482407769e3969ea0f3cc81a33c134dadb8799ac958db +nofn.ballot3.B.v=0x5e6fb250790f7b7258d5773188466436f9d17a42f6219cb4c79ef8a205813a08 +nofn.ballot3.encoding=745832168b11eb3c99988c09c5acf14f88866837d9fe14c77ee3b2a864149303083a8105a2f89ec7b49c21f6427ad1f9366446883177d558727b0f7950b26fde +check.roundtrip.nofn.ballot3=true +nofn.ballot4.m=1 +nofn.ballot4.w=1 +nofn.ballot4.k=0x045a111e2c2f7edbb563ad6e32002965fc1f78f08db90891ab7c7ffa538020de +nofn.ballot4.A.u=0x7085d9872a2c87c5fbf3e6093f06b80cbb41737c60e4653d2579ef681ca64ffc +nofn.ballot4.A.v=0x3316fc89c01256073a30785055e2dfab20d1d0712efb27e79ebdd11fe0b2b51f +nofn.ballot4.B.u=0x13b08727fb6dc562e7ee27ba0849b49e05ea02ccf03f36dc87fef3fc6221fd5a +nofn.ballot4.B.v=0x08b12244495601f9014be6dfa0e7d1fac6652da850ec9ae76e8d471dcb77529f +nofn.ballot4.encoding=1fb5b2e01fd1bd9ee727fb2e71d0d120abdfe2555078303a075612c089fc16339f5277cb1d478d6ee79aec50a82d65c6fad1e7a0dfe64b01f90156494422b108 +check.roundtrip.nofn.ballot4=true +nofn.ballot5.m=0 +nofn.ballot5.w=1 +nofn.ballot5.k=0x0667f71fe05d5b0fb5acda67e1c7aa7d8462eafdd47de5897b3844a4d2bf7c72 +nofn.ballot5.A.u=0x60267c280a6a4db6ca2eb2de567f8ae9be89165379aa0fa9afc68f5505954810 +nofn.ballot5.A.v=0x257b23aba9ecee21f71be8da3a6722f98cf69632faa5fbd4a5b4300d8a7b00a1 +nofn.ballot5.B.u=0x13509fbdbc3248e44892e245ff103a705e0b69719a4ce48e1133a6601eccbf31 +nofn.ballot5.B.v=0x658a4ea22066fce98eeaaeb2c980972d002b1980cbe41855fbe051ed05328265 +nofn.ballot5.encoding=a1007b8a0d30b4a5d4fba5fa3296f68cf922673adae81bf721eeeca9ab237b2565823205ed51e0fb5518e4cb80192b002d9780c9b2aeea8ee9fc6620a24e8ae5 +check.roundtrip.nofn.ballot5=true +nofn.sum.A.u=0x407fd43d321a1e9a03e2e5fc707739d8d7a0c1caf75a122c237fe38faf105eb9 +nofn.sum.A.v=0x2397a007f5b374ce55af5a299817e9b3c965dd57922ca2ec6e5f495dc0c0e1d9 +nofn.sum.B.u=0x09d6d55f9cdbea50ea345cbbef6000b39450a18afb520b3e0c511e5223ba2efd +nofn.sum.B.v=0x3422716840f6a43bc89cf784d624a59ebbf6d2b2b53fd08bad6e2540b7f4ee9b +nofn.sum.encoding=d9e1c0c05d495f6eeca22c9257dd65c9b3e91798295aaf55ce74b3f507a097a39beef4b740256ead8bd03fb5b2d2f6bb9ea524d684f79cc83ba4f640687122b4 +nofn.sum.bound=5 +check.roundtrip.nofn.sum=true +check.nofn_sum_homomorphic=true +nofn.D1.u=0x1a7faf8989d3a732970f8059c740346fe1961b121d62556f9952a53be0ef67cb +nofn.D1.v=0x07b81a5adb933d2dd3db3125f8c8dea3be145094dfaa2f46f7f29cd3ff0fffcb +nofn.D1.encoding=cbff0fffd39cf2f7462faadf945014bea3dec8f82531dbd32d3d93db5a1ab887 +check.roundtrip.nofn.D1=true +check.nofn_D1_dleq_relation=true +check.nofn_pop1_dleq_relation=true +nofn.D2.u=0x6e236022d3956f112b6662a0f319cb4efe20e8c569abb10cbdca08a93232d6dd +nofn.D2.v=0x552d9d64735bdafb261128a1ebefe151d8e548998ac2488cecf65413f4daced9 +nofn.D2.encoding=d9cedaf41354f6ec8c48c28a9948e5d851e1efeba1281126fbda5b73649d2dd5 +check.roundtrip.nofn.D2=true +check.nofn_D2_dleq_relation=true +check.nofn_pop2_dleq_relation=true +nofn.D3.u=0x0ba9971c325b966882273ac3618cd6999dc5a447b22e24431afec035ce41d044 +nofn.D3.v=0x4dc932d6b146bf736d5220ded27ede03e627de3859d87ace982c2dc862b2a63d +nofn.D3.encoding=3da6b262c82d2c98ce7ad85938de27e603de7ed2de20526d73bf46b1d632c94d +check.roundtrip.nofn.D3=true +check.nofn_D3_dleq_relation=true +check.nofn_pop3_dleq_relation=true +nofn.M.u=0x13d8c3c67691262cc869a019d5cbe5b22257879e46c56955beee75fcb689bbcd +nofn.M.v=0x479c33dba2949dba817ee156520e1df08d959c01c75a0058aea437cbd15d29c5 +nofn.tally=3 +check.nofn_tally_is_3=true +check.nofn_joint_secret_decrypts_same=true +check.nofn_refuses_missing_share=true +check.nofn_refuses_foreign_share=true +nofn.dleq1.publicInputs=0x407fd43d321a1e9a03e2e5fc707739d8d7a0c1caf75a122c237fe38faf105eb9,0x2397a007f5b374ce55af5a299817e9b3c965dd57922ca2ec6e5f495dc0c0e1d9,0x675562786d962db9772711bb30e3901c70095d458150097af616bd2f250099fd,0x39a6641e88a5608e252de5a8ba1b23d630f61767ed373589e33e3679901a228c,0x1a7faf8989d3a732970f8059c740346fe1961b121d62556f9952a53be0ef67cb,0x07b81a5adb933d2dd3db3125f8c8dea3be145094dfaa2f46f7f29cd3ff0fffcb +nofn.dleq2.publicInputs=0x407fd43d321a1e9a03e2e5fc707739d8d7a0c1caf75a122c237fe38faf105eb9,0x2397a007f5b374ce55af5a299817e9b3c965dd57922ca2ec6e5f495dc0c0e1d9,0x0da2404ef6e38472758619282c4ba49bb0ec7de134b57fd450d7d58aadc7cdb2,0x54ccde55bad40ac46d0d7af3026c34ddc2eb4df572a0aee3b565b570f6c0a378,0x6e236022d3956f112b6662a0f319cb4efe20e8c569abb10cbdca08a93232d6dd,0x552d9d64735bdafb261128a1ebefe151d8e548998ac2488cecf65413f4daced9 +nofn.dleq3.publicInputs=0x407fd43d321a1e9a03e2e5fc707739d8d7a0c1caf75a122c237fe38faf105eb9,0x2397a007f5b374ce55af5a299817e9b3c965dd57922ca2ec6e5f495dc0c0e1d9,0x2ef38de5ec921e53d13b2e23b952ae3543ce3f35a447ca7dba631610d9a625b1,0x12ed8b2fcf2064d42fdef0b2fa3610754aa0cfc750c81f37b76fb70706f8bf8a,0x0ba9971c325b966882273ac3618cd6999dc5a447b22e24431afec035ce41d044,0x4dc932d6b146bf736d5220ded27ede03e627de3859d87ace982c2dc862b2a63d +nofn.pop1.publicInputs=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5,0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb,0x675562786d962db9772711bb30e3901c70095d458150097af616bd2f250099fd,0x39a6641e88a5608e252de5a8ba1b23d630f61767ed373589e33e3679901a228c,0x675562786d962db9772711bb30e3901c70095d458150097af616bd2f250099fd,0x39a6641e88a5608e252de5a8ba1b23d630f61767ed373589e33e3679901a228c +nofn.pop2.publicInputs=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5,0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb,0x0da2404ef6e38472758619282c4ba49bb0ec7de134b57fd450d7d58aadc7cdb2,0x54ccde55bad40ac46d0d7af3026c34ddc2eb4df572a0aee3b565b570f6c0a378,0x0da2404ef6e38472758619282c4ba49bb0ec7de134b57fd450d7d58aadc7cdb2,0x54ccde55bad40ac46d0d7af3026c34ddc2eb4df572a0aee3b565b570f6c0a378 +nofn.pop3.publicInputs=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5,0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb,0x2ef38de5ec921e53d13b2e23b952ae3543ce3f35a447ca7dba631610d9a625b1,0x12ed8b2fcf2064d42fdef0b2fa3610754aa0cfc750c81f37b76fb70706f8bf8a,0x2ef38de5ec921e53d13b2e23b952ae3543ce3f35a447ca7dba631610d9a625b1,0x12ed8b2fcf2064d42fdef0b2fa3610754aa0cfc750c81f37b76fb70706f8bf8a +nofn.encstmt.ballot1.w=1 +nofn.encstmt.ballot1.publicInputs=0x316d00feff1b82aec5d0cefc2f435f275388b6f05d49b7368b38fd2a7b483659,0x3d7bccefae653376d696aae0ca8bed8ad33512c7f45d2f3b5992310faa95600d,0x1ea2f8185df7794f2418adbd40418b8cda1c4b9116b0aa2bff940cfd268dc5f1,0x19819845a5ad9b2b351558abfacc6ebd7e1c8280aa3deabcf3e153520b241481,0x5d38d9a835b0b1119199095e6013c5d41db9e81dbd508c246d5e1b3b3541f175,0x103b6a86eec010556911b7d845c860968588d53b81c3fe1375836ddcd4bf9641 +check.cx_wrongsecret_is_G_4G=true +cx.wrongsecret.PK.u=0x13d8c3c67691262cc869a019d5cbe5b22257879e46c56955beee75fcb689bbcd +cx.wrongsecret.PK.v=0x479c33dba2949dba817ee156520e1df08d959c01c75a0058aea437cbd15d29c5 +cx.wrongsecret.A.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +cx.wrongsecret.A.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +cx.wrongsecret.B.u=0x73a93118b5e80caf9148cf8a90ca0423b5b1df881b6b6d3c4c75cf9481dd4c56 +cx.wrongsecret.B.v=0x00b313b17404c982455f0ed623e753c08bc861dd11f34a97e3c7c451f1fa75b6 +cx.wrongsecret.secret_wrong=4 +cx.wrongsecret.M_wrong.u=0x0000000000000000000000000000000000000000000000000000000000000000 +cx.wrongsecret.M_wrong.v=0x0000000000000000000000000000000000000000000000000000000000000001 +cx.wrongsecret.M_wrong_is_identity=true +cx.wrongsecret.dec_wrong=0 +cx.wrongsecret.secret_right=3 +cx.wrongsecret.M_right.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +cx.wrongsecret.M_right.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +cx.wrongsecret.dec_right=1 +cx.wrongsecret.wrong_secret_pk_matches=false +check.cx_wrongsecret=true +check.cx_wrongsecret_refused_by_key_check=true +cx.mixed.PK1.u=0x13d8c3c67691262cc869a019d5cbe5b22257879e46c56955beee75fcb689bbcd +cx.mixed.PK1.v=0x479c33dba2949dba817ee156520e1df08d959c01c75a0058aea437cbd15d29c5 +cx.mixed.PK2.u=0x3ef1db617dee2c04c3fb49b6cafdadc4b25037778ae7736460ccae35690d1cdd +cx.mixed.PK2.v=0x319acab8fa40a6338ef0795981a7c3cbc3e9de977e3b0f68aad0c6e0e6f09a71 +cx.mixed.c1.A.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +cx.mixed.c1.A.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +cx.mixed.c1.B.u=0x73a93118b5e80caf9148cf8a90ca0423b5b1df881b6b6d3c4c75cf9481dd4c56 +cx.mixed.c1.B.v=0x00b313b17404c982455f0ed623e753c08bc861dd11f34a97e3c7c451f1fa75b6 +cx.mixed.c1.encoding=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7b675faf151c4c7e3974af311dd61c88bc053e723d60e5f4582c90474b113b300 +cx.mixed.c2.A.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +cx.mixed.c2.A.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +cx.mixed.c2.B.u=0x13d8c3c67691262cc869a019d5cbe5b22257879e46c56955beee75fcb689bbcd +cx.mixed.c2.B.v=0x479c33dba2949dba817ee156520e1df08d959c01c75a0058aea437cbd15d29c5 +cx.mixed.c2.encoding=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +cx.mixed.sum.A.u=0x3ef1db617dee2c04c3fb49b6cafdadc4b25037778ae7736460ccae35690d1cdd +cx.mixed.sum.A.v=0x319acab8fa40a6338ef0795981a7c3cbc3e9de977e3b0f68aad0c6e0e6f09a71 +cx.mixed.sum.B.u=0x69b0fb638c01a066859db5c1386766c844970573f55fe1e5869b17d51fb1b6d8 +cx.mixed.sum.B.v=0x18100ccf927de921d18e203c14ab2100d7cc8773809db28aa337e192c49cc626 +cx.mixed.sum.encoding=719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab126c69cc492e137a38ab29d807387ccd70021ab143c208ed121e97d92cf0c1018 +cx.mixed.secret=3 +cx.mixed.M.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +cx.mixed.M.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +cx.mixed.dec=1 +cx.mixed.sum_of_messages=2 +check.cx_mixed=true +check.cx_mixed_add_refused_by_context=true +cx.forged.PK1.u=0x13d8c3c67691262cc869a019d5cbe5b22257879e46c56955beee75fcb689bbcd +cx.forged.PK1.v=0x479c33dba2949dba817ee156520e1df08d959c01c75a0058aea437cbd15d29c5 +cx.forged.PK2.u=0x65c858d48898a9c8076d192454c54564e699e368f0d4831a9dc630316b4d387f +cx.forged.PK2.v=0x39e6b11954e2c6c1d81a654d0a04fab0d626ddd012e6284efc77bd3cc81d2976 +cx.forged.PK.u=0x5c5f3afca6a30b8017bd85582438564f8f9f9058546758c35036323aafb299e9 +cx.forged.PK.v=0x0aae59393f3a8e66b5ee1db343d3e203563b55a6fcc3cd8cb8e824a553e7bb11 +cx.forged.m=1 +cx.forged.k=7 +cx.forged.A.u=0x69b0fb638c01a066859db5c1386766c844970573f55fe1e5869b17d51fb1b6d8 +cx.forged.A.v=0x18100ccf927de921d18e203c14ab2100d7cc8773809db28aa337e192c49cc626 +cx.forged.B.u=0x55bbbe9146a7a48efa5102c61abfda1bd80f2bc05b86b67dd31ce7325d847c24 +cx.forged.B.v=0x14cb078a70364995bcc91e5b941a7317695df7436f033e18c88095ec57e81093 +cx.forged.D1.u=0x54e77327bde7f38fbb7f1d5ad9e05ec518b60b4191f5f9be29a64dbbaae86e80 +cx.forged.D1.v=0x0129ca4a9887b18d8e3b189025b01d9734fb9181b88854f346816b374e1e4842 +cx.forged.D2.u=0x01ee01f961e98b81a94b30e2f93332dd311168ace4465cccaeef4b75e9a47a0d +cx.forged.D2.v=0x09ced38e8819573065354a37d0ab7ce22e6ed808a8e396d4a8ae44f6ddeb093e +cx.forged.D2_forged.u=0x0ffffe8a7b5ee9662b2bf915f9715c341e54937b57d0fab242bb2c719bd9e6fa +cx.forged.D2_forged.v=0x1f77346239a48f5b4e38ede30dff2fb314d719f37653fa50e61254fbbca77dce +cx.forged.M_honest.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +cx.forged.M_honest.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +cx.forged.M_forged.u=0x0000000000000000000000000000000000000000000000000000000000000000 +cx.forged.M_forged.v=0x0000000000000000000000000000000000000000000000000000000000000001 +cx.forged.result_honest=1 +cx.forged.result_forged=0 +cx.forged.D2_forged_satisfies_dleq=false +check.cx_forged=true +cx.wrap.m1=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +cx.wrap.k1=0x0dedd7801e128848d5c24813060014f641ea897fa331c35d3c37fadd77f7a66b +cx.wrap.c1.A.u=0x44ee27452d65aeb4a7fa26d82bd58ae24996929d0e0172a9ee6bbec00493149d +cx.wrap.c1.A.v=0x46efe672bf8d85ad8a4b93d903a0ad0032e035985ff35d4c5c9fc71e7cf3b742 +cx.wrap.c1.B.u=0x6b0ae4f6ce022257cbba780ad7a1c632e04143d269abef2c70d47cd41bc4ba3c +cx.wrap.c1.B.v=0x661c1a053ac3f784cfa7fe84a20fd73bae3d58e1f4b3ca3aec29296835516c3d +cx.wrap.c1.encoding=42b7f37c1ec79f5c4c5df35f9835e03200ada003d9934b8aad858dbf72e6efc63d6c5135682929ec3acab3f4e1583dae3bd70fa284fea7cf84f7c33a051a1c66 +cx.wrap.m2=1 +cx.wrap.k2=0x016a461133b4e82407daad94b08f49ecd6378b23792827cc016e9f9b1cef67a6 +cx.wrap.c2.A.u=0x06c0f32179d8f19fbff7e1f860ec76422fe5d392fe9c19a1ac940c4a709d5694 +cx.wrap.c2.A.v=0x3112281026a602a93b297300b7853cb5bcb40ec510c272499f8b3109fc492a8a +cx.wrap.c2.B.u=0x1d91cec65543df1530c917de19e1356fec7b4952d702e965724fddd42d0946cf +cx.wrap.c2.B.v=0x1272bca6e83fc29db296b6d3449184bf01a133c3657919435a023ff69fdca757 +cx.wrap.c2.encoding=8a2a49fc09318b9f4972c210c50eb4bcb53c85b70073293ba902a6261028123157a7dc9ff63f025a43197965c333a101bf849144d3b696b29dc23fe8a6bc7292 +cx.wrap.sum.A.u=0x72154c8f2f53e331e296e60f8d4b64887ee8367711373913a8084cad5b6b2868 +cx.wrap.sum.A.v=0x27fc35af60ecc65ed23d57236134b8efa451f34bf5a95c9a5dce075cf692354c +cx.wrap.sum.B.u=0x009e6b13a55fa3bcc6a2e57cbdca6f17f15bba2227156fa21e09b6f61247668d +cx.wrap.sum.B.v=0x0b676afe068265afe647d2e0e7c1f38d495b59f92b84a2be2ed2e3fd6923938a +cx.wrap.sum.encoding=4c3592f65c07ce5d9a5ca9f54bf351a4efb8346123573dd25ec6ec60af35fc278a932369fde3d22ebea2842bf9595b498df3c1e7e0d247e6af658206fe6a678b +cx.wrap.M.u=0x0000000000000000000000000000000000000000000000000000000000000000 +cx.wrap.M.v=0x0000000000000000000000000000000000000000000000000000000000000001 +cx.wrap.M_is_identity=true +cx.wrap.dec=0 +cx.wrap.lminus1_fits_w64=false +cx.wrap.encrypt_lminus1_refused=true +cx.wrap.add_refused_by_bound_rule=true +check.cx_wrap=true +bound.w64.b=18446744073709551615 +bound.w64.max_scale_accepted=355319311131565912459812196845803627626296466151293582124 +bound.w64.min_scale_refused=355319311131565912459812196845803627626296466151293582125 +check.bound_rule_scale_w64=true +info.noncanonical_alias.multiple_of_G=4 +info.smallest_nonsquare_v=2 +decode_neg.ct_len63.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea20115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f7 +decode_neg.ct_len63.kind=ciphertext +decode_neg.ct_len63.expected=reject_length +decode_neg.ct_len63.observed=reject_length +decode_neg.ct_len65.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea20115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f77200 +decode_neg.ct_len65.kind=ciphertext +decode_neg.ct_len65.expected=reject_length +decode_neg.ct_len65.observed=reject_length +decode_neg.ct_A_noncanonical_v.input=b775faf150c4c7e396a6f111e00586dfc52b892ddee69878ca46a29d04bba0740115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772 +decode_neg.ct_A_noncanonical_v.kind=ciphertext +decode_neg.ct_A_noncanonical_v.expected=reject_noncanonical_v +decode_neg.ct_A_noncanonical_v.observed=reject_noncanonical_v +decode_neg.ct_B_noncanonical_v_identity_alias.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea202000000fffffffffe5bfeff02a4bd5305d8a10908d83933487d9d2953a7ed73 +decode_neg.ct_B_noncanonical_v_identity_alias.kind=ciphertext +decode_neg.ct_B_noncanonical_v_identity_alias.expected=reject_noncanonical_v +decode_neg.ct_B_noncanonical_v_identity_alias.observed=reject_noncanonical_v +decode_neg.ct_B_non_square.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea20200000000000000000000000000000000000000000000000000000000000000 +decode_neg.ct_B_non_square.kind=ciphertext +decode_neg.ct_B_non_square.expected=reject_non_square +decode_neg.ct_B_non_square.observed=reject_non_square +decode_neg.ct_A_u_zero_sign_set.input=01000000000000000000000000000000000000000000000000000000000000800115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772 +decode_neg.ct_A_u_zero_sign_set.kind=ciphertext +decode_neg.ct_A_u_zero_sign_set.expected=reject_u_zero_sign_set +decode_neg.ct_A_u_zero_sign_set.observed=reject_u_zero_sign_set +decode_neg.ct_A_order2.input=00000000fffffffffe5bfeff02a4bd5305d8a10908d83933487d9d2953a7ed730115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772 +decode_neg.ct_A_order2.kind=ciphertext +decode_neg.ct_A_order2.expected=reject_not_in_subgroup +decode_neg.ct_A_order2.observed=reject_not_in_subgroup +decode_neg.ct_B_order4.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea20000000000000000000000000000000000000000000000000000000000000080 +decode_neg.ct_B_order4.kind=ciphertext +decode_neg.ct_B_order4.expected=reject_not_in_subgroup +decode_neg.ct_B_order4.observed=reject_not_in_subgroup +decode_neg.ct_B_order8.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea2dd96f4ef68200dffa1a484f390ee069166724dad3530a1162e986619b2bd58c9 +decode_neg.ct_B_order8.kind=ciphertext +decode_neg.ct_B_order8.expected=reject_not_in_subgroup +decode_neg.ct_B_order8.observed=reject_not_in_subgroup +decode_neg.ct_A_G_plus_order2.input=36aaf32ac615f33eebd77dbf7435139a516b40cafa0442baf8a12e3fcf2bda1c0115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772 +decode_neg.ct_A_G_plus_order2.kind=ciphertext +decode_neg.ct_A_G_plus_order2.expected=reject_not_in_subgroup +decode_neg.ct_A_G_plus_order2.observed=reject_not_in_subgroup +decode_neg.ct_identity_both.input=01000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000 +decode_neg.ct_identity_both.kind=ciphertext +decode_neg.ct_identity_both.expected=accept +decode_neg.ct_identity_both.observed=accept +decode_neg.ct_valid_m1w1.input=5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea20115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772 +decode_neg.ct_valid_m1w1.kind=ciphertext +decode_neg.ct_valid_m1w1.expected=accept +decode_neg.ct_valid_m1w1.observed=accept +decode_neg.pk_len31.input=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13 +decode_neg.pk_len31.kind=publickey +decode_neg.pk_len31.expected=reject_length +decode_neg.pk_len31.observed=reject_length +decode_neg.pk_len33.input=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d700 +decode_neg.pk_len33.kind=publickey +decode_neg.pk_len33.expected=reject_length +decode_neg.pk_len33.observed=reject_length +decode_neg.pk_noncanonical_v.input=b775faf150c4c7e396a6f111e00586dfc52b892ddee69878ca46a29d04bba074 +decode_neg.pk_noncanonical_v.kind=publickey +decode_neg.pk_noncanonical_v.expected=reject_noncanonical_v +decode_neg.pk_noncanonical_v.observed=reject_noncanonical_v +decode_neg.pk_non_square.input=0200000000000000000000000000000000000000000000000000000000000000 +decode_neg.pk_non_square.kind=publickey +decode_neg.pk_non_square.expected=reject_non_square +decode_neg.pk_non_square.observed=reject_non_square +decode_neg.pk_identity_sign_set.input=0100000000000000000000000000000000000000000000000000000000000080 +decode_neg.pk_identity_sign_set.kind=publickey +decode_neg.pk_identity_sign_set.expected=reject_u_zero_sign_set +decode_neg.pk_identity_sign_set.observed=reject_u_zero_sign_set +decode_neg.pk_identity.input=0100000000000000000000000000000000000000000000000000000000000000 +decode_neg.pk_identity.kind=publickey +decode_neg.pk_identity.expected=reject_identity_key +decode_neg.pk_identity.observed=reject_identity_key +decode_neg.pk_order2.input=00000000fffffffffe5bfeff02a4bd5305d8a10908d83933487d9d2953a7ed73 +decode_neg.pk_order2.kind=publickey +decode_neg.pk_order2.expected=reject_not_in_subgroup +decode_neg.pk_order2.observed=reject_not_in_subgroup +decode_neg.pk_order4.input=0000000000000000000000000000000000000000000000000000000000000080 +decode_neg.pk_order4.kind=publickey +decode_neg.pk_order4.expected=reject_not_in_subgroup +decode_neg.pk_order4.observed=reject_not_in_subgroup +decode_neg.pk_G_plus_order8.input=2d4a2fc8ac2ac77d039131c84547d2c19944958761cbcbe82b40d95baee13057 +decode_neg.pk_G_plus_order8.kind=publickey +decode_neg.pk_G_plus_order8.expected=reject_not_in_subgroup +decode_neg.pk_G_plus_order8.observed=reject_not_in_subgroup +decode_neg.pk_G.input=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +decode_neg.pk_G.kind=publickey +decode_neg.pk_G.expected=accept +decode_neg.pk_G.observed=accept +decode_neg.pk_single.input=36d7d5a69ac65a6761ac10fd3338bd4692939aefc4f5d5a1eb37477b29423e68 +decode_neg.pk_single.kind=publickey +decode_neg.pk_single.expected=accept +decode_neg.pk_single.observed=accept +check.decode_neg_all_match=true +check.noncanonical_alias_reduces_to_subgroup_point=true +check.g_plus_order2_in_full_group_only=true +affine_neg.u_plus_p.u=0xb2936bba63af99eb920d56ebbb14cdf357ef00687fbc935e512dfea218d56fe6 +affine_neg.u_plus_p.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +affine_neg.u_plus_p.kind=point +affine_neg.u_plus_p.expected=reject_noncanonical +affine_neg.u_plus_p.observed=reject_noncanonical +affine_neg.v_plus_p.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +affine_neg.v_plus_p.v=0xcb0122d7140c5897ac31ab15490344b90d681291407ee012c10cea37d50c55cc +affine_neg.v_plus_p.kind=point +affine_neg.v_plus_p.expected=reject_noncanonical +affine_neg.v_plus_p.observed=reject_noncanonical +affine_neg.u_negative_alias.u=-0x3547e2ebef8b60a4d4665924582ee2174f8c479d8040249faed2015be72a901c +affine_neg.u_negative_alias.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +affine_neg.u_negative_alias.kind=point +affine_neg.u_negative_alias.expected=reject_noncanonical +affine_neg.u_negative_alias.observed=reject_noncanonical +affine_neg.off_curve_1_1.u=0x0000000000000000000000000000000000000000000000000000000000000001 +affine_neg.off_curve_1_1.v=0x0000000000000000000000000000000000000000000000000000000000000001 +affine_neg.off_curve_1_1.kind=point +affine_neg.off_curve_1_1.expected=reject_off_curve +affine_neg.off_curve_1_1.observed=reject_off_curve +affine_neg.order2.u=0x0000000000000000000000000000000000000000000000000000000000000000 +affine_neg.order2.v=0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000000 +affine_neg.order2.kind=point +affine_neg.order2.expected=reject_not_in_subgroup +affine_neg.order2.observed=reject_not_in_subgroup +affine_neg.order4.u=0x73eda753299d7d47a5e80b39939ed33467baa40089fb5bfefffeffff00000001 +affine_neg.order4.v=0x0000000000000000000000000000000000000000000000000000000000000000 +affine_neg.order4.kind=point +affine_neg.order4.expected=reject_not_in_subgroup +affine_neg.order4.observed=reject_not_in_subgroup +affine_neg.G_plus_order8.u=0x4376d91d3cdd8c4607b69404e015f629242a7832f1df96e052a9006c9f9821ca +affine_neg.G_plus_order8.v=0x5730e1ae5bd9402be8cbcb6187954499c1d24745c83191037dc72aacc82f4a2d +affine_neg.G_plus_order8.kind=point +affine_neg.G_plus_order8.expected=reject_not_in_subgroup +affine_neg.G_plus_order8.observed=reject_not_in_subgroup +affine_neg.identity_point.u=0x0000000000000000000000000000000000000000000000000000000000000000 +affine_neg.identity_point.v=0x0000000000000000000000000000000000000000000000000000000000000001 +affine_neg.identity_point.kind=point +affine_neg.identity_point.expected=accept +affine_neg.identity_point.observed=accept +affine_neg.identity_key.u=0x0000000000000000000000000000000000000000000000000000000000000000 +affine_neg.identity_key.v=0x0000000000000000000000000000000000000000000000000000000000000001 +affine_neg.identity_key.kind=publickey +affine_neg.identity_key.expected=reject_identity_key +affine_neg.identity_key.observed=reject_identity_key +affine_neg.G_point.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +affine_neg.G_point.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +affine_neg.G_point.kind=point +affine_neg.G_point.expected=accept +affine_neg.G_point.observed=accept +affine_neg.G_key.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +affine_neg.G_key.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +affine_neg.G_key.kind=publickey +affine_neg.G_key.expected=accept +affine_neg.G_key.observed=accept +check.affine_neg_all_match=true +check.affine_aliases_reduce_to_G=true +info.prototype_source=embedded +check.prototype_parsed=true +check.prototype.A1=true +check.prototype.B1=true +check.prototype.A2=true +check.prototype.B2=true +check.prototype.A3=true +check.prototype.B3=true +check.prototype.A4=true +check.prototype.B4=true +check.prototype.A5=true +check.prototype.B5=true +check.prototype.G=true +check.prototype.PK1=true +check.prototype.PK2=true +check.prototype.PK3=true +check.prototype.PK=true +check.prototype.sumA=true +check.prototype.sumB=true +check.prototype.D1=true +check.prototype.D2=true +check.prototype.D3=true +check.prototype.M=true +check.prototype.tally=true +check.prototype.all_points_listed_were_recomputed=true +info.prototype_scalars_equal_spec12_scalars=false +check.roundtrip_all_positive_encodings=true +result=pass diff --git a/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/README.md b/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/README.md new file mode 100644 index 00000000..0983a441 --- /dev/null +++ b/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/README.md @@ -0,0 +1,571 @@ +# ElGamal-Jubjub threshold v1 independent reference + +An independent reproduction of the `elgamal-jubjub-threshold-v1` profile (New-DKG of [GJKR07] +Fig. 2 over Jubjub, with admission and threshold decryption). It was written from the +normative specs and the paper alone, so its output can serve as evidence against ZeroJ's Java +implementation (ADR-0053 milestone M0). + +## Files + +- `elgamal_jubjub_threshold_v1_reference.py`: Python 3, standard library only (`hashlib` + BLAKE2b and SHA-256). It implements: + - Jubjub affine twisted-Edwards arithmetic (`a = −1`): unified addition with modular + inverses, double-and-add, Tonelli–Shanks, and the pedersen-jubjub-v1 §4 encoding and + canonical decoding (ZIP 216). It re-derives `d = −10240/10241 mod p` and `G = [8]·G_full` + and compares both with the pins. `H` is taken from the pins of pedersen-jubjub-v1 §2.3 and + checked to decode, lie on the curve and in the subgroup. + - §2 session, §11 test scalars, §3 dealing, and equations (4) and (5). The right-hand sides + are summed term by term, `Σ_k [j^k mod l]·C_ik`, never by Horner's rule. + - §4 message encodings and well-formedness for all 8 kinds, plus byte-identical + deduplication and conflict detection. + - §5 R1–R6 as a public recomputation from the delivered broadcast sets. The + reconstruction step interpolates the coefficients with modular-inverse Lagrange. + - The participant-side logic of §5, with §5.1 aborts: + - §4 channels: on the private channel only a `SHARE` addressed to the recipient is + accepted, and a `SHARE` on the board is ignored; + - complaints, including on a conflicting `SHARE`; + - adopting answered pairs; + - `EXTRACTION_COMPLAINT`, `RECONSTRUCTION` and `x_j`; + - the participant checks, each run when its round closes: A9 at R2, A2 at R3, A8 at R5, + A6 at R6, and both A7 clauses at R7. The participant's own confirmation counts only if + it was delivered back. + + A participant that aborts sends nothing afterwards. Deviations come from a per-fixture + script. + - §6 transcript and digest, and §7 confirmation bytes. + - §8 steps 2 and 4–6: + - step 4's delivered set (`delivered_round`), and `roundClosed(config, r, list)` for rounds + 1–7, modelled as "the list equals the delivered set of the true board"; + - step 6 counts matching and differing `QUAL` confirmations; an equivocating sender counts + as differing only; it refuses if `t + 1` or more differ, and otherwise requires at least + `t + 1` matching. + - Replayable `case.*` vectors for every rule, admission, combine, parameter and + well-formedness case, for every abort case except A7, and for every finding except the + combined summary `finding.N6_round7_closure`. The cases without a vector are listed under + "Notes on the vectors". Each vector is replayed from its emitted keys alone as a + self-check. + - §9 Lagrange coefficients, combining with the extra-share consistency check, and a + linear plaintext search. +- `reference-output.txt`: the script's output, as `key=value` lines under a `#` header. + +## Independence rules followed + +Read: + +- `docs/specs/elgamal-jubjub-threshold-v1.md` (the spec under test), in its first version + and again after each of its seven revisions (see below). +- `docs/specs/elgamal-jubjub-v1.md` and `docs/specs/pedersen-jubjub-v1.md` (curve, `G`, `H`, + the point encoding, the sampler, `Enc`, plaintext recovery, the DLEQ statement). +- The GJKR07 paper text: §2.2 (Feldman-VSS, Pedersen-VSS, Lemma 1), §3 (JF-DKG, as context), + and §4, including Fig. 2 (New-DKG), the §4.2 prose on misbehaviour at the extraction stage, + the correctness proof and the simulator (Fig. 3). +- `../pedersen-reference/README.md`, only for README and output conventions. + +Not read: any `.java` file, any other `.py` file, `../pedersen-reference/reference-output.txt` +(the spec pins `H` directly), build output, and every other file in the repository. The +repository was not searched. + +The values the specs pin (`d`, `G`, `encode(G)`, `H`, `encode(H)`, `scalar("sk")`, the +single-key `PK`, `Enc(1; scalar("k1"), PK)` of elgamal-jubjub-v1 §12, and `C(42, 12345)` of +pedersen-jubjub-v1 §8) appear only as comparison targets. `H` is the one exception: it is used +as an input, after checks that it decodes and lies in the subgroup. The other pins are never +inputs. The elgamal-v1 and pedersen-v1 cross-checks confirm the scalar-multiplication, +encoding, `Enc` and test-scalar conventions against independently pinned values. + +Where a spec was unclear, the script implements the most literal reading and records the issue +below. It does not resolve the issue from code. + +## Running + +``` +cd zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference +python3 elgamal_jubjub_threshold_v1_reference.py +``` + +The run takes about 10 s. The script prints to stdout and rewrites `reference-output.txt`. +Apart from the `# Python:` header line, the output is deterministic: two runs were compared +byte for byte. + +| Exit status | Meaning | +|---|---| +| 0 | Every check passed. | +| 1 | A check or a `spec_match.*` comparison failed, or the script crashed. The output is still written, ending in `result=fail`, and the failing keys go to stderr. | + +The script was also run in mutated copies to confirm that it fails. Each of these mutations +was detected: +- the sign of the Lagrange denominator; +- `j^(k+1)` in (5) or in `Y_j`; +- `≥ t` instead of `> t` in R3; +- the encoding parity bit; +- accepting a conflicting message as unique, in R1 and in R6; +- dropping the R5 guard on an absent `EXTRACTION`; +- no deduplication of byte-identical messages; +- arrival-order transcripts; +- ignoring `y` in the A7 check; +- removing the extra-share check; +- removing A2 or A8; +- evaluating A8 when R4 closes instead of R5; +- complaining against a dealer without unique `COMMITMENTS`; +- A7 firing on any differing confirmation, or on `t` of them; +- admission without the differing rule, or refusing on any differing confirmation; +- admission counting a confirmation from another session; +- removing A9; +- counting the participant's own confirmation when it was not delivered back; +- dropping A7's matching clause; +- accepting any kind on the private channel; +- keeping a `SHARE` in the delivered set; +- counting an equivocator as matching; +- dropping the distinct-key rule, or step 3; +- a wrong refusal-step mapping; +- closure ignoring authentication; +- refusing duplicate transcript messages; +- counting unauthenticated confirmations as differing; +- a round-7 list that drops confirmations from senders outside `QUAL`. + +## Output format + +Each line is `key=value`: + +- Field elements and scalars are `0x` plus 64 lowercase hex digits. +- Small integers (`t`, `n`, `attempt`, counts, plaintexts) are decimal. +- Byte strings (encodings, messages, sessions, digests, transcripts) are bare lowercase hex. +- Lists are comma-separated, and empty lists are empty. +- Booleans are `true` or `false`. + +| Key family | Content | +|---|---| +| `profile`, `curve.*`, `G.*`, `H.*`, `spec_match.*`, `check.*` (top level) | Constants, re-derivations and comparison with the pins. | +| `session.` | The §2 session of every fixture. `session.session.preimage` is the full preimage, and `session.session.key_1` the roster bytes. | +| `.t`, `.n`, `.ctx`, `.attempt`, `.session` | The configuration. | +| `.qual`, `.disqualified` (`i:rule`), `.marked`, `.marked_by` (`i:R4` or `i:R5`) | The public decisions. | +| `.a..`, `.b..` | The coefficients actually used. | +| `.C..`, `.A..` | Encodings of the true commitments and extraction values. | +| `.s..`, `.sp..` | `s_ij` and `s'_ij` for every `i, j`, own shares included. | +| `.x.`, `.y`, `.Y.`, `.Y..identity` | The outputs. `x_j` is listed for every `j`, including participants that aborted. | +| `.msg....` | Every broadcast message of the transcript, in transcript order. | +| `.count.`, `.counts` | Messages per kind, and per round 1–6 as a list. | +| `.transcript`, `.digest`, `.confirmation.` | §6 and §7. Confirmations come only from `QUAL` members that did not abort. | +| `.participant_abort.` | The participant-side outcome: `none` or `A1`–`A9`. | +| `.lagrange..`, `.enc.{m,width,A,B}`, `.D.`, `.decrypt.`, `.decrypt.all` | §9 for every `(t + 1)`-subset `S` of `QUAL`, written as ids joined by dashes. `decrypt.all` uses all of `QUAL` and so exercises the extra-share check. | +| `.F_coeffs` | `F(z) = Σ f_i(z)`: zero-share and equal-shares. | +| `adversarial-4of7.share.1.2`, `.share.3.4` | The two bad `SHARE` messages. | +| `adversarial-4of7.A_broadcast.5.1` | The forged `A_51 + G`. | +| `adversarial-4of7.recon..{valid_senders,used_senders,a.,b.,A.}` | The reconstruction of dealers 1 and 5. | +| `adversarial-4of7.y_equals_reference` | `y` equals `Σ_{i ∈ {1,2,4,5,6,7}} [a_i0]·G`, computed directly. | +| `.check.*` | Per-fixture checks (see below). | +| `abort.`, `check.abort.` | The §5.1 abort cases: the outcome and its check. | +| `rule.`, `check.rule.` | R1–R6, combine, admission and §1 parameter cases. Admission cases are `admit` or `refuse`, with the reason in `info.rule..reason`. Only `admit`/`refuse` is meant for comparison. | +| `wf.`, `check.wf.`, `info.wf..reason` | §4 well-formedness: `accept` or `reject`. The reason is informative only, since the spec sets no precedence among reasons. | +| `finding.`, `check.finding.` | Demonstrations for F14 and A8, round-7 closure (N6), and the §5.2 limitation (`S52_late_shares_reveal_key`). | +| `case..*` | Replayable vectors (next table). | +| `scalar.` | Every §11 test scalar used. | +| `info.*` | Informative values, which are not checks. | +| `result` | `pass` or `fail`. | + +Replayable vectors, `case...*`, where `.` is the name of the internal +case (`abort.*`, `rule.*`, `finding.*`, `wf.*`): + +| Key | Content | +|---|---| +| `config` | `t,n,ctx-hex,attempt`. Unless a `roster` key says otherwise, the roster is the standard one: `key_j` is 32 bytes, each equal to `j`. | +| `H` | Present only on the two A4 trapdoor vectors: the substitute base `H' = [w]·G`. A replay must use it in place of the profile's `H`, or skip the vector. | +| `order` | Absent: `msg.*` is in §6 order. `submission`: `msg.*` is as submitted, which is used when a message cannot be parsed (malformed, other session) and for duplicate submissions. | +| `msg.` | The case transcript (broadcasts of rounds 1–6, §6 order, `i` from 1), or for admission cases the submitted transcript messages. In the two misplaced-kind cases, `msg.*` also holds the misplaced `SHARE` or `CONFIRMATION`, sorted by `(kind, sender, subject, bytes)`. | +| `raw.` | Present only when the posted broadcasts differ from the transcript (malformed, duplicate or `SHARE` posts): the posts in arrival order. Replaying them must give the same outcome. | +| `confirmation.` | Admission cases: the submitted confirmations, in submission order. | +| `unauthenticated.` | Admission cases with a modelled `authenticate`: `authenticate(bytes)` is false iff `bytes` is in this list. It applies to transcript messages (step 3 refuses), confirmations (ignored) and board posts (dropped). Absent: everything authenticates. | +| `closure`, `board..` | Closure cases (`closure=board`): the raw board of round `r = 1 … 7` (round 7 holds the posted confirmations), with posts in arrival order and junk included. `roundClosed(config, r, list)` is true iff `list` equals the delivered set (§8 step 4) of `board..*`: well-formed, this session, header round `r`, not a `SHARE`, authenticated, byte-identical copies once, §6 order. Without `closure`, `roundClosed` is always true. | +| `expect` | One of: `qual=;marked=;y=` (public recomputation, no abort); `abort=A1\|A3\|A4\|A5`; `admit` or `refuse` (admission); `error`, `plaintext:` or `not_plaintext:` (combine; `not_plaintext:5` means the combine must not return 5, so an error or any other value passes). | +| `step` | Admission vectors with `expect=refuse`: the §8 step at which the reference refuses. 2 is decode or kind, 3 authenticate, 4 closure of rounds 1–6, 5 a recomputation abort, and 6 counting or round-7 closure. | +| `qual`, `bound`, `ciphertext`, `share.` | Combine cases: `QUAL`, the search bound, `encode(A) ‖ encode(B)`, and each decryption share `encode(D_j)`. | +| `decode` | `wf.*` cases: `accept` or `reject` for the single message `msg.1`. | +| `roster`, `params`, `session` | `rule.param_*` cases. The `roster` key takes one of three forms: `standard`; `lengths:`, where `key_j` is the byte `j` repeated `l_j` times, so the keys are pairwise distinct; or `hex:,,…`, with the keys given in hex. `params` is `accept` or `reject`, and an accepting case also carries the derived `session`. | + +Notes on the vectors: +- Every abort case except A7 has a vector, including the participant-only aborts (A2, A6, A8, + A9). For those, `expect` is the public outcome of the case transcript. +- Cases with no vector (`info.case_internal_only` lists them): + - **The 20 `abort.A7_*` cases.** A7 is a participant-side check. Its inputs are the checking + participant's identity and its own delivered round-7 view, including whether its own + confirmation was delivered back, and none of the vector formats carry them. These cases + could become vectors if the replay gained a participant-side A7 entry point (inputs: + transcript, participant id, round-7 view). + - **`finding.N6_round7_closure`.** It is a combined summary of two A7 outcomes and two + admissions. The admissions are vectors (`finding.N6_round7_closure_full_set` and + `finding.N6_round7_closure_subset`); the A7 parts are participant-side, as above. +- Vector counts: abort 15, rule 81, finding 7, wf 31, so 134 in all (`info.case_count`, + `info.case_count.`). `check.case_vectors_replay_self_consistent` replays each one, + using every key above. `check.rule.admission_refusal_steps` checks the `step` values + independently. + +The per-fixture checks are: +- `y` and every `Y_j` against the true polynomials of `QUAL`, and `x_j` against `Σ f_i(j)`; +- `[x_j]·G = Y_j` for every `j`; +- every message well-formed, every point round-tripped and in the subgroup; +- the digest and outputs unchanged under three shuffles with injected byte-identical + duplicates; +- confirmations sent exactly by the `QUAL` members that did not abort, with no A7; +- admission accepted; +- decryption of every subset, `Σ λ_j x_j = x`, and the DLEQ relations of the shares. + +The negative cases (most on a 3-of-5 base) are: + +| Case | Construction | Outcome | +|---|---|---| +| `A1_t_plus_1_dealers_silent` | dealers 1–3 send no `COMMITMENTS` | every participant `A1`; admission refuses | +| `A1_boundary_t_dealers_silent` | dealers 1–2 silent, so `|QUAL| = n − t` | `none` (participant 1: `A2`) | +| `A2_own_answer_not_delivered` | dealer 1's correct `ANSWER` to participant 2 is lost | participant 1 `A2` and sends nothing afterwards | +| `A3_*` | dealer 5 withholds `EXTRACTION`; only `t` valid `RECONSTRUCTION`s | `A3` (control with `t + 1`: `none`, dealer 5 `A8`) | +| `A4_trapdoor_*` | reference-only base `H' = [w]·G`; a pair `(s − w, s' + 1)` satisfies (4) but is off the polynomial | `A4` | +| `A4_same_construction_under_profile_H` | the same pair under the real `H` | it fails (4) and is excluded: `none` | +| `A5_constant_terms_sum_to_zero` | 2-of-3, `a_i0 = 1, 2, l − 3` | `A5` | +| `A6_extraction_complaints_not_delivered` | dealer 5 publishes `A_51 + G`; no complaint is delivered | every participant `A6` | +| `A7_*` | 2-of-3, 3-of-5 and a test-only 2-of-4: up to `t` lies, `t + 1` differing `QUAL` confirmations (digest, `y` or both), one liar sending twice, too few matching (silent members, own confirmation not delivered back), stale-session, malformed or unauthenticated confirmations, equivocating senders | `A7` if `t + 1` distinct members differ or fewer than `t + 1` match; an equivocator counts as differing only; anything not well-formed, for another session or unauthenticated is ignored | +| `A9_own_complaint_not_delivered` | participant 2's `COMPLAINT` against dealer 1 (bad `SHARE`) is not delivered | participant 2 `A9`, falls silent; it stays in `QUAL`, is marked (no `EXTRACTION`), and `z_2` is published by reconstruction; the others confirm and admission accepts | +| `channel_*` | a `SHARE` on the board; an `ANSWER` on the private channel; a `SHARE` addressed to another recipient | the board `SHARE` is ignored (digest unchanged); the other two count as an absent `SHARE`, so the recipient complains | +| `A8_withheld_extraction_dealer_aborts`, `A8_timing_*` | dealer marked by R4 or R5 | `A8` when R5 closes; an R4-marked dealer still sends its R5 complaints | +| `R1_*`, `R2_*`, `R3_*`, `R4_*`, `R5_*`, `R6_*` | conflicting or malformed `COMMITMENTS`, conflicting `SHARE`, duplicate complaints, more than `t` complaints, missing, bad, conflicting or unsolicited answers, conflicting `EXTRACTION`, invalid or conflicting extraction complaints, conflicting reconstruction | as named | +| `finding.F14_*` | all, or some, `EXTRACTION`s late; with and without A8 | see F14 below | +| `finding.S52_late_shares_reveal_key` | faulty `{1, 2}` (`t`); one `SHARE` per honest dealer late (3→4, 4→5, 5→3) | **documented model limitation (§5.2)**: nothing aborts and admission accepts, while the coalition recovers every `z_i` (its own two shares plus the public answer) and so `x` | +| `combine_*` | a bad extra share, fewer than `t + 1` shares, a share from outside `QUAL` | error | +| `admission_*` | §8 steps 2–6 (`authenticate` false only for listed bytes; `roundClosed` true unless the board model applies) | One lie, or `t` lies, are ignored and the run is admitted. `t + 1` differing refuse; with `n = 2t + 1` this is isolated only by the test-only 2-of-4 configuration (N8). Fewer than `t + 1` matching refuse. An equivocator counts as differing only (refuse where the superseded "both sets" reading would admit). A submitted set that omits confirmations, or an omitted round, fails round closure. Junk board posts do not veto. Stale-session, malformed, non-`CONFIRMATION` and unauthenticated confirmations are ignored. A malformed or other-session transcript message, or a misplaced `SHARE` or `CONFIRMATION`, refuses (step 2). An unauthenticated transcript message refuses (step 3). Byte-identical duplicate transcript messages count once. | +| `param_*` (sixth revision) | Duplicate roster keys (`hex:01,01,03`, and a standard roster with key 5 equal to key 1); distinct hex keys; `attempt = 2^64 − 1` | reject; accept; accept. Accepting cases carry `session`. | +| `param_*` | §1 bounds on `t`, `n`, key lengths, `ctx` and `attempt` | accept or reject | + +## Result + +All 514 checks pass. That includes 22 `spec_match` comparisons: +- Nine compare against independently pinned values: `G`, `encode(G)`, `encode(H)` and + `decode(encode(H))` against the threshold spec's references, and `scalar("sk")`, `PK`, + `Enc(1; scalar("k1"), PK)` and `C(42, 12345)` against the elgamal-v1 and pedersen-v1 pins. +- Thirteen are `spec_match.table.*` drift checks against the §11 table, whose values were + copied from this reference. + +`d = −10240/10241 mod p` matches the pin. BLAKE2b-256 matches the known answer for `"abc"` +and differs from truncated BLAKE2b-512. All 134 `case.*` vectors replay to their expected +outcome. + +| Fixture | `QUAL` | Marked | Counts r1–r6 | `digest` | +|---|---|---|---|---| +| `honest-2of3` | 1–3 | — | 3/0/0/3/0/0 | `2af7f7ea…aa46023` | +| `honest-3of5` | 1–5 | — | 5/0/0/5/0/0 | `edd7aa9f…7ffdcf71` | +| `honest-4of7` | 1–7 | — | 7/0/0/7/0/0 | `9b6a52fe…6c24431b` | +| `zero-share` | 1–3 | — | 3/0/0/3/0/0 | `8864e81d…e43fd43d` | +| `equal-shares` | 1–3 | — | 3/0/0/3/0/0 | `cee46443…933f041e` | +| `adversarial-4of7` | 1,2,4,5,6,7 | 1 (R4), 5 (R5) | 7/2/1/5/5/8 | `92ddd0e5…caa134a0` | + +`adversarial-4of7` reproduces the §11 script: +- the bad shares 1→2 and 3→4; +- the complaints 2→1 and 4→3; +- dealer 1's correct answer, and dealer 3 disqualified (`R3_answer_absent_or_conflict`); + participant 3 aborts with A2; +- dealer 1 withholds its `EXTRACTION`, and dealer 5 forges `A_51 + G`; +- valid extraction complaints from 1, 2, 4, 6 and 7; +- dealers 1 and 5 marked, both aborting with A8 when R5 closes; +- `RECONSTRUCTION`s from 2, 4, 6 and 7 for both dealers (exactly `t + 1` each); +- confirmations from 2, 4, 6 and 7; +- `y` and every `Y_j` equal to the values from the true polynomials, with dealers 1 and 5 + keeping their contributions. + +The deviators' lies are ignored by A7 and by admission, and the run is admitted. Two of +them come from `QUAL` members 1 and 5; the third comes from participant 3, which is outside +`QUAL`. Admission refuses with only three matching confirmations. Four differing `QUAL` +confirmations (`t + 1`) trigger A7. So does losing any one of the four honest +confirmations: fewer than `t + 1` then match. Every 4-subset of `QUAL` decrypts `Enc(5)`. + +In zero-share (width 1), `x_1 = 0`, `Y_1 = O` and `D_1 = O`. In equal-shares (width 1), +`Y_1 = Y_2 = Y_3 = [3]·G`. In both, every pair decrypts `Enc(1)`. + +## Spec ambiguities and findings + +### Findings against the original spec (1–18) + +These are kept as written when they were raised. The next section maps each one to the +spec's first revision. + +1. **§11, the roster.** "`key_j` = 32 bytes of value `j`" was read as 32 bytes each equal to + `j`. `I2OSP32(j)` would give a different session. +2. **§11, zero-share and equal-shares had no `ctx` or `attempt`.** Reusing the honest values + made their session identical to `honest-2of3`'s, against §2. +3. **§11, zero-share and equal-shares gave no width** for `Enc(1; …)`. +4. **Adversarial step 5 contradicted the §5 participant logic.** Only participants 1 and 2 + complained, though §5 makes participants 3 and 4 complain too. +5. **Adversarial step 6, "every participant `j ≠ i`".** This included the disqualified + participant 3, which would have aborted under A2, and the marked dealers. +6. **`EXTRACTION` from a disqualified dealer** was not addressed. +7. **The adversarial fixture had 4 deviating participants against `t = 2`.** +8. **R6 and A4.** + - The `C_ik` clause is implied by (4) on the chosen pairs: interpolation is linear. + - A4 is reachable only with `log_G H`. There is no profile vector; a trapdoor base + exercises it. +9. **§4, the subject range `1 … n`** was implied but not stated. +10. **R5 did not say how conflicting `EXTRACTION_COMPLAINT`s are treated.** +11. **R2, the participant logic, was undefined when `COMMITMENTS` is absent or in conflict.** +12. **§5, the `x_j` wording left out the participant's own `s_jj`.** +13. **§8 step 6 against A7.** Admission accepted a record that honest participants had + abandoned because of a differing confirmation. +14. **A late `EXTRACTION` revealed the key with no abort.** If every `EXTRACTION` was late, R6 + published every `f_i`, nothing aborted, and admission accepted. +15. **§9, shares only from `QUAL`.** `Y_j` was defined for every `j`, but shares came only from + `QUAL`; the spec gave no explanation. +16. **§6, what the transcript contains.** Ineffective broadcasts are included, and "rounds 1 + and 4 only" still encodes `u32(0)` for the empty rounds; neither was stated. +17. **§9, the extra-share check covers only extras.** An unverified bad share in `S` goes + undetected. This is informative. +18. **The BLAKE2b-256 pitfall.** Truncating BLAKE2b-512 gives different values. This is + informative. + +### Spec revision after this run + +#### First revision + +`docs/specs/elgamal-jubjub-threshold-v1.md` was revised after the first run. The script was +updated and re-run against the revised spec with the same independence rules. Both runs give +the same values for `honest-*`, the sessions of `session` and `honest-*`, the scalars and the +constants. The other values changed: +- the zero-share and equal-shares sessions, messages and digests; +- the adversarial fixture, which is replaced (`adversarial-3of5` became `adversarial-4of7`); +- the admission outcomes, which are now `admit` or `refuse` with a separate reason. + +| Finding | Resolution in the revised spec | Reference now | +|---|---|---| +| 1. Roster | §11 states 32 bytes each equal to `j` | Unchanged reading; the alternative-session key was removed. | +| 2. Session collision | zero-share: `ctx "zeroj.test.zero-share"`; equal-shares: `"zeroj.test.equal-shares"`; both `attempt 1` | Uses them; `check.sessions_distinct`. | +| 3. Width | `Enc(1)` at width 1 | Uses width 1. | +| 4, 5, 7. Adversarial script | Replaced by `adversarial-4of7`: `t = 3`, `n = 7`, exactly 3 deviators (1, 3, 5); everyone else follows §5; an aborting participant sends nothing afterwards | Implemented literally. Counts 7/2/1/5/5/8; aborts A8 (1), A2 (3), A8 (5). The alternative-reading digests were removed. | +| 6. `EXTRACTION` from a disqualified dealer | Implicit: only `QUAL` members broadcast, and participant 3 aborts with A2 | Unchanged. | +| 8. R6 and A4 | R6 notes the `C_ik` clause is implied by (4) and kept as a defensive check; §5.1 notes A4 is unreachable without `log_G H` | The trapdoor exercise is kept. | +| 9. Subject range | §4 states it | Unchanged. | +| 10. R5 conflicts | Every `EXTRACTION_COMPLAINT` is evaluated on its own, conflicting ones included | Unchanged; adds `rule.R5_conflicting_complaints_each_evaluated`. | +| 11. R2 without `COMMITMENTS` | No complaint against such a dealer | Unchanged; adds `check.rule.R2_no_complaint_*`. Also implements "a `SHARE` … in conflict" (`rule.R2_conflicting_share_complaint`). | +| 12. `x_j` wording | Includes own `s_jj` | Unchanged. | +| 13. Admission against A7 | §8 step 6 refused outright on any authenticated, differing `QUAL` confirmation; confirmations from outside `QUAL` were ignored | Implemented, then superseded by the threshold rule of the second revision (N2). | +| 14. Late `EXTRACTION`s | New abort A8, "own dealing marked for reconstruction" (participant check) | Implemented, checked when R5 closes. `finding.F14_all_extractions_late`: every dealer aborts with A8, no reconstruction, no confirmation, admission refuses. The pre-revision behaviour is kept as `finding.F14_all_extractions_late_pre_revision_without_A8` (key public, admitted). | +| 15. `QUAL`-only shares | §9 explains them | Unchanged. | +| 16. Transcript contents | §6 states that ineffective broadcasts are included and that empty rounds contribute `u32(0)` | Unchanged. | +| 17, 18. Informative | — | Unchanged. | + +#### Second revision + +The spec was revised again after findings N1–N5 below. Only the A7 and admission outputs +changed. All other output, including every digest, is byte-identical to the first-revision +run. + +| Finding | Resolution in the second revision | Reference now | +|---|---|---| +| N1. When checks run; silence after abort | §5.1 "When each check runs": R3 runs A1 and A2; R5 runs A8, before any `RECONSTRUCTION`; R6 runs A3–A6; R7 runs A7. An aborted participant sends nothing afterwards. | Already implemented this way; unchanged. | +| N2. One faulty member could veto | A7 is now a threshold: abort only if at least `t + 1` distinct `QUAL` members confirm another digest or `y`; up to `t` differing are ignored. §8 step 6 mirrors it: refuse if differing ≥ `t + 1`, and require matching ≥ `t + 1`. | Implemented: `abort.A7_*`, `rule.admission_one_lie_ignored`, `rule.admission_t_lies_ignored_N2`, `rule.admission_t_plus_1_differing_3of5`, `rule.admission_2of4_*`, `adversarial-4of7.check.{A7,admission}_*`. | +| N3. Malformed or stale confirmations | §8: malformed, other-session, non-`CONFIRMATION`, unauthenticated or non-`QUAL` inputs are ignored | Implemented: `rule.admission_{stale_session,malformed,non_confirmation}_*`, `abort.A7_3of5_{stale_session,malformed}_*`. | +| N4. The A8 explanation | Corrected: with every honest dealer late, nothing is published and the run ends in A3; with some late, an unmarked honest contribution keeps `x` secret | Matches `finding.F14_*`; unchanged. | +| N5. A8 liveness | §5.1: "A8 trades liveness for secrecy" | Unchanged. | + +#### Third revision + +The spec was revised a third time after findings N6–N8 below. Only the equivocation, +admission and round-7 outputs changed. Every digest and all fixture data are unchanged. + +| Finding | Resolution in the third revision | Reference now | +|---|---|---| +| N6. Submitted R7 set | §8 requires round-closure evidence for rounds 1–7. Round 7 is the canonical list of submitted, well-formed `CONFIRMATION`s for this session, passed to `roundClosed(7, …)`. | Implemented: `round7_list` (byte-identical copies once, ordered by sender then bytes as in §6), and a modelled `roundClosed(7, …)` that accepts only the list actually broadcast. In `finding.N6_round7_closure`, participants 1 and 2 abort with A7, the full set is refused (`differing_t_plus_1`), and the subset is refused (`round7_not_closed`). | +| N7. Equivocation in R7 | An equivocating `QUAL` member, with two different confirmations, counts as differing only, never as matching, for both A7 and admission | Implemented. Cases: `rule.admission_2of4_equivocator_differing_only=refuse` (the old reading would admit), `rule.admission_2of4_two_equivocators_t_plus_1_differing=refuse`, `rule.admission_2of4_one_equivocator_ignored=admit`, `rule.admission_3of5_equivocators_differing_only=refuse` (formerly `..._counted_in_both_sets_N7=admit`), `rule.admission_3of5_one_equivocator_among_all=admit`, `abort.A7_3of5_equivocators_count_as_differing=A7`, `abort.A7_2of4_one_equivocator_ignored=none`. | +| N8. Differing rule unobservable at `n = 2t + 1` | No new spec vector; the Java side tests `n = 2t + 2` directly | The test-only 2-of-4 configuration is kept. | + +#### Fourth revision (after an independent review) + +Every fixture value and digest is unchanged. The A7 and admission outputs changed, and new +cases and the `case.*` vectors were added. The `admission_*` keys that ended in `_N2` and +`_F13` were renamed. + +| Change | Spec | Reference now | +|---|---|---| +| (a) A9 | New participant abort: own `COMPLAINT` missing from the delivered R2 set, checked when R2 closes. An A9-aborted dealer stays in `QUAL` if uncomplained; its `z_j` is published by reconstruction, and `x` stays secret. | Implemented. `abort.A9_own_complaint_not_delivered` reproduces the §5.1 paragraph. | +| (b) A7 matching clause | A7 also fires when fewer than `t + 1` distinct `QUAL` members sent a confirmation equal to the participant's own. The participant's own counts only if delivered back. An equivocator is differing, never matching. | Implemented. New cases: `A7_2of3_only_own_delivered_too_few_matching`, `A7_2of3_own_not_delivered_back_*`, `A7_3of5_two_silent_members_too_few_matching`, `A7_3of5_equivocator_not_matching`, `adversarial-4of7.check.A7_on_fewer_than_t_plus_1_matching`. Existing A7 cases now include the checking participant's own confirmation. | +| (c) §4 channels | A `SHARE` only on the private channel, addressed to the recipient; every other kind only on broadcast | Implemented: `rule.channel_*`. | +| (d) §8 delivered set and `roundClosed` | `roundClosed(config, r, list)`; the delivered set drops malformed, other-session, other-round, `SHARE` and unauthenticated posts; the round-7 list holds authenticated confirmations only, from any sender, in §6 order | Implemented: `delivered_round`, `round7_list`, `rule.admission_junk_posts_do_not_veto`, `rule.admission_round_omitted_refused`, `check.rule.delivered_round_drops_junk`, unauthenticated cases. N9 (round-7 order and non-`QUAL` senders) is resolved by this text. | +| (e) §5.2 | Late private `SHARE`s are a secrecy precondition; descriptive, no rule change | `finding.S52_late_shares_reveal_key`: a documented model limitation, not a defect. | +| Review finding R7 | Java replays only the 6 fixtures | Rule, abort, finding, well-formedness, admission, combine and parameter cases emit `case.*` vectors (109 at this revision). The sixth revision lists the cases that still have none. | +| §11 table | The spec now pins values in its §11 table | `spec_match.table.*` compares them. The pins were copied from this reference's earlier output, so these are drift checks, not independent evidence. | + +#### Fifth revision + +| Finding | Resolution in the fifth revision | Reference now | +|---|---|---| +| N10. `SHARE` or `CONFIRMATION` among the transcript messages | §8 step 2: every transcript message must be a broadcast message of rounds 1–6. A well-formed `SHARE` or `CONFIRMATION` among them is **refused**, like a malformed one. | Implemented (reason `non_broadcast_transcript_message`). `admission_share_in_transcript_ignored_N10=admit` was replaced by `rule.admission_share_in_transcript_refused=refuse`, and `rule.admission_confirmation_in_transcript_refused=refuse` was added. Both are replay vectors (111 in all). | + +#### Sixth revision (round-3 review of the Java replay) + +| Item | Spec / request | Reference now | +|---|---|---| +| R10. Distinct roster keys | §1: roster keys must be pairwise distinct; a roster with equal keys is rejected | `validate_params` rejects duplicates. New cases `rule.param_duplicate_keys` (`roster=hex:01,01,03`, reject), `rule.param_duplicate_keys_standard_length` (reject) and `rule.param_distinct_hex_keys` (accept). The `lengths:` format now means "`key_j` is the byte `j` repeated", so its keys are distinct. The replay no longer builds `b"a"` twice. | +| R11. Parameter sessions | Replay should compare the derived session | Every accepting `param_*` vector carries `session`. New case `rule.param_attempt_2_64_minus_1` (accept). | +| R8. Refusal step | §8 steps 2–3 now say "every transcript message" | Every admission vector with `expect=refuse` carries `step`. Step 3 is modelled, with a new vector `rule.admission_unauthenticated_transcript_message_refused` (`step=3`). `check.rule.admission_refusal_steps` checks the mapping independently. | +| R9(a) | Malformed or other-session transcript messages | Vectors with `order=submission` (`step=2`). | +| R9(b) | Participant-only aborts | Vectors for `abort.A2_boundary_silent_dealer_1_participant_check` and `abort.A8_withheld_extraction_dealer_aborts` (public outcome). | +| R9(c) | Unverified bad share | `rule.combine_unverified_bad_share_in_S_not_5`, `expect=not_plaintext:5`. | +| R9(d) | Closure cases | `closure=board` with `board..` for `r = 1 … 7` and the board model. Vectors cover the junk-posts case, the omitted round, the round-7 honest run, a new omitted confirmation (`step=6`), and N6 (split into `finding.N6_round7_closure_full_set` and `_subset`). | +| R9(e) | Unauthenticated cases | `unauthenticated.`, with `authenticate(bytes)` false iff listed. | +| R9(f) | What cannot be replayed | Listed under "Notes on the vectors": the 20 A7 cases and the N6 summary, with reasons. | +| §8 step 2: duplicates | "Byte-identical duplicates among the submitted messages count once … not refused" | New vector `rule.admission_duplicate_transcript_messages_count_once` (`order=submission`, admit). | +| N11. Byte-level key distinctness (raised here; resolved in the spec) | §1 now says the check compares bytes and that an application with several key encodings must canonicalize | No change: the reference already compares bytes. | +| N12. Early posts (raised here; resolved in the spec) | §5 and §8 step 4 now define round `r`'s delivered set as messages of round `r` that arrived while round `r` was open; an early message is dropped, not carried forward | No change: the per-window reading is the one the board vectors encode (`admission_junk_posts_do_not_veto` drops an early round-2 `COMPLAINT` posted on `board.1`). | + +#### Seventh revision (round-4 review) + +| Item | Spec | Reference now | +|---|---|---| +| R14. Unauthenticated confirmations are ignored, not differing | §8 step 6 | `rule.admission_t_plus_1_unauthenticated_lies_ignored` (admit). The setup is 3-of-5: all five matching confirmations, plus well-formed differing confirmations from `QUAL` members 1, 2 and 3 (`t + 1`) listed in `unauthenticated.*`. Counting them as differing would refuse. The control, `rule.admission_t_plus_1_authenticated_lies_refused`, has the same lies authenticated: 1, 2 and 3 equivocate, so `t + 1` differ (refuse, `step=6`). | +| R15. The round-7 list includes non-`QUAL` senders | §8 step 6 | On adversarial-4of7, participant 3 is outside `QUAL`. `rule.admission_adversarial_4of7_round7_list_includes_non_qual` (`closure=board`) has `board.7` holding the four `QUAL` confirmations plus participant 3's, and the submitted `confirmation.*` include it: admit. The control, `rule.admission_adversarial_4of7_round7_non_qual_omitted_refused`, omits participant 3's confirmation from `confirmation.*` while `board.7` keeps it, so the round-7 list differs from the delivered set (refuse, `step=6`). | + +Case count 134 (rule 81); check count 514. The other values are unchanged. + +### Findings against the first revision (N1–N5, resolved by the second revision) + +- **N1. §5.1 does not say when each check is evaluated, or that an aborted participant falls + silent.** + - Only the §11 fixture says "aborts with A8 when R5 closes" and "a participant that aborts + sends nothing afterwards". Yet the fixture's bytes depend on both. + - Dealer 1 knows when R4 closes that its own `EXTRACTION` is absent. If A8 fired then, + dealer 1 would not send its R5 complaint, and the round-5 count would be 4, not 5. + Firing A8 only after R6 instead would let dealers 1 and 5 reconstruct each other, making + the round-6 count 10. + - The reference evaluates A1 and A2 when R3 closes, A8 when R5 closes (before R6), A3–A6 + after R6, and A7 in R7, and an aborted participant sends nothing afterwards. Mutation + testing confirms that the fixture detects the R4 timing. + - §5.1 should state the timing and the silence rule normatively. +- **N2. A single faulty `QUAL` member can veto any run** (design question, escalate). + - Under R7 with A7, and now §8 step 6, one authenticated, differing `CONFIRMATION` from any + `QUAL` member makes honest participants abort and admission refuse. A participant that + aborted can still send one. + - The demonstrations are `admission_n_minus_1_good_plus_differing_veto_N2=refuse` and + `adversarial-4of7.check.admission_refuses_differing_qual_confirmation`. + - GJKR07 New-DKG is robust: with at most `t` faults it always produces output (C1′). The + spec gives up guaranteed output for agreement checking, and since every retry needs a new + attempt, a faulty member can veto every attempt. + - This is a defensible trade-off, but the spec should state it, for example as a §12 + non-goal or a §5.1 note. +- **N3. Malformed or wrong-session confirmations at admission.** + - §8 step 6 refuses on any authenticated `QUAL` confirmation that "differs from the expected + bytes". Read literally, that includes a malformed message, or a valid confirmation from + another attempt of the same roster. A stale confirmation could then veto admission. + - The reference ignores anything that is not a well-formed `CONFIRMATION` for this session, + as A7 does (such messages are never delivered). + - Demonstrations: `admission_wrong_session_confirmation_ignored_N3=admit` and + `admission_malformed_confirmation_ignored_N3=admit`. + - §8 should say so. +- **N4. The A8 paragraph slightly misdescribes the all-late case.** + - It says R6 publishes the late dealers' polynomials and admission then fails for lack of + confirmations. But because A8 fires when R5 closes, before R6, in the all-late case every + honest participant has aborted before R6. The at most `t` faulty participants hold only + `t` pairs per dealer, so **nothing is published**: the recomputation ends in A3 (and see + `finding.F14_all_late_only_t_faulty_reconstruct`). + - Polynomials are published only when some honest dealer was not marked + (`finding.F14_partial_two_honest_late`: dealers 3 and 4 are reconstructed and the run is + admitted). The unmarked honest dealer's contribution then keeps `x` secret. + - The guarantee holds, but the explanation should say this. +- **N5. A8 costs liveness when an honest `EXTRACTION` is late.** + - Every honest dealer whose `EXTRACTION` was late stops confirming. Admission needs `t + 1` + matching confirmations, and in `adversarial-4of7` exactly `t + 1 = 4` participants + confirm. One more late honest `EXTRACTION` would make that run unadmittable. + - This is consistent with "assumptions stay assumptions", but it is worth one sentence. + This is informative. + +### Findings against the second revision (N6–N8, resolved by the third revision) + +These are kept as written; the key names they cite were later renamed (see the table above). + +- **N6. Admission's differing rule depends on which R7 confirmations are submitted** (design + question, escalate). + - A7 runs when R7 closes, after a participant has already sent its own `CONFIRMATION`. A + matching confirmation can therefore come from an honest participant that then aborts + under A7. + - §8 asks for round-closure evidence only for rounds 1–6, so a submitter can omit + differing confirmations. + - Outside the agreement assumption, admission can then accept a run that every honest + participant abandoned. The demonstration is + `finding.N6_admission_depends_on_submitted_R7_set` on a test-only 2-of-4 configuration: + - honest 1 and 2 saw one board; honest 3 and faulty 4 confirm another; + - participants 1 and 2 abort with A7; + - admission refuses when given all four confirmations, but admits when given only the two + matching ones. + - Step 6 still guarantees that an honest participant vouched for the record, but not that + it kept it. + - Options: require `roundClosed(7, …)` evidence for the confirmation set, or state that the + differing rule protects only against complete inputs. +- **N7. Equivocation within R7 is not defined.** Rounds 1–6 define conflicts; R7 does not. The + literal text counts a sender that sends both a matching and a differing confirmation in + both of §8's sets, and as differing for A7. The reference implements that + (`rule.admission_equivocators_counted_in_both_sets_N7=admit`, + `abort.A7_3of5_equivocators_count_as_differing=A7`). With at most `t` faulty participants + the guarantee is unaffected, but an implementation that drops conflicting senders would + count differently. The spec should say which reading applies. +- **N8. With `n = 2t + 1`, the differing rule is not observable.** Matching ≥ `t + 1` leaves at + most `t` other senders, so "differing ≤ `t`" holds automatically unless someone + equivocates. Every §11 fixture has `n = 2t + 1`, so none of them can tell an implementation + that skips the differing rule from a correct one. This reference isolates the rule with a + test-only 2-of-4 configuration (`ctx "zeroj.test.reference-only.2of4"`, which is not a spec + vector). §11 could add an admission vector with `n ≥ 2t + 2`. + +### Notes on the third revision + +- **N9 (minor wording, resolved by the fourth revision).** §8 said "the canonical list" for + round 7, but §6 defined the ordering only for rounds 1–6 of the transcript. It also did not + say whether `CONFIRMATION`s from senders outside `QUAL` belong in the list. The reference + applied §6's rule and included non-`QUAL` senders, which is what the spec now says. + +### Notes on the fourth revision + +- **N10 (resolved by the fifth revision: refused).** §8 step 2 required each transcript + message to be well-formed for this session, and a `SHARE` or `CONFIRMATION` is well-formed. + The reference first read such an input as ignored. The spec now refuses it, like a malformed + message. See the table above. + +Not covered here: +- the real application callbacks `authenticate` and `roundClosed` of §8. They are modelled: + authentication per input, and closure as "equals the delivered set of the true board"; +- context equality (§9); +- DLEQ proofs: the shares are local, so they count as verified; +- the in-circuit relations. + +## GJKR07 Fig. 2 against the spec + +**Agrees.** +- Pedersen-VSS commitments `C_ik = [a_ik]·G + [b_ik]·H`, and checks (4) and (5). +- Disqualification for more than `t` complaints, or for an answer that falsifies (4). +- `QUAL`, and `x_j = Σ_{i∈QUAL} s_ij`. +- Feldman extraction `A_ik`, and the extraction complaint "values that satisfy (4) and not + (5)". +- Public Pedersen-VSS reconstruction of every dealer with a valid complaint. +- `y = Σ_{i∈QUAL} A_i0`, and keeping a reconstructed dealer's contribution (§4.2). +- `t < n/2`. +- The verification keys `Y_j` are the paper's `g^{x_j}` of (C1′). + +**The spec adds** (none of it contradicts Fig. 2): +- **Absent or conflicting messages.** R1 conflicts, a missing `ANSWER` meaning + disqualification, and R4 marking on an absent `EXTRACTION`. R4 comes from the §4.2 prose + ("refusing to carry on the Feldman-VSS"); Fig. 2 step 4(c) itself reconstructs only after a + valid complaint. +- **Deterministic reconstruction.** The `t + 1` lowest senders, consistency of the rest, and + the A3 and A4 aborts. +- **Everything else outside Fig. 2.** + - aborts A1–A8; + - confirmation; + - transcript, digest and admission; + - threshold decryption, which comes from [CGS97], not GJKR07. + +**The spec omits** `x'_j = Σ s'_ij` (Fig. 2 step 3), which no output needs. Reconstruction +uses only `RECONSTRUCTION` messages, not the pairs already published in R3 answers or R5 +complaints. Fig. 2 is silent on that point, so this is not a contradiction. + +**The model differs.** GJKR07 assumes a synchronous network with reliable broadcast and private +channels, and its protocol always produces output. The spec closes rounds by deadline, treats +late messages as absent, and aborts rather than exclude a participant. Under the paper's model +the two produce the same outputs. Outside it: +- A8 closes the key-exposure gap of finding 14 for **late `EXTRACTION`s only**. +- Late private `SHARE`s remain the documented §5.2 limitation: the honest dealer's public + answer gives the faulty coalition the `(t + 1)`-th point (`finding.S52_late_shares_reveal_key`). +- A9 makes a participant whose own complaint was lost fall silent. +- The threshold A7 restores robustness against up to `t` lying confirmations (N2). +- Round-7 closure and the equivocation rule (N6, N7) govern R7, which is the spec's own + addition. + +No statement of the spec contradicts Fig. 2. diff --git a/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/elgamal_jubjub_threshold_v1_reference.py b/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/elgamal_jubjub_threshold_v1_reference.py new file mode 100644 index 00000000..d2cf64fa --- /dev/null +++ b/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/elgamal_jubjub_threshold_v1_reference.py @@ -0,0 +1,2377 @@ +#!/usr/bin/env python3 +""" +Independent reference for the ZeroJ profile `elgamal-jubjub-threshold-v1`. + +Written only from: + - docs/specs/elgamal-jubjub-threshold-v1.md (the spec under test), + - docs/specs/elgamal-jubjub-v1.md and docs/specs/pedersen-jubjub-v1.md (curve, G, H, + point encoding, sampler, encryption, decryption), + - Gennaro, Jarecki, Krawczyk, Rabin, "Secure Distributed Key Generation for Discrete-Log + Based Cryptosystems", J. Cryptology 20:51-83 (2007): Pedersen-VSS (Sec. 2.2, Lemma 1) + and New-DKG (Sec. 4, Fig. 2). + +No ZeroJ source code (Java or otherwise) was read. Python 3 standard library only. +The algorithms are deliberately simple: affine twisted-Edwards arithmetic with modular +inverses, double-and-add, direct (non-Horner) evaluation of sum_k [j^k]C_ik, Lagrange +interpolation with modular inverses, and a linear discrete-log search. + +Run from this directory: + + python3 elgamal_jubjub_threshold_v1_reference.py + +It prints key=value lines and rewrites reference-output.txt. Exit status 0 iff every check +passes; 1 otherwise (the failing keys are listed on stderr). +""" + +import hashlib +import itertools +import os +import platform +import random +import sys + +# ============================================================================= +# Output bookkeeping +# ============================================================================= + +LINES = [] +FAILED = [] + + +def emit(key, value): + if isinstance(value, bool): + value = "true" if value else "false" + LINES.append("%s=%s" % (key, value)) + + +def chk(key, cond): + cond = bool(cond) + emit(key, cond) + if not cond: + FAILED.append(key) + return cond + + +def fe(x): + """Field element or scalar: 0x + 64 lowercase hex digits.""" + return "0x%064x" % x + + +def ids(xs): + return ",".join(str(x) for x in xs) + + +def subset_name(xs): + return "-".join(str(x) for x in xs) + + +# ============================================================================= +# Curve (pedersen-jubjub-v1 §1). p and l are inputs; d is re-derived. +# ============================================================================= + +P = 0x73EDA753299D7D483339D80809A1D80553BDA402FFFE5BFEFFFFFFFF00000001 +L = 0x0E7DB4EA6533AFA906673B0101343B00A6682093CCC81082D0970E5ED6F72CB7 +D_PIN = 0x2A9318E74BFA2B48F5FD9207E6BD7FD4292D7F6D37579D2601065FD6D6343EB1 +A_EDW = P - 1 # a = -1 +D = (-10240 * pow(10241, -1, P)) % P # d = -10240/10241 mod p + +O = (0, 1) # identity + + +def on_curve(pt): + u, v = pt + if not (0 <= u < P and 0 <= v < P): + return False + uu = u * u % P + vv = v * v % P + return (A_EDW * uu + vv - 1 - D * uu % P * vv) % P == 0 + + +def padd(p1, p2): + """Unified affine twisted-Edwards addition, a = -1 (complete on Jubjub).""" + u1, v1 = p1 + u2, v2 = p2 + t = D * u1 % P * u2 % P * v1 % P * v2 % P + u3 = (u1 * v2 + v1 * u2) * pow((1 + t) % P, -1, P) % P + v3 = (v1 * v2 - A_EDW * u1 * u2) * pow((1 - t) % P, -1, P) % P + return (u3, v3) + + +def pneg(pt): + return ((-pt[0]) % P, pt[1]) + + +def psub(p1, p2): + return padd(p1, pneg(p2)) + + +_MUL_CACHE = {} + + +def pmul(k, pt): + """[k]·P for an integer k >= 0, plain double-and-add (no reduction of k).""" + if k < 0: + raise ValueError("negative scalar") + big = k.bit_length() > 16 + if big: + hit = _MUL_CACHE.get((k, pt)) + if hit is not None: + return hit + r = O + a = pt + kk = k + while kk: + if kk & 1: + r = padd(r, a) + kk >>= 1 + if kk: + a = padd(a, a) + if big: + _MUL_CACHE[(k, pt)] = r + return r + + +def smul(k, pt): + """[k mod l]·P, the spec's scalar multiplication.""" + return pmul(k % L, pt) + + +def in_subgroup(pt): + return on_curve(pt) and pmul(L, pt) == O + + +def psum(points): + acc = O + for q in points: + acc = padd(acc, q) + return acc + + +# --- square roots (Tonelli-Shanks) ------------------------------------------- + +def sqrt_mod(a): + a %= P + if a == 0: + return 0 + if pow(a, (P - 1) // 2, P) != 1: + return None + q, s = P - 1, 0 + while q % 2 == 0: + q //= 2 + s += 1 + z = 2 + while pow(z, (P - 1) // 2, P) != P - 1: + z += 1 + m, c, t, r = s, pow(z, q, P), pow(a, q, P), pow(a, (q + 1) // 2, P) + while t != 1: + i, t2 = 1, t * t % P + while t2 != 1: + t2 = t2 * t2 % P + i += 1 + b = pow(c, 1 << (m - i - 1), P) + m, c = i, b * b % P + t, r = t * c % P, r * b % P + assert r * r % P == a + return r + + +# --- point encoding (pedersen-jubjub-v1 §4) ----------------------------------- + +def encode(pt): + u, v = pt + return (v | ((u & 1) << 255)).to_bytes(32, "little") + + +def decode(b): + """Returns (point, None) or (None, reason). Canonical-only, with the ZIP 216 rule.""" + if len(b) != 32: + return None, "length" + x = int.from_bytes(b, "little") + sign = x >> 255 + v = x & ((1 << 255) - 1) + if v >= P: + return None, "noncanonical_v" + den = (D * v * v + 1) % P + if den == 0: + return None, "den_zero" + w = (v * v - 1) * pow(den, -1, P) % P + u = sqrt_mod(w) + if u is None: + return None, "non_square" + if u == 0 and sign == 1: + return None, "u_zero_sign_set" + if (u & 1) != sign: + u = P - u + return (u, v), None + + +# ============================================================================= +# Bases (pedersen-jubjub-v1 §2.1, §2.3) +# ============================================================================= + +G_FULL = (0x62EDCBB8BF3787C88B0F03DDD60A8187CAF55D1B29BF81AFE4B3D35DF1A7ADFE, 11) +G = pmul(8, G_FULL) + +G_U_PIN = 0x3EA5C4673A121CA35ED37EE3B172F5EE04315C657FBE375F512DFEA318D56FE5 +G_V_PIN = 0x57137B83EA6EDB4F78F7D30D3F616CB3B9AA6E8E40808413C10CEA38D50C55CB +G_ENC_PIN = "cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7" + +# H is taken from the values pinned in pedersen-jubjub-v1 §2.3 (not re-derived: that would +# need the Poseidon instance, which the pedersen-reference already reproduces). +H_U_PIN = 0x72963E7766B3CD553A1525A17DA810E6B4CDEB70541DAC5B52A3210F5C372DB6 +H_V_PIN = 0x60BB97D81759E04503194AEB9EB8FAA23B0092C941D1139BFE99907794C8E37D +H_ENC_PIN = "7de3c894779099fe9b13d141c992003ba2fab89eeb4a190345e05917d897bb60" +H = (H_U_PIN, H_V_PIN) + +# ============================================================================= +# Hashes, integers, test scalars +# ============================================================================= + + +def blake2b256(data): + # BLAKE2b with digest length parameter 32 (RFC 7693), unkeyed, no salt/personal. + return hashlib.blake2b(data, digest_size=32).digest() + + +def u8(x): + assert 0 <= x < 1 << 8 + return x.to_bytes(1, "big") + + +def u16(x): + assert 0 <= x < 1 << 16 + return x.to_bytes(2, "big") + + +def u32(x): + assert 0 <= x < 1 << 32 + return x.to_bytes(4, "big") + + +def u64(x): + assert 0 <= x < 1 << 64 + return x.to_bytes(8, "big") + + +def i2osp32(x): + assert 0 <= x < 1 << 256 + return x.to_bytes(32, "big") + + +SCALAR_PREFIX = "zeroj.elgamal.threshold.v1.test." +SCALARS_USED = {} + + +def scalar(tag): + """§11: OS2IP(SHA-256(UTF-8(prefix + tag))) mod l.""" + v = int.from_bytes(hashlib.sha256((SCALAR_PREFIX + tag).encode("utf-8")).digest(), "big") % L + SCALARS_USED[tag] = v + return v + + +def reference_only_scalar(tag): + """A scalar this reference invents for its own negative tests (never a spec value).""" + return int.from_bytes(hashlib.sha256(("zeroj.elgamal.threshold.v1.reference-only." + tag) + .encode("utf-8")).digest(), "big") % L + + +def scalar_v1(tag): + """elgamal-jubjub-v1 §12 test scalar, used only to cross-check against its pins.""" + return int.from_bytes(hashlib.sha256(("zeroj.elgamal.v1.test." + tag).encode("utf-8")) + .digest(), "big") % L + + +# ============================================================================= +# Polynomials mod l +# ============================================================================= + + +def poly_eval(coeffs, z): + """Direct sum of c_k * z^k (not Horner).""" + return sum(c * pow(z, k, L) for k, c in enumerate(coeffs)) % L + + +def poly_mul(f, g): + out = [0] * (len(f) + len(g) - 1) + for i, a in enumerate(f): + for j, b in enumerate(g): + out[i + j] = (out[i + j] + a * b) % L + return out + + +def interpolate(points): + """Coefficients (degree <= len-1) of the polynomial through `points`, mod l (Lagrange).""" + n = len(points) + coeffs = [0] * n + for m, (xm, ym) in enumerate(points): + num, den = [1], 1 + for q, (xq, _) in enumerate(points): + if q == m: + continue + num = poly_mul(num, [(-xq) % L, 1]) + den = den * ((xm - xq) % L) % L + f = ym * pow(den, -1, L) % L + for k in range(n): + coeffs[k] = (coeffs[k] + f * num[k]) % L + return coeffs + + +def lagrange_at_zero(S, j): + """§9: λ_j = Π_{m ∈ S, m ≠ j} m · (m − j)⁻¹ mod l.""" + r = 1 + for m in S: + if m != j: + r = r * m % L * pow((m - j) % L, -1, L) % L + return r + + +def lagrange_at(S, j, e): + """§9: L_{j,S}(e) = Π_{m ∈ S, m ≠ j} (e − m) · (j − m)⁻¹ mod l.""" + r = 1 + for m in S: + if m != j: + r = r * ((e - m) % L) % L * pow((j - m) % L, -1, L) % L + return r + + +# ============================================================================= +# §1, §2: parameters, configuration, session +# ============================================================================= + +DST_S = "zeroj.elgamal-jubjub-threshold.v1.session".encode("utf-8") +DST_T = "zeroj.elgamal-jubjub-threshold.v1.transcript".encode("utf-8") + + +def validate_params(t, n, ctx, attempt, keys): + if not (t >= 1): + raise ValueError("t < 1") + if not (n >= 2 * t + 1): + raise ValueError("n < 2t+1") + if not (n <= 64): + raise ValueError("n > 64") + if len(keys) != n: + raise ValueError("roster size != n") + for k in keys: + if not (1 <= len(k) <= 65535): + raise ValueError("key length") + if len(set(keys)) != len(keys): + raise ValueError("roster keys not pairwise distinct") + if not (0 <= len(ctx) <= 65535): + raise ValueError("ctx length") + if not (0 <= attempt < 1 << 64): + raise ValueError("attempt range") + + +class Config: + def __init__(self, t, n, ctx, attempt, keys): + validate_params(t, n, ctx, attempt, keys) + self.t, self.n, self.ctx, self.attempt, self.keys = t, n, ctx, attempt, list(keys) + pre = DST_S + u16(len(ctx)) + ctx + u64(attempt) + u8(t) + u8(n) + for k in keys: + pre += u16(len(k)) + k + self.preimage = pre + self.session = blake2b256(pre) + + +def roster(n): + """§11 'key_j = 32 bytes of value j' read as 32 bytes each equal to j (finding F1).""" + return [bytes([j]) * 32 for j in range(1, n + 1)] + + +# ============================================================================= +# §4: messages +# ============================================================================= + +KIND_ROUND = {1: 1, 2: 1, 3: 2, 4: 3, 5: 4, 6: 5, 7: 6, 8: 7} +KIND_NAME = {1: "COMMITMENTS", 2: "SHARE", 3: "COMPLAINT", 4: "ANSWER", 5: "EXTRACTION", + 6: "EXTRACTION_COMPLAINT", 7: "RECONSTRUCTION", 8: "CONFIRMATION"} +SUBJECT_ZERO = (1, 5, 8) +PAIR_KINDS = (2, 4, 6, 7) + + +def payload_len(kind, t): + if kind in (1, 5): + return 32 * (t + 1) + if kind == 3: + return 0 + return 64 # kinds 2, 4, 6, 7 (pair) and 8 (digest ‖ encode(y)) + + +def hdr(cfg, kind, sender, subject): + return cfg.session + u8(KIND_ROUND[kind]) + u8(kind) + u8(sender) + u8(subject) + + +def m_commitments(cfg, i, pts): + return hdr(cfg, 1, i, 0) + b"".join(encode(q) for q in pts) + + +def m_share(cfg, i, j, s, sp): + return hdr(cfg, 2, i, j) + i2osp32(s) + i2osp32(sp) + + +def m_complaint(cfg, j, i): + return hdr(cfg, 3, j, i) + + +def m_answer(cfg, i, j, s, sp): + return hdr(cfg, 4, i, j) + i2osp32(s) + i2osp32(sp) + + +def m_extraction(cfg, i, pts): + return hdr(cfg, 5, i, 0) + b"".join(encode(q) for q in pts) + + +def m_ext_complaint(cfg, j, i, s, sp): + return hdr(cfg, 6, j, i) + i2osp32(s) + i2osp32(sp) + + +def m_reconstruction(cfg, j, i, s, sp): + return hdr(cfg, 7, j, i) + i2osp32(s) + i2osp32(sp) + + +def m_confirmation(cfg, j, digest, y): + return hdr(cfg, 8, j, 0) + digest + encode(y) + + +class Msg: + __slots__ = ("raw", "round", "kind", "sender", "subject", "points", "pair", "digest", "y") + + def key(self): + return (self.kind, self.sender, self.subject) + + +def parse(cfg, raw): + """§4 well-formedness. Returns (Msg, None) or (None, reason).""" + if len(raw) < 36: + return None, "length" + rnd, kind, sender, subject = raw[32], raw[33], raw[34], raw[35] + if kind not in KIND_ROUND or KIND_ROUND[kind] != rnd: + return None, "round_kind" + if len(raw) != 36 + payload_len(kind, cfg.t): + return None, "length" + if raw[:32] != cfg.session: + return None, "session" + if not (1 <= sender <= cfg.n): + return None, "sender" + if kind in SUBJECT_ZERO: + if subject != 0: + return None, "subject" + else: + # "recipient/accused/complainer/reconstructed j ≠ sender"; 1..n implied (finding F9). + if not (1 <= subject <= cfg.n) or subject == sender: + return None, "subject" + m = Msg() + m.raw, m.round, m.kind, m.sender, m.subject = raw, rnd, kind, sender, subject + m.points = m.pair = m.digest = m.y = None + pl = raw[36:] + if kind in PAIR_KINDS: + s = int.from_bytes(pl[:32], "big") + sp = int.from_bytes(pl[32:], "big") + if s >= L or sp >= L: + return None, "scalar_range" + m.pair = (s, sp) + elif kind in (1, 5): + pts = [] + for k in range(cfg.t + 1): + q, why = decode(pl[32 * k:32 * k + 32]) + if q is None: + return None, "point_" + why + if not in_subgroup(q): + return None, "point_subgroup" + pts.append(q) + m.points = pts + elif kind == 8: + q, why = decode(pl[32:]) + if q is None: + return None, "point_" + why + if not in_subgroup(q): + return None, "point_subgroup" + m.digest, m.y = pl[:32], q + return m, None + + +def sort_key(m): + return (m.kind, m.sender, m.subject, m.raw) + + +class Delivered: + """Delivered broadcast sets of rounds 1-6 (SHARE and CONFIRMATION are excluded).""" + + def __init__(self, cfg, raw_list): + self.by_round = {r: {} for r in range(1, 7)} + self.rejected = [] + for raw in raw_list: + m, why = parse(cfg, raw) + if m is None: + self.rejected.append((raw, why)) + continue + if m.kind in (2, 8): + continue + self.by_round[m.round][raw] = m # byte-identical copies count once + self.ident = {r: {} for r in range(1, 7)} + for r in range(1, 7): + for m in self.by_round[r].values(): + self.ident[r].setdefault(m.key(), []).append(m) + + def unique(self, r, key): + """The message with this identity, or None if absent or in conflict.""" + lst = self.ident[r].get(key, []) + return lst[0] if len(lst) == 1 else None + + def ordered(self, r): + return sorted(self.by_round[r].values(), key=sort_key) + + +# ============================================================================= +# §6: transcript +# ============================================================================= + + +def transcript_bytes(cfg, dv): + out = DST_T + cfg.session + u8(cfg.t) + u8(cfg.n) + for r in range(1, 7): + ms = dv.ordered(r) + out += u32(len(ms)) + for m in ms: + out += u16(len(m.raw)) + m.raw + return out + + +# ============================================================================= +# §3: equations (4) and (5) -- right-hand sides evaluated directly, not by Horner +# ============================================================================= + + +def eq4(cfg, Cs, j, s, sp, Hb): + lhs = padd(smul(s, G), smul(sp, Hb)) + rhs = O + for k in range(cfg.t + 1): + rhs = padd(rhs, smul(pow(j, k, L), Cs[k])) + return lhs == rhs + + +def eq5(cfg, As, j, s): + lhs = smul(s, G) + rhs = O + for k in range(cfg.t + 1): + rhs = padd(rhs, smul(pow(j, k, L), As[k])) + return lhs == rhs + + +# ============================================================================= +# §5: public recomputation from the delivered broadcast sets +# ============================================================================= + + +def recompute(cfg, raw_broadcast, Hb=None, stop_after=None): + Hb = Hb or H + t, n = cfg.t, cfg.n + dv = Delivered(cfg, raw_broadcast) + R = {"dv": dv, "abort": None, "abort_detail": None} + tb = transcript_bytes(cfg, dv) + R["transcript"], R["digest"] = tb, blake2b256(tb) + + # R1 + C, dq = {}, {} + for i in range(1, n + 1): + m = dv.unique(1, (1, i, 0)) + if m is None: + dq[i] = "R1" + else: + C[i] = m.points + # R2 (a set of senders: duplicates count once) + complaints = {i: set() for i in range(1, n + 1)} + for m in dv.by_round[2].values(): + complaints[m.subject].add(m.sender) + # R3 + for i in range(1, n + 1): + if i in dq: + continue + if len(complaints[i]) > t: + dq[i] = "R3_more_than_t_complaints" + continue + for j in sorted(complaints[i]): + a = dv.unique(3, (4, i, j)) + if a is None: + dq[i] = "R3_answer_absent_or_conflict" + break + if not eq4(cfg, C[i], j, a.pair[0], a.pair[1], Hb): + dq[i] = "R3_answer_fails_eq4" + break + qual = [i for i in range(1, n + 1) if i not in dq] + R.update(C=C, dq=dq, complaints=complaints, qual=qual) + if len(qual) < n - t: + R["abort"] = "A1" + return R + if stop_after == "R3": + return R + + # R4 + A, marked = {}, {} + for i in qual: + m = dv.unique(4, (5, i, 0)) + if m is None: + marked[i] = "R4" + else: + A[i] = list(m.points) + A_published = {i: list(v) for i, v in A.items()} + # R5 (each well-formed complaint evaluated on its own; finding F10) + valid_ec = [] + for m in dv.ordered(5): + i, j = m.subject, m.sender + if i not in qual or i not in A_published: + continue + s, sp = m.pair + if eq4(cfg, C[i], j, s, sp, Hb) and not eq5(cfg, A_published[i], j, s): + valid_ec.append((j, i)) + marked.setdefault(i, "R5") + R.update(A_published=A_published, marked=marked, valid_ec=valid_ec) + if stop_after == "R5": + return R + + # R6 + recon = {} + for i in sorted(marked): + valid = [] + for j in range(1, n + 1): + lst = dv.ident[6].get((7, j, i), []) + if len(lst) != 1: + continue # absent or in conflict + s, sp = lst[0].pair + if eq4(cfg, C[i], j, s, sp, Hb): + valid.append((j, s, sp)) + if len(valid) < t + 1: + R["abort"], R["abort_detail"] = "A3", "dealer %d has %d valid pairs" % (i, len(valid)) + return R + base = valid[:t + 1] + a = interpolate([(j, s) for j, s, _ in base]) + b = interpolate([(j, sp) for j, _, sp in base]) + for j, s, sp in valid[t + 1:]: + if poly_eval(a, j) != s or poly_eval(b, j) != sp: + R["abort"], R["abort_detail"] = "A4", "off_polynomial dealer %d pair %d" % (i, j) + return R + for k in range(t + 1): + if padd(smul(a[k], G), smul(b[k], Hb)) != C[i][k]: + R["abort"], R["abort_detail"] = "A4", "commitment_mismatch dealer %d k %d" % (i, k) + return R + A[i] = [smul(a[k], G) for k in range(t + 1)] + recon[i] = {"valid": [j for j, _, _ in valid], "used": [j for j, _, _ in base], + "a": a, "b": b} + y = psum(A[i][0] for i in qual) + Y = {} + for j in range(1, n + 1): + acc = O + for i in qual: + for k in range(t + 1): + acc = padd(acc, smul(pow(j, k, L), A[i][k])) + Y[j] = acc + R.update(A=A, recon=recon, y=y, Y=Y) + if y == O: + R["abort"] = "A5" + return R + + +# ============================================================================= +# Dealing (§3) and a scripted run of the participants' logic (§5 private outputs) +# ============================================================================= + + +def deal(cfg, a, b, Hb): + out = {} + for i in range(1, cfg.n + 1): + Ai = [smul(a[i][k], G) for k in range(cfg.t + 1)] + Ci = [padd(Ai[k], smul(b[i][k], Hb)) for k in range(cfg.t + 1)] + s = {j: poly_eval(a[i], j) for j in range(1, cfg.n + 1)} + sp = {j: poly_eval(b[i], j) for j in range(1, cfg.n + 1)} + out[i] = {"a": a[i], "b": b[i], "A": Ai, "C": Ci, "s": s, "sp": sp} + return out + + +class Script: + """Deviations from honest behaviour. Defaults: everybody follows §5.""" + + def __init__(self): + self.commit = {} # i -> list of point lists (one message each); [] = withhold + self.share = {} # (i, j) -> (s, s') sent instead, or None = withhold + self.share_extra = {} # (i, j) -> extra pairs also sent privately (SHARE conflict) + self.private_raw = {} # (i, j) -> raw messages delivered privately instead (§4 channels) + self.complaint_ok = lambda j, i: True + self.answer = {} # (i, j) -> (s, s') sent instead, or None = withhold + self.extraction = {} # i -> list of point lists; [] = withhold (delivered to nobody) + self.ec_senders = None # None = every participant whose check fails; else a set + self.ec_pair = {} # (j, i) -> pair sent instead + self.recon_ok = lambda j, i: True + self.recon_pair = {} # (j, i) -> pair sent instead + self.drop = set() # identities (kind, sender, subject) never delivered + self.extra = {} # round -> list of raw messages also delivered (any sender) + + +def simulate(cfg, a, b, Hb=None, sc=None, a8=True): + """One run with a common delivered set per round (broadcast agreement). + + Participant aborts (§5.1) run as rounds close: A9 at R2, A1/A2 at R3, A8 at R5 (before + any RECONSTRUCTION), A3-A6 at R6, A7 at R7. A participant that aborts sends nothing + afterwards. `a8=False` reproduces the pre-revision behaviour (no A8) for the F14 + comparison only. + """ + Hb = Hb or H + sc = sc or Script() + t, n = cfg.t, cfg.n + dl = deal(cfg, a, b, Hb) + bc = [] + aborted = {} + + def live(j): + return j not in aborted + + def put(raw): + if (raw[33], raw[34], raw[35]) not in sc.drop: + bc.append(raw) + + def extras(r): + for raw in sc.extra.get(r, []): + bc.append(raw) + + # Round 1: COMMITMENTS (broadcast) and SHARE (private) + for i in range(1, n + 1): + for pts in sc.commit.get(i, [dl[i]["C"]]): + put(m_commitments(cfg, i, pts)) + priv = {} + for i in range(1, n + 1): + for j in range(1, n + 1): + if i == j: + continue + pair = sc.share.get((i, j), (dl[i]["s"][j], dl[i]["sp"][j])) + msgs = [] if pair is None else [m_share(cfg, i, j, *pair)] + msgs += [m_share(cfg, i, j, *p) for p in sc.share_extra.get((i, j), [])] + priv[(i, j)] = sc.private_raw.get((i, j), msgs) + extras(1) + + # Round 2: participants check (4) and complain + dv = Delivered(cfg, bc) + Cview = {} + for i in range(1, n + 1): + m = dv.unique(1, (1, i, 0)) + if m is not None: + Cview[i] = m.points + received = {} + sent_complaints = [] + for j in range(1, n + 1): + for i in range(1, n + 1): + if i == j or i not in Cview: + continue # R2: no complaint when COMMITMENTS is absent or in conflict + # §4 channels: on the private channel from i, accept only a SHARE from i to j. + wf_raws = set() + for raw in priv[(i, j)]: + pm, _ = parse(cfg, raw) + if pm is not None and pm.kind == 2 and pm.sender == i and pm.subject == j: + wf_raws.add(raw) + pair = parse(cfg, next(iter(wf_raws)))[0].pair if len(wf_raws) == 1 else None + if pair is not None and eq4(cfg, Cview[i], j, pair[0], pair[1], Hb): + received[(i, j)] = pair + elif sc.complaint_ok(j, i): # absent, in conflict, or fails (4) + raw = m_complaint(cfg, j, i) + sent_complaints.append((j, raw)) + put(raw) + extras(2) + for j, raw in sent_complaints: # R2 closes: A9 (own COMPLAINT not delivered) + if raw not in bc and live(j): + aborted[j] = "A9" + + # Round 3: dealers answer complaints + dv = Delivered(cfg, bc) + compl = {i: set() for i in range(1, n + 1)} + for m in dv.by_round[2].values(): + compl[m.subject].add(m.sender) + for i in range(1, n + 1): + if not live(i): + continue + for j in sorted(compl[i]): + pair = sc.answer.get((i, j), (dl[i]["s"][j], dl[i]["sp"][j])) + if pair is not None: + put(m_answer(cfg, i, j, *pair)) + extras(3) + st3 = recompute(cfg, bc, Hb, stop_after="R3") + qual = st3["qual"] + dv3 = st3["dv"] + for j in range(1, n + 1): # R3 closes: A1 (public), A2 (participant) + if not live(j): + continue + if st3["abort"] is not None: + aborted[j] = st3["abort"] + elif j not in qual: + aborted[j] = "A2" + + # Pairs held by participant j from dealer i ("its pair") + own = {} + for j in range(1, n + 1): + for i in range(1, n + 1): + if i == j: + own[(i, j)] = (dl[i]["s"][j], dl[i]["sp"][j]) # kept, not sent + elif (i, j) in received: + own[(i, j)] = received[(i, j)] + elif i in Cview: + ans = dv3.unique(3, (4, i, j)) + if ans is not None and eq4(cfg, Cview[i], j, ans.pair[0], ans.pair[1], Hb): + own[(i, j)] = ans.pair + + # Round 4: EXTRACTION from live QUAL dealers + for i in qual: + if live(i): + for pts in sc.extraction.get(i, [dl[i]["A"]]): + put(m_extraction(cfg, i, pts)) + extras(4) + + # Round 5: live participants check (5) and complain with their pairs + dv = Delivered(cfg, bc) + for j in range(1, n + 1): + if not live(j): + continue + for i in qual: + if i == j: + continue + m = dv.unique(4, (5, i, 0)) + pair = own.get((i, j)) + if m is None or pair is None: + continue + if not eq5(cfg, m.points, j, pair[0]): + if sc.ec_senders is None or j in sc.ec_senders: + put(m_ext_complaint(cfg, j, i, *sc.ec_pair.get((j, i), pair))) + extras(5) + st5 = recompute(cfg, bc, Hb, stop_after="R5") + marked = st5.get("marked", {}) + if a8: # R5 closes: A8 (participant) + for j in sorted(marked): + if live(j): + aborted[j] = "A8" + + # Round 6: live participants reconstruct every marked dealer i != j + for i in sorted(marked): + for j in range(1, n + 1): + if j == i or not live(j) or not sc.recon_ok(j, i): + continue + pair = sc.recon_pair.get((j, i), own.get((i, j))) + if pair is not None: + put(m_reconstruction(cfg, j, i, *pair)) + extras(6) + + res = recompute(cfg, bc, Hb) + + # Outputs and the remaining checks (A3/A4/A5 public, A6 participant) + x = {} + for j in range(1, n + 1): + if all((i, j) in own for i in res["qual"]): + x[j] = sum(own[(i, j)][0] for i in res["qual"]) % L + else: + x[j] = None + if not live(j): + continue + if res["abort"] is not None: + aborted[j] = res["abort"] + elif x[j] is None or smul(x[j], G) != res["Y"][j]: + aborted[j] = "A6" + conf = {} + if res["abort"] is None: + for j in res["qual"]: + if live(j): + conf[j] = m_confirmation(cfg, j, res["digest"], res["y"]) + r7 = [raw for raw in conf.values() if (raw[33], raw[34], raw[35]) not in sc.drop] + sc.extra.get(7, []) + for j in sorted(conf): # R7 closes: A7 + if confirmation_check(cfg, res, r7, j) is not None: + aborted[j] = "A7" + pab = {j: aborted.get(j) for j in range(1, n + 1)} + return {"cfg": cfg, "dl": dl, "bc": bc, "priv": priv, "own": own, "x": x, + "res": res, "pab": pab, "conf": conf, "Hb": Hb} + + +# ============================================================================= +# R7 / §5.1 A7, §8 admission (authenticate/roundClosed modelled as always true) +# ============================================================================= + + +def conf_sets(cfg, qual, digest, y, conf_raws): + """Distinct QUAL senders whose authenticated, well-formed (this session) CONFIRMATIONs + match (digest, y), and those that differ. A sender with two different confirmations is an + equivocator and counts as differing only. Inputs may be raw bytes (authenticated) or + (raw, authenticated) tuples; unauthenticated ones are dropped.""" + by_sender = {} + for item in conf_raws: + raw, auth = item if isinstance(item, tuple) else (item, True) + if not auth: + continue + m, _ = parse(cfg, raw) + if m is None or m.kind != 8 or m.sender not in qual: + continue + by_sender.setdefault(m.sender, set()).add(raw) + matching, differing = set(), set() + for j, raws in by_sender.items(): + if len(raws) == 1: + m = parse(cfg, next(iter(raws)))[0] + if m.digest == digest and m.y == y: + matching.add(j) + continue + differing.add(j) + return matching, differing + + +def confirmation_check(cfg, res, conf_raws, self_j): + """§5.1 A7 for participant self_j, run when R7 closes over its delivered round-7 view + `conf_raws`: abort if at least t + 1 distinct QUAL members differ from its own (digest, y), + or if fewer than t + 1 distinct members sent one equal to it. Its own confirmation counts + only if it was delivered back to it, like any other. Up to t lies are ignored.""" + matching, differing = conf_sets(cfg, res["qual"], res["digest"], res["y"], conf_raws) + if len(differing) >= cfg.t + 1 or len(matching) < cfg.t + 1: + return "A7" + return None + + +def round7_list(cfg, conf_raws): + """§8 step 6: the canonical list of authenticated, well-formed CONFIRMATIONs for this + session from any sender, byte-identical copies once, in §6 order.""" + ms = {} + for item in conf_raws: + raw, auth = item if isinstance(item, tuple) else (item, True) + if not auth: + continue + m, _ = parse(cfg, raw) + if m is not None and m.kind == 8: + ms[raw] = m + return [m.raw for m in sorted(ms.values(), key=sort_key)] + + +def delivered_round(cfg, posts, r): + """§8 step 4: a round's delivered set from its board posts: drop anything malformed, for + another session or round, a SHARE, or unauthenticated; byte-identical copies once; §6 + order. Posts are raw bytes (authenticated) or (raw, authenticated) tuples.""" + ms = {} + for item in posts: + raw, auth = item if isinstance(item, tuple) else (item, True) + if not auth: + continue + m, _ = parse(cfg, raw) + if m is None or m.round != r or m.kind == 2: + continue + ms[raw] = m + return [m.raw for m in sorted(ms.values(), key=sort_key)] + + +def refusal_step(reason): + """The §8 step at which `admit` refused.""" + if reason in ("malformed_transcript_message", "non_broadcast_transcript_message"): + return 2 + if reason == "unauthenticated_transcript_message": + return 3 + if reason in ("A1", "A3", "A4", "A5"): + return 5 + if reason.startswith("round") and reason != "round7_not_closed": + return 4 + return 6 # counting, or round-7 closure + + +def board_closure(cfg, boards, unauth=frozenset()): + """The closure model of the replay vectors: roundClosed(r, list) is true iff list equals + the delivered set (§8 step 4) of the posted board of round r (r = 1..7), where posts in + `unauth` fail authentication.""" + lists = {r: delivered_round(cfg, [p for p in boards.get(r, []) if p not in unauth], r) + for r in range(1, 8)} + return lambda cfg_, r, lst: lst == lists[r] + + +def admit(cfg, transcript_msgs, conf_raws, Hb=None, round_closed=None, boards=None, + unauth=frozenset()): + """§8 steps 2-6. Returns ("admit" | "refuse", reason). + + `authenticate(bytes)` is false iff bytes is in `unauth` (it also accepts the legacy + (raw, False) tuples on confirmations). With `boards` ({round: posts}), the transcript is + each round's delivered set (the library's deliveredRound). `round_closed(cfg, r, list)` + models the application's roundClosed for r = 1..7; None means always true. + """ + if boards is not None: + transcript_msgs = [raw for r in range(1, 7) + for raw in delivered_round(cfg, [p for p in boards.get(r, []) if p not in unauth], r)] + for raw in transcript_msgs: # step 2: well-formed for this session, + m, _ = parse(cfg, raw) # and a broadcast of rounds 1-6 + if m is None: + return "refuse", "malformed_transcript_message" + if m.kind in (2, 8): # a misplaced SHARE or CONFIRMATION + return "refuse", "non_broadcast_transcript_message" + for raw in transcript_msgs: # step 3: authenticate every transcript message + if raw in unauth: + return "refuse", "unauthenticated_transcript_message" + if round_closed is not None: # step 4 + for r in range(1, 7): + if not round_closed(cfg, r, delivered_round(cfg, transcript_msgs, r)): + return "refuse", "round%d_not_closed" % r + res = recompute(cfg, transcript_msgs, Hb) # step 5 + if res["abort"] in ("A1", "A3", "A4", "A5"): + return "refuse", res["abort"] + confs = [c for c in conf_raws if (c[0] if isinstance(c, tuple) else c) not in unauth] + if round_closed is not None and not round_closed(cfg, 7, round7_list(cfg, confs)): + return "refuse", "round7_not_closed" # step 6 + matching, differing = conf_sets(cfg, res["qual"], res["digest"], res["y"], confs) + if len(differing) >= cfg.t + 1: + return "refuse", "differing_t_plus_1" # mirrors A7 + if len(matching) < cfg.t + 1: + return "refuse", "fewer_than_t_plus_1_matching" + return "admit", "ok" + + +# ============================================================================= +# §9: threshold decryption +# ============================================================================= + + +class CombineError(Exception): + pass + + +def encrypt(m, k, pk): + """elgamal-jubjub-v1 §4: A = [k]G, B = [m]G + [k]PK.""" + return smul(k, G), padd(smul(m, G), smul(k, pk)) + + +def dlog(M, bound): + acc = O + for t in range(bound + 1): + if acc == M: + return t + acc = padd(acc, G) + return None + + +def combine(t, qual, Bc, shares, bound): + ids_ = sorted(shares) + if len(ids_) < t + 1: + raise CombineError("fewer than t+1 shares") + if any(j not in qual for j in ids_): + raise CombineError("share from outside QUAL") + S = ids_[:t + 1] + M = Bc + for j in S: + M = psub(M, smul(lagrange_at_zero(S, j), shares[j])) + for e in ids_[t + 1:]: + expect = psum(smul(lagrange_at(S, j, e), shares[j]) for j in S) + if expect != shares[e]: + raise CombineError("extra share %d inconsistent" % e) + m = dlog(M, bound) + if m is None: + raise CombineError("no plaintext in range") + return m + + +# ============================================================================= +# Replayable case vectors (review finding R7) +# ============================================================================= + +CASES = [] + + +def config_str(cfg): + return "%d,%d,%s,%d" % (cfg.t, cfg.n, cfg.ctx.hex(), cfg.attempt) + + +def public_expect(cfg, posts, Hb=None): + """The outcome a replay of the public rules must reproduce.""" + res = recompute(cfg, posts, Hb) + if res["abort"] in ("A1", "A3", "A4", "A5"): + return "abort=" + res["abort"] + return "qual=%s;marked=%s;y=%s" % (ids(res["qual"]), ids(sorted(res["marked"])), + encode(res["y"]).hex()) + + +def add_case(name, items): + """`items` is an ordered list of (suffix, value) emitted as case...""" + CASES.append((name, items)) + + +def transcript_items(cfg, posts, Hb=None): + items = [("config", config_str(cfg))] + if Hb is not None and Hb != H: + items.append(("H", encode(Hb).hex())) + dv = Delivered(cfg, posts) + canon = [m.raw for r in range(1, 7) for m in dv.ordered(r)] + items += [("msg.%d" % k, raw.hex()) for k, raw in enumerate(canon, 1)] + if len(posts) != len(canon) or set(posts) != set(canon): + items += [("raw.%d" % k, raw.hex()) for k, raw in enumerate(posts, 1)] + return items + + +def add_public_case(name, cfg, posts, Hb=None): + add_case(name, transcript_items(cfg, posts, Hb) + [("expect", public_expect(cfg, posts, Hb))]) + + +def roster_from_spec(spec, n): + """`standard`: key_j = 32 bytes of j; `lengths:L1,..`: key_j = byte j repeated L_j times + (pairwise distinct); `hex:k1,..`: the keys given in hex.""" + if spec == "standard": + return roster(n) + if spec.startswith("lengths:"): + return [bytes([j]) * int(x) for j, x in enumerate(spec[len("lengths:"):].split(","), 1)] + if spec.startswith("hex:"): + return [bytes.fromhex(x) for x in spec[len("hex:"):].split(",")] + raise ValueError("roster spec") + + +def replay_case(items): + """Re-derive a case's outcome from its emitted items only (vector self-consistency).""" + d = dict(items) + t_, n_, ctx_hex, att = d["config"].split(",") + t_, n_, att = int(t_), int(n_), int(att) + ctx_ = bytes.fromhex(ctx_hex) + if "params" in d: + try: + c = Config(t_, n_, ctx_, att, roster_from_spec(d["roster"], n_)) + return d["params"] == "accept" and d.get("session") == c.session.hex() + except ValueError: + return d["params"] == "reject" and "session" not in d + cfg_ = Config(t_, n_, ctx_, att, roster(n_)) + if "decode" in d: + return ("accept" if parse(cfg_, bytes.fromhex(d["msg.1"]))[0] is not None else "reject") == d["decode"] + if "ciphertext" in d: + ct = bytes.fromhex(d["ciphertext"]) + shares = {int(k.split(".")[1]): decode(bytes.fromhex(v))[0] for k, v in items if k.startswith("share.")} + qual_ = [int(x) for x in d["qual"].split(",")] + try: + got = "plaintext:%d" % combine(t_, qual_, decode(ct[32:])[0], shares, int(d["bound"])) + except CombineError: + got = "error" + if d["expect"].startswith("not_plaintext:"): + return got != "plaintext:" + d["expect"][len("not_plaintext:"):] + return got == d["expect"] + Hb = decode(bytes.fromhex(d["H"]))[0] if "H" in d else H + msgs = [bytes.fromhex(v) for k, v in items if k.startswith("msg.")] + raws = [bytes.fromhex(v) for k, v in items if k.startswith("raw.")] + confs = [bytes.fromhex(v) for k, v in items if k.startswith("confirmation.")] + unauth = frozenset(bytes.fromhex(v) for k, v in items if k.startswith("unauthenticated.")) + boards = {} + for k, v in items: + if k.startswith("board."): + boards.setdefault(int(k.split(".")[1]), []).append(bytes.fromhex(v)) + if d["expect"] in ("admit", "refuse"): + closure = board_closure(cfg_, boards, unauth) if d.get("closure") == "board" else None + v, r = admit(cfg_, msgs, confs, Hb, round_closed=closure, unauth=unauth) + if v != d["expect"]: + return False + return v == "admit" and "step" not in d or v == "refuse" and d.get("step") == str(refusal_step(r)) + ok = public_expect(cfg_, msgs, Hb) == d["expect"] + if raws: + ok = ok and public_expect(cfg_, raws, Hb) == d["expect"] + return ok + + +CASE_FAMILIES = ("abort.", "rule.", "finding.", "wf.") + + +def emit_cases(): + bad = [] + for name, items in CASES: + for suffix, value in items: + emit("case.%s.%s" % (name, suffix), value) + if not replay_case(items): + bad.append(name) + vectored = {name for name, _ in CASES} + internal = [] + for line in LINES: + key = line.split("=", 1)[0] + if key.startswith(CASE_FAMILIES) and key not in vectored and key not in internal: + internal.append(key) + emit("info.case_count", len(CASES)) + for fam in CASE_FAMILIES: + emit("info.case_count.%s" % fam[:-1], sum(1 for n, _ in CASES if n.startswith(fam))) + emit("info.case_internal_only", ",".join(internal)) + emit("info.case_replay_failures", ",".join(bad)) + chk("check.case_vectors_replay_self_consistent", not bad) + + +# ============================================================================= +# Fixture emission helpers +# ============================================================================= + +HONEST_CTX = b"zeroj.test.honest" + + +def coeffs_from_tags(n, t): + a = {i: [scalar("a.%d.%d" % (i, k)) for k in range(t + 1)] for i in range(1, n + 1)} + b = {i: [scalar("b.%d.%d" % (i, k)) for k in range(t + 1)] for i in range(1, n + 1)} + return a, b + + +def emit_run(F, sim): + cfg, dl, res = sim["cfg"], sim["dl"], sim["res"] + t, n = cfg.t, cfg.n + emit(F + ".t", t) + emit(F + ".n", n) + emit(F + ".ctx", cfg.ctx.hex()) + emit(F + ".attempt", cfg.attempt) + emit(F + ".session", cfg.session.hex()) + emit(F + ".qual", ids(res["qual"])) + emit(F + ".disqualified", ",".join("%d:%s" % (i, r) for i, r in sorted(res["dq"].items()))) + emit(F + ".marked", ids(sorted(res.get("marked", {})))) + emit(F + ".marked_by", ",".join("%d:%s" % (i, r) for i, r in sorted(res.get("marked", {}).items()))) + for i in range(1, n + 1): + for k in range(t + 1): + emit("%s.a.%d.%d" % (F, i, k), fe(dl[i]["a"][k])) + for i in range(1, n + 1): + for k in range(t + 1): + emit("%s.b.%d.%d" % (F, i, k), fe(dl[i]["b"][k])) + for i in range(1, n + 1): + for k in range(t + 1): + emit("%s.C.%d.%d" % (F, i, k), encode(dl[i]["C"][k]).hex()) + for i in range(1, n + 1): + for k in range(t + 1): + emit("%s.A.%d.%d" % (F, i, k), encode(dl[i]["A"][k]).hex()) + for i in range(1, n + 1): + for j in range(1, n + 1): + emit("%s.s.%d.%d" % (F, i, j), fe(dl[i]["s"][j])) + for i in range(1, n + 1): + for j in range(1, n + 1): + emit("%s.sp.%d.%d" % (F, i, j), fe(dl[i]["sp"][j])) + for j in range(1, n + 1): + if sim["x"][j] is not None: + emit("%s.x.%d" % (F, j), fe(sim["x"][j])) + emit(F + ".y", encode(res["y"]).hex()) + for j in range(1, n + 1): + emit("%s.Y.%d" % (F, j), encode(res["Y"][j]).hex()) + emit("%s.Y.%d.identity" % (F, j), res["Y"][j] == O) + dv = res["dv"] + for r in range(1, 7): + for m in dv.ordered(r): + emit("%s.msg.%d.%d.%d.%d" % (F, m.round, m.kind, m.sender, m.subject), m.raw.hex()) + for kind in range(1, 8): + if kind == 2: + continue + emit("%s.count.%s" % (F, KIND_NAME[kind]), len(dv.by_round[KIND_ROUND[kind]])) + emit(F + ".counts", ",".join(str(len(dv.by_round[r])) for r in range(1, 7))) + emit(F + ".transcript", res["transcript"].hex()) + emit(F + ".digest", res["digest"].hex()) + for j in res["qual"]: + if j in sim["conf"]: + emit("%s.confirmation.%d" % (F, j), sim["conf"][j].hex()) + for j in range(1, n + 1): + emit("%s.participant_abort.%d" % (F, j), sim["pab"][j] or "none") + + +def common_checks(F, sim, true_qual): + cfg, dl, res = sim["cfg"], sim["dl"], sim["res"] + t, n = cfg.t, cfg.n + chk(F + ".check.public_abort_none", res["abort"] is None) + chk(F + ".check.qual_expected", res["qual"] == true_qual) + y_ref = smul(sum(dl[i]["a"][0] for i in true_qual) % L, G) + chk(F + ".check.y_equals_sum_of_true_a_i0", res["y"] == y_ref) + ok_Y = all(res["Y"][j] == smul(sum(dl[i]["s"][j] for i in true_qual) % L, G) + for j in range(1, n + 1)) + chk(F + ".check.Y_equals_true_polynomials", ok_Y) + ok_x = all(sim["x"][j] == sum(dl[i]["s"][j] for i in true_qual) % L for j in range(1, n + 1)) + chk(F + ".check.x_equals_sum_of_true_shares", ok_x) + for j in range(1, n + 1): + chk("%s.check.A6.%d" % (F, j), smul(sim["x"][j], G) == res["Y"][j]) + chk(F + ".check.all_broadcasts_well_formed", all(parse(cfg, r)[0] is not None for r in sim["bc"])) + chk(F + ".check.all_shares_well_formed", + all(parse(cfg, r)[0] is not None for lst in sim["priv"].values() for r in lst)) + pts = [res["y"]] + list(res["Y"].values()) + [q for i in dl for q in dl[i]["C"] + dl[i]["A"]] + chk(F + ".check.encode_decode_roundtrip", all(decode(encode(q))[0] == q for q in pts)) + chk(F + ".check.all_points_in_subgroup", all(in_subgroup(q) for q in pts)) + # Arrival-order independence: shuffle the delivered broadcasts, add byte-identical copies. + same = True + for seed in (1, 2, 3): + msgs = list(sim["bc"]) + [sim["bc"][0], sim["bc"][-1], sim["bc"][len(sim["bc"]) // 2]] + random.Random(seed).shuffle(msgs) + r2 = recompute(cfg, msgs, sim["Hb"]) + same = same and r2["digest"] == res["digest"] and r2["qual"] == res["qual"] \ + and r2["y"] == res["y"] and r2["Y"] == res["Y"] + chk(F + ".check.digest_independent_of_arrival_order", same) + sent = list(sim["conf"].values()) + chk(F + ".check.confirmations_sent_by_live_qual_members", + sorted(sim["conf"]) == [j for j in res["qual"] if sim["pab"][j] is None]) + chk(F + ".check.confirmations_agree_A7_none", + all(confirmation_check(cfg, res, sent, j) is None for j in sim["conf"])) + chk(F + ".check.admission_accepts", admit(cfg, sim["bc"], sent, sim["Hb"])[0] == "admit") + + +def decryption_block(F, sim, m, width): + cfg, res = sim["cfg"], sim["res"] + t, qual = cfg.t, res["qual"] + bound = (1 << width) - 1 + k = scalar("enc.k") + Ac, Bc = encrypt(m, k, res["y"]) + emit(F + ".enc.m", m) + emit(F + ".enc.width", width) + emit(F + ".enc.A", encode(Ac).hex()) + emit(F + ".enc.B", encode(Bc).hex()) + Dsh = {} + for j in qual: + Dsh[j] = smul(sim["x"][j], Ac) + emit("%s.D.%d" % (F, j), encode(Dsh[j]).hex()) + # DLEQ relation (X = A, P = Y_j, D = D_j) holds with witness x_j (local share = verified) + chk(F + ".check.dleq_relations", + all(smul(sim["x"][j], G) == res["Y"][j] and smul(sim["x"][j], Ac) == Dsh[j] for j in qual)) + x_secret = sum(sim["dl"][i]["a"][0] for i in qual) % L + for S in itertools.combinations(qual, t + 1): + sn = subset_name(S) + for j in S: + emit("%s.lagrange.%s.%d" % (F, sn, j), fe(lagrange_at_zero(S, j))) + for S in itertools.combinations(qual, t + 1): + sn = subset_name(S) + try: + got = combine(t, qual, Bc, {j: Dsh[j] for j in S}, bound) + except CombineError as e: + got = "error:" + str(e) + emit("%s.decrypt.%s" % (F, sn), got) + chk("%s.check.decrypt.%s" % (F, sn), got == m) + chk("%s.check.sum_lambda_x.%s" % (F, sn), + sum(lagrange_at_zero(S, j) * sim["x"][j] for j in S) % L == x_secret) + try: + got = combine(t, qual, Bc, dict(Dsh), bound) + except CombineError as e: + got = "error:" + str(e) + emit(F + ".decrypt.all", got) + chk(F + ".check.extra_shares_consistent", got == m) + return Ac, Bc, Dsh + + +# ============================================================================= +# Main +# ============================================================================= + + +def main(): + t0 = __import__("time").time() + emit_header = [ + "# profile: elgamal-jubjub-threshold-v1 (independent reference, ADR-0053 M0)", + "# command: python3 elgamal_jubjub_threshold_v1_reference.py", + "# Python: %s" % platform.python_version(), + "# independence: written from docs/specs/elgamal-jubjub-threshold-v1.md, elgamal-jubjub-v1.md," + " pedersen-jubjub-v1.md and GJKR07 (Fig. 2, Sec. 2.2, Sec. 4) only; no ZeroJ source code was read", + ] + emit("profile", "elgamal-jubjub-threshold-v1") + + # ---------------------------------------------------------------- curve and bases + emit("curve.p", fe(P)) + emit("curve.l", fe(L)) + emit("curve.d", fe(D)) + chk("check.d_derived_matches_pin", D == D_PIN) + chk("check.d_nonsquare", pow(D, (P - 1) // 2, P) == P - 1) + chk("check.minus_one_square", pow(P - 1, (P - 1) // 2, P) == 1) + chk("check.g_full_on_curve", on_curve(G_FULL)) + chk("check.g_full_not_in_subgroup", pmul(L, G_FULL) != O) + emit("G.u", fe(G[0])) + emit("G.v", fe(G[1])) + emit("G.encoding", encode(G).hex()) + chk("spec_match.G.u", G[0] == G_U_PIN) + chk("spec_match.G.v", G[1] == G_V_PIN) + chk("spec_match.G.encoding", encode(G).hex() == G_ENC_PIN) + chk("check.G_in_subgroup_not_identity", in_subgroup(G) and G != O) + emit("H.u", fe(H[0])) + emit("H.v", fe(H[1])) + emit("H.encoding", encode(H).hex()) + chk("spec_match.H.encoding", encode(H).hex() == H_ENC_PIN) + chk("spec_match.H.decode", decode(bytes.fromhex(H_ENC_PIN))[0] == H) + chk("check.H_in_subgroup_not_identity_not_G", in_subgroup(H) and H != O and H != G) + # Cross-checks of G, H, Enc and the scalar convention against the referenced specs' pins. + sk = scalar_v1("sk") + pk = smul(sk, G) + chk("spec_match.elgamal_v1.scalar_sk", + sk == 0x0281799C40FB5BCA4F8CC6AF4812FAE96CDF7113E1AB203EA4D73FB7027E8343) + chk("spec_match.elgamal_v1.pk_encoding", + encode(pk).hex() == "36d7d5a69ac65a6761ac10fd3338bd4692939aefc4f5d5a1eb37477b29423e68") + a1, b1 = encrypt(1, scalar_v1("k1"), pk) + chk("spec_match.elgamal_v1.enc_1_k1", + (encode(a1) + encode(b1)).hex() == + "5c60657a3d709bbc2e68f03e5146b357b45066b21f21e914decbddefef876ea2" + "0115a214bbe47745f99a8130d1bd2b48b788883d95d468069d0677081dc5f772") + chk("spec_match.pedersen_v1.c_42_12345", + encode(padd(smul(42, G), smul(12345, H))).hex() == + "57d3e074295e7feb8231baa675b3da817c6d45929590ce747b17b7e73bc387e3") + # BLAKE2b-256 is the digest-length-32 instance, not truncated BLAKE2b-512. + chk("check.blake2b256_abc_kat", blake2b256(b"abc").hex() == + "bddd813c634239723171ef3fee98579b94964e3bb1cb3e427262c8c068d52319") + chk("check.blake2b256_is_not_truncated_blake2b512", + blake2b256(b"abc") != hashlib.blake2b(b"abc").digest()[:32]) + + # ---------------------------------------------------------------- sessions (§2) + session_fixtures = [ + ("session", 1, 3, b"zeroj.test.election", 1), + ("honest-2of3", 1, 3, HONEST_CTX, 1), + ("honest-3of5", 2, 5, HONEST_CTX, 1), + ("honest-4of7", 3, 7, HONEST_CTX, 1), + ("zero-share", 1, 3, b"zeroj.test.zero-share", 1), + ("equal-shares", 1, 3, b"zeroj.test.equal-shares", 1), + ("adversarial-4of7", 3, 7, b"zeroj.test.adversarial", 7), + ] + cfgs = {} + for name, t, n, ctx, att in session_fixtures: + cfgs[name] = Config(t, n, ctx, att, roster(n)) + emit("session.%s" % name, cfgs[name].session.hex()) + emit("session.session.preimage", cfgs["session"].preimage.hex()) + emit("session.session.key_1", roster(3)[0].hex()) + chk("check.sessions_distinct", len({c.session for c in cfgs.values()}) == len(cfgs)) + chk("check.session_attempt_changes_session", + Config(1, 3, b"zeroj.test.election", 2, roster(3)).session != cfgs["session"].session) + + # ---------------------------------------------------------------- honest fixtures + honest_sims = {} + for name, t, n in (("honest-2of3", 1, 3), ("honest-3of5", 2, 5), ("honest-4of7", 3, 7)): + cfg = cfgs[name] + a, b = coeffs_from_tags(n, t) + sim = simulate(cfg, a, b) + honest_sims[name] = sim + emit_run(name, sim) + common_checks(name, sim, list(range(1, n + 1))) + dv = sim["res"]["dv"] + chk(name + ".check.rounds_2_3_5_6_empty", + [len(dv.by_round[r]) for r in range(1, 7)] == [n, 0, 0, n, 0, 0]) + chk(name + ".check.no_marks", not sim["res"]["marked"]) + decryption_block(name, sim, 5, 3) + + # ---------------------------------------------------------------- zero-share, equal-shares + special_sims = {} + for name, slopes in (("zero-share", (1, 2, L - 6)), ("equal-shares", (1, 2, L - 3))): + cfg = cfgs[name] + a = {i: [1, slopes[i - 1]] for i in (1, 2, 3)} + b = {i: [scalar("b.%d.%d" % (i, k)) for k in range(2)] for i in (1, 2, 3)} + sim = simulate(cfg, a, b) + special_sims[name] = sim + emit_run(name, sim) + common_checks(name, sim, [1, 2, 3]) + Fc = [sum(a[i][k] for i in (1, 2, 3)) % L for k in range(2)] + emit(name + ".F_coeffs", ",".join(fe(c) for c in Fc)) + res = sim["res"] + chk(name + ".check.y_is_3G", res["y"] == smul(3, G)) + if name == "zero-share": + chk(name + ".check.F_is_3_minus_3z", Fc == [3, L - 3]) + chk(name + ".check.x_1_is_zero", sim["x"][1] == 0) + chk(name + ".check.Y_1_identity", res["Y"][1] == O) + chk(name + ".check.Y_j_is_F_j_G", + all(res["Y"][j] == smul(3 - 3 * j, G) for j in (1, 2, 3))) + else: + chk(name + ".check.F_is_3", Fc == [3, 0]) + chk(name + ".check.all_Y_equal_3G", all(res["Y"][j] == smul(3, G) for j in (1, 2, 3))) + chk(name + ".check.all_x_equal_3", all(sim["x"][j] == 3 for j in (1, 2, 3))) + _, _, Dsh = decryption_block(name, sim, 1, 1) + if name == "zero-share": + chk(name + ".check.D_1_identity", Dsh[1] == O) + + # ---------------------------------------------------------------- adversarial-4of7 + # Deviations of dealers 1, 3 and 5 only; everyone else (and the deviators otherwise) + # follows §5, and an aborting participant sends nothing afterwards. + F = "adversarial-4of7" + cfg = cfgs[F] + a, b = coeffs_from_tags(7, 3) + dl = deal(cfg, a, b, H) + sc = Script() + sc.share[(1, 2)] = ((dl[1]["s"][2] + 1) % L, dl[1]["sp"][2]) # R1 deviation, dealer 1 + sc.share[(3, 4)] = ((dl[3]["s"][4] + 1) % L, dl[3]["sp"][4]) # R1 deviation, dealer 3 + sc.answer[(3, 4)] = None # R3: dealer 3 silent + sc.extraction[1] = [] # R4: dealer 1 withholds + sc.extraction[5] = [[dl[5]["A"][0], padd(dl[5]["A"][1], G)] + dl[5]["A"][2:]] # R4: forged + sim = simulate(cfg, a, b, H, sc) + res = sim["res"] + emit_run(F, sim) + emit(F + ".share.1.2", sim["priv"][(1, 2)][0].hex()) + emit(F + ".share.3.4", sim["priv"][(3, 4)][0].hex()) + emit(F + ".A_broadcast.5.1", encode(padd(dl[5]["A"][1], G)).hex()) + for i in sorted(res["recon"]): + rc = res["recon"][i] + emit("%s.recon.%d.valid_senders" % (F, i), ids(rc["valid"])) + emit("%s.recon.%d.used_senders" % (F, i), ids(rc["used"])) + for k in range(cfg.t + 1): + emit("%s.recon.%d.a.%d" % (F, i, k), fe(rc["a"][k])) + emit("%s.recon.%d.b.%d" % (F, i, k), fe(rc["b"][k])) + emit("%s.recon.%d.A.%d" % (F, i, k), encode(res["A"][i][k]).hex()) + common_checks(F, sim, [1, 2, 4, 5, 6, 7]) + dv = res["dv"] + chk(F + ".check.qual_is_1_2_4_5_6_7", res["qual"] == [1, 2, 4, 5, 6, 7]) + chk(F + ".check.dealer3_disqualified", res["dq"] == {3: "R3_answer_absent_or_conflict"}) + chk(F + ".check.dealer1_marked", res["marked"].get(1) == "R4") + chk(F + ".check.dealer5_marked", res["marked"].get(5) == "R5") + chk(F + ".check.ext_complaints_1_2_4_6_7_valid", + res["valid_ec"] == [(1, 5), (2, 5), (4, 5), (6, 5), (7, 5)]) + chk(F + ".check.complaints_are_2_to_1_and_4_to_3", + sorted(m.key() for m in dv.by_round[2].values()) == [(3, 2, 1), (3, 4, 3)]) + chk(F + ".check.answer_is_1_to_2", + sorted(m.key() for m in dv.by_round[3].values()) == [(4, 1, 2)]) + chk(F + ".check.extractions_from_2_4_5_6_7", + sorted(m.sender for m in dv.by_round[4].values()) == [2, 4, 5, 6, 7]) + chk(F + ".check.reconstructions_from_2_4_6_7", + sorted((m.subject, m.sender) for m in dv.by_round[6].values()) == + [(1, j) for j in (2, 4, 6, 7)] + [(5, j) for j in (2, 4, 6, 7)]) + chk(F + ".check.reconstruction_uses_exactly_t_plus_1", + all(res["recon"][i]["valid"] == [2, 4, 6, 7] == res["recon"][i]["used"] for i in (1, 5))) + counts = [len(dv.by_round[r]) for r in range(1, 7)] + chk(F + ".check.message_counts_7_2_1_5_5_8", counts == [7, 2, 1, 5, 5, 8]) + y_ref = psum(smul(a[i][0], G) for i in (1, 2, 4, 5, 6, 7)) + chk(F + ".y_equals_reference", res["y"] == y_ref) + chk(F + ".check.dealers_1_5_contributions_kept", + res["A"][1] == dl[1]["A"] and res["A"][5] == dl[5]["A"]) + chk(F + ".check.bad_shares_fail_eq4", + not eq4(cfg, dl[1]["C"], 2, *parse(cfg, sim["priv"][(1, 2)][0])[0].pair, H) and + not eq4(cfg, dl[3]["C"], 4, *parse(cfg, sim["priv"][(3, 4)][0])[0].pair, H)) + chk(F + ".check.participant2_adopted_answer", sim["own"][(1, 2)] == (dl[1]["s"][2], dl[1]["sp"][2])) + chk(F + ".check.participant_aborts_A8_none_A2_none_A8_none_none", + [sim["pab"][j] for j in range(1, 8)] == ["A8", None, "A2", None, "A8", None, None]) + chk(F + ".check.confirmations_from_2_4_6_7", sorted(sim["conf"]) == [2, 4, 6, 7]) + chk(F + ".check.deviators_are_exactly_t", len({1, 3, 5}) == cfg.t) + # A7 and admission: the deviators' lies (QUAL members 1 and 5 confirming another record, + # participant 3 outside QUAL) are at most t, so they are ignored and the run is admitted. + good = [sim["conf"][j] for j in (2, 4, 6, 7)] + junk3 = m_confirmation(cfg, 3, b"\x00" * 32, G) + junk1 = m_confirmation(cfg, 1, b"\x00" * 32, G) + junk5 = m_confirmation(cfg, 5, b"\x00" * 32, G) + lies = [junk1, junk3, junk5] + chk(F + ".check.A7_ignores_deviator_lies", + all(confirmation_check(cfg, res, good + lies, j) is None for j in (2, 4, 6, 7))) + chk(F + ".check.admission_ignores_deviator_lies", admit(cfg, sim["bc"], good + lies) == ("admit", "ok")) + chk(F + ".check.admission_t_matching_refused", + admit(cfg, sim["bc"], good[:3] + lies) == ("refuse", "fewer_than_t_plus_1_matching")) + # t + 1 differing QUAL confirmations (1, 5 and two honest members on another board): A7. + other = [m_confirmation(cfg, j, b"\x22" * 32, res["y"]) for j in (6, 7)] + chk(F + ".check.A7_on_t_plus_1_differing", + confirmation_check(cfg, res, good[:2] + other + [junk1, junk5], 2) == "A7") + # Second A7 clause: if participant 7's confirmation is lost, 2, 4 and 6 see only 3 < t + 1 + # matching (themselves included) and abort. + chk(F + ".check.A7_on_fewer_than_t_plus_1_matching", + all(confirmation_check(cfg, res, good[:3], j) == "A7" for j in (2, 4, 6))) + decryption_block(F, sim, 5, 3) + adv_sim = sim + + # ---------------------------------------------------------------- negative / abort cases + base = honest_sims["honest-3of5"] + c3 = base["cfg"] + a3, b3 = coeffs_from_tags(5, 2) + d3 = base["dl"] + + def outcome(sim_, j=None): + r = sim_["res"] + if j is not None: + return sim_["pab"][j] or "none" + return r["abort"] or "none" + + def case(name, got, expected, prefix="abort", vec=None): + emit("%s.%s" % (prefix, name), got) + chk("check.%s.%s" % (prefix, name), got == expected) + if vec is not None: + add_public_case("%s.%s" % (prefix, name), vec["cfg"], vec["bc"], vec["Hb"]) + + + # A1: t+1 dealers silent -> |QUAL| = n - t - 1 + sc = Script() + for i in (1, 2, 3): + sc.commit[i] = [] + s_ = simulate(c3, a3, b3, H, sc) + case("A1_t_plus_1_dealers_silent", outcome(s_), "A1", vec=s_) + chk("check.abort.A1_qual", s_["res"]["qual"] == [4, 5]) + chk("check.abort.A1_every_participant_aborts", all(s_["pab"][j] == "A1" for j in range(1, 6))) + chk("check.abort.A1_admission_refuses", admit(c3, s_["bc"], []) == ("refuse", "A1")) + # A1 boundary: t dealers silent -> |QUAL| = n - t, no abort + sc = Script() + for i in (1, 2): + sc.commit[i] = [] + s_ = simulate(c3, a3, b3, H, sc) + case("A1_boundary_t_dealers_silent", outcome(s_), "none", vec=s_) + chk("check.abort.A1_boundary_y", s_["res"]["y"] == psum(d3[i]["A"][0] for i in (3, 4, 5))) + case("A2_boundary_silent_dealer_1_participant_check", outcome(s_, 1), "A2", vec=s_) + + # A2: dealer 1's correct ANSWER is lost (not delivered) -> participant 1 sees itself out + sc = Script() + sc.share[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + sc.drop.add((4, 1, 2)) + s_ = simulate(c3, a3, b3, H, sc) + case("A2_own_answer_not_delivered", outcome(s_, 1), "A2", vec=s_) + chk("check.abort.A2_public_no_abort", s_["res"]["abort"] is None and s_["res"]["qual"] == [2, 3, 4, 5]) + chk("check.abort.A2_participant_sends_nothing_after", + not any(m[34] == 1 and m[32] >= 4 for m in s_["bc"]) and 1 not in s_["conf"]) + + # A3: dealer 5 withholds EXTRACTION; only t participants reconstruct + sc = Script() + sc.extraction[5] = [] + sc.recon_ok = lambda j, i: j in (1, 2) + s_ = simulate(c3, a3, b3, H, sc) + case("A3_only_t_reconstructions", outcome(s_), "A3", vec=s_) + chk("check.abort.A3_admission_refuses", admit(c3, s_["bc"], []) == ("refuse", "A3")) + # A3: t+1 reconstructions but one fails (4) + sc = Script() + sc.extraction[5] = [] + sc.recon_ok = lambda j, i: j in (1, 2, 3) + sc.recon_pair[(3, 5)] = ((d3[5]["s"][3] + 1) % L, d3[5]["sp"][3]) + s_ = simulate(c3, a3, b3, H, sc) + case("A3_one_of_t_plus_1_reconstructions_fails_eq4", outcome(s_), "A3", vec=s_) + # control: t+1 valid reconstructions succeed and keep the contribution; dealer 5 aborts A8 + sc = Script() + sc.extraction[5] = [] + sc.recon_ok = lambda j, i: j in (1, 2, 3) + s_ = simulate(c3, a3, b3, H, sc) + case("A3_control_t_plus_1_valid_reconstructions", outcome(s_), "none", vec=s_) + chk("check.abort.A3_control_y", s_["res"]["y"] == base["res"]["y"] and s_["res"]["Y"] == base["res"]["Y"]) + case("A8_withheld_extraction_dealer_aborts", outcome(s_, 5), "A8", vec=s_) + chk("check.abort.A8_others_confirm", sorted(s_["conf"]) == [1, 2, 3, 4]) + # R6: a conflicting RECONSTRUCTION is excluded, the remaining t+1 suffice + sc = Script() + sc.extraction[5] = [] + sc.recon_ok = lambda j, i: j in (1, 2, 3, 4) + sc.extra[6] = [m_reconstruction(c3, 1, 5, (d3[5]["s"][1] + 7) % L, d3[5]["sp"][1])] + s_ = simulate(c3, a3, b3, H, sc) + case("R6_conflicting_reconstruction_excluded", outcome(s_), "none", prefix="rule", vec=s_) + chk("check.rule.R6_conflicting_reconstruction_senders", s_["res"]["recon"][5]["valid"] == [2, 3, 4]) + + # A4: needs a pair satisfying (4) that is off the polynomial, i.e. knowledge of log_G H. + # Exercised with a reference-only trapdoor base H' = [w]G (NOT the profile's H). + w = reference_only_scalar("trapdoor.w") + Ht = smul(w, G) + dt = deal(c3, a3, b3, Ht) + forged4 = ((dt[5]["s"][4] - w) % L, (dt[5]["sp"][4] + 1) % L) + forged1 = ((dt[5]["s"][1] - w) % L, (dt[5]["sp"][1] + 1) % L) + chk("check.abort.A4_forged_pair_satisfies_eq4_under_trapdoor", + eq4(c3, dt[5]["C"], 4, forged4[0], forged4[1], Ht) and forged4 != (dt[5]["s"][4], dt[5]["sp"][4])) + sc = Script() + sc.extraction[5] = [] + sc.recon_pair[(4, 5)] = forged4 + s_ = simulate(c3, a3, b3, Ht, sc) + case("A4_trapdoor_forged_extra_pair", outcome(s_), "A4", vec=s_) + emit("info.abort.A4_trapdoor_forged_extra_pair.detail", s_["res"]["abort_detail"]) + sc = Script() + sc.extraction[5] = [] + sc.recon_pair[(1, 5)] = forged1 + s_ = simulate(c3, a3, b3, Ht, sc) + case("A4_trapdoor_forged_base_pair", outcome(s_), "A4", vec=s_) + emit("info.abort.A4_trapdoor_forged_base_pair.detail", s_["res"]["abort_detail"]) + chk("check.abort.A4_fires_only_via_off_polynomial_clause", + s_["res"]["abort_detail"].startswith("off_polynomial")) + # The C_ik clause of R6 is implied by (4) on the t+1 base pairs (linearity), even when a + # base pair is forged with the trapdoor: interpolate base {1(forged),2,3} and compare. + base_pairs = [(1,) + forged1, (2, dt[5]["s"][2], dt[5]["sp"][2]), (3, dt[5]["s"][3], dt[5]["sp"][3])] + ai = interpolate([(j, s) for j, s, _ in base_pairs]) + bi = interpolate([(j, sp) for j, _, sp in base_pairs]) + chk("check.r6_commitment_clause_implied_by_eq4", + all(padd(smul(ai[k], G), smul(bi[k], Ht)) == dt[5]["C"][k] for k in range(3)) + and ai[0] != dt[5]["a"][0]) + # Same construction under the profile's H: the pair simply fails (4) and is not valid. + forgedH = ((d3[5]["s"][4] - w) % L, (d3[5]["sp"][4] + 1) % L) + sc = Script() + sc.extraction[5] = [] + sc.recon_pair[(4, 5)] = forgedH + s_ = simulate(c3, a3, b3, H, sc) + case("A4_same_construction_under_profile_H", outcome(s_), "none", vec=s_) + chk("check.abort.A4_profile_H_pair_excluded", s_["res"]["recon"][5]["valid"] == [1, 2, 3]) + + # A5: constant terms 1, 2, l-3 -> y = O + c2 = cfgs["honest-2of3"] + a2, b2 = coeffs_from_tags(3, 1) + a5 = {i: list(a2[i]) for i in a2} + a5[1][0], a5[2][0], a5[3][0] = 1, 2, L - 3 + s_ = simulate(c2, a5, b2) + case("A5_constant_terms_sum_to_zero", outcome(s_), "A5", vec=s_) + chk("check.abort.A5_y_identity", s_["res"]["y"] == O) + chk("check.abort.A5_admission_refuses", admit(c2, s_["bc"], []) == ("refuse", "A5")) + + # A6: dealer 5 publishes A_51 + G and no EXTRACTION_COMPLAINT is delivered + sc = Script() + sc.extraction[5] = [[d3[5]["A"][0], padd(d3[5]["A"][1], G), d3[5]["A"][2]]] + sc.ec_senders = set() + s_ = simulate(c3, a3, b3, H, sc) + case("A6_extraction_complaints_not_delivered", + ",".join(outcome(s_, j) for j in range(1, 6)), "A6,A6,A6,A6,A6", vec=s_) + chk("check.abort.A6_public_y_still_correct", s_["res"]["y"] == base["res"]["y"]) + + # A7: abort if >= t + 1 distinct QUAL members differ, or < t + 1 match (own confirmation + # counted only if delivered back). The checking participant is the first argument's owner. + def lie(cfg_, res_, j, kind): + if kind == "digest": + return m_confirmation(cfg_, j, bytes([res_["digest"][0] ^ 1]) + res_["digest"][1:], res_["y"]) + return m_confirmation(cfg_, j, res_["digest"], padd(res_["y"], G)) + + def a7(cfg_, res_, view, j): + return confirmation_check(cfg_, res_, view, j) or "none" + + r2_ = honest_sims["honest-2of3"]["res"] + conf2 = honest_sims["honest-2of3"]["conf"] + case("A7_2of3_one_lie_ignored", a7(c2, r2_, [conf2[1], lie(c2, r2_, 2, "digest"), conf2[3]], 1), "none") + case("A7_2of3_t_plus_1_digest_differs", + a7(c2, r2_, [conf2[1], lie(c2, r2_, 2, "digest"), lie(c2, r2_, 3, "digest")], 1), "A7") + case("A7_2of3_t_plus_1_y_differs", a7(c2, r2_, [conf2[1], lie(c2, r2_, 2, "y"), lie(c2, r2_, 3, "y")], 1), "A7") + case("A7_2of3_t_plus_1_mixed_digest_and_y", + a7(c2, r2_, [conf2[1], lie(c2, r2_, 2, "digest"), lie(c2, r2_, 3, "y")], 1), "A7") + case("A7_2of3_same_liar_twice_counts_once", + a7(c2, r2_, [conf2[1], lie(c2, r2_, 2, "digest"), lie(c2, r2_, 2, "y"), conf2[3]], 1), "none") + case("A7_control_all_agree", a7(c2, r2_, list(conf2.values()), 1), "none") + case("A7_2of3_own_and_one_other_suffice", a7(c2, r2_, [conf2[1], conf2[2]], 1), "none") + case("A7_2of3_only_own_delivered_too_few_matching", a7(c2, r2_, [conf2[1]], 1), "A7") + case("A7_2of3_own_not_delivered_back_too_few_matching", a7(c2, r2_, [conf2[2]], 1), "A7") + case("A7_2of3_own_not_delivered_back_but_two_others", a7(c2, r2_, [conf2[2], conf2[3]], 1), "none") + r3c = base["res"] + conf3c = base["conf"] + case("A7_3of5_t_lies_ignored", + a7(c3, r3c, [conf3c[j] for j in (1, 2, 3)] + [lie(c3, r3c, 4, "digest"), lie(c3, r3c, 5, "y")], 1), "none") + case("A7_3of5_t_plus_1_differing", + a7(c3, r3c, [conf3c[1], conf3c[2]] + [lie(c3, r3c, j, "digest") for j in (3, 4, 5)], 1), "A7") + case("A7_3of5_two_silent_members_too_few_matching", a7(c3, r3c, [conf3c[1], conf3c[2]], 1), "A7") + stale_cfg = Config(2, 5, b"zeroj.test.honest", 2, roster(5)) + stale = [m_confirmation(stale_cfg, j, r3c["digest"], padd(r3c["y"], G)) for j in (3, 4, 5)] + case("A7_3of5_stale_session_confirmations_ignored", + a7(c3, r3c, [conf3c[j] for j in (1, 2, 3)] + stale, 1), "none") + case("A7_3of5_malformed_confirmations_ignored", + a7(c3, r3c, [conf3c[j] for j in (1, 2, 3)] + [lie(c3, r3c, j, "digest")[:-1] for j in (4, 5)], 1), "none") + case("A7_3of5_unauthenticated_confirmations_ignored", + a7(c3, r3c, [conf3c[j] for j in (1, 2, 3)] + [(lie(c3, r3c, j, "digest"), False) for j in (4, 5)] + + [(conf3c[4], False)], 1), "none") + # Equivocation: 3 and 4 each send a matching and a differing confirmation, 5 a differing + # one: three distinct differing senders reach t + 1. + case("A7_3of5_equivocators_count_as_differing", + a7(c3, r3c, [conf3c[1], conf3c[2], conf3c[3], conf3c[4], lie(c3, r3c, 3, "digest"), + lie(c3, r3c, 4, "digest"), lie(c3, r3c, 5, "y")], 1), "A7") + # An equivocator never counts as matching: 1, 2 match, 3 equivocates -> 2 < t + 1 matching. + case("A7_3of5_equivocator_not_matching", + a7(c3, r3c, [conf3c[1], conf3c[2], conf3c[3], lie(c3, r3c, 3, "y")], 1), "A7") + + # ---------------------------------------------------------------- R1-R6 rule cases + # Conflicting COMMITMENTS disqualify (R1); both messages stay in the transcript. + sc = Script() + sc.commit[2] = [d3[2]["C"], [d3[2]["C"][0], padd(d3[2]["C"][1], G), d3[2]["C"][2]]] + s_ = simulate(c3, a3, b3, H, sc) + case("R1_conflicting_commitments", "%s;qual=%s" % (s_["res"]["dq"].get(2), ids(s_["res"]["qual"])), + "R1;qual=1,3,4,5", prefix="rule", vec=s_) + chk("check.rule.R1_conflict_both_in_transcript", + len(s_["res"]["dv"].by_round[1]) == 6 and + sum(1 for m in s_["res"]["dv"].by_round[1].values() if m.sender == 2) == 2) + chk("check.rule.R2_no_complaint_against_conflicting_commitments", + not any(m.subject == 2 for m in s_["res"]["dv"].by_round[2].values())) + # Malformed COMMITMENTS counts as absent (R1); no complaints against that dealer (R2). + sc = Script() + sc.commit[2] = [] + sc.extra[1] = [m_commitments(c3, 2, d3[2]["C"])[:-1]] + s_ = simulate(c3, a3, b3, H, sc) + case("R1_malformed_commitments_absent", s_["res"]["dq"].get(2), "R1", prefix="rule", vec=s_) + chk("check.rule.R2_no_complaint_against_absent_commitments", len(s_["res"]["dv"].by_round[2]) == 0) + # Two different SHAREs from a dealer to one recipient are a conflict: the recipient + # complains (R2), the dealer answers correctly and stays, the answer is adopted. + sc = Script() + sc.share_extra[(1, 2)] = [((d3[1]["s"][2] + 9) % L, d3[1]["sp"][2])] + s_ = simulate(c3, a3, b3, H, sc) + case("R2_conflicting_share_complaint", "complaints=%s;qual=%s;x_ok=%s" % ( + ",".join("%d->%d" % (m.sender, m.subject) for m in s_["res"]["dv"].ordered(2)), + ids(s_["res"]["qual"]), str(s_["x"] == base["x"]).lower()), + "complaints=2->1;qual=1,2,3,4,5;x_ok=true", prefix="rule", vec=s_) + # Duplicate byte-identical complaints count once. + sc = Script() + sc.share[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + sc.share[(1, 3)] = ((d3[1]["s"][3] + 1) % L, d3[1]["sp"][3]) + s_ref = simulate(c3, a3, b3, H, sc) + sc.extra[2] = [m_complaint(c3, 2, 1), m_complaint(c3, 2, 1)] + s_ = simulate(c3, a3, b3, H, sc) + case("R2_duplicate_identical_complaints", "complaints=%d;qual=%s" % ( + len(s_["res"]["complaints"][1]), ids(s_["res"]["qual"])), "complaints=2;qual=1,2,3,4,5", prefix="rule", vec=s_) + chk("check.rule.R2_duplicates_once_in_transcript", + len(s_["res"]["dv"].by_round[2]) == 2 and s_["res"]["digest"] == s_ref["res"]["digest"]) + chk("check.rule.R2_answered_complaints_keep_contribution", s_["res"]["y"] == base["res"]["y"]) + chk("check.rule.R2_participants_adopt_answers", s_["x"] == base["x"]) + # More than t complaints disqualify even when answered. + sc = Script() + for j in (2, 3, 4): + sc.share[(1, j)] = ((d3[1]["s"][j] + 1) % L, d3[1]["sp"][j]) + s_ = simulate(c3, a3, b3, H, sc) + case("R3_more_than_t_complaints", s_["res"]["dq"].get(1), "R3_more_than_t_complaints", prefix="rule", vec=s_) + # Unanswered complaint disqualifies. + sc = Script() + sc.share[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + sc.answer[(1, 2)] = None + s_ = simulate(c3, a3, b3, H, sc) + case("R3_unanswered_complaint", s_["res"]["dq"].get(1), "R3_answer_absent_or_conflict", prefix="rule", vec=s_) + # Answer failing (4) disqualifies. + sc = Script() + sc.share[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + sc.answer[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + s_ = simulate(c3, a3, b3, H, sc) + case("R3_answer_fails_eq4", s_["res"]["dq"].get(1), "R3_answer_fails_eq4", prefix="rule", vec=s_) + # Conflicting answers disqualify, even if one of them is correct. + sc = Script() + sc.share[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + sc.extra[3] = [m_answer(c3, 1, 2, (d3[1]["s"][2] + 5) % L, d3[1]["sp"][2])] + s_ = simulate(c3, a3, b3, H, sc) + case("R3_conflicting_answers", s_["res"]["dq"].get(1), "R3_answer_absent_or_conflict", prefix="rule", vec=s_) + # An ANSWER without a matching complaint has no effect (but is in the transcript). + sc = Script() + sc.extra[3] = [m_answer(c3, 1, 3, (d3[1]["s"][3] + 5) % L, d3[1]["sp"][3])] + s_ = simulate(c3, a3, b3, H, sc) + case("R3_answer_without_complaint", "qual=%s;round3=%d" % ( + ids(s_["res"]["qual"]), len(s_["res"]["dv"].by_round[3])), "qual=1,2,3,4,5;round3=1", prefix="rule", vec=s_) + chk("check.rule.R3_unsolicited_answer_changes_digest_only", + s_["res"]["digest"] != base["res"]["digest"] and s_["res"]["y"] == base["res"]["y"]) + # Conflicting EXTRACTION marks (R4); reconstruction keeps the contribution. + sc = Script() + sc.extraction[5] = [d3[5]["A"], [d3[5]["A"][0], d3[5]["A"][1], padd(d3[5]["A"][2], G)]] + s_ = simulate(c3, a3, b3, H, sc) + case("R4_conflicting_extraction", "%s;y_ok=%s" % (s_["res"]["marked"].get(5), + str(s_["res"]["y"] == base["res"]["y"]).lower()), "R4;y_ok=true", prefix="rule", vec=s_) + # Invalid extraction complaints have no effect. + sc = Script() + sc.extra[5] = [m_ext_complaint(c3, 3, 1, (d3[1]["s"][3] + 1) % L, d3[1]["sp"][3]), # fails (4) + m_ext_complaint(c3, 4, 1, d3[1]["s"][4], d3[1]["sp"][4])] # (5) holds + s_ = simulate(c3, a3, b3, H, sc) + case("R5_invalid_extraction_complaints", "marked=%s;round5=%d" % ( + ids(sorted(s_["res"]["marked"])), len(s_["res"]["dv"].by_round[5])), "marked=;round5=2", prefix="rule", vec=s_) + # Conflicting EXTRACTION_COMPLAINTs are each evaluated on their own: one valid pair marks. + sc = Script() + sc.extraction[5] = [[d3[5]["A"][0], padd(d3[5]["A"][1], G), d3[5]["A"][2]]] + sc.ec_senders = set() + sc.extra[5] = [m_ext_complaint(c3, 3, 5, d3[5]["s"][3], d3[5]["sp"][3]), # valid + m_ext_complaint(c3, 3, 5, (d3[5]["s"][3] + 1) % L, d3[5]["sp"][3])] # fails (4) + s_ = simulate(c3, a3, b3, H, sc) + case("R5_conflicting_complaints_each_evaluated", "marked_by=%s;round5=%d;y_ok=%s" % ( + s_["res"]["marked"].get(5), len(s_["res"]["dv"].by_round[5]), + str(s_["res"]["y"] == base["res"]["y"]).lower()), "marked_by=R5;round5=2;y_ok=true", prefix="rule", vec=s_) + # Extraction complaint against a dealer whose EXTRACTION is absent: invalid (R5 needs a + # well-formed, non-conflicting EXTRACTION); the dealer is marked by R4 only. + sc = Script() + sc.extraction[5] = [] + sc.extra[5] = [m_ext_complaint(c3, 1, 5, d3[5]["s"][1], d3[5]["sp"][1])] + s_ = simulate(c3, a3, b3, H, sc) + case("R5_complaint_against_dealer_without_extraction", "marked_by=%s;valid=%d;abort=%s" % ( + s_["res"]["marked"].get(5), len(s_["res"]["valid_ec"]), s_["res"]["abort"] or "none"), + "marked_by=R4;valid=0;abort=none", prefix="rule", vec=s_) + # Extraction complaint against a dealer outside QUAL has no effect. + sc = Script() + sc.commit[1] = [] + sc.extra[5] = [m_ext_complaint(c3, 3, 1, d3[1]["s"][3], d3[1]["sp"][3])] + s_ = simulate(c3, a3, b3, H, sc) + case("R5_complaint_against_non_qual", "marked=%s" % ids(sorted(s_["res"]["marked"])), "marked=", prefix="rule", vec=s_) + + # ---------------------------------------------------------------- F14 / A8 demonstration + x_true = sum(d3[i]["a"][0] for i in range(1, 6)) % L + + def f14_summary(s_): + rr = s_["res"] + recon = rr.get("recon", {}) + x_pub = len(recon) == 5 and sum(recon[i]["a"][0] for i in recon) % L == x_true + return "abort=%s;marked=%s;participant_aborts=%s;reconstructions=%d;confirmations=%d;" \ + "x_public=%s;admission=%s" % ( + rr["abort"] or "none", ids(sorted(rr.get("marked", {}))), + ",".join(s_["pab"][j] or "none" for j in range(1, 6)), + len(rr["dv"].by_round[6]), len(s_["conf"]), str(x_pub).lower(), + admit(c3, s_["bc"], list(s_["conf"].values()))[0]) + + # Every EXTRACTION is late (outside the synchrony assumption). With A8 every dealer aborts + # when R5 closes, nobody reconstructs (the public recomputation then ends in A3), no + # confirmation is sent, and admission refuses. + sc = Script() + for i in range(1, 6): + sc.extraction[i] = [] + s_ = simulate(c3, a3, b3, H, sc) + case("F14_all_extractions_late", f14_summary(s_), + "abort=A3;marked=1,2,3,4,5;participant_aborts=A8,A8,A8,A8,A8;reconstructions=0;" + "confirmations=0;x_public=false;admission=refuse", prefix="finding", vec=s_) + # The same run under the pre-revision rules (no A8): x public, admitted. + s_ = simulate(c3, a3, b3, H, sc, a8=False) + case("F14_all_extractions_late_pre_revision_without_A8", f14_summary(s_), + "abort=none;marked=1,2,3,4,5;participant_aborts=none,none,none,none,none;reconstructions=20;" + "confirmations=5;x_public=true;admission=admit", prefix="finding", vec=s_) + # Faulty participants 1 and 2 (= t) ignore A8 and reconstruct anyway: t pairs per dealer. + sc2 = Script() + for i in range(1, 6): + sc2.extraction[i] = [] + sc2.recon_ok = lambda j, i: j in (1, 2) + s_ = simulate(c3, a3, b3, H, sc2, a8=False) + case("F14_all_late_only_t_faulty_reconstruct", f14_summary(s_), + "abort=A3;marked=1,2,3,4,5;participant_aborts=A3,A3,A3,A3,A3;reconstructions=8;" + "confirmations=0;x_public=false;admission=refuse", prefix="finding", vec=s_) + # Partial: honest dealers 3 and 4 late, dealer 5 on time (faulty 1, 2 follow §5). 3 and 4 + # abort A8 and are reconstructed; 1, 2, 5 confirm (t+1) and admission accepts; z_5 stays + # hidden, so x is not computable from the transcript. + sc = Script() + sc.extraction[3] = [] + sc.extraction[4] = [] + s_ = simulate(c3, a3, b3, H, sc) + case("F14_partial_two_honest_late", f14_summary(s_), + "abort=none;marked=3,4;participant_aborts=none,none,A8,A8,none;reconstructions=6;" + "confirmations=3;x_public=false;admission=admit", prefix="finding", vec=s_) + chk("check.finding.F14_partial_y_correct", s_["res"]["y"] == base["res"]["y"]) + # A8 is checked when R5 closes, before R6: a dealer marked only by R5 still complains in R5. + sc = Script() + sc.extraction[1] = [] + sc.extraction[5] = [[d3[5]["A"][0], padd(d3[5]["A"][1], G), d3[5]["A"][2]]] + s_ = simulate(c3, a3, b3, H, sc) + case("A8_timing_marked_dealer_still_complains_in_R5", + "ec_senders=%s;recon_senders=%s;aborts=%s" % ( + ids(sorted({m.sender for m in s_["res"]["dv"].by_round[5].values()})), + ids(sorted({m.sender for m in s_["res"]["dv"].by_round[6].values()})), + ",".join(s_["pab"][j] or "none" for j in range(1, 6))), + "ec_senders=1,2,3,4;recon_senders=2,3,4;aborts=A8,none,none,none,A8", vec=s_) + + # ---------------------------------------------------------------- A9 and §4 channel rules + # A9: participant 2's COMPLAINT against dealer 1 (bad SHARE) is not delivered. It aborts at + # R2 close and falls silent; it stays in QUAL (nobody complained against it), its + # EXTRACTION is absent, so it is marked and its z_2 is published by reconstruction, while x + # stays secret (§5.1). + sc = Script() + sc.share[(1, 2)] = ((d3[1]["s"][2] + 1) % L, d3[1]["sp"][2]) + sc.drop.add((3, 2, 1)) + s_ = simulate(c3, a3, b3, H, sc) + rr = s_["res"] + case("A9_own_complaint_not_delivered", "aborts=%s;qual=%s;marked=%s;confirmations=%s;z2_published=%s;" + "admission=%s" % (",".join(s_["pab"][j] or "none" for j in range(1, 6)), ids(rr["qual"]), + ids(sorted(rr["marked"])), ids(sorted(s_["conf"])), + str(rr["recon"].get(2, {}).get("a", [None])[0] == d3[2]["a"][0]).lower(), + admit(c3, s_["bc"], list(s_["conf"].values()))[0]), + "aborts=none,A9,none,none,none;qual=1,2,3,4,5;marked=2;confirmations=1,3,4,5;z2_published=true;" + "admission=admit", vec=s_) + chk("check.abort.A9_y_correct", rr["y"] == base["res"]["y"]) + chk("check.abort.A9_participant_silent_after_R2", + not any(m[34] == 2 and m[32] >= 3 for m in s_["bc"]) and 2 not in s_["conf"]) + # §4: a SHARE posted on the broadcast board is ignored (not in the transcript). + sc = Script() + sc.extra[1] = [m_share(c3, 1, 2, d3[1]["s"][2], d3[1]["sp"][2])] + s_ = simulate(c3, a3, b3, H, sc) + case("channel_share_on_broadcast_ignored", "digest_unchanged=%s" % str( + s_["res"]["digest"] == base["res"]["digest"]).lower(), "digest_unchanged=true", prefix="rule", vec=s_) + # §4: any other kind on the private channel is refused: the SHARE counts as absent. + sc = Script() + sc.private_raw[(1, 2)] = [m_answer(c3, 1, 2, d3[1]["s"][2], d3[1]["sp"][2])] + s_ = simulate(c3, a3, b3, H, sc) + case("channel_non_share_on_private_refused", "complaints=%s;qual=%s" % ( + ",".join("%d->%d" % (m.sender, m.subject) for m in s_["res"]["dv"].ordered(2)), ids(s_["res"]["qual"])), + "complaints=2->1;qual=1,2,3,4,5", prefix="rule", vec=s_) + # §4: a SHARE whose subject is not the recipient is refused. + sc = Script() + sc.private_raw[(1, 2)] = [m_share(c3, 1, 3, d3[1]["s"][3], d3[1]["sp"][3])] + s_ = simulate(c3, a3, b3, H, sc) + case("channel_share_for_other_recipient_refused", "complaints=%s;qual=%s" % ( + ",".join("%d->%d" % (m.sender, m.subject) for m in s_["res"]["dv"].ordered(2)), ids(s_["res"]["qual"])), + "complaints=2->1;qual=1,2,3,4,5", prefix="rule", vec=s_) + + # ---------------------------------------------------------------- §5.2 demonstration + # Documented model limitation (§5.2): late private SHAREs. Faulty coalition {1, 2} (= t); + # each honest dealer 3, 4, 5 has one SHARE to an honest participant arrive late (3->4, + # 4->5, 5->3). Each recipient complains, the honest dealer answers in public, and that + # public pair is the (t + 1)-th point of its polynomial for the coalition. The coalition + # recovers every z_i and hence x. Nothing aborts and admission accepts. + sc = Script() + for i, j in ((3, 4), (4, 5), (5, 3)): + sc.share[(i, j)] = None + s_ = simulate(c3, a3, b3, H, sc) + rr = s_["res"] + x_rec = (d3[1]["a"][0] + d3[2]["a"][0]) % L + for m in rr["dv"].ordered(3): + i, j = m.sender, m.subject + pts = [(1, d3[i]["s"][1]), (2, d3[i]["s"][2]), (j, m.pair[0])] + x_rec = (x_rec + interpolate(pts)[0]) % L + x_true = sum(d3[i]["a"][0] for i in range(1, 6)) % L + case("S52_late_shares_reveal_key", "aborts=%s;qual=%s;answers=%d;admission=%s;coalition_recovers_x=%s" % ( + ",".join(s_["pab"][j] or "none" for j in range(1, 6)), ids(rr["qual"]), len(rr["dv"].by_round[3]), + admit(c3, s_["bc"], list(s_["conf"].values()))[0], str(x_rec == x_true).lower()), + "aborts=none,none,none,none,none;qual=1,2,3,4,5;answers=3;admission=admit;coalition_recovers_x=true", + prefix="finding", vec=s_) + emit("info.finding.S52_late_shares_reveal_key", "documented model limitation (spec §5.2), not a defect") + + # ---------------------------------------------------------------- combine negatives (§9) + r3_ = base["res"] + Ac, Bc = encrypt(5, scalar("enc.k"), r3_["y"]) + Dsh = {j: smul(base["x"][j], Ac) for j in r3_["qual"]} + bad = dict(Dsh) + bad[5] = padd(bad[5], G) + + case("combine_extra_share_mismatch", _combine_status(2, r3_["qual"], Bc, bad), "error", prefix="rule") + case("combine_too_few_shares", _combine_status(2, r3_["qual"], Bc, {1: Dsh[1], 2: Dsh[2]}), + "error", prefix="rule") + # An unverified bad share inside S is not caught by the extra-share check (there is none): + # the result is not 5. This is why §9 requires DLEQ-verified shares. + case("combine_unverified_bad_share_in_S_not_5", + _combine_status(2, r3_["qual"], Bc, {1: Dsh[1], 2: Dsh[2], 5: bad[5]}) != "5", True, + prefix="rule") + adv_r = adv_sim["res"] + Aa, Ba = encrypt(5, scalar("enc.k"), adv_r["y"]) + adv_sh = {j: smul(adv_sim["x"][j], Aa) for j in (2, 3, 4, 6)} + case("combine_share_from_non_qual", _combine_status(3, adv_r["qual"], Ba, adv_sh), "error", + prefix="rule") + + def combine_case(name, cfg_, qual_, A_, B_, shares, bound, expect=None): + st = _combine_status(cfg_.t, qual_, B_, shares) + items = [("config", config_str(cfg_)), ("qual", ids(qual_)), ("bound", bound), + ("ciphertext", (encode(A_) + encode(B_)).hex())] + items += [("share.%d" % j, encode(shares[j]).hex()) for j in sorted(shares)] + add_case("rule." + name, items + [("expect", expect or ("error" if st == "error" else "plaintext:" + st))]) + + combine_case("combine_extra_share_mismatch", c3, r3_["qual"], Ac, Bc, bad, 7) + combine_case("combine_too_few_shares", c3, r3_["qual"], Ac, Bc, {1: Dsh[1], 2: Dsh[2]}, 7) + combine_case("combine_share_from_non_qual", adv_sim["cfg"], adv_r["qual"], Aa, Ba, adv_sh, 7) + combine_case("combine_all_verified_shares", c3, r3_["qual"], Ac, Bc, Dsh, 7) + combine_case("combine_unverified_bad_share_in_S_not_5", c3, r3_["qual"], Ac, Bc, + {1: Dsh[1], 2: Dsh[2], 5: bad[5]}, 7, expect="not_plaintext:5") + + # ---------------------------------------------------------------- admission (§8 step 6) + # Each case also yields a replay vector: the transcript messages, the confirmations, the + # unauthenticated bytes, the raw boards (closure cases) and admit/refuse with its step. + def adm(name, cfg_, msgs, confs, expected, reason=None, order="transcript", boards=None, + derive=False, unauth=frozenset(), family="rule"): + """Run admission, check it, and emit its replay vector. + + order: "transcript" (msg.* = §6 transcript), "all_kinds" (every submitted well-formed + message, misplaced kinds included, in §6 sort order) or "submission" (as submitted, + for unparsable messages). boards ({1..7: posts}) switches on the board closure model; + derive=True submits each round's delivered set of the board (deliveredRound).""" + closure = board_closure(cfg_, boards, unauth) if boards is not None else None + if derive: + msgs = [raw for r in range(1, 7) + for raw in delivered_round(cfg_, [x for x in boards.get(r, []) if x not in unauth], r)] + v, r = admit(cfg_, msgs, confs, round_closed=closure, unauth=unauth) + emit("%s.%s" % (family, name), v) + emit("info.%s.%s.reason" % (family, name), r) + chk("check.%s.%s" % (family, name), v == expected and (reason is None or r == reason)) + items = [("config", config_str(cfg_))] + if order == "all_kinds": + ms = {raw: parse(cfg_, raw)[0] for raw in msgs} + items += [("msg.%d" % k, m.raw.hex()) for k, m in enumerate(sorted(ms.values(), key=sort_key), 1)] + elif order == "submission": + items += [("order", "submission")] + items += [("msg.%d" % k, raw.hex()) for k, raw in enumerate(msgs, 1)] + else: + items = transcript_items(cfg_, msgs) + items += [("confirmation.%d" % k, raw.hex()) for k, raw in enumerate(confs, 1)] + items += [("unauthenticated.%d" % k, raw.hex()) for k, raw in enumerate(sorted(unauth), 1)] + if boards is not None: + items += [("closure", "board")] + for rr in range(1, 8): + items += [("board.%d.%d" % (rr, k), raw.hex()) for k, raw in enumerate(boards.get(rr, []), 1)] + items += [("expect", v)] + if v == "refuse": + items += [("step", str(refusal_step(r)))] + add_case("%s.%s" % (family, name), items) + + conf3 = base["conf"] + q = r3_["qual"] + B = base["bc"] + adm("admission_all_confirmations", c3, B, [conf3[j] for j in q], "admit") + adm("admission_t_plus_1_confirmations", c3, B, [conf3[j] for j in (1, 3, 5)], "admit") + adm("admission_t_confirmations", c3, B, [conf3[j] for j in (1, 3)], "refuse", "fewer_than_t_plus_1_matching") + adm("admission_duplicate_sender_counts_once", c3, B, [conf3[1], conf3[1], conf3[3]], "refuse", + "fewer_than_t_plus_1_matching") + adm("admission_byte_identical_duplicate_ok", c3, B, [conf3[1], conf3[1], conf3[2], conf3[3]], "admit") + lie4, lie5 = lie(c3, r3_, 4, "digest"), lie(c3, r3_, 5, "y") + adm("admission_one_lie_ignored", c3, B, [conf3[j] for j in (1, 2, 3, 4)] + [lie5], "admit") + adm("admission_t_plus_1_matching_plus_one_lie", c3, B, [conf3[1], conf3[2], conf3[3], lie5], "admit") + adm("admission_t_lies_ignored", c3, B, [conf3[1], conf3[2], conf3[3], lie4, lie5], "admit") + adm("admission_t_matching_plus_lie", c3, B, [conf3[1], conf3[3], lie5], "refuse", "fewer_than_t_plus_1_matching") + adm("admission_t_plus_1_differing_3of5", c3, B, + [conf3[1], conf3[2]] + [lie(c3, r3_, j, "digest") for j in (3, 4, 5)], "refuse", "differing_t_plus_1") + # n = 2t + 1 cannot isolate the differing rule; a reference-only 2-of-4 configuration does. + c4 = Config(1, 4, b"zeroj.test.reference-only.2of4", 1, roster(4)) + a24, b24 = coeffs_from_tags(4, 1) + s24 = simulate(c4, a24, b24) + r24, cf24 = s24["res"], s24["conf"] + B4 = s24["bc"] + adm("admission_2of4_matching_and_t_plus_1_differing", c4, B4, + [cf24[1], cf24[2], lie(c4, r24, 3, "digest"), lie(c4, r24, 4, "y")], "refuse", "differing_t_plus_1") + adm("admission_2of4_matching_and_t_differing", c4, B4, [cf24[1], cf24[2], cf24[3], lie(c4, r24, 4, "y")], + "admit") + case("A7_2of4_t_plus_1_differing_with_t_plus_1_matching", + a7(c4, r24, [cf24[1], cf24[2], lie(c4, r24, 3, "digest"), lie(c4, r24, 4, "y")], 1), "A7") + # Equivocation counts as differing only. + adm("admission_2of4_equivocator_differing_only", c4, B4, [cf24[1], cf24[2], lie(c4, r24, 2, "digest")], + "refuse", "fewer_than_t_plus_1_matching") + adm("admission_2of4_two_equivocators_t_plus_1_differing", c4, B4, + [cf24[j] for j in (1, 2, 3, 4)] + [lie(c4, r24, 3, "digest"), lie(c4, r24, 4, "y")], + "refuse", "differing_t_plus_1") + adm("admission_2of4_one_equivocator_ignored", c4, B4, [cf24[j] for j in (1, 2, 3, 4)] + [lie(c4, r24, 4, "y")], + "admit") + case("A7_2of4_one_equivocator_ignored", + a7(c4, r24, [cf24[j] for j in (1, 2, 3, 4)] + [lie(c4, r24, 4, "y")], 1), "none") + adm("admission_3of5_equivocators_differing_only", c3, B, + [conf3[1], conf3[2], conf3[3], lie(c3, r3_, 1, "digest"), lie(c3, r3_, 2, "y")], "refuse", + "fewer_than_t_plus_1_matching") + adm("admission_3of5_one_equivocator_among_all", c3, B, [conf3[j] for j in q] + [lie(c3, r3_, 1, "digest")], + "admit") + # Ignored inputs: other session, malformed, not a CONFIRMATION, outside QUAL. + stale_cfg = Config(2, 5, b"zeroj.test.honest", 2, roster(5)) + stale = [m_confirmation(stale_cfg, j, r3_["digest"], padd(r3_["y"], G)) for j in (3, 4, 5)] + adm("admission_stale_session_confirmations_ignored", c3, B, [conf3[j] for j in (1, 2, 3)] + stale, "admit") + adm("admission_stale_session_only_refused", c3, B, + [m_confirmation(stale_cfg, j, r3_["digest"], r3_["y"]) for j in (1, 2, 3)], "refuse", + "fewer_than_t_plus_1_matching") + adm("admission_malformed_confirmations_ignored", c3, B, + [conf3[j] for j in (1, 2, 3)] + [lie(c3, r3_, j, "y")[:-1] for j in (4, 5)], "admit") + adm("admission_non_confirmation_ignored", c3, B, [conf3[j] for j in (1, 2, 3)] + [m_complaint(c3, 4, 5), B[0]], + "admit") + # Unauthenticated confirmations are dropped (authenticate false iff bytes are listed). + lies45 = [lie(c3, r3_, j, "digest") for j in (4, 5)] + adm("admission_unauthenticated_confirmations_ignored", c3, B, [conf3[j] for j in (1, 2, 3)] + lies45, + "admit", unauth=frozenset(lies45)) + adm("admission_unauthenticated_matching_not_counted", c3, B, [conf3[1], conf3[2], conf3[3]], "refuse", + "fewer_than_t_plus_1_matching", unauth=frozenset([conf3[3]])) + # R14: t + 1 well-formed differing confirmations from QUAL members 1, 2, 3 that fail + # authentication are ignored (not differing): admit. The same lies authenticated make 1, 2 + # and 3 equivocators (differing t + 1): refuse at step 6. + lies123 = [lie(c3, r3_, j, "digest") for j in (1, 2, 3)] + adm("admission_t_plus_1_unauthenticated_lies_ignored", c3, B, [conf3[j] for j in q] + lies123, "admit", + unauth=frozenset(lies123)) + adm("admission_t_plus_1_authenticated_lies_refused", c3, B, [conf3[j] for j in q] + lies123, "refuse", + "differing_t_plus_1") + # Step 3: a transcript message whose authentication fails refuses. + adm("admission_unauthenticated_transcript_message_refused", c3, B, [conf3[j] for j in q], "refuse", + "unauthenticated_transcript_message", unauth=frozenset([B[0]])) + # Byte-identical duplicates among the submitted transcript messages count once (step 2). + adm("admission_duplicate_transcript_messages_count_once", c3, B + [B[0], B[-1]], [conf3[j] for j in q], + "admit", order="submission") + # Step 2: a transcript message that is not a well-formed rounds 1-6 broadcast refuses. + adm("admission_malformed_transcript_message_refused", c3, B + [B[0][:-1]], [conf3[j] for j in q], + "refuse", "malformed_transcript_message", order="submission") + adm("admission_other_session_transcript_message_refused", c3, B + [m_complaint(stale_cfg, 2, 1)], + [conf3[j] for j in q], "refuse", "malformed_transcript_message", order="submission") + adm("admission_share_in_transcript_refused", c3, B + [m_share(c3, 1, 2, d3[1]["s"][2], d3[1]["sp"][2])], + [conf3[j] for j in q], "refuse", "non_broadcast_transcript_message", order="all_kinds") + adm("admission_confirmation_in_transcript_refused", c3, B + [conf3[1]], [conf3[j] for j in q], + "refuse", "non_broadcast_transcript_message", order="all_kinds") + # Omitted messages (roundClosed true): an omitted EXTRACTION marks the dealer with no + # reconstructions (A3); an omitted COMMITMENTS changes QUAL, y and the digest. + adm("admission_omitted_extraction", c3, [m for m in B if not (m[33] == 5 and m[34] == 4)], + [conf3[j] for j in q], "refuse", "A3") + adm("admission_omitted_commitments", c3, [m for m in B if not (m[33] in (1, 5) and m[34] == 4)], + [conf3[j] for j in q], "refuse", "differing_t_plus_1") + + # roundClosed(config, r, list) for r = 1..7 is modelled as "the list equals the delivered set + # (§8 step 4) of the posted board of round r"; board 7 holds the posted confirmations. + confs_all = [conf3[j] for j in q] + true_boards = {r: [m for m in B if m[32] == r] for r in range(1, 7)} + true_boards[7] = list(confs_all) + junk_unauth = frozenset([m_complaint(c3, 3, 1), m_complaint(c3, 4, 1), lie(c3, r3_, 5, "y")]) + junk_boards = {r: list(v) for r, v in true_boards.items()} + junk_boards[1] += [B[0][:-1], # malformed + m_complaint(stale_cfg, 2, 1), # other session + m_share(c3, 1, 2, d3[1]["s"][2], d3[1]["sp"][2]), # SHARE on the board + m_complaint(c3, 2, 1), # round-2 message in round 1 + m_complaint(c3, 3, 1)] # unauthenticated + junk_boards[2] = [m_complaint(c3, 4, 1), B[0]] # unauthenticated, other round + junk_boards[7] = list(confs_all) + [lie(c3, r3_, 5, "y"), conf3[1][:-1]] # unauthenticated, malformed + adm("admission_junk_posts_do_not_veto", c3, None, confs_all, "admit", boards=junk_boards, derive=True, + unauth=junk_unauth) + chk("check.rule.delivered_round_drops_junk", + all(delivered_round(c3, [x for x in junk_boards[r] if x not in junk_unauth], r) == + delivered_round(c3, true_boards[r], r) for r in range(1, 8))) + adm("admission_round_omitted_refused", c3, [m for m in B if m[32] != 4], confs_all, "refuse", + "round4_not_closed", boards=true_boards) + adm("admission_round7_closed_honest_run", c3, B, confs_all, "admit", boards=true_boards) + adm("admission_round7_confirmation_omitted_refused", c3, B, confs_all[:4], "refuse", "round7_not_closed", + boards=true_boards) + chk("check.round7_list_canonical_order_and_dedupe", + round7_list(c3, [conf3[5], conf3[1], conf3[3], conf3[1], conf3[5][:-1], (conf3[2], False)]) == + [conf3[1], conf3[3], conf3[5]]) + # N6: outside the agreement assumption (honest 1, 2 saw one board; honest 3 and faulty 4 + # confirm another), 1 and 2 abort with A7; admission refuses the full set (differing t + 1) + # and roundClosed(7) refuses a subset that omits the differing confirmations. + all24 = [cf24[1], cf24[2], lie(c4, r24, 3, "digest"), lie(c4, r24, 4, "digest")] + boards24 = {r: [m for m in B4 if m[32] == r] for r in range(1, 7)} + boards24[7] = list(all24) + case("N6_round7_closure", "participants_1_2=%s,%s;admit_all=%s;admit_subset=%s" % ( + a7(c4, r24, all24, 1), a7(c4, r24, all24, 2), + "/".join(admit(c4, B4, all24, round_closed=board_closure(c4, boards24))), + "/".join(admit(c4, B4, all24[:2], round_closed=board_closure(c4, boards24)))), + "participants_1_2=A7,A7;admit_all=refuse/differing_t_plus_1;admit_subset=refuse/round7_not_closed", + prefix="finding") + adm("N6_round7_closure_full_set", c4, B4, all24, "refuse", "differing_t_plus_1", boards=boards24, + family="finding") + adm("N6_round7_closure_subset", c4, B4, all24[:2], "refuse", "round7_not_closed", boards=boards24, + family="finding") + # adversarial-4of7 admission vectors + adv_good = [adv_sim["conf"][j] for j in (2, 4, 6, 7)] + ca = adv_sim["cfg"] + adv_lies = [m_confirmation(ca, j, b"\x00" * 32, G) for j in (1, 3, 5)] + adm("admission_adversarial_4of7_with_deviator_lies", ca, adv_sim["bc"], adv_good + adv_lies, "admit") + adm("admission_adversarial_4of7_t_matching", ca, adv_sim["bc"], adv_good[:3] + adv_lies, "refuse", + "fewer_than_t_plus_1_matching") + # R15: the round-7 list holds authenticated well-formed confirmations from any sender. On + # adversarial-4of7, participant 3 (outside QUAL) posts a confirmation; it is in board 7 and + # must be in the submitted list (it is ignored for counting). Omitting it fails closure. + conf_p3 = m_confirmation(ca, 3, adv_sim["res"]["digest"], adv_sim["res"]["y"]) + adv_boards = {r: [m for m in adv_sim["bc"] if m[32] == r] for r in range(1, 7)} + adv_boards[7] = adv_good + [conf_p3] + adm("admission_adversarial_4of7_round7_list_includes_non_qual", ca, adv_sim["bc"], adv_good + [conf_p3], + "admit", boards=adv_boards) + adm("admission_adversarial_4of7_round7_non_qual_omitted_refused", ca, adv_sim["bc"], adv_good, "refuse", + "round7_not_closed", boards=adv_boards) + # The refusal step of each kind of refusal, stated independently of refusal_step(). + expected_steps = {"admission_malformed_transcript_message_refused": "2", + "admission_other_session_transcript_message_refused": "2", + "admission_share_in_transcript_refused": "2", + "admission_confirmation_in_transcript_refused": "2", + "admission_unauthenticated_transcript_message_refused": "3", + "admission_round_omitted_refused": "4", + "admission_omitted_extraction": "5", + "admission_t_confirmations": "6", + "admission_t_plus_1_differing_3of5": "6", + "admission_round7_confirmation_omitted_refused": "6", + "admission_t_plus_1_authenticated_lies_refused": "6", + "admission_adversarial_4of7_round7_non_qual_omitted_refused": "6"} + got_steps = {n[len("rule."):]: dict(items).get("step") for n, items in CASES if n.startswith("rule.admission_")} + chk("check.rule.admission_refusal_steps", all(got_steps.get(k) == v for k, v in expected_steps.items())) + + # ---------------------------------------------------------------- §1 parameters + def param_case(name, expected, t_, n_, ctx=b"c", attempt=0, rspec="standard"): + """§1 validation. rspec: "standard", "lengths:L1,.." (key_j = byte j repeated L_j + times) or "hex:k1,.."; the vector carries the same spec, and the session if accepted.""" + try: + c = Config(t_, n_, ctx, attempt, roster_from_spec(rspec, n_)) + got = "accept" + except ValueError: + c, got = None, "reject" + case(name, got, expected, prefix="rule") + items = [("config", "%d,%d,%s,%d" % (t_, n_, ctx.hex(), attempt)), ("roster", rspec), ("params", got)] + if c is not None: + items.append(("session", c.session.hex())) + add_case("rule." + name, items) + + for nm, args, exp in (("t0_n3", (0, 3), "reject"), ("t1_n2", (1, 2), "reject"), + ("t2_n4", (2, 4), "reject"), ("t1_n3", (1, 3), "accept"), + ("t31_n64", (31, 64), "accept"), ("t32_n64", (32, 64), "reject"), + ("t1_n65", (1, 65), "reject")): + param_case("param_" + nm, exp, *args) + param_case("param_empty_key", "reject", 1, 3, rspec="lengths:0,1,1") + param_case("param_key_65535", "accept", 1, 3, rspec="lengths:65535,1,1") + param_case("param_key_65536", "reject", 1, 3, rspec="lengths:65536,1,1") + param_case("param_ctx_65536", "reject", 1, 3, ctx=b"c" * 65536) + param_case("param_ctx_empty", "accept", 1, 3, ctx=b"") + param_case("param_attempt_2_64", "reject", 1, 3, attempt=1 << 64) + param_case("param_attempt_2_64_minus_1", "accept", 1, 3, attempt=(1 << 64) - 1) + param_case("param_duplicate_keys", "reject", 1, 3, rspec="hex:01,01,03") + param_case("param_distinct_hex_keys", "accept", 1, 3, rspec="hex:01,02,03") + param_case("param_duplicate_keys_standard_length", "reject", 2, 5, + rspec="hex:" + ",".join(k.hex() for k in roster(4)) + "," + roster(1)[0].hex()) + + # ---------------------------------------------------------------- §4 well-formedness + good_commit = m_commitments(c3, 1, d3[1]["C"]) + good_answer = m_answer(c3, 1, 2, d3[1]["s"][2], d3[1]["sp"][2]) + order2 = (0, P - 1) + small = [] + # find a point outside the subgroup that decodes: G + (0, -1) + G_plus_t2 = padd(G, order2) + + def wf(name, raw, expect_accept): + m, why = parse(c3, raw) + got = "accept" if m is not None else "reject" + emit("wf.%s" % name, got) + if m is None: + emit("info.wf.%s.reason" % name, why) + chk("check.wf.%s" % name, got == ("accept" if expect_accept else "reject")) + add_case("wf." + name, [("config", config_str(c3)), ("msg.1", raw.hex()), ("decode", got)]) + + def with_point(raw, k, enc32): + off = 36 + 32 * k + return raw[:off] + enc32 + raw[off + 32:] + + def set_hdr(raw, pos, val): + b_ = bytearray(raw) + b_[pos] = val + return bytes(b_) + + wf("commitments_ok", good_commit, True) + wf("commitments_identity_point_ok", with_point(good_commit, 1, encode(O)), True) + wf("commitments_short", good_commit[:-1], False) + wf("commitments_long", good_commit + b"\x00", False) + wf("commitments_wrong_session", set_hdr(good_commit, 0, good_commit[0] ^ 1), False) + wf("commitments_round_kind_mismatch", set_hdr(good_commit, 32, 2), False) + wf("commitments_unknown_kind", set_hdr(set_hdr(good_commit, 33, 9), 32, 1), False) + wf("commitments_sender_0", set_hdr(good_commit, 34, 0), False) + wf("commitments_sender_n_plus_1", set_hdr(good_commit, 34, 6), False) + wf("commitments_subject_nonzero", set_hdr(good_commit, 35, 1), False) + pv = (P).to_bytes(32, "little") + wf("commitments_v_equals_p", with_point(good_commit, 0, pv), False) + nsq = None + for v in range(2, 100): + if decode(v.to_bytes(32, "little"))[1] == "non_square": + nsq = v + break + wf("commitments_non_square_v", with_point(good_commit, 0, nsq.to_bytes(32, "little")), False) + ident_sign = bytearray(encode(O)) + ident_sign[31] |= 0x80 + wf("commitments_identity_sign_set", with_point(good_commit, 0, bytes(ident_sign)), False) + wf("commitments_order2_point", with_point(good_commit, 0, encode(order2)), False) + wf("commitments_G_plus_order2", with_point(good_commit, 0, encode(G_plus_t2)), False) + wf("answer_ok", good_answer, True) + wf("answer_s_equals_l", m_answer(c3, 1, 2, 0, 0)[:36] + i2osp32(L) + i2osp32(0), False) + wf("answer_sp_equals_l", m_answer(c3, 1, 2, 0, 0)[:36] + i2osp32(0) + i2osp32(L), False) + wf("answer_s_l_minus_1", m_answer(c3, 1, 2, L - 1, L - 1), True) + wf("answer_subject_equals_sender", set_hdr(good_answer, 35, 1), False) + wf("answer_subject_0", set_hdr(good_answer, 35, 0), False) + wf("answer_subject_n_plus_1", set_hdr(good_answer, 35, 6), False) + wf("complaint_ok", m_complaint(c3, 2, 1), True) + wf("complaint_with_payload", m_complaint(c3, 2, 1) + b"\x00", False) + wf("complaint_subject_equals_sender", set_hdr(m_complaint(c3, 2, 1), 35, 2), False) + wf("share_ok", m_share(c3, 1, 2, 3, 4), True) + wf("share_subject_equals_sender", set_hdr(m_share(c3, 1, 2, 3, 4), 35, 1), False) + wf("confirmation_ok", m_confirmation(c3, 1, b"\x00" * 32, G), True) + wf("confirmation_short", m_confirmation(c3, 1, b"\x00" * 32, G)[:-1], False) + wf("confirmation_y_not_in_subgroup", m_confirmation(c3, 1, b"\x00" * 32, G_plus_t2), False) + wf("reconstruction_round_7", set_hdr(m_reconstruction(c3, 1, 2, 1, 1), 32, 7), False) + + # ---------------------------------------------------------------- §11 pinned table + # The spec's §11 table was filled from this reference's earlier output, so these are drift + # checks, not independent evidence. + pins = (("session", cfgs["session"].session.hex(), + "27ee85d2f50e766a65a3bd49b4dd532f7ad7967bde49c912b2e6b6b5c932af0c"), + ("honest-2of3.session", cfgs["honest-2of3"].session.hex(), + "a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03"), + ("honest-2of3.y", encode(honest_sims["honest-2of3"]["res"]["y"]).hex(), + "14acdc488055720e853cbb6b613d2c7f52aee2fa8e7f37b410b1fa9093082658"), + ("honest-2of3.digest", honest_sims["honest-2of3"]["res"]["digest"].hex(), + "2af7f7eae154833d51861bae276448b396eae5479a074a833a31a9fb9aa46023"), + ("honest-3of5.y", encode(honest_sims["honest-3of5"]["res"]["y"]).hex(), + "89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425"), + ("honest-4of7.digest", honest_sims["honest-4of7"]["res"]["digest"].hex(), + "9b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431b"), + ("zero-share.Y.1", encode(special_sims["zero-share"]["res"]["Y"][1]).hex(), + "0100000000000000000000000000000000000000000000000000000000000000"), + ("zero-share.digest", special_sims["zero-share"]["res"]["digest"].hex(), + "8864e81db8467449ab695f59e82ca31608edf753370c46b912b2b936e43fd43d"), + ("equal-shares.Y", ",".join(encode(special_sims["equal-shares"]["res"]["Y"][j]).hex() for j in (1, 2, 3)), + ",".join(["c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7"] * 3)), + ("adversarial-4of7.qual_marked", "%s;%s" % (ids(adv_sim["res"]["qual"]), ids(sorted(adv_sim["res"]["marked"]))), + "1,2,4,5,6,7;1,5"), + ("adversarial-4of7.counts", ",".join(str(len(adv_sim["res"]["dv"].by_round[r])) for r in range(1, 7)), + "7,2,1,5,5,8"), + ("adversarial-4of7.y", encode(adv_sim["res"]["y"]).hex(), + "0b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54"), + ("adversarial-4of7.digest", adv_sim["res"]["digest"].hex(), + "92ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a0")) + for nm, got, pin in pins: + chk("spec_match.table.%s" % nm, got == pin) + + # ---------------------------------------------------------------- replay vectors + emit_cases() + + # ---------------------------------------------------------------- scalar family + for tag in sorted(SCALARS_USED): + emit("scalar.%s" % tag, fe(SCALARS_USED[tag])) + chk("check.scalars_nonzero", all(v != 0 for v in SCALARS_USED.values())) + + emit("info.failed_checks", len(FAILED)) + emit("result", "pass" if not FAILED else "fail") + + text = "\n".join(emit_header + LINES) + "\n" + sys.stdout.write(text) + here = os.path.dirname(os.path.abspath(__file__)) + with open(os.path.join(here, "reference-output.txt"), "w", encoding="utf-8") as fh: + fh.write(text) + if FAILED: + for k in FAILED: + sys.stderr.write("FAILED: %s\n" % k) + sys.stderr.write("elapsed %.1fs\n" % (__import__("time").time() - t0)) + return 1 + sys.stderr.write("all checks passed (%.1fs)\n" % (__import__("time").time() - t0)) + return 0 + + +def _combine_status(t, qual, Bc, shares): + try: + return str(combine(t, qual, Bc, shares, 7)) + except CombineError: + return "error" + + +if __name__ == "__main__": + try: + sys.exit(main()) + except Exception: # a crash is a failure: keep the partial output + import traceback + traceback.print_exc() + LINES.append("result=fail") + here = os.path.dirname(os.path.abspath(__file__)) + with open(os.path.join(here, "reference-output.txt"), "w", encoding="utf-8") as fh: + fh.write("# crashed; partial output\n" + "\n".join(LINES) + "\n") + for k in FAILED: + sys.stderr.write("FAILED: %s\n" % k) + sys.exit(1) diff --git a/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/reference-output.txt b/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/reference-output.txt new file mode 100644 index 00000000..b3dcb4a7 --- /dev/null +++ b/zeroj-circuit-lib/src/test/resources/elgamal-threshold-reference/reference-output.txt @@ -0,0 +1,3945 @@ +# profile: elgamal-jubjub-threshold-v1 (independent reference, ADR-0053 M0) +# command: python3 elgamal_jubjub_threshold_v1_reference.py +# Python: 3.13.5 +# independence: written from docs/specs/elgamal-jubjub-threshold-v1.md, elgamal-jubjub-v1.md, pedersen-jubjub-v1.md and GJKR07 (Fig. 2, Sec. 2.2, Sec. 4) only; no ZeroJ source code was read +profile=elgamal-jubjub-threshold-v1 +curve.p=0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001 +curve.l=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7 +curve.d=0x2a9318e74bfa2b48f5fd9207e6bd7fd4292d7f6d37579d2601065fd6d6343eb1 +check.d_derived_matches_pin=true +check.d_nonsquare=true +check.minus_one_square=true +check.g_full_on_curve=true +check.g_full_not_in_subgroup=true +G.u=0x3ea5c4673a121ca35ed37ee3b172f5ee04315c657fbe375f512dfea318d56fe5 +G.v=0x57137b83ea6edb4f78f7d30d3f616cb3b9aa6e8e40808413c10cea38d50c55cb +G.encoding=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +spec_match.G.u=true +spec_match.G.v=true +spec_match.G.encoding=true +check.G_in_subgroup_not_identity=true +H.u=0x72963e7766b3cd553a1525a17da810e6b4cdeb70541dac5b52a3210f5c372db6 +H.v=0x60bb97d81759e04503194aeb9eb8faa23b0092c941d1139bfe99907794c8e37d +H.encoding=7de3c894779099fe9b13d141c992003ba2fab89eeb4a190345e05917d897bb60 +spec_match.H.encoding=true +spec_match.H.decode=true +check.H_in_subgroup_not_identity_not_G=true +spec_match.elgamal_v1.scalar_sk=true +spec_match.elgamal_v1.pk_encoding=true +spec_match.elgamal_v1.enc_1_k1=true +spec_match.pedersen_v1.c_42_12345=true +check.blake2b256_abc_kat=true +check.blake2b256_is_not_truncated_blake2b512=true +session.session=27ee85d2f50e766a65a3bd49b4dd532f7ad7967bde49c912b2e6b6b5c932af0c +session.honest-2of3=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03 +session.honest-3of5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29 +session.honest-4of7=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269 +session.zero-share=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc +session.equal-shares=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee +session.adversarial-4of7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968 +session.session.preimage=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e73657373696f6e00137a65726f6a2e746573742e656c656374696f6e00000000000000010103002001010101010101010101010101010101010101010101010101010101010101010020020202020202020202020202020202020202020202020202020202020202020200200303030303030303030303030303030303030303030303030303030303030303 +session.session.key_1=0101010101010101010101010101010101010101010101010101010101010101 +check.sessions_distinct=true +check.session_attempt_changes_session=true +honest-2of3.t=1 +honest-2of3.n=3 +honest-2of3.ctx=7a65726f6a2e746573742e686f6e657374 +honest-2of3.attempt=1 +honest-2of3.session=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03 +honest-2of3.qual=1,2,3 +honest-2of3.disqualified= +honest-2of3.marked= +honest-2of3.marked_by= +honest-2of3.a.1.0=0x09f84fe1a99f86b71e45a8958e6c9296f7d5b05e85778a25ccea5d920a7bd993 +honest-2of3.a.1.1=0x0395d68069d56ac3ad3e77b6bd1d454da05dd263828abe339c6432e8be9a766c +honest-2of3.a.2.0=0x0b71d0509b68ce84279de9da6c6f18dd5341b5cb8c972f2009b59119fd3e2e8f +honest-2of3.a.2.1=0x01cc3a697f3299286e55520ce47ec018563273896da1de16e0f7b040f1cb3465 +honest-2of3.a.3.0=0x01e5f7c2fde285ec76704993976e5c5e869fcae1a047d1a1ca60a82427ac1c89 +honest-2of3.a.3.1=0x073a06f80c93c5b7711195fdc8b5beb162e1891686aa63c36f35b14199aca905 +honest-2of3.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +honest-2of3.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +honest-2of3.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +honest-2of3.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +honest-2of3.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +honest-2of3.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +honest-2of3.C.1.0=d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661 +honest-2of3.C.1.1=509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +honest-2of3.C.2.0=d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f +honest-2of3.C.2.1=54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +honest-2of3.C.3.0=c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916 +honest-2of3.C.3.1=802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +honest-2of3.A.1.0=67b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c41 +honest-2of3.A.1.1=97f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +honest-2of3.A.2.0=bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f19 +honest-2of3.A.2.1=8a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +honest-2of3.A.3.0=dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921 +honest-2of3.A.3.1=e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +honest-2of3.s.1.1=0x0d8e26621374f17acb84204c4b89d7e4983382c208024859694e907ac9164fff +honest-2of3.s.1.2=0x02a647f81816ac95725b5d020772e23192293491bdc4f60a351bb504b0b999b4 +honest-2of3.s.1.3=0x063c1e7881ec17591f99d4b8c490277f328706f5404fb43dd17fe7ed6f541020 +honest-2of3.s.2.1=0x0d3e0aba1a9b67ac95f33be750edd8f5a9742954fa390d36eaad415aef0962f4 +honest-2of3.s.2.2=0x008c9039349a512bfde152f334385e0d593e7c4a9b12dacafb0de33d09dd6aa2 +honest-2of3.s.2.3=0x0258caa2b3ccea546c36a50018b71e25af70efd408b4b8e1dc05937dfba89f07 +honest-2of3.s.3.1=0x091ffebb0a764ba3e781df9160241b0fe98153f826f2356539965965c158c58e +honest-2of3.s.3.2=0x01dc50c8b1d661b2522c3a8e27a59ec0a5fabc7ae0d488a5d834fc48840e41dc +honest-2of3.s.3.3=0x091657c0be6a2769c33dd08bf05b5d7208dc4591677eec69476aad8a1dbaeae1 +honest-2of3.sp.1.1=0x06fa5a2cc8f51ca86c0fa7baf5b3830c9c9659445f53381198632a392e5240c9 +honest-2of3.sp.1.2=0x0115239220a5cdd46ba7bc1a7f3c3558f8f1f1235a2c6fac0d94a8385dfdb1ef +honest-2of3.sp.1.3=0x09ada1e1dd8a2ea971a70b7b09f922a5fbb5a99621cdb7c9535d349664a04fcc +honest-2of3.sp.2.1=0x0b64083246037bd39d75ba0e65dc8db8249d482e984efe21b8832a89e0be07ea +honest-2of3.sp.2.2=0x0257c32d3d123d3de3aff9339a42b9c6153730c69615a3f9370c474e023e9866 +honest-2of3.sp.2.3=0x07c933129954ae5130517359cfdd20d4ac3939f260a45a53862c7270fab65599 +honest-2of3.sp.3.1=0x00a46d8265a26abafe68972526e0fee4d1312e0dcf98a748d1b51a026e6640d8 +honest-2of3.sp.3.2=0x0127f3b498cea1968beb5b2b0f5261244888fc2a5c998223e9f8fc66afb72580 +honest-2of3.sp.3.3=0x01ab79e6cbfad872196e1f30f7c3c363bfe0ca46e99a5cff023cdecaf1080a28 +honest-2of3.x.1=0x06f0c6026e1f45793c2ac5c2fa3355e8de58bee78f9d69efec640e7dcb8a1f13 +honest-2of3.x.2=0x050f28f9fe875f73c268ea836350deff91626d5739ac597b085e948a3ea54632 +honest-2of3.x.3=0x032d8bf18eef796e48a70f43cc6e6816446c1bc6e3bb490624591a96b1c06d51 +honest-2of3.y=14acdc488055720e853cbb6b613d2c7f52aee2fa8e7f37b410b1fa9093082658 +honest-2of3.Y.1=f75e1bcd79784615cec8576c79f649dd7f6ec26f7ba32f73fdcc085cca358e9c +honest-2of3.Y.1.identity=false +honest-2of3.Y.2=55d7260dd9b405994034dca2e5841e66b5e3fb05b131444842966864f1e15b86 +honest-2of3.Y.2.identity=false +honest-2of3.Y.3=f74e69fe300ed3ed0d1ebd7ace4000697b3c4ffaee86c203eabc6e60b3a72ddd +honest-2of3.Y.3.identity=false +honest-2of3.msg.1.1.1.0=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +honest-2of3.msg.1.1.2.0=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +honest-2of3.msg.1.1.3.0=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +honest-2of3.msg.4.5.1.0=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea030405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +honest-2of3.msg.4.5.2.0=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +honest-2of3.msg.4.5.3.0=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +honest-2of3.count.COMMITMENTS=3 +honest-2of3.count.COMPLAINT=0 +honest-2of3.count.ANSWER=0 +honest-2of3.count.EXTRACTION=3 +honest-2of3.count.EXTRACTION_COMPLAINT=0 +honest-2of3.count.RECONSTRUCTION=0 +honest-2of3.counts=3,0,0,3,0,0 +honest-2of3.transcript=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e7472616e736372697074a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea030103000000030064a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d940064a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c0064a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d0000000000000000000000030064a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea030405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c0064a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc0064a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f240000000000000000 +honest-2of3.digest=2af7f7eae154833d51861bae276448b396eae5479a074a833a31a9fb9aa46023 +honest-2of3.confirmation.1=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03070801002af7f7eae154833d51861bae276448b396eae5479a074a833a31a9fb9aa4602314acdc488055720e853cbb6b613d2c7f52aee2fa8e7f37b410b1fa9093082658 +honest-2of3.confirmation.2=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03070802002af7f7eae154833d51861bae276448b396eae5479a074a833a31a9fb9aa4602314acdc488055720e853cbb6b613d2c7f52aee2fa8e7f37b410b1fa9093082658 +honest-2of3.confirmation.3=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03070803002af7f7eae154833d51861bae276448b396eae5479a074a833a31a9fb9aa4602314acdc488055720e853cbb6b613d2c7f52aee2fa8e7f37b410b1fa9093082658 +honest-2of3.participant_abort.1=none +honest-2of3.participant_abort.2=none +honest-2of3.participant_abort.3=none +honest-2of3.check.public_abort_none=true +honest-2of3.check.qual_expected=true +honest-2of3.check.y_equals_sum_of_true_a_i0=true +honest-2of3.check.Y_equals_true_polynomials=true +honest-2of3.check.x_equals_sum_of_true_shares=true +honest-2of3.check.A6.1=true +honest-2of3.check.A6.2=true +honest-2of3.check.A6.3=true +honest-2of3.check.all_broadcasts_well_formed=true +honest-2of3.check.all_shares_well_formed=true +honest-2of3.check.encode_decode_roundtrip=true +honest-2of3.check.all_points_in_subgroup=true +honest-2of3.check.digest_independent_of_arrival_order=true +honest-2of3.check.confirmations_sent_by_live_qual_members=true +honest-2of3.check.confirmations_agree_A7_none=true +honest-2of3.check.admission_accepts=true +honest-2of3.check.rounds_2_3_5_6_empty=true +honest-2of3.check.no_marks=true +honest-2of3.enc.m=5 +honest-2of3.enc.width=3 +honest-2of3.enc.A=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990 +honest-2of3.enc.B=3ff4885249002d255c7e11de5cb5f911b38a4e386880a8b4e7a6c010202d2d4e +honest-2of3.D.1=e35b502a5aeb5fe6a7528ca3b16ce8cbc9f61523434242340b6c7f39b8f1b9b3 +honest-2of3.D.2=2daa18011e190599a9f87501b39711fa924bd314ee88b13ab3c5a3656be6aac5 +honest-2of3.D.3=09a9613dfc50cab72490881b68635108fbee38aa1e4361f46375801b6c225fcf +honest-2of3.check.dleq_relations=true +honest-2of3.lagrange.1-2.1=0x0000000000000000000000000000000000000000000000000000000000000002 +honest-2of3.lagrange.1-2.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +honest-2of3.lagrange.1-3.1=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965d +honest-2of3.lagrange.1-3.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965b +honest-2of3.lagrange.2-3.2=0x0000000000000000000000000000000000000000000000000000000000000003 +honest-2of3.lagrange.2-3.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +honest-2of3.decrypt.1-2=5 +honest-2of3.check.decrypt.1-2=true +honest-2of3.check.sum_lambda_x.1-2=true +honest-2of3.decrypt.1-3=5 +honest-2of3.check.decrypt.1-3=true +honest-2of3.check.sum_lambda_x.1-3=true +honest-2of3.decrypt.2-3=5 +honest-2of3.check.decrypt.2-3=true +honest-2of3.check.sum_lambda_x.2-3=true +honest-2of3.decrypt.all=5 +honest-2of3.check.extra_shares_consistent=true +honest-3of5.t=2 +honest-3of5.n=5 +honest-3of5.ctx=7a65726f6a2e746573742e686f6e657374 +honest-3of5.attempt=1 +honest-3of5.session=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29 +honest-3of5.qual=1,2,3,4,5 +honest-3of5.disqualified= +honest-3of5.marked= +honest-3of5.marked_by= +honest-3of5.a.1.0=0x09f84fe1a99f86b71e45a8958e6c9296f7d5b05e85778a25ccea5d920a7bd993 +honest-3of5.a.1.1=0x0395d68069d56ac3ad3e77b6bd1d454da05dd263828abe339c6432e8be9a766c +honest-3of5.a.1.2=0x09070739da819a814c52c7623fa0c4c61caf8dbed0d08fb20bb110d6cca3b873 +honest-3of5.a.2.0=0x0b71d0509b68ce84279de9da6c6f18dd5341b5cb8c972f2009b59119fd3e2e8f +honest-3of5.a.2.1=0x01cc3a697f3299286e55520ce47ec018563273896da1de16e0f7b040f1cb3465 +honest-3of5.a.2.2=0x0d0e024bb133627567a729c1aaf09baca4236c5edaf935adf52607742cbf97e7 +honest-3of5.a.3.0=0x01e5f7c2fde285ec76704993976e5c5e869fcae1a047d1a1ca60a82427ac1c89 +honest-3of5.a.3.1=0x073a06f80c93c5b7711195fdc8b5beb162e1891686aa63c36f35b14199aca905 +honest-3of5.a.3.2=0x0aeac86dab6f6de3cc939ceab3d2039b3dd22fb6c2792ddf93dc37b2e510b837 +honest-3of5.a.4.0=0x0dee3d011ae1b501aa932119de074791dda0b23f4bdf4f9004e12a4e70d9652f +honest-3of5.a.4.1=0x0925de982cd3374d9492cdb6dc2cb27e48862576565d858759649872fd045945 +honest-3of5.a.4.2=0x022e533cd5178049f145a74835bcdc165eac5b80b7de682a413262f771bd80cf +honest-3of5.a.5.0=0x06f0a2e7b966b3f159bda91e8e66187c4ebf4790f14b9ea1570323c8af73a95d +honest-3of5.a.5.1=0x08c4a3695953867c9b5cbff535e90e57613a0cb3fa0a653ff76a837cf148e873 +honest-3of5.a.5.2=0x0cbfaeebfa0756a14d282ffe44f84ee9847020d7237645f6873b264d1e71b876 +honest-3of5.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +honest-3of5.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +honest-3of5.b.1.2=0x03d6c754dc8b36b5e91c9280bf866299143c425d17ac38f9a2fa7cbb830a48db +honest-3of5.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +honest-3of5.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +honest-3of5.b.2.2=0x0cfc0d11c4a809a14bdb860bc98e63675f705514f3225e686d8db38bfbffd851 +honest-3of5.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +honest-3of5.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +honest-3of5.b.3.2=0x0ba21b2136817e8abad8af4abf925e05a5d6a1bcf1cb5a8c5058aae3447f40ef +honest-3of5.b.4.0=0x0a23adb7e571fcc2304f38a51f23a671d93982536e84de49f0e280b14c1a2be8 +honest-3of5.b.4.1=0x0a3975ca1a5eca3893d296ec53924a1d52f5f329e842c33e18c35929ba969882 +honest-3of5.b.4.2=0x09e50e25fd42d4b7ee7f770480ef5089a3921f31c4cd60a52569cb5d6ddd8812 +honest-3of5.b.5.0=0x02cd3b1f66ae1a5de3bea59305d25dfec76797a7cce5e00f6211f97deb60cd3f +honest-3of5.b.5.1=0x08f9e2f28b2ac7d04e53c0955a8c91f4106838a4ba19b9e060e530fd068dea8e +honest-3of5.b.5.2=0x076e918c61547561d59d54174ab638a3e45a57b715f1a561b9633e297f614f7d +honest-3of5.C.1.0=d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661 +honest-3of5.C.1.1=509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +honest-3of5.C.1.2=34a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +honest-3of5.C.2.0=d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f +honest-3of5.C.2.1=54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +honest-3of5.C.2.2=6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +honest-3of5.C.3.0=c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916 +honest-3of5.C.3.1=802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +honest-3of5.C.3.2=c056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +honest-3of5.C.4.0=1ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb +honest-3of5.C.4.1=736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +honest-3of5.C.4.2=0d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +honest-3of5.C.5.0=ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a58 +honest-3of5.C.5.1=5f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc9 +honest-3of5.C.5.2=2ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +honest-3of5.A.1.0=67b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c41 +honest-3of5.A.1.1=97f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +honest-3of5.A.1.2=e78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +honest-3of5.A.2.0=bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f19 +honest-3of5.A.2.1=8a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +honest-3of5.A.2.2=88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +honest-3of5.A.3.0=dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921 +honest-3of5.A.3.1=e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +honest-3of5.A.3.2=120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +honest-3of5.A.4.0=14576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d +honest-3of5.A.4.1=4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +honest-3of5.A.4.2=32491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +honest-3of5.A.5.0=f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10 +honest-3of5.A.5.1=7140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306 +honest-3of5.A.5.2=ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +honest-3of5.s.1.1=0x081778b188c2dc53116facad89f661aa0e7aefed0c0ac788a46892f2bec2dbbb +honest-3of5.s.1.2=0x09c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a2212 +honest-3of5.s.1.3=0x00892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe1 +honest-3of5.s.1.4=0x0959576e9fd64d9751fc74896faf6b281dcc6f7fd012c876030e988e92824e96 +honest-3of5.s.1.5=0x073c3179590408f087b88cae623a3968d9e57a21dd4230db25220ccb791334c3 +honest-3of5.s.2.1=0x0bce581b669b1a78f7332aa7faaa39a1a72f7520086a32620f3c3a7044d1ce24 +honest-3of5.s.2.2=0x094b7aa8c9cccc06894848f6dc5e1bbdf693cc0aa09f7ffa5de0d5f137f64419 +honest-3of5.s.2.3=0x03e937f8c4fde32cdddd44c7118abf32416eba8b553717e8f5a3639cd6ab906e +honest-3of5.s.2.4=0x0a2544f5bd620f94fb5959199b645eff2e286135f2f90ab0a71af1d1f7e8dfda +honest-3of5.s.2.5=0x0d81ecb54dc5a195db554aed78b6c02416589f76ad1d47cea1b07231c4b705a6 +honest-3of5.s.3.1=0x058d123e50b209deadae417b12c1e3aa80eb631b1ca352c1fcdb82b9cf72510e +honest-3of5.s.3.2=0x020e53c02ff90a467144fd35f350fc2baa0b199a84610e9bb5e0aff7936b9c93 +honest-3of5.s.3.3=0x05e7713300eb36ccc79bb7c53a4fe0e2a8670ef3a44915b1c6073e3c4a8f2bcf +honest-3of5.s.3.4=0x029ab5ac5e54dfc8aa4b3627e68a56ced5972292af9357815cb81f291de5d20b +honest-3of5.s.3.5=0x06a5d616ad69b4e31fbab35ef93498f0d803750b7307e48d4a8a611ce466bbfe +honest-3of5.s.4.1=0x0ac4b9ebb798bcf02a045b17eebc9b25de6b12a28d532cbecee1175a08a4128c +honest-3of5.s.4.2=0x0bf7dd4ffe7ec5728c00e3a66aeba6e69c8e2a073e83da421b45ca5483e9c187 +honest-3of5.s.4.3=0x0309f2438a601edfca217fc451602fd371a1d7d992a94797197834df0bb34569 +honest-3of5.s.4.4=0x0cf6629b25a42889f134a573a482abedaa765d41235395c36aa673b74deef7a0 +honest-3of5.s.4.5=0x0cc1c48205e3831ef46bdeb261eaa533fa3b791656f2a3c16da26a1f9cae7ebe +honest-3of5.s.5.1=0x0df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f +honest-3of5.s.5.2=0x03041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c88 +honest-3of5.s.5.3=0x0312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb6 +honest-3of5.s.5.4=0x0e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec400719 +honest-3of5.s.5.5=0x07393e1e00b3a29f4b6555a43a1951eee3a98da84a82d12e021e0b7e60d7d943 +honest-3of5.sp.1.1=0x0ad12181a580535e552c3a3bb539e5a5b0d29ba176ff710b3b5da6f4b15c89a4 +honest-3of5.sp.1.2=0x01f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +honest-3of5.sp.1.3=0x00c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +honest-3of5.sp.1.4=0x073e0ceb691f8c8fe96b5be2871712810234e4f7644a3cf2b5da44d269139bc6 +honest-3of5.sp.1.5=0x06ea6e77b74dcacf0e3620c6c9f0c62dc7de90f49aa1544e44ac08ab862d4331 +honest-3of5.sp.2.1=0x09e26059a577d5cbe2ea05192e36b61edda57cafbea94c075579cfb705c6b384 +honest-3of5.sp.2.2=0x0aced8b5201754c7ffe8605fbcdf96619fc0235efc46ec127b7dea616d587385 +honest-3of5.sp.2.3=0x08b8015f599f87b4a7cf51bbdc3cc771d3eb3310869927e8db6f4f661efb8aba +honest-3of5.sp.2.4=0x039dda5852106e91da9ed92d8c4e494f7a26abc45d9fff8a754dfec51aaff923 +honest-3of5.sp.2.5=0x09fe188a6e9db9089ebe31b5ce4856fb38daae0e4e23837a19b106dd376ceb77 +honest-3of5.sp.3.1=0x0c4688a39c23e945b941466fe6735cea7707cfcac16401d5220dc4e5b2e581c7 +honest-3of5.sp.3.2=0x0437417a43398cc66418675309ff2838ecab2162bd6ebaccb9967cd73ccea317 +honest-3of5.sp.3.3=0x04ee7ba8f21e7db37e39abcaab7b7492079395e0d048185a21397c3078bf198e +honest-3of5.sp.3.4=0x0e6c372fa8d2bc0d07a513d6cae841f5c7c12d44f9f01a7d58f6c2f166b6e52c +honest-3of5.sp.3.5=0x03b50a399ceee880f38c297565dd1a62e063a667a0d6a030bfa0345c58c7ac83 +honest-3of5.sp.4.1=0x0146c7d332ac3c60a5d2d093f13ccb1782f153878204e1278de1887ac69ff30e +honest-3of5.sp.4.2=0x0c33fe3a7a6c256ef855568bc53490d073cd631f1f1fa54f75b426ff1ce0ca58 +honest-3of5.sp.4.3=0x0defe718f24a589b1b08548a98a2819b5efd6ff2ac4509bc072c3f80a0ee5858 +honest-3of5.sp.4.4=0x067a826e9a46d5e50debca906b869d7844817a0229750e6d4249d1ff52c89d0e +honest-3of5.sp.4.5=0x04518525d7954cf5d766f39e3f151f67cac1a1e16377c3e5f7a3ecda0966c531 +honest-3of5.sp.5.1=0x04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +honest-3of5.sp.5.2=0x07022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +honest-3of5.sp.5.3=0x09abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +honest-3of5.sp.5.4=0x0cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +honest-3of5.sp.5.5=0x019f91eb4c887d6ce14aeeb403190fb9ffc13a83c77e9fcf57cc1a8f0d3459ca +honest-3of5.x.1=0x06b5be8a6f9b900608fb20f68a95a3d6afc9cd979a17813812adfb8e3efca4e3 +honest-3of5.x.2=0x072159c53fbba0d8b5ab7a5743d411e58b5f3a5ca4bc8a0ca05c8b3eafafe75f +honest-3of5.x.3=0x01f8aacf57f86797b380015b26d6010b9d9f0f6fa918620e342b68dc1ce77486 +honest-3of5.x.4=0x05b966931d8593ec08dff10334cfac498cf16d6473f319bf9eb1a2c55d9a790f +honest-3of5.x.5=0x03e5d8262b2f762caf640e4e6c8cd89eb2ee33a73884a09e0f582a9b9ad1c843 +honest-3of5.y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +honest-3of5.Y.1=71b7c6c34a1e71bfe7c04a6f97f96141421ab7e834daadd39c1fae5a4d5c9653 +honest-3of5.Y.1.identity=false +honest-3of5.Y.2=7ea8855fb8d3dc502941ee00b0756a3e79e6af2182b4550bb09fdd76b1c4df11 +honest-3of5.Y.2.identity=false +honest-3of5.Y.3=59c3dddcf94f8b82972d61cf805e5621e484ad245a6942fbc22a27c53a483864 +honest-3of5.Y.3.identity=false +honest-3of5.Y.4=a45ec9b518c494f02d6a62a26153c30b832d0a8b907186b688be418f3c7d8fd2 +honest-3of5.Y.4.identity=false +honest-3of5.Y.5=5049b07bde78df78a624dc39f6675d91d1f21fc8aa23c651d1c58644feca374b +honest-3of5.Y.5.identity=false +honest-3of5.msg.1.1.1.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +honest-3of5.msg.1.1.2.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +honest-3of5.msg.1.1.3.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +honest-3of5.msg.1.1.4.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +honest-3of5.msg.1.1.5.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +honest-3of5.msg.4.5.1.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +honest-3of5.msg.4.5.2.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +honest-3of5.msg.4.5.3.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +honest-3of5.msg.4.5.4.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +honest-3of5.msg.4.5.5.0=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +honest-3of5.count.COMMITMENTS=5 +honest-3of5.count.COMPLAINT=0 +honest-3of5.count.ANSWER=0 +honest-3of5.count.EXTRACTION=5 +honest-3of5.count.EXTRACTION_COMPLAINT=0 +honest-3of5.count.RECONSTRUCTION=0 +honest-3of5.counts=5,0,0,5,0,0 +honest-3of5.transcript=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e7472616e73637269707478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29020500000005008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9000000000000000000000005008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583008478806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea0000000000000000 +honest-3of5.digest=edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf71 +honest-3of5.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +honest-3of5.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +honest-3of5.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +honest-3of5.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +honest-3of5.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +honest-3of5.participant_abort.1=none +honest-3of5.participant_abort.2=none +honest-3of5.participant_abort.3=none +honest-3of5.participant_abort.4=none +honest-3of5.participant_abort.5=none +honest-3of5.check.public_abort_none=true +honest-3of5.check.qual_expected=true +honest-3of5.check.y_equals_sum_of_true_a_i0=true +honest-3of5.check.Y_equals_true_polynomials=true +honest-3of5.check.x_equals_sum_of_true_shares=true +honest-3of5.check.A6.1=true +honest-3of5.check.A6.2=true +honest-3of5.check.A6.3=true +honest-3of5.check.A6.4=true +honest-3of5.check.A6.5=true +honest-3of5.check.all_broadcasts_well_formed=true +honest-3of5.check.all_shares_well_formed=true +honest-3of5.check.encode_decode_roundtrip=true +honest-3of5.check.all_points_in_subgroup=true +honest-3of5.check.digest_independent_of_arrival_order=true +honest-3of5.check.confirmations_sent_by_live_qual_members=true +honest-3of5.check.confirmations_agree_A7_none=true +honest-3of5.check.admission_accepts=true +honest-3of5.check.rounds_2_3_5_6_empty=true +honest-3of5.check.no_marks=true +honest-3of5.enc.m=5 +honest-3of5.enc.width=3 +honest-3of5.enc.A=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990 +honest-3of5.enc.B=836d393634f395345204fd401f9d0c482fca9df2f24e6e77e45d99068ec81041 +honest-3of5.D.1=67f77f75ca8044f860c1bf4028f69150ae1350ad09be172d818c52b5db2b6a36 +honest-3of5.D.2=94aa37e3716353a21d08b1f92e22892add7b7bb40a984983eaa11c6df1f7e842 +honest-3of5.D.3=0886882a4615101f27215741f441521d827d7efde7952aadecbbeff651484e89 +honest-3of5.D.4=d2de6934f751c01a550b1c6edb36f60d473503310a9b8c2c61df1f957728e535 +honest-3of5.D.5=632df6f791da95d03db93e14bba3ea6f35d7e61d1f7646ef31227a3756f2ef5d +honest-3of5.check.dleq_relations=true +honest-3of5.lagrange.1-2-3.1=0x0000000000000000000000000000000000000000000000000000000000000003 +honest-3of5.lagrange.1-2-3.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb4 +honest-3of5.lagrange.1-2-3.3=0x0000000000000000000000000000000000000000000000000000000000000001 +honest-3of5.lagrange.1-2-4.1=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b995 +honest-3of5.lagrange.1-2-4.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +honest-3of5.lagrange.1-2-4.4=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7325 +honest-3of5.lagrange.1-2-5.1=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965e +honest-3of5.lagrange.1-2-5.2=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7323 +honest-3of5.lagrange.1-2-5.5=0x0c136c18a9ab12623000b12b8100dbd5e001707b2aa6b86d03288bf9b3234fee +honest-3of5.lagrange.1-3-4.1=0x0000000000000000000000000000000000000000000000000000000000000002 +honest-3of5.lagrange.1-3-4.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +honest-3of5.lagrange.1-3-4.4=0x0000000000000000000000000000000000000000000000000000000000000001 +honest-3of5.lagrange.1-3-5.1=0x0cadfe4d188d39b3e59a53a0e10db3a0919b1c81532f0e7276842c92fc184722 +honest-3of5.lagrange.1-3-5.3=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac721396188 +honest-3of5.lagrange.1-3-5.5=0x056f23d7e5f361df6266b620607396203e670c376ccb06310e38a563909cb0c5 +honest-3of5.lagrange.1-4-5.1=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b994 +honest-3of5.lagrange.1-4-5.4=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7323 +honest-3of5.lagrange.1-4-5.5=0x0000000000000000000000000000000000000000000000000000000000000001 +honest-3of5.lagrange.2-3-4.2=0x0000000000000000000000000000000000000000000000000000000000000006 +honest-3of5.lagrange.2-3-4.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72caf +honest-3of5.lagrange.2-3-4.4=0x0000000000000000000000000000000000000000000000000000000000000003 +honest-3of5.lagrange.2-3-5.2=0x0000000000000000000000000000000000000000000000000000000000000005 +honest-3of5.lagrange.2-3-5.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +honest-3of5.lagrange.2-3-5.5=0x0000000000000000000000000000000000000000000000000000000000000001 +honest-3of5.lagrange.2-4-5.2=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7328 +honest-3of5.lagrange.2-4-5.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +honest-3of5.lagrange.2-4-5.5=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b995 +honest-3of5.lagrange.3-4-5.3=0x000000000000000000000000000000000000000000000000000000000000000a +honest-3of5.lagrange.3-4-5.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca8 +honest-3of5.lagrange.3-4-5.5=0x0000000000000000000000000000000000000000000000000000000000000006 +honest-3of5.decrypt.1-2-3=5 +honest-3of5.check.decrypt.1-2-3=true +honest-3of5.check.sum_lambda_x.1-2-3=true +honest-3of5.decrypt.1-2-4=5 +honest-3of5.check.decrypt.1-2-4=true +honest-3of5.check.sum_lambda_x.1-2-4=true +honest-3of5.decrypt.1-2-5=5 +honest-3of5.check.decrypt.1-2-5=true +honest-3of5.check.sum_lambda_x.1-2-5=true +honest-3of5.decrypt.1-3-4=5 +honest-3of5.check.decrypt.1-3-4=true +honest-3of5.check.sum_lambda_x.1-3-4=true +honest-3of5.decrypt.1-3-5=5 +honest-3of5.check.decrypt.1-3-5=true +honest-3of5.check.sum_lambda_x.1-3-5=true +honest-3of5.decrypt.1-4-5=5 +honest-3of5.check.decrypt.1-4-5=true +honest-3of5.check.sum_lambda_x.1-4-5=true +honest-3of5.decrypt.2-3-4=5 +honest-3of5.check.decrypt.2-3-4=true +honest-3of5.check.sum_lambda_x.2-3-4=true +honest-3of5.decrypt.2-3-5=5 +honest-3of5.check.decrypt.2-3-5=true +honest-3of5.check.sum_lambda_x.2-3-5=true +honest-3of5.decrypt.2-4-5=5 +honest-3of5.check.decrypt.2-4-5=true +honest-3of5.check.sum_lambda_x.2-4-5=true +honest-3of5.decrypt.3-4-5=5 +honest-3of5.check.decrypt.3-4-5=true +honest-3of5.check.sum_lambda_x.3-4-5=true +honest-3of5.decrypt.all=5 +honest-3of5.check.extra_shares_consistent=true +honest-4of7.t=3 +honest-4of7.n=7 +honest-4of7.ctx=7a65726f6a2e746573742e686f6e657374 +honest-4of7.attempt=1 +honest-4of7.session=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269 +honest-4of7.qual=1,2,3,4,5,6,7 +honest-4of7.disqualified= +honest-4of7.marked= +honest-4of7.marked_by= +honest-4of7.a.1.0=0x09f84fe1a99f86b71e45a8958e6c9296f7d5b05e85778a25ccea5d920a7bd993 +honest-4of7.a.1.1=0x0395d68069d56ac3ad3e77b6bd1d454da05dd263828abe339c6432e8be9a766c +honest-4of7.a.1.2=0x09070739da819a814c52c7623fa0c4c61caf8dbed0d08fb20bb110d6cca3b873 +honest-4of7.a.1.3=0x029eb7afea088112fb6f868e776a22febd5f8f4e8c1bb26c3c547827d1a22bdb +honest-4of7.a.2.0=0x0b71d0509b68ce84279de9da6c6f18dd5341b5cb8c972f2009b59119fd3e2e8f +honest-4of7.a.2.1=0x01cc3a697f3299286e55520ce47ec018563273896da1de16e0f7b040f1cb3465 +honest-4of7.a.2.2=0x0d0e024bb133627567a729c1aaf09baca4236c5edaf935adf52607742cbf97e7 +honest-4of7.a.2.3=0x00eeb8da3dde2d473d0b7d13387c134bac8878dfc9aa7a61228a4e8f35124c83 +honest-4of7.a.3.0=0x01e5f7c2fde285ec76704993976e5c5e869fcae1a047d1a1ca60a82427ac1c89 +honest-4of7.a.3.1=0x073a06f80c93c5b7711195fdc8b5beb162e1891686aa63c36f35b14199aca905 +honest-4of7.a.3.2=0x0aeac86dab6f6de3cc939ceab3d2039b3dd22fb6c2792ddf93dc37b2e510b837 +honest-4of7.a.3.3=0x084d3bd630bdb664451c79d9498f10912a09dba8998e37673d332f10591e10d7 +honest-4of7.a.4.0=0x0dee3d011ae1b501aa932119de074791dda0b23f4bdf4f9004e12a4e70d9652f +honest-4of7.a.4.1=0x0925de982cd3374d9492cdb6dc2cb27e48862576565d858759649872fd045945 +honest-4of7.a.4.2=0x022e533cd5178049f145a74835bcdc165eac5b80b7de682a413262f771bd80cf +honest-4of7.a.4.3=0x06e13e9f77bcf871927852bbb973127e4ddba591c0b7a8b92e40b5537e465044 +honest-4of7.a.5.0=0x06f0a2e7b966b3f159bda91e8e66187c4ebf4790f14b9ea1570323c8af73a95d +honest-4of7.a.5.1=0x08c4a3695953867c9b5cbff535e90e57613a0cb3fa0a653ff76a837cf148e873 +honest-4of7.a.5.2=0x0cbfaeebfa0756a14d282ffe44f84ee9847020d7237645f6873b264d1e71b876 +honest-4of7.a.5.3=0x068dd7bd98494a74b0d2ef919ccc81071a3e399c6d88dc291bcdb3dea0407326 +honest-4of7.a.6.0=0x048f2fa945337b2ec5835e829c842d22337be94cf6682711c0b3d74df3c7db28 +honest-4of7.a.6.1=0x00d55e082fb0a0a45ce28e663b7b35357c5e3a1455f88db15478abc253656e41 +honest-4of7.a.6.2=0x01d2e59d2cabd6eb9ef4952cb73c04324fb960ef58a457c38b960ab9fa056173 +honest-4of7.a.6.3=0x0cb115341d0a215d81920bb0c4b720d4187ed38a396ccf375a05d0179941ed57 +honest-4of7.a.7.0=0x0dacd28bbc3aa8e3be28776c2d85f2e7fdbe8f8a4d331150cd1aa098a8b7b68c +honest-4of7.a.7.1=0x05364deb2556568d37661500ca15a8a975a6995cbbdd1a17eb843e7e128e1198 +honest-4of7.a.7.2=0x09f5cea50a1300abab7b387d39dc60b0503e4c2f64e6e8af3ca569f4ee2a32f0 +honest-4of7.a.7.3=0x0058d2c04ff8eaca9426a8398a8bd2cbc6d01cf4d33d6dc235a089a40c2ab99a +honest-4of7.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +honest-4of7.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +honest-4of7.b.1.2=0x03d6c754dc8b36b5e91c9280bf866299143c425d17ac38f9a2fa7cbb830a48db +honest-4of7.b.1.3=0x0476e62c6378ab8c1fd6f845a04d871667cca9e6a144c976a1663958bb7d82fa +honest-4of7.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +honest-4of7.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +honest-4of7.b.2.2=0x0cfc0d11c4a809a14bdb860bc98e63675f705514f3225e686d8db38bfbffd851 +honest-4of7.b.2.3=0x0d87da9107119594fe24a87161f2e8153ace9555cb23df814f760bbd185f4152 +honest-4of7.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +honest-4of7.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +honest-4of7.b.3.2=0x0ba21b2136817e8abad8af4abf925e05a5d6a1bcf1cb5a8c5058aae3447f40ef +honest-4of7.b.3.3=0x025ec0af43ab26cb884fd9b9c5ad35ed07dd20ec864994a6044f15b3307a019e +honest-4of7.b.4.0=0x0a23adb7e571fcc2304f38a51f23a671d93982536e84de49f0e280b14c1a2be8 +honest-4of7.b.4.1=0x0a3975ca1a5eca3893d296ec53924a1d52f5f329e842c33e18c35929ba969882 +honest-4of7.b.4.2=0x09e50e25fd42d4b7ee7f770480ef5089a3921f31c4cd60a52569cb5d6ddd8812 +honest-4of7.b.4.3=0x073d563beff15fa37587c210d8892d4e5725cdda59ad421d7aa71c112024a152 +honest-4of7.b.5.0=0x02cd3b1f66ae1a5de3bea59305d25dfec76797a7cce5e00f6211f97deb60cd3f +honest-4of7.b.5.1=0x08f9e2f28b2ac7d04e53c0955a8c91f4106838a4ba19b9e060e530fd068dea8e +honest-4of7.b.5.2=0x076e918c61547561d59d54174ab638a3e45a57b715f1a561b9633e297f614f7d +honest-4of7.b.5.3=0x01610d9292b7b0ff63e1d7c841483b9216bd5836765ccf40a6f6c159d6df9162 +honest-4of7.b.6.0=0x0593438c9359d7764b11156642c1adf23dddf9e12cfcdf414843011d345520c6 +honest-4of7.b.6.1=0x036fc89c5649960dcae51ba46c1e7b2b4763ffeb95d6b4e78ce00d32d7dce36d +honest-4of7.b.6.2=0x0676c22361ad356afc3e1274465776d8e1e805615b7d742bf97e80fd1c3d393d +honest-4of7.b.6.3=0x054f48544f43905bee434d6bb98ed416b5fb1a3c2814d1d04b6c20e1f4f9a126 +honest-4of7.b.7.0=0x0c334308aeeaec1dfe0e4d409833b111d8e44996e9015744536773e9cde4b9c4 +honest-4of7.b.7.1=0x0b00b2ba4f574fd3c6da3f45dccea839ac87bd2b1280833bfee1ec60dad15237 +honest-4of7.b.7.2=0x07e65920fb1cb0a8a5a1fb99692976102f3e3a8bb9313cc85cf959fccba6c190 +honest-4of7.b.7.3=0x0ad1052818a9b8dd76cc1c6d82d33b251e66d968e51f8f1f4e493a4b98a92c9a +honest-4of7.C.1.0=d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661 +honest-4of7.C.1.1=509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +honest-4of7.C.1.2=34a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +honest-4of7.C.1.3=a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +honest-4of7.C.2.0=d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f +honest-4of7.C.2.1=54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +honest-4of7.C.2.2=6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +honest-4of7.C.2.3=08dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +honest-4of7.C.3.0=c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916 +honest-4of7.C.3.1=802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +honest-4of7.C.3.2=c056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +honest-4of7.C.3.3=59510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +honest-4of7.C.4.0=1ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb +honest-4of7.C.4.1=736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +honest-4of7.C.4.2=0d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +honest-4of7.C.4.3=66b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +honest-4of7.C.5.0=ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a58 +honest-4of7.C.5.1=5f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc9 +honest-4of7.C.5.2=2ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +honest-4of7.C.5.3=2fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +honest-4of7.C.6.0=01b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c52 +honest-4of7.C.6.1=90358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9 +honest-4of7.C.6.2=d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba9 +honest-4of7.C.6.3=9be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +honest-4of7.C.7.0=d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a5 +honest-4of7.C.7.1=1c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586a +honest-4of7.C.7.2=e7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2 +honest-4of7.C.7.3=d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +honest-4of7.A.1.0=67b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c41 +honest-4of7.A.1.1=97f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +honest-4of7.A.1.2=e78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +honest-4of7.A.1.3=0d43f75458703d339fdc6f1fa09f8ec52e7d0aff2706318a73aa4403ab3b00df +honest-4of7.A.2.0=bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f19 +honest-4of7.A.2.1=8a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +honest-4of7.A.2.2=88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +honest-4of7.A.2.3=2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +honest-4of7.A.3.0=dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921 +honest-4of7.A.3.1=e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +honest-4of7.A.3.2=120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +honest-4of7.A.3.3=46054df74cc1870679bb1286c17f32a020fc79085ebe883f7379589c9d451d02 +honest-4of7.A.4.0=14576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d +honest-4of7.A.4.1=4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +honest-4of7.A.4.2=32491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +honest-4of7.A.4.3=b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +honest-4of7.A.5.0=f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10 +honest-4of7.A.5.1=7140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306 +honest-4of7.A.5.2=ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +honest-4of7.A.5.3=26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +honest-4of7.A.6.0=7c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6e +honest-4of7.A.6.1=c9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933 +honest-4of7.A.6.2=ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559 +honest-4of7.A.6.3=fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +honest-4of7.A.7.0=525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1 +honest-4of7.A.7.1=ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103 +honest-4of7.A.7.2=bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56 +honest-4of7.A.7.3=eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +honest-4of7.s.1.1=0x0ab6306172cb5d660cdf333c016084a8cbda7f3b982679f4e0bd0b1a90650796 +honest-4of7.s.1.2=0x01c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c +honest-4of7.s.1.3=0x0d4fade6eb5b464b133dba298d5e754dadb5da2d5ebfedce71bb9bf957886d1e +honest-4of7.s.1.4=0x0322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2 +honest-4of7.s.1.5=0x0170a14f87864705b9e6f327955c02bc5e338634e0ced3f3dcce6db7850d9a41 +honest-4of7.s.1.6=0x0973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d43219006 +honest-4of7.s.1.7=0x0de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc5 +honest-4of7.s.2.1=0x0cbd10f5a47947c0343ea7bb33264ced53b7edffd214acc331c688ff79e41aa7 +honest-4of7.s.2.2=0x02438c90538a86976b3cf68f9f0a7b1ab46f7275212b4280a19c3c0c09917b7a +honest-4of7.s.2.3=0x001b4d2881054a5e4144ffcc0438522c270338fe00a1df21f90b8ff9c1ab48d1 +honest-4of7.s.2.4=0x0bdca7dba01ea2c0249bb1e3b59845e7b6a616d92a7760ee07525c23e09f4dbe +honest-4of7.s.2.5=0x0e2487f259a4401676b7854803aa541221baa01dbf1a8525fa805b27f6ecfbe5 +honest-4of7.s.2.6=0x0c8b428a20cb320ca5dd686c4156f0717373aa0a788a2a10a1d3646143021e58 +honest-4of7.s.2.7=0x0ca92cc068c8884e205249c3c1868ecbb70409de10c52df4cc894f2b034c8029 +honest-4of7.s.3.1=0x0dda4e14816fc042f2cabb545c50f43baaf53ec3b6318a293a0eb1ca289061e5 +honest-4of7.s.3.2=0x0a815ec82117fec4808bdffc3af894b260b974901db287ca5d1deeff007f706f +honest-4of7.s.3.3=0x0caf270e36e62878b1901ca0ea572b2857575112d68ff5eb01935d67183f53c3 +honest-4of7.s.3.4=0x0c3c3a42527dc5150ae560561ef62f01f16977f046fedeeb5445dde92aa7be0f +honest-4of7.s.3.5=0x01012bc003825c4f11999a2f8d5f17a3918a8cccd5344d2b820c516bf2906181 +honest-4of7.s.3.6=0x0e4fada2093284d75df06a43edb80d738d8d95084dbd7c942982c3f2afb6766c +honest-4of7.s.3.7=0x00873484c396b76861c20ea3f0edd6d454d4d28bb07745fd05baeb47980c28d9 +honest-4of7.s.4.1=0x032843a0ca2205b8b61572d2a6fb72a385de97a08142c4f52c8abe4eaff33619 +honest-4of7.s.4.2=0x090afea22797ca5b06268d8031b34ed671cad4461120de004aef3b751a3f90cb +honest-4of7.s.4.3=0x00695d2e07ae6744e9943a83d0dc241d3482a6b77fdf3c7a629f99dc7290774a +honest-4of7.s.4.4=0x040d2216d39fff76c8c92f42dbf4266cfac3cfcb8503c437b8890b1ad7949e77 +honest-4of7.s.4.5=0x0346f16fc50ba6f5f8fa701fa6dcd8b8fe13ae9d71bc27841fd395a9e315350e +honest-4of7.s.4.6=0x0a62d920dff7d119dc2b777e87e033f5c4c7e37030c639b10cd55cc0dcc9c339 +honest-4of7.s.4.7=0x08b17d3d5e0391e7c79149c1d2dfbb168865cd5f134fad0a52b666d95e7b77b4 +honest-4of7.s.5.1=0x06076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe +honest-4of7.s.5.2=0x0bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93 +honest-4of7.s.5.3=0x0623e849eced14dafb9dcb340bf0936991fbdc0912d11124000dc34a02dc2c24 +honest-4of7.s.5.4=0x0d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde +honest-4of7.s.5.5=0x007e4d80d3fae0f735682c8485532f41a6dc6e212dcaa42023ecac14c3471e12 +honest-4of7.s.5.6=0x06e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a4 +honest-4of7.s.5.7=0x0ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c +honest-4of7.s.6.1=0x056ad398596664733c8552c552be4c5d71aa374711a9cb3b2a314f83037d6b7c +honest-4of7.s.6.2=0x0d9e39667b2b5572dad890810db611f2a23b997a36d8a7a9b40a75df6bf56f2d +honest-4of7.s.6.3=0x03dfede3945548bf7d16c0d36148a5d5cb50211925092415c640c658e3f93d44 +honest-4of7.s.6.4=0x08dd51892385f78f197678dde6241bfd8ca861a5ce6fea430b31f6607e2edfa6 +honest-4of7.s.6.5=0x034cf12712905c738c9161be30259c5dec646c52f22161e9eadf81ebf15fad5c +honest-4of7.s.6.6=0x055e784c7ae280f9c636d594d6c6ffece3dcb40eb58a244b3f10100d793a8394 +honest-4of7.s.6.7=0x044628b3ab830f5ca967b8806f19a99f1f996a9fa486a9a2405c2b19a37fe60e +honest-4of7.s.7.1=0x0036580771358b952861f721b99b590c3da350e3a7a460d489b6b5f207ac5b40 +honest-4of7.s.7.2=0x08c06b4f1a2bf05d6279d92af8b07157c6e55858bf5414440160d90d8bf5bf70 +honest-4of7.s.7.3=0x0c64930fcc8bf8a9d88998df27a3b68ff595127eee229d26d4ae2705d0a5e34a +honest-4of7.s.7.4=0x0d37bfcb682b253a0379279785bc197b72932d1327808e0a4561d9b31ebd206a +honest-4of7.s.7.5=0x0d4ee203ccdef6cd5c3076ad52408ae0e6c055d25ede797b953f2aedbf3bd06c +honest-4of7.s.7.6=0x0041355075493e7a55303c78cb43c086549519e5bae4e1853572462f242b2035 +honest-4of7.s.7.7=0x051f14080ba6dc52742ee05532752133b1c26831c89479ba08ec820d4479c2cf +honest-4of7.sp.1.1=0x00ca52c3a3c54f416e9bf780545331bb723724f44b7c29ff0c2cd1ee95e2dfe7 +honest-4of7.sp.1.2=0x08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +honest-4of7.sp.1.3=0x055e2479c2f0a692b8e4d84ea0a1505d7df083d52c8442741d760576899ac400 +honest-4of7.sp.1.4=0x032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +honest-4of7.sp.1.5=0x0e4ff759438d7b23a6da989fe20afa05c358b0a0f3853fd01d29e6eb29c59419 +honest-4of7.sp.1.6=0x07b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +honest-4of7.sp.1.7=0x0a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +honest-4of7.sp.2.1=0x08ec86004755bbb7daa772898ef56333720bf171bd051b05d458cd15472ec81f +honest-4of7.sp.2.2=0x032005ea2f068427bdd3cbe2c2d4ff0642f3c96eef2564067275d5537899185d +honest-4of7.sp.2.3=0x0bc563c7366e26e9d598529812c17e9ec789c4adf3d81dc5de222514b2e41081 +honest-4of7.sp.2.4=0x001e17aa5e58a833e3972149c0ca7a772d645e9327b401356f698fd0d091d2bf +honest-4of7.sp.2.5=0x05e0223aa1947a88c976799d1504b20ce222b565e73819d4914b30d9def860de +honest-4of7.sp.2.6=0x08cab075662151c74f3fb13352b3f8dab9c3651e5bc331176c69ea068f9109c9 +honest-4of7.sp.2.7=0x031aa44277329177436358aebe505d5c2ead2a487b7c20f4f9ffab8c6acc4922 +honest-4of7.sp.3.1=0x002794687a9b60683b29e528aaec57d6d87cd0237ae585f855c5cc3a0c6856ae +honest-4of7.sp.3.2=0x08af9209fb5f1379a02ffa2036349ca0852c083322f34f7a0b781c11e9a78350 +honest-4of7.sp.3.3=0x0af5fa7b805cd686c508b65e7fef388f42458c83c6ea83d153348c9b39c0925c +honest-4of7.sp.3.4=0x06b59cee3a63e2abd52bf93d28f734309890020cbfbc8e5f763e91aa489860cf +honest-4of7.sp.3.5=0x0a26fd7dbf7720ae0278dd16d35bd312b73a2e593322eb088e70ad72390af85d +honest-4of7.sp.3.6=0x06873670db321a00720006441ec3e2c280a295ccad46f4ab147745688006094c +honest-4of7.sp.3.7=0x0a0ecbe32397b76855a08f1fad3ea6ce23f7fdf253e2272b222cdbc040659d50 +honest-4of7.sp.4.1=0x08841e0f229d9c041b5a92a4c9c5f865da172161dbb223450888a48be6c49460 +honest-4of7.sp.4.2=0x0c27dc70652863e68af67b0e84ad0f40935b4fa2b96974300890ce0cc229220c +honest-4of7.sp.4.3=0x06881a99b7ebd39a26b492435e3f0ed576485de4ee9a1bb08e896c1f4346e9fc +honest-4of7.sp.4.4=0x0619741df028c9a1a2f4eea6674a90f940f0de1efbc38571d92f0a6c7d0b5aae +honest-4of7.sp.4.5=0x0ad2cfa57dec74d6adb06b99af69f4800aff41b3949d0c9c56a7263eab6cb5e9 +honest-4of7.sp.4.6=0x062d5eee6c105469ee78a97e45035d3d45b5d971a015fbd5a4802e81336a10bd +honest-4of7.sp.4.7=0x069dbd8b8fd546de19adbeb738e56505af27374f9eadbec90176aedd27f0d9a8 +honest-4of7.sp.5.1=0x0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +honest-4of7.sp.5.2=0x038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +honest-4of7.sp.5.3=0x036f141e5eb5103da0728b3a8da847008c1c7f92097325584ff59f0e945a1b35 +honest-4of7.sp.5.4=0x0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +honest-4of7.sp.5.5=0x001eb78031cdae3459ba876fd4eb62074d53c62df96f0c3f1733d6fae4c83e10 +honest-4of7.sp.5.6=0x0d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +honest-4of7.sp.5.7=0x0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +honest-4of7.sp.6.1=0x064b61b6356083a1fa1055e9ad92390c76bcf8d6799dc9a24976a1d04671b1df +honest-4of7.sp.6.2=0x0853976146bbedd023e9dad8facdf95ec4163e3c075e55b4906adeacc9fcf631 +honest-4of7.sp.6.3=0x000e77c87366692d4afbc3b78031366f769405bf60633cd16fe351e1f7eb2e7b +honest-4of7.sp.6.4=0x0d57b4e596f557e104d9e10b9714e8c6d218ecc9752969daac68c0bb8e1621a1 +honest-4of7.sp.6.5=0x0796781e92fbadc5c713dc5692cce1e9da7eede036457523f790a8ab1783b6f4 +honest-4of7.sp.6.6=0x0028be82dddb1d5a20d64b1dcb7ddf602d4085d8c76c390c454cc09d7b1688a1 +honest-4of7.sp.6.7=0x086c8521edf5591ca14dc2e6994c9eb167d831884c528ff2898ebf7f9fb130d5 +honest-4of7.sp.7.1=0x0cefea3747a14625d4882e8b5e96947f8640d98f004285625c5dd7d55f17a0b7 +honest-4of7.sp.7.2=0x076d251a0b5538b998a34f94010664e86212339d1bf324bc1173f74711c40a1c +honest-4of7.sp.7.3=0x029a3ef7f9325a65f98b6ee78ba599288920ede767b04e020604f6891e044eb3 +honest-4of7.sp.7.4=0x05668318106441b7a66c4b130a96a81c18359e940f1719e4cd6bf9e5bbf2c73c +honest-4of7.sp.7.5=0x084387d6eae2d592480a67a288c7cd9e85b0bb3570fc90922a6d17484cb29fc0 +honest-4of7.sp.7.6=0x03a2e39122a5fcd9872a48221127458b47f2b95dec35ba37dfcc649c31670448 +honest-4of7.sp.7.7=0x0cf196781c0cfdc3195ee61fb10bc1bf222c4fc77927c009517c148a79217a4b +honest-4of7.x.1=0x08a54312d87ac86121f6b4a3e43bada00e52d79fd76a75590b88433f1a915ed0 +honest-4of7.x.2=0x0e707aaa2c60d8e79a076d36b5d1f32e14c45baf87d797074df0fa6901e9dc3b +honest-4of7.x.3=0x0572c9c9c92867b02daf84fdde0a558cc03bb8db7575a02df831a8c2d6994789 +honest-4of7.x.4=0x08c24bcb281010498aee781b05d86eb81b275c276ace8e0864afd95badbee418 +honest-4of7.x.5=0x07fbfd4892bb5f474c8e11acd29327aa3cbd50dbcc142c497c0bec2617946f21 +honest-4of7.x.6=0x013a8fc6b80190e613bf57d2eac5a45de29bc2d4ca405726f77d4f737b4ad294 +honest-4of7.x.7=0x011669b4abed910b881a8badf62f43ce70c8fe826314fb5960d27ff4170a2518 +honest-4of7.y=ba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.Y.1=6bcf76baeb2b5e2769d8fcb762f75000ab2c830935e013d586f87cb9f8eb2e34 +honest-4of7.Y.1.identity=false +honest-4of7.Y.2=12ad8cc7aae0e92be0e65ac71391cd625853686e1e3b4f0f85241961cc02bb55 +honest-4of7.Y.2.identity=false +honest-4of7.Y.3=75e4dba74486758a115ef4468d4f5260fc4cfd7cf7ca65d5bf323477b123f690 +honest-4of7.Y.3.identity=false +honest-4of7.Y.4=515d84cccfa9f4bcb7e9055e4ebba83c108ff757b16bdafed62dc33d123b1968 +honest-4of7.Y.4.identity=false +honest-4of7.Y.5=1a77c90f9d28bb5fe004c6c2d01e53091553da0188cc16cc4d60e2710c59ae40 +honest-4of7.Y.5.identity=false +honest-4of7.Y.6=96dfeb4f52a349ffa9ac7d23cc76d470cade212dae810671283bd518f45fffe5 +honest-4of7.Y.6.identity=false +honest-4of7.Y.7=3fdcfdda97afe23ab5b8aafecd94d857288c17c5c17888286e81ef95ac9d655b +honest-4of7.Y.7.identity=false +honest-4of7.msg.1.1.1.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +honest-4of7.msg.1.1.2.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +honest-4of7.msg.1.1.3.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +honest-4of7.msg.1.1.4.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +honest-4of7.msg.1.1.5.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +honest-4of7.msg.1.1.6.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa192690101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +honest-4of7.msg.1.1.7.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +honest-4of7.msg.4.5.1.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa192690405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d90d43f75458703d339fdc6f1fa09f8ec52e7d0aff2706318a73aa4403ab3b00df +honest-4of7.msg.4.5.2.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +honest-4of7.msg.4.5.3.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc346054df74cc1870679bb1286c17f32a020fc79085ebe883f7379589c9d451d02 +honest-4of7.msg.4.5.4.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa192690405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +honest-4of7.msg.4.5.5.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +honest-4of7.msg.4.5.6.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +honest-4of7.msg.4.5.7.0=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +honest-4of7.count.COMMITMENTS=7 +honest-4of7.count.COMPLAINT=0 +honest-4of7.count.ANSWER=0 +honest-4of7.count.EXTRACTION=7 +honest-4of7.count.EXTRACTION_COMPLAINT=0 +honest-4of7.count.RECONSTRUCTION=0 +honest-4of7.counts=7,0,0,7,0,0 +honest-4of7.transcript=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e7472616e7363726970740837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926903070000000700a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d600a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da000a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c6000a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa192690101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926901010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb68900000000000000000000000700a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa192690405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d90d43f75458703d339fdc6f1fa09f8ec52e7d0aff2706318a73aa4403ab3b00df00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc346054df74cc1870679bb1286c17f32a020fc79085ebe883f7379589c9d451d0200a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa192690405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea940800a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab00a40837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa1926904050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b70000000000000000 +honest-4of7.digest=9b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431b +honest-4of7.confirmation.1=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070801009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.confirmation.2=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070802009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.confirmation.3=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070803009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.confirmation.4=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070804009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.confirmation.5=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070805009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.confirmation.6=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070806009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.confirmation.7=0837682e37f69d235074f96d4bc7737c12e03d5d5d7313880951f8991aa19269070807009b6a52fe5b0fb06feb875b82cb37871e64bc235b01de384ba54a06f96c24431bba8011aef2b5f23231919caf1c3c901626e7c970436e98386d46b01713616a63 +honest-4of7.participant_abort.1=none +honest-4of7.participant_abort.2=none +honest-4of7.participant_abort.3=none +honest-4of7.participant_abort.4=none +honest-4of7.participant_abort.5=none +honest-4of7.participant_abort.6=none +honest-4of7.participant_abort.7=none +honest-4of7.check.public_abort_none=true +honest-4of7.check.qual_expected=true +honest-4of7.check.y_equals_sum_of_true_a_i0=true +honest-4of7.check.Y_equals_true_polynomials=true +honest-4of7.check.x_equals_sum_of_true_shares=true +honest-4of7.check.A6.1=true +honest-4of7.check.A6.2=true +honest-4of7.check.A6.3=true +honest-4of7.check.A6.4=true +honest-4of7.check.A6.5=true +honest-4of7.check.A6.6=true +honest-4of7.check.A6.7=true +honest-4of7.check.all_broadcasts_well_formed=true +honest-4of7.check.all_shares_well_formed=true +honest-4of7.check.encode_decode_roundtrip=true +honest-4of7.check.all_points_in_subgroup=true +honest-4of7.check.digest_independent_of_arrival_order=true +honest-4of7.check.confirmations_sent_by_live_qual_members=true +honest-4of7.check.confirmations_agree_A7_none=true +honest-4of7.check.admission_accepts=true +honest-4of7.check.rounds_2_3_5_6_empty=true +honest-4of7.check.no_marks=true +honest-4of7.enc.m=5 +honest-4of7.enc.width=3 +honest-4of7.enc.A=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990 +honest-4of7.enc.B=09e21679734696901ef9ec77a4c224fbd26451232a3b3bf12169b38894ab65d4 +honest-4of7.D.1=9ce042158e75804ee90d47c23c14969d6369ede9e0aa911cfda59551763f0fd8 +honest-4of7.D.2=48b949dd5e38aeba9f1544d029b048df3903862bbcfb2c32b39010ed212a61e5 +honest-4of7.D.3=c414c64de0b17fdb9485cdd9bddcf53b1190b3be21519ca35f1fefb7c011523d +honest-4of7.D.4=e650b0af1302a078199b677d630db9578e46ab586a6e30b875cda724dece52e5 +honest-4of7.D.5=0f6ed8509d499d85afe89aa5a219bcbde4a683642488ae91231bf5a7245d4b45 +honest-4of7.D.6=4b523fb2413506d0defee8c6c94dd19a8939a1c7ae8d1c59d1a85507d9112a8f +honest-4of7.D.7=1600ffec72db14b9ee8c28ab1c30b929ec2a7a8103f28061966e75250b2e7309 +honest-4of7.check.dleq_relations=true +honest-4of7.lagrange.1-2-3-4.1=0x0000000000000000000000000000000000000000000000000000000000000004 +honest-4of7.lagrange.1-2-3-4.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb1 +honest-4of7.lagrange.1-2-3-4.3=0x0000000000000000000000000000000000000000000000000000000000000004 +honest-4of7.lagrange.1-2-3-4.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +honest-4of7.lagrange.1-2-3-5.1=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac72139618d +honest-4of7.lagrange.1-2-3-5.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +honest-4of7.lagrange.1-2-3-5.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965e +honest-4of7.lagrange.1-2-3-5.5=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac721396189 +honest-4of7.lagrange.1-2-3-6.1=0x08b1d2f3098569656a3df033cd85bd0063d8138be144d6b4e38dd56c1a944e0b +honest-4of7.lagrange.1-2-3-6.2=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9657 +honest-4of7.lagrange.1-2-3-6.3=0x0000000000000000000000000000000000000000000000000000000000000002 +honest-4of7.lagrange.1-2-3-6.6=0x0d0abc6c8e481e181f5ce84db4489b8095c41d51d1e7420f5554c02227de750b +honest-4of7.lagrange.1-2-3-7.1=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +honest-4of7.lagrange.1-2-3-7.2=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd5b +honest-4of7.lagrange.1-2-3-7.3=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac72139618b +honest-4of7.lagrange.1-2-3-7.7=0x0dc438ab79bde6e092e211a75abe6b409e161ef2cf57a94912f5e7407f6ad0e1 +honest-4of7.lagrange.1-2-4-5.1=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7328 +honest-4of7.lagrange.1-2-4-5.2=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b98f +honest-4of7.lagrange.1-2-4-5.4=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b994 +honest-4of7.lagrange.1-2-4-5.5=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7324 +honest-4of7.lagrange.1-2-4-6.1=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f5b +honest-4of7.lagrange.1-2-4-6.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb4 +honest-4of7.lagrange.1-2-4-6.4=0x0000000000000000000000000000000000000000000000000000000000000001 +honest-4of7.lagrange.1-2-4-6.6=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd5f +honest-4of7.lagrange.1-2-4-7.1=0x03386117a4b627091dde0d1caaef298e5dde4020d82c7572673e0331851a7bba +honest-4of7.lagrange.1-2-4-7.2=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f55 +honest-4of7.lagrange.1-2-4-7.4=0x080cf2bb1bc76196caab20c7ab55e7e3eaaba0521c6f259e021b07fbccc2354a +honest-4of7.lagrange.1-2-4-7.7=0x0052701bf6df03e74fc967b61117ea8e3c96399ce26ad88b70b966b826e90c5f +honest-4of7.lagrange.1-2-5-6.1=0x0000000000000000000000000000000000000000000000000000000000000003 +honest-4of7.lagrange.1-2-5-6.2=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +honest-4of7.lagrange.1-2-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000001 +honest-4of7.lagrange.1-2-5-6.6=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965b +honest-4of7.lagrange.1-2-5-7.1=0x0873fede105e2677ee66e26b40b3cd15b66768563774b44c4f02c861fd6584c3 +honest-4of7.lagrange.1-2-5-7.2=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b990 +honest-4of7.lagrange.1-2-5-7.5=0x0d489081876f61059b33f616411a8b6b4334c8877bb76477e9dfcd2c450d3e53 +honest-4of7.lagrange.1-2-5-7.7=0x026a48d1bb889d46d66689d580335f2ac666b018a2215815cd6e826523d3dcc9 +honest-4of7.lagrange.1-2-6-7.1=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd62 +honest-4of7.lagrange.1-2-6-7.2=0x0d0abc6c8e481e181f5ce84db4489b8095c41d51d1e7420f5554c02227de7509 +honest-4of7.lagrange.1-2-6-7.6=0x0a24cb70e070faf6514842e71a715c80747c16cddc25a5285ed023a8c9ad05b4 +honest-4of7.lagrange.1-2-6-7.7=0x08b1d2f3098569656a3df033cd85bd0063d8138be144d6b4e38dd56c1a944e07 +honest-4of7.lagrange.1-3-4-5.1=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965e +honest-4of7.lagrange.1-3-4-5.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +honest-4of7.lagrange.1-3-4-5.4=0x0000000000000000000000000000000000000000000000000000000000000005 +honest-4of7.lagrange.1-3-4-5.5=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965a +honest-4of7.lagrange.1-3-4-6.1=0x05cbe1f75bae46439c294acd33ae7e0042900d07eb8339cded0938f2bc62deb2 +honest-4of7.lagrange.1-3-4-6.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb3 +honest-4of7.lagrange.1-3-4-6.4=0x0000000000000000000000000000000000000000000000000000000000000003 +honest-4of7.lagrange.1-3-4-6.6=0x08b1d2f3098569656a3df033cd85bd0063d8138be144d6b4e38dd56c1a944e07 +honest-4of7.lagrange.1-3-4-7.1=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7327 +honest-4of7.lagrange.1-3-4-7.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9658 +honest-4of7.lagrange.1-3-4-7.4=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7327 +honest-4of7.lagrange.1-3-4-7.7=0x026a48d1bb889d46d66689d580335f2ac666b018a2215815cd6e826523d3dcc9 +honest-4of7.lagrange.1-3-5-6.1=0x039f6d3a994cebea4199cec0404d0ec0299a0824f3320420b425c397b5bdcb30 +honest-4of7.lagrange.1-3-5-6.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +honest-4of7.lagrange.1-3-5-6.5=0x039f6d3a994cebea4199cec0404d0ec0299a0824f3320420b425c397b5bdcb30 +honest-4of7.lagrange.1-3-5-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +honest-4of7.lagrange.1-3-5-7.1=0x09f66c61259388c43466f890b0d3e890726796659cc98b59ef67d9e133c9eec0 +honest-4of7.lagrange.1-3-5-7.3=0x048748893fa026e4d20042705060527034008a2e2ffe8528e12f347da32d3df7 +honest-4of7.lagrange.1-3-5-7.5=0x0bc622fe7239feb95533dff0d0fa6ff087349a7816628d6a497abbad0ea8d456 +honest-4of7.lagrange.1-3-5-7.7=0x02b791ebf2f9b0efb1335b103039cb101f33861bb6658318871c52b1c84e5862 +honest-4of7.lagrange.1-3-6-7.1=0x0172f87dd6eb9190e70a52b34ceb9f8010a40341fae0ce737b424e3caf18b7ae +honest-4of7.lagrange.1-3-6-7.3=0x039f6d3a994cebea4199cec0404d0ec0299a0824f3320420b425c397b5bdcb2c +honest-4of7.lagrange.1-3-6-7.6=0x05cbe1f75bae46439c294acd33ae7e0042900d07eb8339cded0938f2bc62deb1 +honest-4of7.lagrange.1-3-6-7.7=0x039f6d3a994cebea4199cec0404d0ec0299a0824f3320420b425c397b5bdcb2d +honest-4of7.lagrange.1-4-5-6.1=0x0000000000000000000000000000000000000000000000000000000000000002 +honest-4of7.lagrange.1-4-5-6.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +honest-4of7.lagrange.1-4-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000006 +honest-4of7.lagrange.1-4-5-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +honest-4of7.lagrange.1-4-5-7.1=0x05a2a9e9603ec44ff44496f22b2288b92444f0397a4dcd8834ac8596a8ee5882 +honest-4of7.lagrange.1-4-5-7.4=0x03386117a4b627091dde0d1caaef298e5dde4020d82c7572673e0331851a7bb3 +honest-4of7.lagrange.1-4-5-7.5=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +honest-4of7.lagrange.1-4-5-7.7=0x0ce1845e92d89c2477783472abbca6397779008360b1d5c99cf80cc61469eedb +honest-4of7.lagrange.1-4-6-7.1=0x07ba829f24e85daf7ae1b9119a3dfd55ae1566b53a044d129161a143a5d928ec +honest-4of7.lagrange.1-4-6-7.4=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b990 +honest-4of7.lagrange.1-4-6-7.6=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd62 +honest-4of7.lagrange.1-4-6-7.7=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b991 +honest-4of7.lagrange.1-5-6-7.1=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac72139618b +honest-4of7.lagrange.1-5-6-7.5=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac721396184 +honest-4of7.lagrange.1-5-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000007 +honest-4of7.lagrange.1-5-6-7.7=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +honest-4of7.lagrange.2-3-4-5.2=0x000000000000000000000000000000000000000000000000000000000000000a +honest-4of7.lagrange.2-3-4-5.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca3 +honest-4of7.lagrange.2-3-4-5.4=0x000000000000000000000000000000000000000000000000000000000000000f +honest-4of7.lagrange.2-3-4-5.5=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb3 +honest-4of7.lagrange.2-3-4-6.2=0x0000000000000000000000000000000000000000000000000000000000000009 +honest-4of7.lagrange.2-3-4-6.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca7 +honest-4of7.lagrange.2-3-4-6.4=0x0000000000000000000000000000000000000000000000000000000000000009 +honest-4of7.lagrange.2-3-4-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +honest-4of7.lagrange.2-3-4-7.2=0x05cbe1f75bae46439c294acd33ae7e0042900d07eb8339cded0938f2bc62deb8 +honest-4of7.lagrange.2-3-4-7.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca9 +honest-4of7.lagrange.2-3-4-7.4=0x0000000000000000000000000000000000000000000000000000000000000007 +honest-4of7.lagrange.2-3-4-7.7=0x08b1d2f3098569656a3df033cd85bd0063d8138be144d6b4e38dd56c1a944e07 +honest-4of7.lagrange.2-3-5-6.2=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9663 +honest-4of7.lagrange.2-3-5-6.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cad +honest-4of7.lagrange.2-3-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000006 +honest-4of7.lagrange.2-3-5-6.6=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +honest-4of7.lagrange.2-3-5-7.2=0x0000000000000000000000000000000000000000000000000000000000000007 +honest-4of7.lagrange.2-3-5-7.3=0x039f6d3a994cebea4199cec0404d0ec0299a0824f3320420b425c397b5bdcb25 +honest-4of7.lagrange.2-3-5-7.5=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +honest-4of7.lagrange.2-3-5-7.7=0x039f6d3a994cebea4199cec0404d0ec0299a0824f3320420b425c397b5bdcb2d +honest-4of7.lagrange.2-3-6-7.2=0x0458e97984c2b4b2b51ef819e6c2de8031ec09c5f0a26b5a71c6eab60d4a270a +honest-4of7.lagrange.2-3-6-7.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb0 +honest-4of7.lagrange.2-3-6-7.6=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +honest-4of7.lagrange.2-3-6-7.7=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f56 +honest-4of7.lagrange.2-4-5-6.2=0x0000000000000000000000000000000000000000000000000000000000000005 +honest-4of7.lagrange.2-4-5-6.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca8 +honest-4of7.lagrange.2-4-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000010 +honest-4of7.lagrange.2-4-5-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +honest-4of7.lagrange.2-4-5-7.2=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b997 +honest-4of7.lagrange.2-4-5-7.4=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7319 +honest-4of7.lagrange.2-4-5-7.5=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f732e +honest-4of7.lagrange.2-4-5-7.7=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b991 +honest-4of7.lagrange.2-4-6-7.2=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f5c +honest-4of7.lagrange.2-4-6-7.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb0 +honest-4of7.lagrange.2-4-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000007 +honest-4of7.lagrange.2-4-6-7.7=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd5c +honest-4of7.lagrange.2-5-6-7.2=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +honest-4of7.lagrange.2-5-6-7.5=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca9 +honest-4of7.lagrange.2-5-6-7.6=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b966d +honest-4of7.lagrange.2-5-6-7.7=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb1 +honest-4of7.lagrange.3-4-5-6.3=0x0000000000000000000000000000000000000000000000000000000000000014 +honest-4of7.lagrange.3-4-5-6.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72c8a +honest-4of7.lagrange.3-4-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000024 +honest-4of7.lagrange.3-4-5-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cad +honest-4of7.lagrange.3-4-5-7.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b966d +honest-4of7.lagrange.3-4-5-7.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72c94 +honest-4of7.lagrange.3-4-5-7.5=0x0000000000000000000000000000000000000000000000000000000000000015 +honest-4of7.lagrange.3-4-5-7.7=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +honest-4of7.lagrange.3-4-6-7.3=0x000000000000000000000000000000000000000000000000000000000000000e +honest-4of7.lagrange.3-4-6-7.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca2 +honest-4of7.lagrange.3-4-6-7.6=0x000000000000000000000000000000000000000000000000000000000000000e +honest-4of7.lagrange.3-4-6-7.7=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb1 +honest-4of7.lagrange.3-5-6-7.3=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac721396192 +honest-4of7.lagrange.3-5-6-7.5=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b963c +honest-4of7.lagrange.3-5-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000023 +honest-4of7.lagrange.3-5-6-7.7=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac72139617e +honest-4of7.lagrange.4-5-6-7.4=0x0000000000000000000000000000000000000000000000000000000000000023 +honest-4of7.lagrange.4-5-6-7.5=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72c63 +honest-4of7.lagrange.4-5-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000046 +honest-4of7.lagrange.4-5-6-7.7=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca3 +honest-4of7.decrypt.1-2-3-4=5 +honest-4of7.check.decrypt.1-2-3-4=true +honest-4of7.check.sum_lambda_x.1-2-3-4=true +honest-4of7.decrypt.1-2-3-5=5 +honest-4of7.check.decrypt.1-2-3-5=true +honest-4of7.check.sum_lambda_x.1-2-3-5=true +honest-4of7.decrypt.1-2-3-6=5 +honest-4of7.check.decrypt.1-2-3-6=true +honest-4of7.check.sum_lambda_x.1-2-3-6=true +honest-4of7.decrypt.1-2-3-7=5 +honest-4of7.check.decrypt.1-2-3-7=true +honest-4of7.check.sum_lambda_x.1-2-3-7=true +honest-4of7.decrypt.1-2-4-5=5 +honest-4of7.check.decrypt.1-2-4-5=true +honest-4of7.check.sum_lambda_x.1-2-4-5=true +honest-4of7.decrypt.1-2-4-6=5 +honest-4of7.check.decrypt.1-2-4-6=true +honest-4of7.check.sum_lambda_x.1-2-4-6=true +honest-4of7.decrypt.1-2-4-7=5 +honest-4of7.check.decrypt.1-2-4-7=true +honest-4of7.check.sum_lambda_x.1-2-4-7=true +honest-4of7.decrypt.1-2-5-6=5 +honest-4of7.check.decrypt.1-2-5-6=true +honest-4of7.check.sum_lambda_x.1-2-5-6=true +honest-4of7.decrypt.1-2-5-7=5 +honest-4of7.check.decrypt.1-2-5-7=true +honest-4of7.check.sum_lambda_x.1-2-5-7=true +honest-4of7.decrypt.1-2-6-7=5 +honest-4of7.check.decrypt.1-2-6-7=true +honest-4of7.check.sum_lambda_x.1-2-6-7=true +honest-4of7.decrypt.1-3-4-5=5 +honest-4of7.check.decrypt.1-3-4-5=true +honest-4of7.check.sum_lambda_x.1-3-4-5=true +honest-4of7.decrypt.1-3-4-6=5 +honest-4of7.check.decrypt.1-3-4-6=true +honest-4of7.check.sum_lambda_x.1-3-4-6=true +honest-4of7.decrypt.1-3-4-7=5 +honest-4of7.check.decrypt.1-3-4-7=true +honest-4of7.check.sum_lambda_x.1-3-4-7=true +honest-4of7.decrypt.1-3-5-6=5 +honest-4of7.check.decrypt.1-3-5-6=true +honest-4of7.check.sum_lambda_x.1-3-5-6=true +honest-4of7.decrypt.1-3-5-7=5 +honest-4of7.check.decrypt.1-3-5-7=true +honest-4of7.check.sum_lambda_x.1-3-5-7=true +honest-4of7.decrypt.1-3-6-7=5 +honest-4of7.check.decrypt.1-3-6-7=true +honest-4of7.check.sum_lambda_x.1-3-6-7=true +honest-4of7.decrypt.1-4-5-6=5 +honest-4of7.check.decrypt.1-4-5-6=true +honest-4of7.check.sum_lambda_x.1-4-5-6=true +honest-4of7.decrypt.1-4-5-7=5 +honest-4of7.check.decrypt.1-4-5-7=true +honest-4of7.check.sum_lambda_x.1-4-5-7=true +honest-4of7.decrypt.1-4-6-7=5 +honest-4of7.check.decrypt.1-4-6-7=true +honest-4of7.check.sum_lambda_x.1-4-6-7=true +honest-4of7.decrypt.1-5-6-7=5 +honest-4of7.check.decrypt.1-5-6-7=true +honest-4of7.check.sum_lambda_x.1-5-6-7=true +honest-4of7.decrypt.2-3-4-5=5 +honest-4of7.check.decrypt.2-3-4-5=true +honest-4of7.check.sum_lambda_x.2-3-4-5=true +honest-4of7.decrypt.2-3-4-6=5 +honest-4of7.check.decrypt.2-3-4-6=true +honest-4of7.check.sum_lambda_x.2-3-4-6=true +honest-4of7.decrypt.2-3-4-7=5 +honest-4of7.check.decrypt.2-3-4-7=true +honest-4of7.check.sum_lambda_x.2-3-4-7=true +honest-4of7.decrypt.2-3-5-6=5 +honest-4of7.check.decrypt.2-3-5-6=true +honest-4of7.check.sum_lambda_x.2-3-5-6=true +honest-4of7.decrypt.2-3-5-7=5 +honest-4of7.check.decrypt.2-3-5-7=true +honest-4of7.check.sum_lambda_x.2-3-5-7=true +honest-4of7.decrypt.2-3-6-7=5 +honest-4of7.check.decrypt.2-3-6-7=true +honest-4of7.check.sum_lambda_x.2-3-6-7=true +honest-4of7.decrypt.2-4-5-6=5 +honest-4of7.check.decrypt.2-4-5-6=true +honest-4of7.check.sum_lambda_x.2-4-5-6=true +honest-4of7.decrypt.2-4-5-7=5 +honest-4of7.check.decrypt.2-4-5-7=true +honest-4of7.check.sum_lambda_x.2-4-5-7=true +honest-4of7.decrypt.2-4-6-7=5 +honest-4of7.check.decrypt.2-4-6-7=true +honest-4of7.check.sum_lambda_x.2-4-6-7=true +honest-4of7.decrypt.2-5-6-7=5 +honest-4of7.check.decrypt.2-5-6-7=true +honest-4of7.check.sum_lambda_x.2-5-6-7=true +honest-4of7.decrypt.3-4-5-6=5 +honest-4of7.check.decrypt.3-4-5-6=true +honest-4of7.check.sum_lambda_x.3-4-5-6=true +honest-4of7.decrypt.3-4-5-7=5 +honest-4of7.check.decrypt.3-4-5-7=true +honest-4of7.check.sum_lambda_x.3-4-5-7=true +honest-4of7.decrypt.3-4-6-7=5 +honest-4of7.check.decrypt.3-4-6-7=true +honest-4of7.check.sum_lambda_x.3-4-6-7=true +honest-4of7.decrypt.3-5-6-7=5 +honest-4of7.check.decrypt.3-5-6-7=true +honest-4of7.check.sum_lambda_x.3-5-6-7=true +honest-4of7.decrypt.4-5-6-7=5 +honest-4of7.check.decrypt.4-5-6-7=true +honest-4of7.check.sum_lambda_x.4-5-6-7=true +honest-4of7.decrypt.all=5 +honest-4of7.check.extra_shares_consistent=true +zero-share.t=1 +zero-share.n=3 +zero-share.ctx=7a65726f6a2e746573742e7a65726f2d7368617265 +zero-share.attempt=1 +zero-share.session=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc +zero-share.qual=1,2,3 +zero-share.disqualified= +zero-share.marked= +zero-share.marked_by= +zero-share.a.1.0=0x0000000000000000000000000000000000000000000000000000000000000001 +zero-share.a.1.1=0x0000000000000000000000000000000000000000000000000000000000000001 +zero-share.a.2.0=0x0000000000000000000000000000000000000000000000000000000000000001 +zero-share.a.2.1=0x0000000000000000000000000000000000000000000000000000000000000002 +zero-share.a.3.0=0x0000000000000000000000000000000000000000000000000000000000000001 +zero-share.a.3.1=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb1 +zero-share.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +zero-share.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +zero-share.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +zero-share.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +zero-share.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +zero-share.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +zero-share.C.1.0=22df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946 +zero-share.C.1.1=ae94d00be301ceb89a1eea1adcd5d876aa4a69124ffa14b9b49c940697d72935 +zero-share.C.2.0=7171c64db16ae291b12cc0d16443691b571c06da432b1749f09bbbe176b0f00c +zero-share.C.2.1=708ca7d04070c966fdacf811226d2fdf0ce6a7fbe3f0dbe35f691b07f4c9cebb +zero-share.C.3.0=73deab7e9ee990152946708b2e536b6aa6f7bb766f1c7830d60c3ff4c7d43e32 +zero-share.C.3.1=d21f2ca01cc6ff53ecaec203c6a51d69db76c19c5b5b4453ae6f50b5be5a9301 +zero-share.A.1.0=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +zero-share.A.1.1=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +zero-share.A.2.0=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +zero-share.A.2.1=719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab1 +zero-share.A.3.0=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +zero-share.A.3.1=e2bde3d0707588624826d3a7fe52ae7170a68aaba67134fb81c58a2dc3073d0c +zero-share.s.1.1=0x0000000000000000000000000000000000000000000000000000000000000002 +zero-share.s.1.2=0x0000000000000000000000000000000000000000000000000000000000000003 +zero-share.s.1.3=0x0000000000000000000000000000000000000000000000000000000000000004 +zero-share.s.2.1=0x0000000000000000000000000000000000000000000000000000000000000003 +zero-share.s.2.2=0x0000000000000000000000000000000000000000000000000000000000000005 +zero-share.s.2.3=0x0000000000000000000000000000000000000000000000000000000000000007 +zero-share.s.3.1=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +zero-share.s.3.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cac +zero-share.s.3.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca6 +zero-share.sp.1.1=0x06fa5a2cc8f51ca86c0fa7baf5b3830c9c9659445f53381198632a392e5240c9 +zero-share.sp.1.2=0x0115239220a5cdd46ba7bc1a7f3c3558f8f1f1235a2c6fac0d94a8385dfdb1ef +zero-share.sp.1.3=0x09ada1e1dd8a2ea971a70b7b09f922a5fbb5a99621cdb7c9535d349664a04fcc +zero-share.sp.2.1=0x0b64083246037bd39d75ba0e65dc8db8249d482e984efe21b8832a89e0be07ea +zero-share.sp.2.2=0x0257c32d3d123d3de3aff9339a42b9c6153730c69615a3f9370c474e023e9866 +zero-share.sp.2.3=0x07c933129954ae5130517359cfdd20d4ac3939f260a45a53862c7270fab65599 +zero-share.sp.3.1=0x00a46d8265a26abafe68972526e0fee4d1312e0dcf98a748d1b51a026e6640d8 +zero-share.sp.3.2=0x0127f3b498cea1968beb5b2b0f5261244888fc2a5c998223e9f8fc66afb72580 +zero-share.sp.3.3=0x01ab79e6cbfad872196e1f30f7c3c363bfe0ca46e99a5cff023cdecaf1080a28 +zero-share.x.1=0x0000000000000000000000000000000000000000000000000000000000000000 +zero-share.x.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb4 +zero-share.x.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb1 +zero-share.y=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +zero-share.Y.1=0100000000000000000000000000000000000000000000000000000000000000 +zero-share.Y.1.identity=true +zero-share.Y.2=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339c47 +zero-share.Y.2.identity=false +zero-share.Y.3=e2bde3d0707588624826d3a7fe52ae7170a68aaba67134fb81c58a2dc3073d0c +zero-share.Y.3.identity=false +zero-share.msg.1.1.1.0=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc0101010022df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946ae94d00be301ceb89a1eea1adcd5d876aa4a69124ffa14b9b49c940697d72935 +zero-share.msg.1.1.2.0=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc010102007171c64db16ae291b12cc0d16443691b571c06da432b1749f09bbbe176b0f00c708ca7d04070c966fdacf811226d2fdf0ce6a7fbe3f0dbe35f691b07f4c9cebb +zero-share.msg.1.1.3.0=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc0101030073deab7e9ee990152946708b2e536b6aa6f7bb766f1c7830d60c3ff4c7d43e32d21f2ca01cc6ff53ecaec203c6a51d69db76c19c5b5b4453ae6f50b5be5a9301 +zero-share.msg.4.5.1.0=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc04050100cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +zero-share.msg.4.5.2.0=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc04050200cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab1 +zero-share.msg.4.5.3.0=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc04050300cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7e2bde3d0707588624826d3a7fe52ae7170a68aaba67134fb81c58a2dc3073d0c +zero-share.count.COMMITMENTS=3 +zero-share.count.COMPLAINT=0 +zero-share.count.ANSWER=0 +zero-share.count.EXTRACTION=3 +zero-share.count.EXTRACTION_COMPLAINT=0 +zero-share.count.RECONSTRUCTION=0 +zero-share.counts=3,0,0,3,0,0 +zero-share.transcript=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e7472616e73637269707409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc010300000003006409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc0101010022df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946ae94d00be301ceb89a1eea1adcd5d876aa4a69124ffa14b9b49c940697d72935006409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc010102007171c64db16ae291b12cc0d16443691b571c06da432b1749f09bbbe176b0f00c708ca7d04070c966fdacf811226d2fdf0ce6a7fbe3f0dbe35f691b07f4c9cebb006409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc0101030073deab7e9ee990152946708b2e536b6aa6f7bb766f1c7830d60c3ff4c7d43e32d21f2ca01cc6ff53ecaec203c6a51d69db76c19c5b5b4453ae6f50b5be5a9301000000000000000000000003006409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc04050100cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7006409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc04050200cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab1006409ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc04050300cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7e2bde3d0707588624826d3a7fe52ae7170a68aaba67134fb81c58a2dc3073d0c0000000000000000 +zero-share.digest=8864e81db8467449ab695f59e82ca31608edf753370c46b912b2b936e43fd43d +zero-share.confirmation.1=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc070801008864e81db8467449ab695f59e82ca31608edf753370c46b912b2b936e43fd43dc5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +zero-share.confirmation.2=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc070802008864e81db8467449ab695f59e82ca31608edf753370c46b912b2b936e43fd43dc5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +zero-share.confirmation.3=09ae14cc1105ea43e028b54eaadc07a1cac39c28fcadea6048b25cb1d17236cc070803008864e81db8467449ab695f59e82ca31608edf753370c46b912b2b936e43fd43dc5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +zero-share.participant_abort.1=none +zero-share.participant_abort.2=none +zero-share.participant_abort.3=none +zero-share.check.public_abort_none=true +zero-share.check.qual_expected=true +zero-share.check.y_equals_sum_of_true_a_i0=true +zero-share.check.Y_equals_true_polynomials=true +zero-share.check.x_equals_sum_of_true_shares=true +zero-share.check.A6.1=true +zero-share.check.A6.2=true +zero-share.check.A6.3=true +zero-share.check.all_broadcasts_well_formed=true +zero-share.check.all_shares_well_formed=true +zero-share.check.encode_decode_roundtrip=true +zero-share.check.all_points_in_subgroup=true +zero-share.check.digest_independent_of_arrival_order=true +zero-share.check.confirmations_sent_by_live_qual_members=true +zero-share.check.confirmations_agree_A7_none=true +zero-share.check.admission_accepts=true +zero-share.F_coeffs=0x0000000000000000000000000000000000000000000000000000000000000003,0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb4 +zero-share.check.y_is_3G=true +zero-share.check.F_is_3_minus_3z=true +zero-share.check.x_1_is_zero=true +zero-share.check.Y_1_identity=true +zero-share.check.Y_j_is_F_j_G=true +zero-share.enc.m=1 +zero-share.enc.width=1 +zero-share.enc.A=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990 +zero-share.enc.B=ea65d858430c31693a80d0b475702080104c15bfb58a39bec995bccca0f41097 +zero-share.D.1=0100000000000000000000000000000000000000000000000000000000000000 +zero-share.D.2=8881d55b99ca8c6b7d21c2bf7cc9766e963a937b21729a0e3b66f9b03d2d4a1d +zero-share.D.3=ac5277f57a419f486d1715e9038404f112d5ceb345c5d999f160116daea3d9ae +zero-share.check.dleq_relations=true +zero-share.lagrange.1-2.1=0x0000000000000000000000000000000000000000000000000000000000000002 +zero-share.lagrange.1-2.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +zero-share.lagrange.1-3.1=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965d +zero-share.lagrange.1-3.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965b +zero-share.lagrange.2-3.2=0x0000000000000000000000000000000000000000000000000000000000000003 +zero-share.lagrange.2-3.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +zero-share.decrypt.1-2=1 +zero-share.check.decrypt.1-2=true +zero-share.check.sum_lambda_x.1-2=true +zero-share.decrypt.1-3=1 +zero-share.check.decrypt.1-3=true +zero-share.check.sum_lambda_x.1-3=true +zero-share.decrypt.2-3=1 +zero-share.check.decrypt.2-3=true +zero-share.check.sum_lambda_x.2-3=true +zero-share.decrypt.all=1 +zero-share.check.extra_shares_consistent=true +zero-share.check.D_1_identity=true +equal-shares.t=1 +equal-shares.n=3 +equal-shares.ctx=7a65726f6a2e746573742e657175616c2d736861726573 +equal-shares.attempt=1 +equal-shares.session=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee +equal-shares.qual=1,2,3 +equal-shares.disqualified= +equal-shares.marked= +equal-shares.marked_by= +equal-shares.a.1.0=0x0000000000000000000000000000000000000000000000000000000000000001 +equal-shares.a.1.1=0x0000000000000000000000000000000000000000000000000000000000000001 +equal-shares.a.2.0=0x0000000000000000000000000000000000000000000000000000000000000001 +equal-shares.a.2.1=0x0000000000000000000000000000000000000000000000000000000000000002 +equal-shares.a.3.0=0x0000000000000000000000000000000000000000000000000000000000000001 +equal-shares.a.3.1=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb4 +equal-shares.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +equal-shares.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +equal-shares.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +equal-shares.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +equal-shares.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +equal-shares.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +equal-shares.C.1.0=22df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946 +equal-shares.C.1.1=ae94d00be301ceb89a1eea1adcd5d876aa4a69124ffa14b9b49c940697d72935 +equal-shares.C.2.0=7171c64db16ae291b12cc0d16443691b571c06da432b1749f09bbbe176b0f00c +equal-shares.C.2.1=708ca7d04070c966fdacf811226d2fdf0ce6a7fbe3f0dbe35f691b07f4c9cebb +equal-shares.C.3.0=73deab7e9ee990152946708b2e536b6aa6f7bb766f1c7830d60c3ff4c7d43e32 +equal-shares.C.3.1=a532f62d13756787f83b834fca1a0ff1a80289f25253844a6517b1bfbe3e281a +equal-shares.A.1.0=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +equal-shares.A.1.1=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +equal-shares.A.2.0=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +equal-shares.A.2.1=719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab1 +equal-shares.A.3.0=cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +equal-shares.A.3.1=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339c47 +equal-shares.s.1.1=0x0000000000000000000000000000000000000000000000000000000000000002 +equal-shares.s.1.2=0x0000000000000000000000000000000000000000000000000000000000000003 +equal-shares.s.1.3=0x0000000000000000000000000000000000000000000000000000000000000004 +equal-shares.s.2.1=0x0000000000000000000000000000000000000000000000000000000000000003 +equal-shares.s.2.2=0x0000000000000000000000000000000000000000000000000000000000000005 +equal-shares.s.2.3=0x0000000000000000000000000000000000000000000000000000000000000007 +equal-shares.s.3.1=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +equal-shares.s.3.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +equal-shares.s.3.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72caf +equal-shares.sp.1.1=0x06fa5a2cc8f51ca86c0fa7baf5b3830c9c9659445f53381198632a392e5240c9 +equal-shares.sp.1.2=0x0115239220a5cdd46ba7bc1a7f3c3558f8f1f1235a2c6fac0d94a8385dfdb1ef +equal-shares.sp.1.3=0x09ada1e1dd8a2ea971a70b7b09f922a5fbb5a99621cdb7c9535d349664a04fcc +equal-shares.sp.2.1=0x0b64083246037bd39d75ba0e65dc8db8249d482e984efe21b8832a89e0be07ea +equal-shares.sp.2.2=0x0257c32d3d123d3de3aff9339a42b9c6153730c69615a3f9370c474e023e9866 +equal-shares.sp.2.3=0x07c933129954ae5130517359cfdd20d4ac3939f260a45a53862c7270fab65599 +equal-shares.sp.3.1=0x00a46d8265a26abafe68972526e0fee4d1312e0dcf98a748d1b51a026e6640d8 +equal-shares.sp.3.2=0x0127f3b498cea1968beb5b2b0f5261244888fc2a5c998223e9f8fc66afb72580 +equal-shares.sp.3.3=0x01ab79e6cbfad872196e1f30f7c3c363bfe0ca46e99a5cff023cdecaf1080a28 +equal-shares.x.1=0x0000000000000000000000000000000000000000000000000000000000000003 +equal-shares.x.2=0x0000000000000000000000000000000000000000000000000000000000000003 +equal-shares.x.3=0x0000000000000000000000000000000000000000000000000000000000000003 +equal-shares.y=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.Y.1=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.Y.1.identity=false +equal-shares.Y.2=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.Y.2.identity=false +equal-shares.Y.3=c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.Y.3.identity=false +equal-shares.msg.1.1.1.0=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee0101010022df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946ae94d00be301ceb89a1eea1adcd5d876aa4a69124ffa14b9b49c940697d72935 +equal-shares.msg.1.1.2.0=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee010102007171c64db16ae291b12cc0d16443691b571c06da432b1749f09bbbe176b0f00c708ca7d04070c966fdacf811226d2fdf0ce6a7fbe3f0dbe35f691b07f4c9cebb +equal-shares.msg.1.1.3.0=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee0101030073deab7e9ee990152946708b2e536b6aa6f7bb766f1c7830d60c3ff4c7d43e32a532f62d13756787f83b834fca1a0ff1a80289f25253844a6517b1bfbe3e281a +equal-shares.msg.4.5.1.0=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee04050100cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +equal-shares.msg.4.5.2.0=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee04050200cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab1 +equal-shares.msg.4.5.3.0=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee04050300cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339c47 +equal-shares.count.COMMITMENTS=3 +equal-shares.count.COMPLAINT=0 +equal-shares.count.ANSWER=0 +equal-shares.count.EXTRACTION=3 +equal-shares.count.EXTRACTION_COMPLAINT=0 +equal-shares.count.RECONSTRUCTION=0 +equal-shares.counts=3,0,0,3,0,0 +equal-shares.transcript=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e7472616e7363726970740bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee01030000000300640bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee0101010022df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946ae94d00be301ceb89a1eea1adcd5d876aa4a69124ffa14b9b49c940697d7293500640bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee010102007171c64db16ae291b12cc0d16443691b571c06da432b1749f09bbbe176b0f00c708ca7d04070c966fdacf811226d2fdf0ce6a7fbe3f0dbe35f691b07f4c9cebb00640bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee0101030073deab7e9ee990152946708b2e536b6aa6f7bb766f1c7830d60c3ff4c7d43e32a532f62d13756787f83b834fca1a0ff1a80289f25253844a6517b1bfbe3e281a00000000000000000000000300640bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee04050100cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d700640bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee04050200cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab100640bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee04050300cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339c470000000000000000 +equal-shares.digest=cee46443ba55b632b8bf9fc39a4d9b9daeb13a31e6469197e2d82952933f041e +equal-shares.confirmation.1=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee07080100cee46443ba55b632b8bf9fc39a4d9b9daeb13a31e6469197e2d82952933f041ec5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.confirmation.2=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee07080200cee46443ba55b632b8bf9fc39a4d9b9daeb13a31e6469197e2d82952933f041ec5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.confirmation.3=0bc587b2c6aad56c5e17c1b9dcb53f5d200f5b6f1fb508f83ff71da55fb4f5ee07080300cee46443ba55b632b8bf9fc39a4d9b9daeb13a31e6469197e2d82952933f041ec5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339cc7 +equal-shares.participant_abort.1=none +equal-shares.participant_abort.2=none +equal-shares.participant_abort.3=none +equal-shares.check.public_abort_none=true +equal-shares.check.qual_expected=true +equal-shares.check.y_equals_sum_of_true_a_i0=true +equal-shares.check.Y_equals_true_polynomials=true +equal-shares.check.x_equals_sum_of_true_shares=true +equal-shares.check.A6.1=true +equal-shares.check.A6.2=true +equal-shares.check.A6.3=true +equal-shares.check.all_broadcasts_well_formed=true +equal-shares.check.all_shares_well_formed=true +equal-shares.check.encode_decode_roundtrip=true +equal-shares.check.all_points_in_subgroup=true +equal-shares.check.digest_independent_of_arrival_order=true +equal-shares.check.confirmations_sent_by_live_qual_members=true +equal-shares.check.confirmations_agree_A7_none=true +equal-shares.check.admission_accepts=true +equal-shares.F_coeffs=0x0000000000000000000000000000000000000000000000000000000000000003,0x0000000000000000000000000000000000000000000000000000000000000000 +equal-shares.check.y_is_3G=true +equal-shares.check.F_is_3=true +equal-shares.check.all_Y_equal_3G=true +equal-shares.check.all_x_equal_3=true +equal-shares.enc.m=1 +equal-shares.enc.width=1 +equal-shares.enc.A=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990 +equal-shares.enc.B=ea65d858430c31693a80d0b475702080104c15bfb58a39bec995bccca0f41097 +equal-shares.D.1=8881d55b99ca8c6b7d21c2bf7cc9766e963a937b21729a0e3b66f9b03d2d4a9d +equal-shares.D.2=8881d55b99ca8c6b7d21c2bf7cc9766e963a937b21729a0e3b66f9b03d2d4a9d +equal-shares.D.3=8881d55b99ca8c6b7d21c2bf7cc9766e963a937b21729a0e3b66f9b03d2d4a9d +equal-shares.check.dleq_relations=true +equal-shares.lagrange.1-2.1=0x0000000000000000000000000000000000000000000000000000000000000002 +equal-shares.lagrange.1-2.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +equal-shares.lagrange.1-3.1=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965d +equal-shares.lagrange.1-3.3=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965b +equal-shares.lagrange.2-3.2=0x0000000000000000000000000000000000000000000000000000000000000003 +equal-shares.lagrange.2-3.3=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +equal-shares.decrypt.1-2=1 +equal-shares.check.decrypt.1-2=true +equal-shares.check.sum_lambda_x.1-2=true +equal-shares.decrypt.1-3=1 +equal-shares.check.decrypt.1-3=true +equal-shares.check.sum_lambda_x.1-3=true +equal-shares.decrypt.2-3=1 +equal-shares.check.decrypt.2-3=true +equal-shares.check.sum_lambda_x.2-3=true +equal-shares.decrypt.all=1 +equal-shares.check.extra_shares_consistent=true +adversarial-4of7.t=3 +adversarial-4of7.n=7 +adversarial-4of7.ctx=7a65726f6a2e746573742e616476657273617269616c +adversarial-4of7.attempt=7 +adversarial-4of7.session=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968 +adversarial-4of7.qual=1,2,4,5,6,7 +adversarial-4of7.disqualified=3:R3_answer_absent_or_conflict +adversarial-4of7.marked=1,5 +adversarial-4of7.marked_by=1:R4,5:R5 +adversarial-4of7.a.1.0=0x09f84fe1a99f86b71e45a8958e6c9296f7d5b05e85778a25ccea5d920a7bd993 +adversarial-4of7.a.1.1=0x0395d68069d56ac3ad3e77b6bd1d454da05dd263828abe339c6432e8be9a766c +adversarial-4of7.a.1.2=0x09070739da819a814c52c7623fa0c4c61caf8dbed0d08fb20bb110d6cca3b873 +adversarial-4of7.a.1.3=0x029eb7afea088112fb6f868e776a22febd5f8f4e8c1bb26c3c547827d1a22bdb +adversarial-4of7.a.2.0=0x0b71d0509b68ce84279de9da6c6f18dd5341b5cb8c972f2009b59119fd3e2e8f +adversarial-4of7.a.2.1=0x01cc3a697f3299286e55520ce47ec018563273896da1de16e0f7b040f1cb3465 +adversarial-4of7.a.2.2=0x0d0e024bb133627567a729c1aaf09baca4236c5edaf935adf52607742cbf97e7 +adversarial-4of7.a.2.3=0x00eeb8da3dde2d473d0b7d13387c134bac8878dfc9aa7a61228a4e8f35124c83 +adversarial-4of7.a.3.0=0x01e5f7c2fde285ec76704993976e5c5e869fcae1a047d1a1ca60a82427ac1c89 +adversarial-4of7.a.3.1=0x073a06f80c93c5b7711195fdc8b5beb162e1891686aa63c36f35b14199aca905 +adversarial-4of7.a.3.2=0x0aeac86dab6f6de3cc939ceab3d2039b3dd22fb6c2792ddf93dc37b2e510b837 +adversarial-4of7.a.3.3=0x084d3bd630bdb664451c79d9498f10912a09dba8998e37673d332f10591e10d7 +adversarial-4of7.a.4.0=0x0dee3d011ae1b501aa932119de074791dda0b23f4bdf4f9004e12a4e70d9652f +adversarial-4of7.a.4.1=0x0925de982cd3374d9492cdb6dc2cb27e48862576565d858759649872fd045945 +adversarial-4of7.a.4.2=0x022e533cd5178049f145a74835bcdc165eac5b80b7de682a413262f771bd80cf +adversarial-4of7.a.4.3=0x06e13e9f77bcf871927852bbb973127e4ddba591c0b7a8b92e40b5537e465044 +adversarial-4of7.a.5.0=0x06f0a2e7b966b3f159bda91e8e66187c4ebf4790f14b9ea1570323c8af73a95d +adversarial-4of7.a.5.1=0x08c4a3695953867c9b5cbff535e90e57613a0cb3fa0a653ff76a837cf148e873 +adversarial-4of7.a.5.2=0x0cbfaeebfa0756a14d282ffe44f84ee9847020d7237645f6873b264d1e71b876 +adversarial-4of7.a.5.3=0x068dd7bd98494a74b0d2ef919ccc81071a3e399c6d88dc291bcdb3dea0407326 +adversarial-4of7.a.6.0=0x048f2fa945337b2ec5835e829c842d22337be94cf6682711c0b3d74df3c7db28 +adversarial-4of7.a.6.1=0x00d55e082fb0a0a45ce28e663b7b35357c5e3a1455f88db15478abc253656e41 +adversarial-4of7.a.6.2=0x01d2e59d2cabd6eb9ef4952cb73c04324fb960ef58a457c38b960ab9fa056173 +adversarial-4of7.a.6.3=0x0cb115341d0a215d81920bb0c4b720d4187ed38a396ccf375a05d0179941ed57 +adversarial-4of7.a.7.0=0x0dacd28bbc3aa8e3be28776c2d85f2e7fdbe8f8a4d331150cd1aa098a8b7b68c +adversarial-4of7.a.7.1=0x05364deb2556568d37661500ca15a8a975a6995cbbdd1a17eb843e7e128e1198 +adversarial-4of7.a.7.2=0x09f5cea50a1300abab7b387d39dc60b0503e4c2f64e6e8af3ca569f4ee2a32f0 +adversarial-4of7.a.7.3=0x0058d2c04ff8eaca9426a8398a8bd2cbc6d01cf4d33d6dc235a089a40c2ab99a +adversarial-4of7.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +adversarial-4of7.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +adversarial-4of7.b.1.2=0x03d6c754dc8b36b5e91c9280bf866299143c425d17ac38f9a2fa7cbb830a48db +adversarial-4of7.b.1.3=0x0476e62c6378ab8c1fd6f845a04d871667cca9e6a144c976a1663958bb7d82fa +adversarial-4of7.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +adversarial-4of7.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +adversarial-4of7.b.2.2=0x0cfc0d11c4a809a14bdb860bc98e63675f705514f3225e686d8db38bfbffd851 +adversarial-4of7.b.2.3=0x0d87da9107119594fe24a87161f2e8153ace9555cb23df814f760bbd185f4152 +adversarial-4of7.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +adversarial-4of7.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +adversarial-4of7.b.3.2=0x0ba21b2136817e8abad8af4abf925e05a5d6a1bcf1cb5a8c5058aae3447f40ef +adversarial-4of7.b.3.3=0x025ec0af43ab26cb884fd9b9c5ad35ed07dd20ec864994a6044f15b3307a019e +adversarial-4of7.b.4.0=0x0a23adb7e571fcc2304f38a51f23a671d93982536e84de49f0e280b14c1a2be8 +adversarial-4of7.b.4.1=0x0a3975ca1a5eca3893d296ec53924a1d52f5f329e842c33e18c35929ba969882 +adversarial-4of7.b.4.2=0x09e50e25fd42d4b7ee7f770480ef5089a3921f31c4cd60a52569cb5d6ddd8812 +adversarial-4of7.b.4.3=0x073d563beff15fa37587c210d8892d4e5725cdda59ad421d7aa71c112024a152 +adversarial-4of7.b.5.0=0x02cd3b1f66ae1a5de3bea59305d25dfec76797a7cce5e00f6211f97deb60cd3f +adversarial-4of7.b.5.1=0x08f9e2f28b2ac7d04e53c0955a8c91f4106838a4ba19b9e060e530fd068dea8e +adversarial-4of7.b.5.2=0x076e918c61547561d59d54174ab638a3e45a57b715f1a561b9633e297f614f7d +adversarial-4of7.b.5.3=0x01610d9292b7b0ff63e1d7c841483b9216bd5836765ccf40a6f6c159d6df9162 +adversarial-4of7.b.6.0=0x0593438c9359d7764b11156642c1adf23dddf9e12cfcdf414843011d345520c6 +adversarial-4of7.b.6.1=0x036fc89c5649960dcae51ba46c1e7b2b4763ffeb95d6b4e78ce00d32d7dce36d +adversarial-4of7.b.6.2=0x0676c22361ad356afc3e1274465776d8e1e805615b7d742bf97e80fd1c3d393d +adversarial-4of7.b.6.3=0x054f48544f43905bee434d6bb98ed416b5fb1a3c2814d1d04b6c20e1f4f9a126 +adversarial-4of7.b.7.0=0x0c334308aeeaec1dfe0e4d409833b111d8e44996e9015744536773e9cde4b9c4 +adversarial-4of7.b.7.1=0x0b00b2ba4f574fd3c6da3f45dccea839ac87bd2b1280833bfee1ec60dad15237 +adversarial-4of7.b.7.2=0x07e65920fb1cb0a8a5a1fb99692976102f3e3a8bb9313cc85cf959fccba6c190 +adversarial-4of7.b.7.3=0x0ad1052818a9b8dd76cc1c6d82d33b251e66d968e51f8f1f4e493a4b98a92c9a +adversarial-4of7.C.1.0=d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661 +adversarial-4of7.C.1.1=509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +adversarial-4of7.C.1.2=34a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +adversarial-4of7.C.1.3=a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +adversarial-4of7.C.2.0=d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f +adversarial-4of7.C.2.1=54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +adversarial-4of7.C.2.2=6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +adversarial-4of7.C.2.3=08dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +adversarial-4of7.C.3.0=c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916 +adversarial-4of7.C.3.1=802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +adversarial-4of7.C.3.2=c056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +adversarial-4of7.C.3.3=59510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +adversarial-4of7.C.4.0=1ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb +adversarial-4of7.C.4.1=736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +adversarial-4of7.C.4.2=0d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +adversarial-4of7.C.4.3=66b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +adversarial-4of7.C.5.0=ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a58 +adversarial-4of7.C.5.1=5f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc9 +adversarial-4of7.C.5.2=2ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +adversarial-4of7.C.5.3=2fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +adversarial-4of7.C.6.0=01b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c52 +adversarial-4of7.C.6.1=90358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9 +adversarial-4of7.C.6.2=d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba9 +adversarial-4of7.C.6.3=9be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +adversarial-4of7.C.7.0=d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a5 +adversarial-4of7.C.7.1=1c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586a +adversarial-4of7.C.7.2=e7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2 +adversarial-4of7.C.7.3=d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +adversarial-4of7.A.1.0=67b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c41 +adversarial-4of7.A.1.1=97f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +adversarial-4of7.A.1.2=e78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +adversarial-4of7.A.1.3=0d43f75458703d339fdc6f1fa09f8ec52e7d0aff2706318a73aa4403ab3b00df +adversarial-4of7.A.2.0=bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f19 +adversarial-4of7.A.2.1=8a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +adversarial-4of7.A.2.2=88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +adversarial-4of7.A.2.3=2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +adversarial-4of7.A.3.0=dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921 +adversarial-4of7.A.3.1=e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +adversarial-4of7.A.3.2=120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +adversarial-4of7.A.3.3=46054df74cc1870679bb1286c17f32a020fc79085ebe883f7379589c9d451d02 +adversarial-4of7.A.4.0=14576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d +adversarial-4of7.A.4.1=4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +adversarial-4of7.A.4.2=32491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +adversarial-4of7.A.4.3=b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +adversarial-4of7.A.5.0=f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10 +adversarial-4of7.A.5.1=7140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306 +adversarial-4of7.A.5.2=ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +adversarial-4of7.A.5.3=26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +adversarial-4of7.A.6.0=7c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6e +adversarial-4of7.A.6.1=c9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933 +adversarial-4of7.A.6.2=ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559 +adversarial-4of7.A.6.3=fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +adversarial-4of7.A.7.0=525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1 +adversarial-4of7.A.7.1=ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103 +adversarial-4of7.A.7.2=bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56 +adversarial-4of7.A.7.3=eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +adversarial-4of7.s.1.1=0x0ab6306172cb5d660cdf333c016084a8cbda7f3b982679f4e0bd0b1a90650796 +adversarial-4of7.s.1.2=0x01c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c +adversarial-4of7.s.1.3=0x0d4fade6eb5b464b133dba298d5e754dadb5da2d5ebfedce71bb9bf957886d1e +adversarial-4of7.s.1.4=0x0322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2 +adversarial-4of7.s.1.5=0x0170a14f87864705b9e6f327955c02bc5e338634e0ced3f3dcce6db7850d9a41 +adversarial-4of7.s.1.6=0x0973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d43219006 +adversarial-4of7.s.1.7=0x0de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc5 +adversarial-4of7.s.2.1=0x0cbd10f5a47947c0343ea7bb33264ced53b7edffd214acc331c688ff79e41aa7 +adversarial-4of7.s.2.2=0x02438c90538a86976b3cf68f9f0a7b1ab46f7275212b4280a19c3c0c09917b7a +adversarial-4of7.s.2.3=0x001b4d2881054a5e4144ffcc0438522c270338fe00a1df21f90b8ff9c1ab48d1 +adversarial-4of7.s.2.4=0x0bdca7dba01ea2c0249bb1e3b59845e7b6a616d92a7760ee07525c23e09f4dbe +adversarial-4of7.s.2.5=0x0e2487f259a4401676b7854803aa541221baa01dbf1a8525fa805b27f6ecfbe5 +adversarial-4of7.s.2.6=0x0c8b428a20cb320ca5dd686c4156f0717373aa0a788a2a10a1d3646143021e58 +adversarial-4of7.s.2.7=0x0ca92cc068c8884e205249c3c1868ecbb70409de10c52df4cc894f2b034c8029 +adversarial-4of7.s.3.1=0x0dda4e14816fc042f2cabb545c50f43baaf53ec3b6318a293a0eb1ca289061e5 +adversarial-4of7.s.3.2=0x0a815ec82117fec4808bdffc3af894b260b974901db287ca5d1deeff007f706f +adversarial-4of7.s.3.3=0x0caf270e36e62878b1901ca0ea572b2857575112d68ff5eb01935d67183f53c3 +adversarial-4of7.s.3.4=0x0c3c3a42527dc5150ae560561ef62f01f16977f046fedeeb5445dde92aa7be0f +adversarial-4of7.s.3.5=0x01012bc003825c4f11999a2f8d5f17a3918a8cccd5344d2b820c516bf2906181 +adversarial-4of7.s.3.6=0x0e4fada2093284d75df06a43edb80d738d8d95084dbd7c942982c3f2afb6766c +adversarial-4of7.s.3.7=0x00873484c396b76861c20ea3f0edd6d454d4d28bb07745fd05baeb47980c28d9 +adversarial-4of7.s.4.1=0x032843a0ca2205b8b61572d2a6fb72a385de97a08142c4f52c8abe4eaff33619 +adversarial-4of7.s.4.2=0x090afea22797ca5b06268d8031b34ed671cad4461120de004aef3b751a3f90cb +adversarial-4of7.s.4.3=0x00695d2e07ae6744e9943a83d0dc241d3482a6b77fdf3c7a629f99dc7290774a +adversarial-4of7.s.4.4=0x040d2216d39fff76c8c92f42dbf4266cfac3cfcb8503c437b8890b1ad7949e77 +adversarial-4of7.s.4.5=0x0346f16fc50ba6f5f8fa701fa6dcd8b8fe13ae9d71bc27841fd395a9e315350e +adversarial-4of7.s.4.6=0x0a62d920dff7d119dc2b777e87e033f5c4c7e37030c639b10cd55cc0dcc9c339 +adversarial-4of7.s.4.7=0x08b17d3d5e0391e7c79149c1d2dfbb168865cd5f134fad0a52b666d95e7b77b4 +adversarial-4of7.s.5.1=0x06076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe +adversarial-4of7.s.5.2=0x0bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93 +adversarial-4of7.s.5.3=0x0623e849eced14dafb9dcb340bf0936991fbdc0912d11124000dc34a02dc2c24 +adversarial-4of7.s.5.4=0x0d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde +adversarial-4of7.s.5.5=0x007e4d80d3fae0f735682c8485532f41a6dc6e212dcaa42023ecac14c3471e12 +adversarial-4of7.s.5.6=0x06e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a4 +adversarial-4of7.s.5.7=0x0ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c +adversarial-4of7.s.6.1=0x056ad398596664733c8552c552be4c5d71aa374711a9cb3b2a314f83037d6b7c +adversarial-4of7.s.6.2=0x0d9e39667b2b5572dad890810db611f2a23b997a36d8a7a9b40a75df6bf56f2d +adversarial-4of7.s.6.3=0x03dfede3945548bf7d16c0d36148a5d5cb50211925092415c640c658e3f93d44 +adversarial-4of7.s.6.4=0x08dd51892385f78f197678dde6241bfd8ca861a5ce6fea430b31f6607e2edfa6 +adversarial-4of7.s.6.5=0x034cf12712905c738c9161be30259c5dec646c52f22161e9eadf81ebf15fad5c +adversarial-4of7.s.6.6=0x055e784c7ae280f9c636d594d6c6ffece3dcb40eb58a244b3f10100d793a8394 +adversarial-4of7.s.6.7=0x044628b3ab830f5ca967b8806f19a99f1f996a9fa486a9a2405c2b19a37fe60e +adversarial-4of7.s.7.1=0x0036580771358b952861f721b99b590c3da350e3a7a460d489b6b5f207ac5b40 +adversarial-4of7.s.7.2=0x08c06b4f1a2bf05d6279d92af8b07157c6e55858bf5414440160d90d8bf5bf70 +adversarial-4of7.s.7.3=0x0c64930fcc8bf8a9d88998df27a3b68ff595127eee229d26d4ae2705d0a5e34a +adversarial-4of7.s.7.4=0x0d37bfcb682b253a0379279785bc197b72932d1327808e0a4561d9b31ebd206a +adversarial-4of7.s.7.5=0x0d4ee203ccdef6cd5c3076ad52408ae0e6c055d25ede797b953f2aedbf3bd06c +adversarial-4of7.s.7.6=0x0041355075493e7a55303c78cb43c086549519e5bae4e1853572462f242b2035 +adversarial-4of7.s.7.7=0x051f14080ba6dc52742ee05532752133b1c26831c89479ba08ec820d4479c2cf +adversarial-4of7.sp.1.1=0x00ca52c3a3c54f416e9bf780545331bb723724f44b7c29ff0c2cd1ee95e2dfe7 +adversarial-4of7.sp.1.2=0x08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +adversarial-4of7.sp.1.3=0x055e2479c2f0a692b8e4d84ea0a1505d7df083d52c8442741d760576899ac400 +adversarial-4of7.sp.1.4=0x032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +adversarial-4of7.sp.1.5=0x0e4ff759438d7b23a6da989fe20afa05c358b0a0f3853fd01d29e6eb29c59419 +adversarial-4of7.sp.1.6=0x07b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +adversarial-4of7.sp.1.7=0x0a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +adversarial-4of7.sp.2.1=0x08ec86004755bbb7daa772898ef56333720bf171bd051b05d458cd15472ec81f +adversarial-4of7.sp.2.2=0x032005ea2f068427bdd3cbe2c2d4ff0642f3c96eef2564067275d5537899185d +adversarial-4of7.sp.2.3=0x0bc563c7366e26e9d598529812c17e9ec789c4adf3d81dc5de222514b2e41081 +adversarial-4of7.sp.2.4=0x001e17aa5e58a833e3972149c0ca7a772d645e9327b401356f698fd0d091d2bf +adversarial-4of7.sp.2.5=0x05e0223aa1947a88c976799d1504b20ce222b565e73819d4914b30d9def860de +adversarial-4of7.sp.2.6=0x08cab075662151c74f3fb13352b3f8dab9c3651e5bc331176c69ea068f9109c9 +adversarial-4of7.sp.2.7=0x031aa44277329177436358aebe505d5c2ead2a487b7c20f4f9ffab8c6acc4922 +adversarial-4of7.sp.3.1=0x002794687a9b60683b29e528aaec57d6d87cd0237ae585f855c5cc3a0c6856ae +adversarial-4of7.sp.3.2=0x08af9209fb5f1379a02ffa2036349ca0852c083322f34f7a0b781c11e9a78350 +adversarial-4of7.sp.3.3=0x0af5fa7b805cd686c508b65e7fef388f42458c83c6ea83d153348c9b39c0925c +adversarial-4of7.sp.3.4=0x06b59cee3a63e2abd52bf93d28f734309890020cbfbc8e5f763e91aa489860cf +adversarial-4of7.sp.3.5=0x0a26fd7dbf7720ae0278dd16d35bd312b73a2e593322eb088e70ad72390af85d +adversarial-4of7.sp.3.6=0x06873670db321a00720006441ec3e2c280a295ccad46f4ab147745688006094c +adversarial-4of7.sp.3.7=0x0a0ecbe32397b76855a08f1fad3ea6ce23f7fdf253e2272b222cdbc040659d50 +adversarial-4of7.sp.4.1=0x08841e0f229d9c041b5a92a4c9c5f865da172161dbb223450888a48be6c49460 +adversarial-4of7.sp.4.2=0x0c27dc70652863e68af67b0e84ad0f40935b4fa2b96974300890ce0cc229220c +adversarial-4of7.sp.4.3=0x06881a99b7ebd39a26b492435e3f0ed576485de4ee9a1bb08e896c1f4346e9fc +adversarial-4of7.sp.4.4=0x0619741df028c9a1a2f4eea6674a90f940f0de1efbc38571d92f0a6c7d0b5aae +adversarial-4of7.sp.4.5=0x0ad2cfa57dec74d6adb06b99af69f4800aff41b3949d0c9c56a7263eab6cb5e9 +adversarial-4of7.sp.4.6=0x062d5eee6c105469ee78a97e45035d3d45b5d971a015fbd5a4802e81336a10bd +adversarial-4of7.sp.4.7=0x069dbd8b8fd546de19adbeb738e56505af27374f9eadbec90176aedd27f0d9a8 +adversarial-4of7.sp.5.1=0x0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +adversarial-4of7.sp.5.2=0x038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +adversarial-4of7.sp.5.3=0x036f141e5eb5103da0728b3a8da847008c1c7f92097325584ff59f0e945a1b35 +adversarial-4of7.sp.5.4=0x0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +adversarial-4of7.sp.5.5=0x001eb78031cdae3459ba876fd4eb62074d53c62df96f0c3f1733d6fae4c83e10 +adversarial-4of7.sp.5.6=0x0d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +adversarial-4of7.sp.5.7=0x0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +adversarial-4of7.sp.6.1=0x064b61b6356083a1fa1055e9ad92390c76bcf8d6799dc9a24976a1d04671b1df +adversarial-4of7.sp.6.2=0x0853976146bbedd023e9dad8facdf95ec4163e3c075e55b4906adeacc9fcf631 +adversarial-4of7.sp.6.3=0x000e77c87366692d4afbc3b78031366f769405bf60633cd16fe351e1f7eb2e7b +adversarial-4of7.sp.6.4=0x0d57b4e596f557e104d9e10b9714e8c6d218ecc9752969daac68c0bb8e1621a1 +adversarial-4of7.sp.6.5=0x0796781e92fbadc5c713dc5692cce1e9da7eede036457523f790a8ab1783b6f4 +adversarial-4of7.sp.6.6=0x0028be82dddb1d5a20d64b1dcb7ddf602d4085d8c76c390c454cc09d7b1688a1 +adversarial-4of7.sp.6.7=0x086c8521edf5591ca14dc2e6994c9eb167d831884c528ff2898ebf7f9fb130d5 +adversarial-4of7.sp.7.1=0x0cefea3747a14625d4882e8b5e96947f8640d98f004285625c5dd7d55f17a0b7 +adversarial-4of7.sp.7.2=0x076d251a0b5538b998a34f94010664e86212339d1bf324bc1173f74711c40a1c +adversarial-4of7.sp.7.3=0x029a3ef7f9325a65f98b6ee78ba599288920ede767b04e020604f6891e044eb3 +adversarial-4of7.sp.7.4=0x05668318106441b7a66c4b130a96a81c18359e940f1719e4cd6bf9e5bbf2c73c +adversarial-4of7.sp.7.5=0x084387d6eae2d592480a67a288c7cd9e85b0bb3570fc90922a6d17484cb29fc0 +adversarial-4of7.sp.7.6=0x03a2e39122a5fcd9872a48221127458b47f2b95dec35ba37dfcc649c31670448 +adversarial-4of7.sp.7.7=0x0cf196781c0cfdc3195ee61fb10bc1bf222c4fc77927c009517c148a79217a4b +adversarial-4of7.x.1=0x0948a9e8bc3eb7c735933450891ef46509c5b96fee00fbb2a2109fd3c8f829a2 +adversarial-4of7.x.2=0x03ef1be20b48da23197b8d3a7ad95e7bb40ae71f6a250f3cf0d30b6a016a6bcc +adversarial-4of7.x.3=0x074157a5f775eee08286a35df4e765650f4c885c6badbac5c73559ba9551207d +adversarial-4of7.x.4=0x0b03c6733ac5fadd867052c5e8167ab6d02604caf097bf9fe10109d15a0e52c0 +adversarial-4of7.x.5=0x06fad1888f3902f83af4777d45341006ab32c40ef6dfdf1df9ff9aba25040da0 +adversarial-4of7.x.6=0x0168970f1402bbb7bc36288ffe41d1eafb764e60494aeb159e9199dfa28b88df +adversarial-4of7.x.7=0x008f352fe856d9a326587d0a05416cfa1bf42bf6b29db55c5b1794ac7efdfc3f +adversarial-4of7.y=0b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +adversarial-4of7.Y.1=cb9fd5c7b3511530ee32fe88f61a74bd63ca893212d9a898a311a21adaef438f +adversarial-4of7.Y.1.identity=false +adversarial-4of7.Y.2=2ecb1534221258cf87fd4f4293ad33b5b7d2bac12bdc86878f8c5c44eb48494f +adversarial-4of7.Y.2.identity=false +adversarial-4of7.Y.3=43a63a72667727dfb7270c30680fe25300e23eea60e1899a30373d2d2c48511d +adversarial-4of7.Y.3.identity=false +adversarial-4of7.Y.4=be36518d662055f5ffdfb09d108bd3d003958bdab321329474f15a9e5aeda72a +adversarial-4of7.Y.4.identity=false +adversarial-4of7.Y.5=e716ebd0f2d4f9b574efd709137a3d5034124d6bac21c0fbf3a0eec6f4e3b640 +adversarial-4of7.Y.5.identity=false +adversarial-4of7.Y.6=62f0da9d62b92da3ee546848621b396218f90c717cf69b1952a94c74c009ef5a +adversarial-4of7.Y.6.identity=false +adversarial-4of7.Y.7=09de2a3afc78beaabe6139f4b328d41dc058553d8bd7063cc587c712b6392ef0 +adversarial-4of7.Y.7.identity=false +adversarial-4of7.msg.1.1.1.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +adversarial-4of7.msg.1.1.2.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +adversarial-4of7.msg.1.1.3.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +adversarial-4of7.msg.1.1.4.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +adversarial-4of7.msg.1.1.5.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +adversarial-4of7.msg.1.1.6.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +adversarial-4of7.msg.1.1.7.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +adversarial-4of7.msg.2.3.2.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +adversarial-4of7.msg.2.3.4.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +adversarial-4of7.msg.3.4.1.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +adversarial-4of7.msg.4.5.2.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +adversarial-4of7.msg.4.5.4.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +adversarial-4of7.msg.4.5.5.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +adversarial-4of7.msg.4.5.6.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +adversarial-4of7.msg.4.5.7.0=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +adversarial-4of7.msg.5.6.1.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +adversarial-4of7.msg.5.6.2.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +adversarial-4of7.msg.5.6.4.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +adversarial-4of7.msg.5.6.6.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +adversarial-4of7.msg.5.6.7.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +adversarial-4of7.msg.6.7.2.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +adversarial-4of7.msg.6.7.2.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +adversarial-4of7.msg.6.7.4.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +adversarial-4of7.msg.6.7.4.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +adversarial-4of7.msg.6.7.6.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +adversarial-4of7.msg.6.7.6.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +adversarial-4of7.msg.6.7.7.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +adversarial-4of7.msg.6.7.7.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +adversarial-4of7.count.COMMITMENTS=7 +adversarial-4of7.count.COMPLAINT=2 +adversarial-4of7.count.ANSWER=1 +adversarial-4of7.count.EXTRACTION=5 +adversarial-4of7.count.EXTRACTION_COMPLAINT=5 +adversarial-4of7.count.RECONSTRUCTION=8 +adversarial-4of7.counts=7,2,1,5,5,8 +adversarial-4of7.transcript=7a65726f6a2e656c67616d616c2d6a75626a75622d7468726573686f6c642e76312e7472616e7363726970745659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96803070000000700a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d600a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da000a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a00a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf00a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c6000a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b00a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb6890000000200245659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680203020100245659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968020304030000000100645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d67060000000500a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce00a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca00a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea940800a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab00a45659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b70000000500645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf500645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b88300645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc5700645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced100645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a0000000800645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d670600645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b88300645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa00645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc5700645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d00645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced100645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a200645659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +adversarial-4of7.digest=92ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a0 +adversarial-4of7.confirmation.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +adversarial-4of7.confirmation.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +adversarial-4of7.confirmation.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +adversarial-4of7.confirmation.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708070092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +adversarial-4of7.participant_abort.1=A8 +adversarial-4of7.participant_abort.2=none +adversarial-4of7.participant_abort.3=A2 +adversarial-4of7.participant_abort.4=none +adversarial-4of7.participant_abort.5=A8 +adversarial-4of7.participant_abort.6=none +adversarial-4of7.participant_abort.7=none +adversarial-4of7.share.1.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680102010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277d08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +adversarial-4of7.share.3.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010203040c3c3a42527dc5150ae560561ef62f01f16977f046fedeeb5445dde92aa7be1006b59cee3a63e2abd52bf93d28f734309890020cbfbc8e5f763e91aa489860cf +adversarial-4of7.A_broadcast.5.1=cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2 +adversarial-4of7.recon.1.valid_senders=2,4,6,7 +adversarial-4of7.recon.1.used_senders=2,4,6,7 +adversarial-4of7.recon.1.a.0=0x09f84fe1a99f86b71e45a8958e6c9296f7d5b05e85778a25ccea5d920a7bd993 +adversarial-4of7.recon.1.b.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +adversarial-4of7.recon.1.A.0=67b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c41 +adversarial-4of7.recon.1.a.1=0x0395d68069d56ac3ad3e77b6bd1d454da05dd263828abe339c6432e8be9a766c +adversarial-4of7.recon.1.b.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +adversarial-4of7.recon.1.A.1=97f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +adversarial-4of7.recon.1.a.2=0x09070739da819a814c52c7623fa0c4c61caf8dbed0d08fb20bb110d6cca3b873 +adversarial-4of7.recon.1.b.2=0x03d6c754dc8b36b5e91c9280bf866299143c425d17ac38f9a2fa7cbb830a48db +adversarial-4of7.recon.1.A.2=e78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +adversarial-4of7.recon.1.a.3=0x029eb7afea088112fb6f868e776a22febd5f8f4e8c1bb26c3c547827d1a22bdb +adversarial-4of7.recon.1.b.3=0x0476e62c6378ab8c1fd6f845a04d871667cca9e6a144c976a1663958bb7d82fa +adversarial-4of7.recon.1.A.3=0d43f75458703d339fdc6f1fa09f8ec52e7d0aff2706318a73aa4403ab3b00df +adversarial-4of7.recon.5.valid_senders=2,4,6,7 +adversarial-4of7.recon.5.used_senders=2,4,6,7 +adversarial-4of7.recon.5.a.0=0x06f0a2e7b966b3f159bda91e8e66187c4ebf4790f14b9ea1570323c8af73a95d +adversarial-4of7.recon.5.b.0=0x02cd3b1f66ae1a5de3bea59305d25dfec76797a7cce5e00f6211f97deb60cd3f +adversarial-4of7.recon.5.A.0=f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10 +adversarial-4of7.recon.5.a.1=0x08c4a3695953867c9b5cbff535e90e57613a0cb3fa0a653ff76a837cf148e873 +adversarial-4of7.recon.5.b.1=0x08f9e2f28b2ac7d04e53c0955a8c91f4106838a4ba19b9e060e530fd068dea8e +adversarial-4of7.recon.5.A.1=7140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306 +adversarial-4of7.recon.5.a.2=0x0cbfaeebfa0756a14d282ffe44f84ee9847020d7237645f6873b264d1e71b876 +adversarial-4of7.recon.5.b.2=0x076e918c61547561d59d54174ab638a3e45a57b715f1a561b9633e297f614f7d +adversarial-4of7.recon.5.A.2=ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +adversarial-4of7.recon.5.a.3=0x068dd7bd98494a74b0d2ef919ccc81071a3e399c6d88dc291bcdb3dea0407326 +adversarial-4of7.recon.5.b.3=0x01610d9292b7b0ff63e1d7c841483b9216bd5836765ccf40a6f6c159d6df9162 +adversarial-4of7.recon.5.A.3=26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +adversarial-4of7.check.public_abort_none=true +adversarial-4of7.check.qual_expected=true +adversarial-4of7.check.y_equals_sum_of_true_a_i0=true +adversarial-4of7.check.Y_equals_true_polynomials=true +adversarial-4of7.check.x_equals_sum_of_true_shares=true +adversarial-4of7.check.A6.1=true +adversarial-4of7.check.A6.2=true +adversarial-4of7.check.A6.3=true +adversarial-4of7.check.A6.4=true +adversarial-4of7.check.A6.5=true +adversarial-4of7.check.A6.6=true +adversarial-4of7.check.A6.7=true +adversarial-4of7.check.all_broadcasts_well_formed=true +adversarial-4of7.check.all_shares_well_formed=true +adversarial-4of7.check.encode_decode_roundtrip=true +adversarial-4of7.check.all_points_in_subgroup=true +adversarial-4of7.check.digest_independent_of_arrival_order=true +adversarial-4of7.check.confirmations_sent_by_live_qual_members=true +adversarial-4of7.check.confirmations_agree_A7_none=true +adversarial-4of7.check.admission_accepts=true +adversarial-4of7.check.qual_is_1_2_4_5_6_7=true +adversarial-4of7.check.dealer3_disqualified=true +adversarial-4of7.check.dealer1_marked=true +adversarial-4of7.check.dealer5_marked=true +adversarial-4of7.check.ext_complaints_1_2_4_6_7_valid=true +adversarial-4of7.check.complaints_are_2_to_1_and_4_to_3=true +adversarial-4of7.check.answer_is_1_to_2=true +adversarial-4of7.check.extractions_from_2_4_5_6_7=true +adversarial-4of7.check.reconstructions_from_2_4_6_7=true +adversarial-4of7.check.reconstruction_uses_exactly_t_plus_1=true +adversarial-4of7.check.message_counts_7_2_1_5_5_8=true +adversarial-4of7.y_equals_reference=true +adversarial-4of7.check.dealers_1_5_contributions_kept=true +adversarial-4of7.check.bad_shares_fail_eq4=true +adversarial-4of7.check.participant2_adopted_answer=true +adversarial-4of7.check.participant_aborts_A8_none_A2_none_A8_none_none=true +adversarial-4of7.check.confirmations_from_2_4_6_7=true +adversarial-4of7.check.deviators_are_exactly_t=true +adversarial-4of7.check.A7_ignores_deviator_lies=true +adversarial-4of7.check.admission_ignores_deviator_lies=true +adversarial-4of7.check.admission_t_matching_refused=true +adversarial-4of7.check.A7_on_t_plus_1_differing=true +adversarial-4of7.check.A7_on_fewer_than_t_plus_1_matching=true +adversarial-4of7.enc.m=5 +adversarial-4of7.enc.width=3 +adversarial-4of7.enc.A=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990 +adversarial-4of7.enc.B=207177e36dfd2bc3c142d88fa466ace6b50a18a73e78f790b72270d0bc65588a +adversarial-4of7.D.1=4de6698c817b38dd6bd2ac6ef7f98577679c13b9c9a063fc52a6bfc198e9cebe +adversarial-4of7.D.2=e0bf0d26347226b8b5d484fc632e505726af4d4080cff2b02e2b71d4a06b7283 +adversarial-4of7.D.4=82947d08fa417923106a53349ea5f9d95b785d01b73b3263e03986551f33edc1 +adversarial-4of7.D.5=c5000392d189c9c3cc8c006de7d693b166191f712249d3f28e9ae596be082191 +adversarial-4of7.D.6=b670709a2effbf2fe1e6f95733150004734ce41f720fa247067cc685cb68fcae +adversarial-4of7.D.7=7d26e356df5011bf942bc8419c929f6b7220406a85603cdbbd2e1c7691dcfa1b +adversarial-4of7.check.dleq_relations=true +adversarial-4of7.lagrange.1-2-4-5.1=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7328 +adversarial-4of7.lagrange.1-2-4-5.2=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b98f +adversarial-4of7.lagrange.1-2-4-5.4=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b994 +adversarial-4of7.lagrange.1-2-4-5.5=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7324 +adversarial-4of7.lagrange.1-2-4-6.1=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f5b +adversarial-4of7.lagrange.1-2-4-6.2=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb4 +adversarial-4of7.lagrange.1-2-4-6.4=0x0000000000000000000000000000000000000000000000000000000000000001 +adversarial-4of7.lagrange.1-2-4-6.6=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd5f +adversarial-4of7.lagrange.1-2-4-7.1=0x03386117a4b627091dde0d1caaef298e5dde4020d82c7572673e0331851a7bba +adversarial-4of7.lagrange.1-2-4-7.2=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f55 +adversarial-4of7.lagrange.1-2-4-7.4=0x080cf2bb1bc76196caab20c7ab55e7e3eaaba0521c6f259e021b07fbccc2354a +adversarial-4of7.lagrange.1-2-4-7.7=0x0052701bf6df03e74fc967b61117ea8e3c96399ce26ad88b70b966b826e90c5f +adversarial-4of7.lagrange.1-2-5-6.1=0x0000000000000000000000000000000000000000000000000000000000000003 +adversarial-4of7.lagrange.1-2-5-6.2=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +adversarial-4of7.lagrange.1-2-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000001 +adversarial-4of7.lagrange.1-2-5-6.6=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965b +adversarial-4of7.lagrange.1-2-5-7.1=0x0873fede105e2677ee66e26b40b3cd15b66768563774b44c4f02c861fd6584c3 +adversarial-4of7.lagrange.1-2-5-7.2=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b990 +adversarial-4of7.lagrange.1-2-5-7.5=0x0d489081876f61059b33f616411a8b6b4334c8877bb76477e9dfcd2c450d3e53 +adversarial-4of7.lagrange.1-2-5-7.7=0x026a48d1bb889d46d66689d580335f2ac666b018a2215815cd6e826523d3dcc9 +adversarial-4of7.lagrange.1-2-6-7.1=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd62 +adversarial-4of7.lagrange.1-2-6-7.2=0x0d0abc6c8e481e181f5ce84db4489b8095c41d51d1e7420f5554c02227de7509 +adversarial-4of7.lagrange.1-2-6-7.6=0x0a24cb70e070faf6514842e71a715c80747c16cddc25a5285ed023a8c9ad05b4 +adversarial-4of7.lagrange.1-2-6-7.7=0x08b1d2f3098569656a3df033cd85bd0063d8138be144d6b4e38dd56c1a944e07 +adversarial-4of7.lagrange.1-4-5-6.1=0x0000000000000000000000000000000000000000000000000000000000000002 +adversarial-4of7.lagrange.1-4-5-6.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +adversarial-4of7.lagrange.1-4-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000006 +adversarial-4of7.lagrange.1-4-5-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb5 +adversarial-4of7.lagrange.1-4-5-7.1=0x05a2a9e9603ec44ff44496f22b2288b92444f0397a4dcd8834ac8596a8ee5882 +adversarial-4of7.lagrange.1-4-5-7.4=0x03386117a4b627091dde0d1caaef298e5dde4020d82c7572673e0331851a7bb3 +adversarial-4of7.lagrange.1-4-5-7.5=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +adversarial-4of7.lagrange.1-4-5-7.7=0x0ce1845e92d89c2477783472abbca6397779008360b1d5c99cf80cc61469eedb +adversarial-4of7.lagrange.1-4-6-7.1=0x07ba829f24e85daf7ae1b9119a3dfd55ae1566b53a044d129161a143a5d928ec +adversarial-4of7.lagrange.1-4-6-7.4=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b990 +adversarial-4of7.lagrange.1-4-6-7.6=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd62 +adversarial-4of7.lagrange.1-4-6-7.7=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b991 +adversarial-4of7.lagrange.1-5-6-7.1=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac72139618b +adversarial-4of7.lagrange.1-5-6-7.5=0x0ade47afcbe6c3bec4cd6c40c0e72c407cce186ed9960c621c714ac721396184 +adversarial-4of7.lagrange.1-5-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000007 +adversarial-4of7.lagrange.1-5-6-7.7=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b9659 +adversarial-4of7.lagrange.2-4-5-6.2=0x0000000000000000000000000000000000000000000000000000000000000005 +adversarial-4of7.lagrange.2-4-5-6.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca8 +adversarial-4of7.lagrange.2-4-5-6.5=0x0000000000000000000000000000000000000000000000000000000000000010 +adversarial-4of7.lagrange.2-4-5-6.6=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb2 +adversarial-4of7.lagrange.2-4-5-7.2=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b997 +adversarial-4of7.lagrange.2-4-5-7.4=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f7319 +adversarial-4of7.lagrange.2-4-5-7.5=0x09a92346ee22751b599a275600cd7cab199ac0628885605735ba09948f4f732e +adversarial-4of7.lagrange.2-4-5-7.7=0x04d491a377113a8daccd13ab0066be558ccd60314442b02b9add04ca47a7b991 +adversarial-4of7.lagrange.2-4-6-7.2=0x02e5f0fbadd72321ce14a56699d73f0021480683f5c19ce6f6849c795e316f5c +adversarial-4of7.lagrange.2-4-6-7.4=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb0 +adversarial-4of7.lagrange.2-4-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000007 +adversarial-4of7.lagrange.2-4-6-7.7=0x0b97c3eeb75c8c873852959a675cfc0085201a0fd706739bda1271e578c5bd5c +adversarial-4of7.lagrange.2-5-6-7.2=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b965f +adversarial-4of7.lagrange.2-5-6-7.5=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca9 +adversarial-4of7.lagrange.2-5-6-7.6=0x073eda753299d7d483339d80809a1d8053341049e6640841684b872f6b7b966d +adversarial-4of7.lagrange.2-5-6-7.7=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb1 +adversarial-4of7.lagrange.4-5-6-7.4=0x0000000000000000000000000000000000000000000000000000000000000023 +adversarial-4of7.lagrange.4-5-6-7.5=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72c63 +adversarial-4of7.lagrange.4-5-6-7.6=0x0000000000000000000000000000000000000000000000000000000000000046 +adversarial-4of7.lagrange.4-5-6-7.7=0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72ca3 +adversarial-4of7.decrypt.1-2-4-5=5 +adversarial-4of7.check.decrypt.1-2-4-5=true +adversarial-4of7.check.sum_lambda_x.1-2-4-5=true +adversarial-4of7.decrypt.1-2-4-6=5 +adversarial-4of7.check.decrypt.1-2-4-6=true +adversarial-4of7.check.sum_lambda_x.1-2-4-6=true +adversarial-4of7.decrypt.1-2-4-7=5 +adversarial-4of7.check.decrypt.1-2-4-7=true +adversarial-4of7.check.sum_lambda_x.1-2-4-7=true +adversarial-4of7.decrypt.1-2-5-6=5 +adversarial-4of7.check.decrypt.1-2-5-6=true +adversarial-4of7.check.sum_lambda_x.1-2-5-6=true +adversarial-4of7.decrypt.1-2-5-7=5 +adversarial-4of7.check.decrypt.1-2-5-7=true +adversarial-4of7.check.sum_lambda_x.1-2-5-7=true +adversarial-4of7.decrypt.1-2-6-7=5 +adversarial-4of7.check.decrypt.1-2-6-7=true +adversarial-4of7.check.sum_lambda_x.1-2-6-7=true +adversarial-4of7.decrypt.1-4-5-6=5 +adversarial-4of7.check.decrypt.1-4-5-6=true +adversarial-4of7.check.sum_lambda_x.1-4-5-6=true +adversarial-4of7.decrypt.1-4-5-7=5 +adversarial-4of7.check.decrypt.1-4-5-7=true +adversarial-4of7.check.sum_lambda_x.1-4-5-7=true +adversarial-4of7.decrypt.1-4-6-7=5 +adversarial-4of7.check.decrypt.1-4-6-7=true +adversarial-4of7.check.sum_lambda_x.1-4-6-7=true +adversarial-4of7.decrypt.1-5-6-7=5 +adversarial-4of7.check.decrypt.1-5-6-7=true +adversarial-4of7.check.sum_lambda_x.1-5-6-7=true +adversarial-4of7.decrypt.2-4-5-6=5 +adversarial-4of7.check.decrypt.2-4-5-6=true +adversarial-4of7.check.sum_lambda_x.2-4-5-6=true +adversarial-4of7.decrypt.2-4-5-7=5 +adversarial-4of7.check.decrypt.2-4-5-7=true +adversarial-4of7.check.sum_lambda_x.2-4-5-7=true +adversarial-4of7.decrypt.2-4-6-7=5 +adversarial-4of7.check.decrypt.2-4-6-7=true +adversarial-4of7.check.sum_lambda_x.2-4-6-7=true +adversarial-4of7.decrypt.2-5-6-7=5 +adversarial-4of7.check.decrypt.2-5-6-7=true +adversarial-4of7.check.sum_lambda_x.2-5-6-7=true +adversarial-4of7.decrypt.4-5-6-7=5 +adversarial-4of7.check.decrypt.4-5-6-7=true +adversarial-4of7.check.sum_lambda_x.4-5-6-7=true +adversarial-4of7.decrypt.all=5 +adversarial-4of7.check.extra_shares_consistent=true +abort.A1_t_plus_1_dealers_silent=A1 +check.abort.A1_t_plus_1_dealers_silent=true +check.abort.A1_qual=true +check.abort.A1_every_participant_aborts=true +check.abort.A1_admission_refuses=true +abort.A1_boundary_t_dealers_silent=none +check.abort.A1_boundary_t_dealers_silent=true +check.abort.A1_boundary_y=true +abort.A2_boundary_silent_dealer_1_participant_check=A2 +check.abort.A2_boundary_silent_dealer_1_participant_check=true +abort.A2_own_answer_not_delivered=A2 +check.abort.A2_own_answer_not_delivered=true +check.abort.A2_public_no_abort=true +check.abort.A2_participant_sends_nothing_after=true +abort.A3_only_t_reconstructions=A3 +check.abort.A3_only_t_reconstructions=true +check.abort.A3_admission_refuses=true +abort.A3_one_of_t_plus_1_reconstructions_fails_eq4=A3 +check.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4=true +abort.A3_control_t_plus_1_valid_reconstructions=none +check.abort.A3_control_t_plus_1_valid_reconstructions=true +check.abort.A3_control_y=true +abort.A8_withheld_extraction_dealer_aborts=A8 +check.abort.A8_withheld_extraction_dealer_aborts=true +check.abort.A8_others_confirm=true +rule.R6_conflicting_reconstruction_excluded=none +check.rule.R6_conflicting_reconstruction_excluded=true +check.rule.R6_conflicting_reconstruction_senders=true +check.abort.A4_forged_pair_satisfies_eq4_under_trapdoor=true +abort.A4_trapdoor_forged_extra_pair=A4 +check.abort.A4_trapdoor_forged_extra_pair=true +info.abort.A4_trapdoor_forged_extra_pair.detail=off_polynomial dealer 5 pair 4 +abort.A4_trapdoor_forged_base_pair=A4 +check.abort.A4_trapdoor_forged_base_pair=true +info.abort.A4_trapdoor_forged_base_pair.detail=off_polynomial dealer 5 pair 4 +check.abort.A4_fires_only_via_off_polynomial_clause=true +check.r6_commitment_clause_implied_by_eq4=true +abort.A4_same_construction_under_profile_H=none +check.abort.A4_same_construction_under_profile_H=true +check.abort.A4_profile_H_pair_excluded=true +abort.A5_constant_terms_sum_to_zero=A5 +check.abort.A5_constant_terms_sum_to_zero=true +check.abort.A5_y_identity=true +check.abort.A5_admission_refuses=true +abort.A6_extraction_complaints_not_delivered=A6,A6,A6,A6,A6 +check.abort.A6_extraction_complaints_not_delivered=true +check.abort.A6_public_y_still_correct=true +abort.A7_2of3_one_lie_ignored=none +check.abort.A7_2of3_one_lie_ignored=true +abort.A7_2of3_t_plus_1_digest_differs=A7 +check.abort.A7_2of3_t_plus_1_digest_differs=true +abort.A7_2of3_t_plus_1_y_differs=A7 +check.abort.A7_2of3_t_plus_1_y_differs=true +abort.A7_2of3_t_plus_1_mixed_digest_and_y=A7 +check.abort.A7_2of3_t_plus_1_mixed_digest_and_y=true +abort.A7_2of3_same_liar_twice_counts_once=none +check.abort.A7_2of3_same_liar_twice_counts_once=true +abort.A7_control_all_agree=none +check.abort.A7_control_all_agree=true +abort.A7_2of3_own_and_one_other_suffice=none +check.abort.A7_2of3_own_and_one_other_suffice=true +abort.A7_2of3_only_own_delivered_too_few_matching=A7 +check.abort.A7_2of3_only_own_delivered_too_few_matching=true +abort.A7_2of3_own_not_delivered_back_too_few_matching=A7 +check.abort.A7_2of3_own_not_delivered_back_too_few_matching=true +abort.A7_2of3_own_not_delivered_back_but_two_others=none +check.abort.A7_2of3_own_not_delivered_back_but_two_others=true +abort.A7_3of5_t_lies_ignored=none +check.abort.A7_3of5_t_lies_ignored=true +abort.A7_3of5_t_plus_1_differing=A7 +check.abort.A7_3of5_t_plus_1_differing=true +abort.A7_3of5_two_silent_members_too_few_matching=A7 +check.abort.A7_3of5_two_silent_members_too_few_matching=true +abort.A7_3of5_stale_session_confirmations_ignored=none +check.abort.A7_3of5_stale_session_confirmations_ignored=true +abort.A7_3of5_malformed_confirmations_ignored=none +check.abort.A7_3of5_malformed_confirmations_ignored=true +abort.A7_3of5_unauthenticated_confirmations_ignored=none +check.abort.A7_3of5_unauthenticated_confirmations_ignored=true +abort.A7_3of5_equivocators_count_as_differing=A7 +check.abort.A7_3of5_equivocators_count_as_differing=true +abort.A7_3of5_equivocator_not_matching=A7 +check.abort.A7_3of5_equivocator_not_matching=true +rule.R1_conflicting_commitments=R1;qual=1,3,4,5 +check.rule.R1_conflicting_commitments=true +check.rule.R1_conflict_both_in_transcript=true +check.rule.R2_no_complaint_against_conflicting_commitments=true +rule.R1_malformed_commitments_absent=R1 +check.rule.R1_malformed_commitments_absent=true +check.rule.R2_no_complaint_against_absent_commitments=true +rule.R2_conflicting_share_complaint=complaints=2->1;qual=1,2,3,4,5;x_ok=true +check.rule.R2_conflicting_share_complaint=true +rule.R2_duplicate_identical_complaints=complaints=2;qual=1,2,3,4,5 +check.rule.R2_duplicate_identical_complaints=true +check.rule.R2_duplicates_once_in_transcript=true +check.rule.R2_answered_complaints_keep_contribution=true +check.rule.R2_participants_adopt_answers=true +rule.R3_more_than_t_complaints=R3_more_than_t_complaints +check.rule.R3_more_than_t_complaints=true +rule.R3_unanswered_complaint=R3_answer_absent_or_conflict +check.rule.R3_unanswered_complaint=true +rule.R3_answer_fails_eq4=R3_answer_fails_eq4 +check.rule.R3_answer_fails_eq4=true +rule.R3_conflicting_answers=R3_answer_absent_or_conflict +check.rule.R3_conflicting_answers=true +rule.R3_answer_without_complaint=qual=1,2,3,4,5;round3=1 +check.rule.R3_answer_without_complaint=true +check.rule.R3_unsolicited_answer_changes_digest_only=true +rule.R4_conflicting_extraction=R4;y_ok=true +check.rule.R4_conflicting_extraction=true +rule.R5_invalid_extraction_complaints=marked=;round5=2 +check.rule.R5_invalid_extraction_complaints=true +rule.R5_conflicting_complaints_each_evaluated=marked_by=R5;round5=2;y_ok=true +check.rule.R5_conflicting_complaints_each_evaluated=true +rule.R5_complaint_against_dealer_without_extraction=marked_by=R4;valid=0;abort=none +check.rule.R5_complaint_against_dealer_without_extraction=true +rule.R5_complaint_against_non_qual=marked= +check.rule.R5_complaint_against_non_qual=true +finding.F14_all_extractions_late=abort=A3;marked=1,2,3,4,5;participant_aborts=A8,A8,A8,A8,A8;reconstructions=0;confirmations=0;x_public=false;admission=refuse +check.finding.F14_all_extractions_late=true +finding.F14_all_extractions_late_pre_revision_without_A8=abort=none;marked=1,2,3,4,5;participant_aborts=none,none,none,none,none;reconstructions=20;confirmations=5;x_public=true;admission=admit +check.finding.F14_all_extractions_late_pre_revision_without_A8=true +finding.F14_all_late_only_t_faulty_reconstruct=abort=A3;marked=1,2,3,4,5;participant_aborts=A3,A3,A3,A3,A3;reconstructions=8;confirmations=0;x_public=false;admission=refuse +check.finding.F14_all_late_only_t_faulty_reconstruct=true +finding.F14_partial_two_honest_late=abort=none;marked=3,4;participant_aborts=none,none,A8,A8,none;reconstructions=6;confirmations=3;x_public=false;admission=admit +check.finding.F14_partial_two_honest_late=true +check.finding.F14_partial_y_correct=true +abort.A8_timing_marked_dealer_still_complains_in_R5=ec_senders=1,2,3,4;recon_senders=2,3,4;aborts=A8,none,none,none,A8 +check.abort.A8_timing_marked_dealer_still_complains_in_R5=true +abort.A9_own_complaint_not_delivered=aborts=none,A9,none,none,none;qual=1,2,3,4,5;marked=2;confirmations=1,3,4,5;z2_published=true;admission=admit +check.abort.A9_own_complaint_not_delivered=true +check.abort.A9_y_correct=true +check.abort.A9_participant_silent_after_R2=true +rule.channel_share_on_broadcast_ignored=digest_unchanged=true +check.rule.channel_share_on_broadcast_ignored=true +rule.channel_non_share_on_private_refused=complaints=2->1;qual=1,2,3,4,5 +check.rule.channel_non_share_on_private_refused=true +rule.channel_share_for_other_recipient_refused=complaints=2->1;qual=1,2,3,4,5 +check.rule.channel_share_for_other_recipient_refused=true +finding.S52_late_shares_reveal_key=aborts=none,none,none,none,none;qual=1,2,3,4,5;answers=3;admission=admit;coalition_recovers_x=true +check.finding.S52_late_shares_reveal_key=true +info.finding.S52_late_shares_reveal_key=documented model limitation (spec §5.2), not a defect +rule.combine_extra_share_mismatch=error +check.rule.combine_extra_share_mismatch=true +rule.combine_too_few_shares=error +check.rule.combine_too_few_shares=true +rule.combine_unverified_bad_share_in_S_not_5=true +check.rule.combine_unverified_bad_share_in_S_not_5=true +rule.combine_share_from_non_qual=error +check.rule.combine_share_from_non_qual=true +rule.admission_all_confirmations=admit +info.rule.admission_all_confirmations.reason=ok +check.rule.admission_all_confirmations=true +rule.admission_t_plus_1_confirmations=admit +info.rule.admission_t_plus_1_confirmations.reason=ok +check.rule.admission_t_plus_1_confirmations=true +rule.admission_t_confirmations=refuse +info.rule.admission_t_confirmations.reason=fewer_than_t_plus_1_matching +check.rule.admission_t_confirmations=true +rule.admission_duplicate_sender_counts_once=refuse +info.rule.admission_duplicate_sender_counts_once.reason=fewer_than_t_plus_1_matching +check.rule.admission_duplicate_sender_counts_once=true +rule.admission_byte_identical_duplicate_ok=admit +info.rule.admission_byte_identical_duplicate_ok.reason=ok +check.rule.admission_byte_identical_duplicate_ok=true +rule.admission_one_lie_ignored=admit +info.rule.admission_one_lie_ignored.reason=ok +check.rule.admission_one_lie_ignored=true +rule.admission_t_plus_1_matching_plus_one_lie=admit +info.rule.admission_t_plus_1_matching_plus_one_lie.reason=ok +check.rule.admission_t_plus_1_matching_plus_one_lie=true +rule.admission_t_lies_ignored=admit +info.rule.admission_t_lies_ignored.reason=ok +check.rule.admission_t_lies_ignored=true +rule.admission_t_matching_plus_lie=refuse +info.rule.admission_t_matching_plus_lie.reason=fewer_than_t_plus_1_matching +check.rule.admission_t_matching_plus_lie=true +rule.admission_t_plus_1_differing_3of5=refuse +info.rule.admission_t_plus_1_differing_3of5.reason=differing_t_plus_1 +check.rule.admission_t_plus_1_differing_3of5=true +rule.admission_2of4_matching_and_t_plus_1_differing=refuse +info.rule.admission_2of4_matching_and_t_plus_1_differing.reason=differing_t_plus_1 +check.rule.admission_2of4_matching_and_t_plus_1_differing=true +rule.admission_2of4_matching_and_t_differing=admit +info.rule.admission_2of4_matching_and_t_differing.reason=ok +check.rule.admission_2of4_matching_and_t_differing=true +abort.A7_2of4_t_plus_1_differing_with_t_plus_1_matching=A7 +check.abort.A7_2of4_t_plus_1_differing_with_t_plus_1_matching=true +rule.admission_2of4_equivocator_differing_only=refuse +info.rule.admission_2of4_equivocator_differing_only.reason=fewer_than_t_plus_1_matching +check.rule.admission_2of4_equivocator_differing_only=true +rule.admission_2of4_two_equivocators_t_plus_1_differing=refuse +info.rule.admission_2of4_two_equivocators_t_plus_1_differing.reason=differing_t_plus_1 +check.rule.admission_2of4_two_equivocators_t_plus_1_differing=true +rule.admission_2of4_one_equivocator_ignored=admit +info.rule.admission_2of4_one_equivocator_ignored.reason=ok +check.rule.admission_2of4_one_equivocator_ignored=true +abort.A7_2of4_one_equivocator_ignored=none +check.abort.A7_2of4_one_equivocator_ignored=true +rule.admission_3of5_equivocators_differing_only=refuse +info.rule.admission_3of5_equivocators_differing_only.reason=fewer_than_t_plus_1_matching +check.rule.admission_3of5_equivocators_differing_only=true +rule.admission_3of5_one_equivocator_among_all=admit +info.rule.admission_3of5_one_equivocator_among_all.reason=ok +check.rule.admission_3of5_one_equivocator_among_all=true +rule.admission_stale_session_confirmations_ignored=admit +info.rule.admission_stale_session_confirmations_ignored.reason=ok +check.rule.admission_stale_session_confirmations_ignored=true +rule.admission_stale_session_only_refused=refuse +info.rule.admission_stale_session_only_refused.reason=fewer_than_t_plus_1_matching +check.rule.admission_stale_session_only_refused=true +rule.admission_malformed_confirmations_ignored=admit +info.rule.admission_malformed_confirmations_ignored.reason=ok +check.rule.admission_malformed_confirmations_ignored=true +rule.admission_non_confirmation_ignored=admit +info.rule.admission_non_confirmation_ignored.reason=ok +check.rule.admission_non_confirmation_ignored=true +rule.admission_unauthenticated_confirmations_ignored=admit +info.rule.admission_unauthenticated_confirmations_ignored.reason=ok +check.rule.admission_unauthenticated_confirmations_ignored=true +rule.admission_unauthenticated_matching_not_counted=refuse +info.rule.admission_unauthenticated_matching_not_counted.reason=fewer_than_t_plus_1_matching +check.rule.admission_unauthenticated_matching_not_counted=true +rule.admission_t_plus_1_unauthenticated_lies_ignored=admit +info.rule.admission_t_plus_1_unauthenticated_lies_ignored.reason=ok +check.rule.admission_t_plus_1_unauthenticated_lies_ignored=true +rule.admission_t_plus_1_authenticated_lies_refused=refuse +info.rule.admission_t_plus_1_authenticated_lies_refused.reason=differing_t_plus_1 +check.rule.admission_t_plus_1_authenticated_lies_refused=true +rule.admission_unauthenticated_transcript_message_refused=refuse +info.rule.admission_unauthenticated_transcript_message_refused.reason=unauthenticated_transcript_message +check.rule.admission_unauthenticated_transcript_message_refused=true +rule.admission_duplicate_transcript_messages_count_once=admit +info.rule.admission_duplicate_transcript_messages_count_once.reason=ok +check.rule.admission_duplicate_transcript_messages_count_once=true +rule.admission_malformed_transcript_message_refused=refuse +info.rule.admission_malformed_transcript_message_refused.reason=malformed_transcript_message +check.rule.admission_malformed_transcript_message_refused=true +rule.admission_other_session_transcript_message_refused=refuse +info.rule.admission_other_session_transcript_message_refused.reason=malformed_transcript_message +check.rule.admission_other_session_transcript_message_refused=true +rule.admission_share_in_transcript_refused=refuse +info.rule.admission_share_in_transcript_refused.reason=non_broadcast_transcript_message +check.rule.admission_share_in_transcript_refused=true +rule.admission_confirmation_in_transcript_refused=refuse +info.rule.admission_confirmation_in_transcript_refused.reason=non_broadcast_transcript_message +check.rule.admission_confirmation_in_transcript_refused=true +rule.admission_omitted_extraction=refuse +info.rule.admission_omitted_extraction.reason=A3 +check.rule.admission_omitted_extraction=true +rule.admission_omitted_commitments=refuse +info.rule.admission_omitted_commitments.reason=differing_t_plus_1 +check.rule.admission_omitted_commitments=true +rule.admission_junk_posts_do_not_veto=admit +info.rule.admission_junk_posts_do_not_veto.reason=ok +check.rule.admission_junk_posts_do_not_veto=true +check.rule.delivered_round_drops_junk=true +rule.admission_round_omitted_refused=refuse +info.rule.admission_round_omitted_refused.reason=round4_not_closed +check.rule.admission_round_omitted_refused=true +rule.admission_round7_closed_honest_run=admit +info.rule.admission_round7_closed_honest_run.reason=ok +check.rule.admission_round7_closed_honest_run=true +rule.admission_round7_confirmation_omitted_refused=refuse +info.rule.admission_round7_confirmation_omitted_refused.reason=round7_not_closed +check.rule.admission_round7_confirmation_omitted_refused=true +check.round7_list_canonical_order_and_dedupe=true +finding.N6_round7_closure=participants_1_2=A7,A7;admit_all=refuse/differing_t_plus_1;admit_subset=refuse/round7_not_closed +check.finding.N6_round7_closure=true +finding.N6_round7_closure_full_set=refuse +info.finding.N6_round7_closure_full_set.reason=differing_t_plus_1 +check.finding.N6_round7_closure_full_set=true +finding.N6_round7_closure_subset=refuse +info.finding.N6_round7_closure_subset.reason=round7_not_closed +check.finding.N6_round7_closure_subset=true +rule.admission_adversarial_4of7_with_deviator_lies=admit +info.rule.admission_adversarial_4of7_with_deviator_lies.reason=ok +check.rule.admission_adversarial_4of7_with_deviator_lies=true +rule.admission_adversarial_4of7_t_matching=refuse +info.rule.admission_adversarial_4of7_t_matching.reason=fewer_than_t_plus_1_matching +check.rule.admission_adversarial_4of7_t_matching=true +rule.admission_adversarial_4of7_round7_list_includes_non_qual=admit +info.rule.admission_adversarial_4of7_round7_list_includes_non_qual.reason=ok +check.rule.admission_adversarial_4of7_round7_list_includes_non_qual=true +rule.admission_adversarial_4of7_round7_non_qual_omitted_refused=refuse +info.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.reason=round7_not_closed +check.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused=true +check.rule.admission_refusal_steps=true +rule.param_t0_n3=reject +check.rule.param_t0_n3=true +rule.param_t1_n2=reject +check.rule.param_t1_n2=true +rule.param_t2_n4=reject +check.rule.param_t2_n4=true +rule.param_t1_n3=accept +check.rule.param_t1_n3=true +rule.param_t31_n64=accept +check.rule.param_t31_n64=true +rule.param_t32_n64=reject +check.rule.param_t32_n64=true +rule.param_t1_n65=reject +check.rule.param_t1_n65=true +rule.param_empty_key=reject +check.rule.param_empty_key=true +rule.param_key_65535=accept +check.rule.param_key_65535=true +rule.param_key_65536=reject +check.rule.param_key_65536=true +rule.param_ctx_65536=reject +check.rule.param_ctx_65536=true +rule.param_ctx_empty=accept +check.rule.param_ctx_empty=true +rule.param_attempt_2_64=reject +check.rule.param_attempt_2_64=true +rule.param_attempt_2_64_minus_1=accept +check.rule.param_attempt_2_64_minus_1=true +rule.param_duplicate_keys=reject +check.rule.param_duplicate_keys=true +rule.param_distinct_hex_keys=accept +check.rule.param_distinct_hex_keys=true +rule.param_duplicate_keys_standard_length=reject +check.rule.param_duplicate_keys_standard_length=true +wf.commitments_ok=accept +check.wf.commitments_ok=true +wf.commitments_identity_point_ok=accept +check.wf.commitments_identity_point_ok=true +wf.commitments_short=reject +info.wf.commitments_short.reason=length +check.wf.commitments_short=true +wf.commitments_long=reject +info.wf.commitments_long.reason=length +check.wf.commitments_long=true +wf.commitments_wrong_session=reject +info.wf.commitments_wrong_session.reason=session +check.wf.commitments_wrong_session=true +wf.commitments_round_kind_mismatch=reject +info.wf.commitments_round_kind_mismatch.reason=round_kind +check.wf.commitments_round_kind_mismatch=true +wf.commitments_unknown_kind=reject +info.wf.commitments_unknown_kind.reason=round_kind +check.wf.commitments_unknown_kind=true +wf.commitments_sender_0=reject +info.wf.commitments_sender_0.reason=sender +check.wf.commitments_sender_0=true +wf.commitments_sender_n_plus_1=reject +info.wf.commitments_sender_n_plus_1.reason=sender +check.wf.commitments_sender_n_plus_1=true +wf.commitments_subject_nonzero=reject +info.wf.commitments_subject_nonzero.reason=subject +check.wf.commitments_subject_nonzero=true +wf.commitments_v_equals_p=reject +info.wf.commitments_v_equals_p.reason=point_noncanonical_v +check.wf.commitments_v_equals_p=true +wf.commitments_non_square_v=reject +info.wf.commitments_non_square_v.reason=point_non_square +check.wf.commitments_non_square_v=true +wf.commitments_identity_sign_set=reject +info.wf.commitments_identity_sign_set.reason=point_u_zero_sign_set +check.wf.commitments_identity_sign_set=true +wf.commitments_order2_point=reject +info.wf.commitments_order2_point.reason=point_subgroup +check.wf.commitments_order2_point=true +wf.commitments_G_plus_order2=reject +info.wf.commitments_G_plus_order2.reason=point_subgroup +check.wf.commitments_G_plus_order2=true +wf.answer_ok=accept +check.wf.answer_ok=true +wf.answer_s_equals_l=reject +info.wf.answer_s_equals_l.reason=scalar_range +check.wf.answer_s_equals_l=true +wf.answer_sp_equals_l=reject +info.wf.answer_sp_equals_l.reason=scalar_range +check.wf.answer_sp_equals_l=true +wf.answer_s_l_minus_1=accept +check.wf.answer_s_l_minus_1=true +wf.answer_subject_equals_sender=reject +info.wf.answer_subject_equals_sender.reason=subject +check.wf.answer_subject_equals_sender=true +wf.answer_subject_0=reject +info.wf.answer_subject_0.reason=subject +check.wf.answer_subject_0=true +wf.answer_subject_n_plus_1=reject +info.wf.answer_subject_n_plus_1.reason=subject +check.wf.answer_subject_n_plus_1=true +wf.complaint_ok=accept +check.wf.complaint_ok=true +wf.complaint_with_payload=reject +info.wf.complaint_with_payload.reason=length +check.wf.complaint_with_payload=true +wf.complaint_subject_equals_sender=reject +info.wf.complaint_subject_equals_sender.reason=subject +check.wf.complaint_subject_equals_sender=true +wf.share_ok=accept +check.wf.share_ok=true +wf.share_subject_equals_sender=reject +info.wf.share_subject_equals_sender.reason=subject +check.wf.share_subject_equals_sender=true +wf.confirmation_ok=accept +check.wf.confirmation_ok=true +wf.confirmation_short=reject +info.wf.confirmation_short.reason=length +check.wf.confirmation_short=true +wf.confirmation_y_not_in_subgroup=reject +info.wf.confirmation_y_not_in_subgroup.reason=point_subgroup +check.wf.confirmation_y_not_in_subgroup=true +wf.reconstruction_round_7=reject +info.wf.reconstruction_round_7.reason=round_kind +check.wf.reconstruction_round_7=true +spec_match.table.session=true +spec_match.table.honest-2of3.session=true +spec_match.table.honest-2of3.y=true +spec_match.table.honest-2of3.digest=true +spec_match.table.honest-3of5.y=true +spec_match.table.honest-4of7.digest=true +spec_match.table.zero-share.Y.1=true +spec_match.table.zero-share.digest=true +spec_match.table.equal-shares.Y=true +spec_match.table.adversarial-4of7.qual_marked=true +spec_match.table.adversarial-4of7.counts=true +spec_match.table.adversarial-4of7.y=true +spec_match.table.adversarial-4of7.digest=true +case.abort.A1_t_plus_1_dealers_silent.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A1_t_plus_1_dealers_silent.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A1_t_plus_1_dealers_silent.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A1_t_plus_1_dealers_silent.expect=abort=A1 +case.abort.A1_boundary_t_dealers_silent.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A1_boundary_t_dealers_silent.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A1_boundary_t_dealers_silent.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A1_boundary_t_dealers_silent.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A1_boundary_t_dealers_silent.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A1_boundary_t_dealers_silent.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A1_boundary_t_dealers_silent.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.abort.A1_boundary_t_dealers_silent.expect=qual=3,4,5;marked=;y=9fa73549adc7149844047dac976abc43a9b9cc6082ebadb8ae0a4430a1644160 +case.abort.A2_boundary_silent_dealer_1_participant_check.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A2_boundary_silent_dealer_1_participant_check.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A2_boundary_silent_dealer_1_participant_check.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A2_boundary_silent_dealer_1_participant_check.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A2_boundary_silent_dealer_1_participant_check.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A2_boundary_silent_dealer_1_participant_check.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A2_boundary_silent_dealer_1_participant_check.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.abort.A2_boundary_silent_dealer_1_participant_check.expect=qual=3,4,5;marked=;y=9fa73549adc7149844047dac976abc43a9b9cc6082ebadb8ae0a4430a1644160 +case.abort.A2_own_answer_not_delivered.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A2_own_answer_not_delivered.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A2_own_answer_not_delivered.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A2_own_answer_not_delivered.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A2_own_answer_not_delivered.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A2_own_answer_not_delivered.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A2_own_answer_not_delivered.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.abort.A2_own_answer_not_delivered.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A2_own_answer_not_delivered.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A2_own_answer_not_delivered.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A2_own_answer_not_delivered.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.abort.A2_own_answer_not_delivered.expect=qual=2,3,4,5;marked=;y=631d1e7d995ac8201535a20cf4ab1dc861cbce0b467689feccb892e25a29ad47 +case.abort.A3_only_t_reconstructions.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A3_only_t_reconstructions.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A3_only_t_reconstructions.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A3_only_t_reconstructions.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A3_only_t_reconstructions.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A3_only_t_reconstructions.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A3_only_t_reconstructions.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A3_only_t_reconstructions.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A3_only_t_reconstructions.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A3_only_t_reconstructions.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A3_only_t_reconstructions.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A3_only_t_reconstructions.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A3_only_t_reconstructions.expect=abort=A3 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb709abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A3_one_of_t_plus_1_reconstructions_fails_eq4.expect=abort=A3 +case.abort.A3_control_t_plus_1_valid_reconstructions.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A3_control_t_plus_1_valid_reconstructions.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A3_control_t_plus_1_valid_reconstructions.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.abort.A8_withheld_extraction_dealer_aborts.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A8_withheld_extraction_dealer_aborts.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A8_withheld_extraction_dealer_aborts.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A8_withheld_extraction_dealer_aborts.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A8_withheld_extraction_dealer_aborts.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A8_withheld_extraction_dealer_aborts.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A8_withheld_extraction_dealer_aborts.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A8_withheld_extraction_dealer_aborts.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A8_withheld_extraction_dealer_aborts.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A8_withheld_extraction_dealer_aborts.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A8_withheld_extraction_dealer_aborts.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A8_withheld_extraction_dealer_aborts.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A8_withheld_extraction_dealer_aborts.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A8_withheld_extraction_dealer_aborts.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R6_conflicting_reconstruction_excluded.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R6_conflicting_reconstruction_excluded.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R6_conflicting_reconstruction_excluded.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R6_conflicting_reconstruction_excluded.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R6_conflicting_reconstruction_excluded.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R6_conflicting_reconstruction_excluded.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R6_conflicting_reconstruction_excluded.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R6_conflicting_reconstruction_excluded.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R6_conflicting_reconstruction_excluded.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R6_conflicting_reconstruction_excluded.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R6_conflicting_reconstruction_excluded.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.rule.R6_conflicting_reconstruction_excluded.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d9604b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.rule.R6_conflicting_reconstruction_excluded.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.rule.R6_conflicting_reconstruction_excluded.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.rule.R6_conflicting_reconstruction_excluded.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.rule.R6_conflicting_reconstruction_excluded.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.abort.A4_trapdoor_forged_extra_pair.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A4_trapdoor_forged_extra_pair.H=06412135232ca29410e6326ab1f0881dbcee45c7f8b34b55b73614d66f2ef52c +case.abort.A4_trapdoor_forged_extra_pair.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100625221af2e9ec63db189eb6fe1937a1cd35c8ee06ceb61b4ded6614b883d8b9267e212b8ea6a22b80a0388a4808e74493c1e256739e59ce3ef9abfc0fe39103652ab9bc2eb4483a748f0820072bf1b2c793e8cf9f0d9099a8d208196ac71129b +case.abort.A4_trapdoor_forged_extra_pair.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200f6a120eb9679b60e44ba14412322604b2292c928b1849d95657a92c42a41c3272ff5de1f3bcfb0cf0b8e77f5e00becaa1ba1695a364656d1307a2ad90d32263d35d6d65ad1e8adc690e3423f4698ed06d6bbce60a087dcea3311e8ded48a7f23 +case.abort.A4_trapdoor_forged_extra_pair.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290101030084d12b6cc7e051e8916985564d4646e4d16f6b4d8d4840fb5314040dd281200dbf5a6971e104aeee71cb30205317c095c34fb8c51141a6be462948bb3a508a181182040ac009b23b270a746402f25efef4218a7cf312de484b3984ff45797062 +case.abort.A4_trapdoor_forged_extra_pair.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010400deef1bff838ee1be90c4ca01a2d2ef70b79f9cc5ce07b4cf13fe033b32c176806bd09f3a55c0a42c0692ecc0b6d2a7b87c8b4a36ed4c045b17a3301e2c8f1f3495d911a73f3151f4914e0ce7e7842e4576b798af8a7fbd6276515da6e2589b15 +case.abort.A4_trapdoor_forged_extra_pair.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500edac1ff89c9b95638e067c5db880d5cba4601ebab5c665184b331f91ea901981a7fcd618409e753f4f840144d9a4813d54018e9977713deae504c997ba6b3a0472fdfdbd84ee4ec3de00880c663a8772af61c2efc95e32a1cf79cea6071ee18b +case.abort.A4_trapdoor_forged_extra_pair.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A4_trapdoor_forged_extra_pair.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A4_trapdoor_forged_extra_pair.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A4_trapdoor_forged_extra_pair.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A4_trapdoor_forged_extra_pair.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A4_trapdoor_forged_extra_pair.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A4_trapdoor_forged_extra_pair.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A4_trapdoor_forged_extra_pair.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070405052c95e3d44dd588b34812efa55b09c7db4605314337117fc0b6655f4bb0969d0cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b022 +case.abort.A4_trapdoor_forged_extra_pair.expect=abort=A4 +case.abort.A4_trapdoor_forged_base_pair.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A4_trapdoor_forged_base_pair.H=06412135232ca29410e6326ab1f0881dbcee45c7f8b34b55b73614d66f2ef52c +case.abort.A4_trapdoor_forged_base_pair.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100625221af2e9ec63db189eb6fe1937a1cd35c8ee06ceb61b4ded6614b883d8b9267e212b8ea6a22b80a0388a4808e74493c1e256739e59ce3ef9abfc0fe39103652ab9bc2eb4483a748f0820072bf1b2c793e8cf9f0d9099a8d208196ac71129b +case.abort.A4_trapdoor_forged_base_pair.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200f6a120eb9679b60e44ba14412322604b2292c928b1849d95657a92c42a41c3272ff5de1f3bcfb0cf0b8e77f5e00becaa1ba1695a364656d1307a2ad90d32263d35d6d65ad1e8adc690e3423f4698ed06d6bbce60a087dcea3311e8ded48a7f23 +case.abort.A4_trapdoor_forged_base_pair.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290101030084d12b6cc7e051e8916985564d4646e4d16f6b4d8d4840fb5314040dd281200dbf5a6971e104aeee71cb30205317c095c34fb8c51141a6be462948bb3a508a181182040ac009b23b270a746402f25efef4218a7cf312de484b3984ff45797062 +case.abort.A4_trapdoor_forged_base_pair.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010400deef1bff838ee1be90c4ca01a2d2ef70b79f9cc5ce07b4cf13fe033b32c176806bd09f3a55c0a42c0692ecc0b6d2a7b87c8b4a36ed4c045b17a3301e2c8f1f3495d911a73f3151f4914e0ce7e7842e4576b798af8a7fbd6276515da6e2589b15 +case.abort.A4_trapdoor_forged_base_pair.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500edac1ff89c9b95638e067c5db880d5cba4601ebab5c665184b331f91ea901981a7fcd618409e753f4f840144d9a4813d54018e9977713deae504c997ba6b3a0472fdfdbd84ee4ec3de00880c663a8772af61c2efc95e32a1cf79cea6071ee18b +case.abort.A4_trapdoor_forged_base_pair.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A4_trapdoor_forged_base_pair.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A4_trapdoor_forged_base_pair.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A4_trapdoor_forged_base_pair.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A4_trapdoor_forged_base_pair.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070105050105900fec7986bbe378390b22b41cb51fdb2340e2bff826d973f247a7ad1304b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da94 +case.abort.A4_trapdoor_forged_base_pair.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A4_trapdoor_forged_base_pair.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A4_trapdoor_forged_base_pair.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.abort.A4_trapdoor_forged_base_pair.expect=abort=A4 +case.abort.A4_same_construction_under_profile_H.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A4_same_construction_under_profile_H.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A4_same_construction_under_profile_H.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A4_same_construction_under_profile_H.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A4_same_construction_under_profile_H.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A4_same_construction_under_profile_H.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A4_same_construction_under_profile_H.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A4_same_construction_under_profile_H.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A4_same_construction_under_profile_H.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A4_same_construction_under_profile_H.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A4_same_construction_under_profile_H.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A4_same_construction_under_profile_H.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A4_same_construction_under_profile_H.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A4_same_construction_under_profile_H.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070405052c95e3d44dd588b34812efa55b09c7db4605314337117fc0b6655f4bb0969d0cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b022 +case.abort.A4_same_construction_under_profile_H.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.abort.A5_constant_terms_sum_to_zero.config=1,3,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A5_constant_terms_sum_to_zero.msg.1=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea030101010022df4fbc8fa39d9770653afeb8d68f18b6c78783b44326e9efca4f9d5e4eb946509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.abort.A5_constant_terms_sum_to_zero.msg.2=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea030101020093e3cbf205e1cb487976dbab18d747fb6eb658c1f777e22f5b53e5f7f11fd52c54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.abort.A5_constant_terms_sum_to_zero.msg.3=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea03010103007377a44ae2d268c656c4ffd88b77297ede1e5e6f95810cbd8a92ea5b6abb0bb8802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.abort.A5_constant_terms_sum_to_zero.msg.4=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050100cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d797f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.abort.A5_constant_terms_sum_to_zero.msg.5=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050200719af0e6e0c6d0aa680f3b7e97dee9c3cbc3a7815979f08e33a640fab8ca9ab18a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.abort.A5_constant_terms_sum_to_zero.msg.6=a86eca15ae74ef0f48adbf82186ad6eee552c578c3ffa1dcd3f6a0f0ed73ea0304050300c5295dd1cb37a4ae58005ac7019c958df01d0e5256e17e81ba9d94a2db339c47e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.abort.A5_constant_terms_sum_to_zero.expect=abort=A5 +case.abort.A6_extraction_complaints_not_delivered.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A6_extraction_complaints_not_delivered.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A6_extraction_complaints_not_delivered.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A6_extraction_complaints_not_delivered.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A6_extraction_complaints_not_delivered.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A6_extraction_complaints_not_delivered.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A6_extraction_complaints_not_delivered.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A6_extraction_complaints_not_delivered.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A6_extraction_complaints_not_delivered.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A6_extraction_complaints_not_delivered.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A6_extraction_complaints_not_delivered.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.abort.A6_extraction_complaints_not_delivered.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R1_conflicting_commitments.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R1_conflicting_commitments.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R1_conflicting_commitments.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f290ea99e89db3233b459116485e5da2e47c7cca5901c36d2395f2868f0f4cb926c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R1_conflicting_commitments.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R1_conflicting_commitments.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R1_conflicting_commitments.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R1_conflicting_commitments.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R1_conflicting_commitments.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R1_conflicting_commitments.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R1_conflicting_commitments.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R1_conflicting_commitments.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R1_conflicting_commitments.expect=qual=1,3,4,5;marked=;y=f811dfa83dc41d6ca272a283cba1ae4498dd95288c1fb5eeb23af448a891cd95 +case.rule.R1_malformed_commitments_absent.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R1_malformed_commitments_absent.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R1_malformed_commitments_absent.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R1_malformed_commitments_absent.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R1_malformed_commitments_absent.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R1_malformed_commitments_absent.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R1_malformed_commitments_absent.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R1_malformed_commitments_absent.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R1_malformed_commitments_absent.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R1_malformed_commitments_absent.raw.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R1_malformed_commitments_absent.raw.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R1_malformed_commitments_absent.raw.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R1_malformed_commitments_absent.raw.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R1_malformed_commitments_absent.raw.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c +case.rule.R1_malformed_commitments_absent.raw.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R1_malformed_commitments_absent.raw.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R1_malformed_commitments_absent.raw.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R1_malformed_commitments_absent.raw.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R1_malformed_commitments_absent.expect=qual=1,3,4,5;marked=;y=f811dfa83dc41d6ca272a283cba1ae4498dd95288c1fb5eeb23af448a891cd95 +case.rule.R2_conflicting_share_complaint.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R2_conflicting_share_complaint.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R2_conflicting_share_complaint.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R2_conflicting_share_complaint.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R2_conflicting_share_complaint.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R2_conflicting_share_complaint.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R2_conflicting_share_complaint.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R2_conflicting_share_complaint.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R2_conflicting_share_complaint.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R2_conflicting_share_complaint.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R2_conflicting_share_complaint.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R2_conflicting_share_complaint.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R2_conflicting_share_complaint.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R2_conflicting_share_complaint.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R2_duplicate_identical_complaints.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R2_duplicate_identical_complaints.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R2_duplicate_identical_complaints.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R2_duplicate_identical_complaints.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R2_duplicate_identical_complaints.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R2_duplicate_identical_complaints.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R2_duplicate_identical_complaints.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R2_duplicate_identical_complaints.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030301 +case.rule.R2_duplicate_identical_complaints.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R2_duplicate_identical_complaints.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010300892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe100c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.rule.R2_duplicate_identical_complaints.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R2_duplicate_identical_complaints.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R2_duplicate_identical_complaints.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R2_duplicate_identical_complaints.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R2_duplicate_identical_complaints.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R2_duplicate_identical_complaints.raw.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R2_duplicate_identical_complaints.raw.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R2_duplicate_identical_complaints.raw.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R2_duplicate_identical_complaints.raw.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R2_duplicate_identical_complaints.raw.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R2_duplicate_identical_complaints.raw.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R2_duplicate_identical_complaints.raw.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030301 +case.rule.R2_duplicate_identical_complaints.raw.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R2_duplicate_identical_complaints.raw.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R2_duplicate_identical_complaints.raw.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R2_duplicate_identical_complaints.raw.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010300892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe100c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.rule.R2_duplicate_identical_complaints.raw.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R2_duplicate_identical_complaints.raw.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R2_duplicate_identical_complaints.raw.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R2_duplicate_identical_complaints.raw.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R2_duplicate_identical_complaints.raw.16=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R2_duplicate_identical_complaints.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R3_more_than_t_complaints.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R3_more_than_t_complaints.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R3_more_than_t_complaints.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R3_more_than_t_complaints.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R3_more_than_t_complaints.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R3_more_than_t_complaints.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R3_more_than_t_complaints.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R3_more_than_t_complaints.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030301 +case.rule.R3_more_than_t_complaints.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030401 +case.rule.R3_more_than_t_complaints.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R3_more_than_t_complaints.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010300892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe100c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.rule.R3_more_than_t_complaints.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29030401040959576e9fd64d9751fc74896faf6b281dcc6f7fd012c876030e988e92824e96073e0ceb691f8c8fe96b5be2871712810234e4f7644a3cf2b5da44d269139bc6 +case.rule.R3_more_than_t_complaints.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R3_more_than_t_complaints.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R3_more_than_t_complaints.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R3_more_than_t_complaints.msg.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R3_more_than_t_complaints.expect=qual=2,3,4,5;marked=;y=631d1e7d995ac8201535a20cf4ab1dc861cbce0b467689feccb892e25a29ad47 +case.rule.R3_unanswered_complaint.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R3_unanswered_complaint.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R3_unanswered_complaint.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R3_unanswered_complaint.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R3_unanswered_complaint.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R3_unanswered_complaint.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R3_unanswered_complaint.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R3_unanswered_complaint.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R3_unanswered_complaint.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R3_unanswered_complaint.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R3_unanswered_complaint.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R3_unanswered_complaint.expect=qual=2,3,4,5;marked=;y=631d1e7d995ac8201535a20cf4ab1dc861cbce0b467689feccb892e25a29ad47 +case.rule.R3_answer_fails_eq4.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R3_answer_fails_eq4.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R3_answer_fails_eq4.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R3_answer_fails_eq4.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R3_answer_fails_eq4.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R3_answer_fails_eq4.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R3_answer_fails_eq4.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R3_answer_fails_eq4.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221301f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R3_answer_fails_eq4.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R3_answer_fails_eq4.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R3_answer_fails_eq4.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R3_answer_fails_eq4.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R3_answer_fails_eq4.expect=qual=2,3,4,5;marked=;y=631d1e7d995ac8201535a20cf4ab1dc861cbce0b467689feccb892e25a29ad47 +case.rule.R3_conflicting_answers.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R3_conflicting_answers.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R3_conflicting_answers.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R3_conflicting_answers.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R3_conflicting_answers.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R3_conflicting_answers.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R3_conflicting_answers.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.R3_conflicting_answers.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R3_conflicting_answers.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221701f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.R3_conflicting_answers.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R3_conflicting_answers.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R3_conflicting_answers.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R3_conflicting_answers.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R3_conflicting_answers.expect=qual=2,3,4,5;marked=;y=631d1e7d995ac8201535a20cf4ab1dc861cbce0b467689feccb892e25a29ad47 +case.rule.R3_answer_without_complaint.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R3_answer_without_complaint.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R3_answer_without_complaint.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R3_answer_without_complaint.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R3_answer_without_complaint.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R3_answer_without_complaint.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R3_answer_without_complaint.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010300892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe600c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.rule.R3_answer_without_complaint.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R3_answer_without_complaint.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R3_answer_without_complaint.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R3_answer_without_complaint.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R3_answer_without_complaint.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R3_answer_without_complaint.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R4_conflicting_extraction.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R4_conflicting_extraction.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R4_conflicting_extraction.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R4_conflicting_extraction.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R4_conflicting_extraction.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R4_conflicting_extraction.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R4_conflicting_extraction.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R4_conflicting_extraction.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R4_conflicting_extraction.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R4_conflicting_extraction.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R4_conflicting_extraction.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf030664510ca22af5e7efd4b8aa6ed7b7321acf359c5340655318f621c1d68df4de98 +case.rule.R4_conflicting_extraction.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R4_conflicting_extraction.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.rule.R4_conflicting_extraction.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.rule.R4_conflicting_extraction.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.rule.R4_conflicting_extraction.msg.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.rule.R4_conflicting_extraction.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R5_invalid_extraction_complaints.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R5_invalid_extraction_complaints.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R5_invalid_extraction_complaints.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R5_invalid_extraction_complaints.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R5_invalid_extraction_complaints.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R5_invalid_extraction_complaints.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R5_invalid_extraction_complaints.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R5_invalid_extraction_complaints.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R5_invalid_extraction_complaints.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R5_invalid_extraction_complaints.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R5_invalid_extraction_complaints.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R5_invalid_extraction_complaints.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290506030100892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe200c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.rule.R5_invalid_extraction_complaints.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050604010959576e9fd64d9751fc74896faf6b281dcc6f7fd012c876030e988e92824e96073e0ceb691f8c8fe96b5be2871712810234e4f7644a3cf2b5da44d269139bc6 +case.rule.R5_invalid_extraction_complaints.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R5_conflicting_complaints_each_evaluated.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R5_conflicting_complaints_each_evaluated.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R5_conflicting_complaints_each_evaluated.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R5_conflicting_complaints_each_evaluated.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R5_conflicting_complaints_each_evaluated.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R5_conflicting_complaints_each_evaluated.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R5_conflicting_complaints_each_evaluated.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R5_conflicting_complaints_each_evaluated.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R5_conflicting_complaints_each_evaluated.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R5_conflicting_complaints_each_evaluated.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R5_conflicting_complaints_each_evaluated.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R5_conflicting_complaints_each_evaluated.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050603050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.rule.R5_conflicting_complaints_each_evaluated.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050603050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb709abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.rule.R5_conflicting_complaints_each_evaluated.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.rule.R5_conflicting_complaints_each_evaluated.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.rule.R5_conflicting_complaints_each_evaluated.msg.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.rule.R5_conflicting_complaints_each_evaluated.msg.16=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.rule.R5_conflicting_complaints_each_evaluated.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R5_complaint_against_dealer_without_extraction.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R5_complaint_against_dealer_without_extraction.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.R5_complaint_against_dealer_without_extraction.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R5_complaint_against_dealer_without_extraction.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R5_complaint_against_dealer_without_extraction.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R5_complaint_against_dealer_without_extraction.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R5_complaint_against_dealer_without_extraction.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.R5_complaint_against_dealer_without_extraction.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R5_complaint_against_dealer_without_extraction.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R5_complaint_against_dealer_without_extraction.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R5_complaint_against_dealer_without_extraction.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050601050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.rule.R5_complaint_against_dealer_without_extraction.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.rule.R5_complaint_against_dealer_without_extraction.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.rule.R5_complaint_against_dealer_without_extraction.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.rule.R5_complaint_against_dealer_without_extraction.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.rule.R5_complaint_against_dealer_without_extraction.expect=qual=1,2,3,4,5;marked=5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.R5_complaint_against_non_qual.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.R5_complaint_against_non_qual.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.R5_complaint_against_non_qual.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.R5_complaint_against_non_qual.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.R5_complaint_against_non_qual.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.R5_complaint_against_non_qual.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.R5_complaint_against_non_qual.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.R5_complaint_against_non_qual.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.R5_complaint_against_non_qual.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.R5_complaint_against_non_qual.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290506030100892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe100c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.rule.R5_complaint_against_non_qual.expect=qual=2,3,4,5;marked=;y=631d1e7d995ac8201535a20cf4ab1dc861cbce0b467689feccb892e25a29ad47 +case.finding.F14_all_extractions_late.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.finding.F14_all_extractions_late.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.finding.F14_all_extractions_late.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.finding.F14_all_extractions_late.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.finding.F14_all_extractions_late.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.finding.F14_all_extractions_late.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.finding.F14_all_extractions_late.expect=abort=A3 +case.finding.F14_all_extractions_late_pre_revision_without_A8.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701020bce581b669b1a78f7332aa7faaa39a1a72f7520086a32620f3c3a7044d1ce2409e26059a577d5cbe2ea05192e36b61edda57cafbea94c075579cfb705c6b384 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070103058d123e50b209deadae417b12c1e3aa80eb631b1ca352c1fcdb82b9cf72510e0c4688a39c23e945b941466fe6735cea7707cfcac16401d5220dc4e5b2e581c7 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701040ac4b9ebb798bcf02a045b17eebc9b25de6b12a28d532cbecee1175a08a4128c0146c7d332ac3c60a5d2d093f13ccb1782f153878204e1278de1887ac69ff30e +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020109c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070203020e53c02ff90a467144fd35f350fc2baa0b199a84610e9bb5e0aff7936b9c930437417a43398cc66418675309ff2838ecab2162bd6ebaccb9967cd73ccea317 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060702040bf7dd4ffe7ec5728c00e3a66aeba6e69c8e2a073e83da421b45ca5483e9c1870c33fe3a7a6c256ef855568bc53490d073cd631f1f1fa54f75b426ff1ce0ca58 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607030100892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe100c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607030203e937f8c4fde32cdddd44c7118abf32416eba8b553717e8f5a3639cd6ab906e08b8015f599f87b4a7cf51bbdc3cc771d3eb3310869927e8db6f4f661efb8aba +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.16=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703040309f2438a601edfca217fc451602fd371a1d7d992a94797197834df0bb345690defe718f24a589b1b08548a98a2819b5efd6ff2ac4509bc072c3f80a0ee5858 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.17=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.18=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704010959576e9fd64d9751fc74896faf6b281dcc6f7fd012c876030e988e92824e96073e0ceb691f8c8fe96b5be2871712810234e4f7644a3cf2b5da44d269139bc6 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.19=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704020a2544f5bd620f94fb5959199b645eff2e286135f2f90ab0a71af1d1f7e8dfda039dda5852106e91da9ed92d8c4e494f7a26abc45d9fff8a754dfec51aaff923 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.20=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070403029ab5ac5e54dfc8aa4b3627e68a56ced5972292af9357815cb81f291de5d20b0e6c372fa8d2bc0d07a513d6cae841f5c7c12d44f9f01a7d58f6c2f166b6e52c +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.21=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.22=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070501073c3179590408f087b88cae623a3968d9e57a21dd4230db25220ccb791334c306ea6e77b74dcacf0e3620c6c9f0c62dc7de90f49aa1544e44ac08ab862d4331 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.23=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060705020d81ecb54dc5a195db554aed78b6c02416589f76ad1d47cea1b07231c4b705a609fe188a6e9db9089ebe31b5ce4856fb38daae0e4e23837a19b106dd376ceb77 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.24=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607050306a5d616ad69b4e31fbab35ef93498f0d803750b7307e48d4a8a611ce466bbfe03b50a399ceee880f38c297565dd1a62e063a667a0d6a030bfa0345c58c7ac83 +case.finding.F14_all_extractions_late_pre_revision_without_A8.msg.25=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060705040cc1c48205e3831ef46bdeb261eaa533fa3b791656f2a3c16da26a1f9cae7ebe04518525d7954cf5d766f39e3f151f67cac1a1e16377c3e5f7a3ecda0966c531 +case.finding.F14_all_extractions_late_pre_revision_without_A8.expect=qual=1,2,3,4,5;marked=1,2,3,4,5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.finding.F14_all_late_only_t_faulty_reconstruct.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701020bce581b669b1a78f7332aa7faaa39a1a72f7520086a32620f3c3a7044d1ce2409e26059a577d5cbe2ea05192e36b61edda57cafbea94c075579cfb705c6b384 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070103058d123e50b209deadae417b12c1e3aa80eb631b1ca352c1fcdb82b9cf72510e0c4688a39c23e945b941466fe6735cea7707cfcac16401d5220dc4e5b2e581c7 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701040ac4b9ebb798bcf02a045b17eebc9b25de6b12a28d532cbecee1175a08a4128c0146c7d332ac3c60a5d2d093f13ccb1782f153878204e1278de1887ac69ff30e +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020109c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070203020e53c02ff90a467144fd35f350fc2baa0b199a84610e9bb5e0aff7936b9c930437417a43398cc66418675309ff2838ecab2162bd6ebaccb9967cd73ccea317 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060702040bf7dd4ffe7ec5728c00e3a66aeba6e69c8e2a073e83da421b45ca5483e9c1870c33fe3a7a6c256ef855568bc53490d073cd631f1f1fa54f75b426ff1ce0ca58 +case.finding.F14_all_late_only_t_faulty_reconstruct.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.finding.F14_all_late_only_t_faulty_reconstruct.expect=abort=A3 +case.finding.F14_partial_two_honest_late.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.finding.F14_partial_two_honest_late.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.finding.F14_partial_two_honest_late.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.finding.F14_partial_two_honest_late.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.finding.F14_partial_two_honest_late.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.finding.F14_partial_two_honest_late.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.finding.F14_partial_two_honest_late.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.finding.F14_partial_two_honest_late.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.finding.F14_partial_two_honest_late.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.finding.F14_partial_two_honest_late.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070103058d123e50b209deadae417b12c1e3aa80eb631b1ca352c1fcdb82b9cf72510e0c4688a39c23e945b941466fe6735cea7707cfcac16401d5220dc4e5b2e581c7 +case.finding.F14_partial_two_honest_late.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701040ac4b9ebb798bcf02a045b17eebc9b25de6b12a28d532cbecee1175a08a4128c0146c7d332ac3c60a5d2d093f13ccb1782f153878204e1278de1887ac69ff30e +case.finding.F14_partial_two_honest_late.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2906070203020e53c02ff90a467144fd35f350fc2baa0b199a84610e9bb5e0aff7936b9c930437417a43398cc66418675309ff2838ecab2162bd6ebaccb9967cd73ccea317 +case.finding.F14_partial_two_honest_late.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060702040bf7dd4ffe7ec5728c00e3a66aeba6e69c8e2a073e83da421b45ca5483e9c1870c33fe3a7a6c256ef855568bc53490d073cd631f1f1fa54f75b426ff1ce0ca58 +case.finding.F14_partial_two_honest_late.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607050306a5d616ad69b4e31fbab35ef93498f0d803750b7307e48d4a8a611ce466bbfe03b50a399ceee880f38c297565dd1a62e063a667a0d6a030bfa0345c58c7ac83 +case.finding.F14_partial_two_honest_late.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060705040cc1c48205e3831ef46bdeb261eaa533fa3b791656f2a3c16da26a1f9cae7ebe04518525d7954cf5d766f39e3f151f67cac1a1e16377c3e5f7a3ecda0966c531 +case.finding.F14_partial_two_honest_late.expect=qual=1,2,3,4,5;marked=3,4;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050601050df74052a78de1663bdb5e1108133abc8e015488420439550511bf33e8371d8f04b7fab3edf9a7e701487f3ea9e0ed9615c2076fd0292eceabc35a459a58da93 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290506020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050603050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29050604050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020109c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607020503041cd65a28ad22a513c1fd081449cde2eb417273512e6d4fd17c1cd8f87c8807022876d2ba708ac3a5c617e227b374866906123287b7ce97a42901711c5a2a +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.16=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607030100892202d14467eea8177526f9fdb0724e423f33caf45e6f572f2941974a7fe100c1851e6ed40c13907280fec215e905be9b9d20908387079c666c117b17595a +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.17=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060703050312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.18=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704010959576e9fd64d9751fc74896faf6b281dcc6f7fd012c876030e988e92824e96073e0ceb691f8c8fe96b5be2871712810234e4f7644a3cf2b5da44d269139bc6 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.msg.19=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704050e22d0a66bef3d68333ff8c7a24b9067b4277e9644588adc9eeeb0a0ec4007190cb4ce87b49bb32236da9b530f5de206ce9cafe61496789055f410559605b021 +case.abort.A8_timing_marked_dealer_still_complains_in_R5.expect=qual=1,2,3,4,5;marked=1,5;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.abort.A9_own_complaint_not_delivered.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.abort.A9_own_complaint_not_delivered.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.abort.A9_own_complaint_not_delivered.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.abort.A9_own_complaint_not_delivered.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.abort.A9_own_complaint_not_delivered.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.abort.A9_own_complaint_not_delivered.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.abort.A9_own_complaint_not_delivered.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.abort.A9_own_complaint_not_delivered.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.abort.A9_own_complaint_not_delivered.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.abort.A9_own_complaint_not_delivered.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.abort.A9_own_complaint_not_delivered.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060701020bce581b669b1a78f7332aa7faaa39a1a72f7520086a32620f3c3a7044d1ce2409e26059a577d5cbe2ea05192e36b61edda57cafbea94c075579cfb705c6b384 +case.abort.A9_own_complaint_not_delivered.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290607030203e937f8c4fde32cdddd44c7118abf32416eba8b553717e8f5a3639cd6ab906e08b8015f599f87b4a7cf51bbdc3cc771d3eb3310869927e8db6f4f661efb8aba +case.abort.A9_own_complaint_not_delivered.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060704020a2544f5bd620f94fb5959199b645eff2e286135f2f90ab0a71af1d1f7e8dfda039dda5852106e91da9ed92d8c4e494f7a26abc45d9fff8a754dfec51aaff923 +case.abort.A9_own_complaint_not_delivered.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29060705020d81ecb54dc5a195db554aed78b6c02416589f76ad1d47cea1b07231c4b705a609fe188a6e9db9089ebe31b5ce4856fb38daae0e4e23837a19b106dd376ceb77 +case.abort.A9_own_complaint_not_delivered.expect=qual=1,2,3,4,5;marked=2;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.channel_share_on_broadcast_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.channel_share_on_broadcast_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.channel_share_on_broadcast_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.channel_share_on_broadcast_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.channel_share_on_broadcast_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.channel_share_on_broadcast_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.channel_share_on_broadcast_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.channel_share_on_broadcast_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.channel_share_on_broadcast_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.channel_share_on_broadcast_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.channel_share_on_broadcast_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.channel_share_on_broadcast_ignored.raw.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.channel_share_on_broadcast_ignored.raw.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.channel_share_on_broadcast_ignored.raw.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.channel_share_on_broadcast_ignored.raw.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.channel_share_on_broadcast_ignored.raw.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.channel_share_on_broadcast_ignored.raw.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290102010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.channel_share_on_broadcast_ignored.raw.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.channel_share_on_broadcast_ignored.raw.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.channel_share_on_broadcast_ignored.raw.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.channel_share_on_broadcast_ignored.raw.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.channel_share_on_broadcast_ignored.raw.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.channel_share_on_broadcast_ignored.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.channel_non_share_on_private_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.channel_non_share_on_private_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.channel_non_share_on_private_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.channel_non_share_on_private_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.channel_non_share_on_private_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.channel_non_share_on_private_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.channel_non_share_on_private_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.channel_non_share_on_private_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.channel_non_share_on_private_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.channel_non_share_on_private_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.channel_non_share_on_private_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.channel_non_share_on_private_refused.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.channel_non_share_on_private_refused.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.channel_non_share_on_private_refused.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.channel_share_for_other_recipient_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.channel_share_for_other_recipient_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.channel_share_for_other_recipient_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.channel_share_for_other_recipient_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.channel_share_for_other_recipient_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.channel_share_for_other_recipient_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.channel_share_for_other_recipient_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.channel_share_for_other_recipient_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.channel_share_for_other_recipient_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.channel_share_for_other_recipient_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.channel_share_for_other_recipient_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.channel_share_for_other_recipient_refused.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.channel_share_for_other_recipient_refused.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.channel_share_for_other_recipient_refused.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.finding.S52_late_shares_reveal_key.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.finding.S52_late_shares_reveal_key.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.finding.S52_late_shares_reveal_key.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.finding.S52_late_shares_reveal_key.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.finding.S52_late_shares_reveal_key.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.finding.S52_late_shares_reveal_key.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.finding.S52_late_shares_reveal_key.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030305 +case.finding.S52_late_shares_reveal_key.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030403 +case.finding.S52_late_shares_reveal_key.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030504 +case.finding.S52_late_shares_reveal_key.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2903040304029ab5ac5e54dfc8aa4b3627e68a56ced5972292af9357815cb81f291de5d20b0e6c372fa8d2bc0d07a513d6cae841f5c7c12d44f9f01a7d58f6c2f166b6e52c +case.finding.S52_late_shares_reveal_key.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29030404050cc1c48205e3831ef46bdeb261eaa533fa3b791656f2a3c16da26a1f9cae7ebe04518525d7954cf5d766f39e3f151f67cac1a1e16377c3e5f7a3ecda0966c531 +case.finding.S52_late_shares_reveal_key.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29030405030312a2479b9e7678a2354ae490d1bbb19a4d4f771ec29eefd87077412fa61fb609abc46814f074492ad67a1eaea6af9a195c938ef4017b0f25b465b16fab4c04 +case.finding.S52_late_shares_reveal_key.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.finding.S52_late_shares_reveal_key.msg.13=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.finding.S52_late_shares_reveal_key.msg.14=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.finding.S52_late_shares_reveal_key.msg.15=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.finding.S52_late_shares_reveal_key.msg.16=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.finding.S52_late_shares_reveal_key.expect=qual=1,2,3,4,5;marked=;y=89eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.combine_extra_share_mismatch.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.combine_extra_share_mismatch.qual=1,2,3,4,5 +case.rule.combine_extra_share_mismatch.bound=7 +case.rule.combine_extra_share_mismatch.ciphertext=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990836d393634f395345204fd401f9d0c482fca9df2f24e6e77e45d99068ec81041 +case.rule.combine_extra_share_mismatch.share.1=67f77f75ca8044f860c1bf4028f69150ae1350ad09be172d818c52b5db2b6a36 +case.rule.combine_extra_share_mismatch.share.2=94aa37e3716353a21d08b1f92e22892add7b7bb40a984983eaa11c6df1f7e842 +case.rule.combine_extra_share_mismatch.share.3=0886882a4615101f27215741f441521d827d7efde7952aadecbbeff651484e89 +case.rule.combine_extra_share_mismatch.share.4=d2de6934f751c01a550b1c6edb36f60d473503310a9b8c2c61df1f957728e535 +case.rule.combine_extra_share_mismatch.share.5=be929463870a6da438afa76e8fbebd4f54411bf1e2b9caa202c79189126d3991 +case.rule.combine_extra_share_mismatch.expect=error +case.rule.combine_too_few_shares.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.combine_too_few_shares.qual=1,2,3,4,5 +case.rule.combine_too_few_shares.bound=7 +case.rule.combine_too_few_shares.ciphertext=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990836d393634f395345204fd401f9d0c482fca9df2f24e6e77e45d99068ec81041 +case.rule.combine_too_few_shares.share.1=67f77f75ca8044f860c1bf4028f69150ae1350ad09be172d818c52b5db2b6a36 +case.rule.combine_too_few_shares.share.2=94aa37e3716353a21d08b1f92e22892add7b7bb40a984983eaa11c6df1f7e842 +case.rule.combine_too_few_shares.expect=error +case.rule.combine_share_from_non_qual.config=3,7,7a65726f6a2e746573742e616476657273617269616c,7 +case.rule.combine_share_from_non_qual.qual=1,2,4,5,6,7 +case.rule.combine_share_from_non_qual.bound=7 +case.rule.combine_share_from_non_qual.ciphertext=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990207177e36dfd2bc3c142d88fa466ace6b50a18a73e78f790b72270d0bc65588a +case.rule.combine_share_from_non_qual.share.2=e0bf0d26347226b8b5d484fc632e505726af4d4080cff2b02e2b71d4a06b7283 +case.rule.combine_share_from_non_qual.share.3=23f222ee59de3f6ae46f7fd0476d74f7d31dffa8812a022d830b68cd4c4e9cad +case.rule.combine_share_from_non_qual.share.4=82947d08fa417923106a53349ea5f9d95b785d01b73b3263e03986551f33edc1 +case.rule.combine_share_from_non_qual.share.6=b670709a2effbf2fe1e6f95733150004734ce41f720fa247067cc685cb68fcae +case.rule.combine_share_from_non_qual.expect=error +case.rule.combine_all_verified_shares.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.combine_all_verified_shares.qual=1,2,3,4,5 +case.rule.combine_all_verified_shares.bound=7 +case.rule.combine_all_verified_shares.ciphertext=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990836d393634f395345204fd401f9d0c482fca9df2f24e6e77e45d99068ec81041 +case.rule.combine_all_verified_shares.share.1=67f77f75ca8044f860c1bf4028f69150ae1350ad09be172d818c52b5db2b6a36 +case.rule.combine_all_verified_shares.share.2=94aa37e3716353a21d08b1f92e22892add7b7bb40a984983eaa11c6df1f7e842 +case.rule.combine_all_verified_shares.share.3=0886882a4615101f27215741f441521d827d7efde7952aadecbbeff651484e89 +case.rule.combine_all_verified_shares.share.4=d2de6934f751c01a550b1c6edb36f60d473503310a9b8c2c61df1f957728e535 +case.rule.combine_all_verified_shares.share.5=632df6f791da95d03db93e14bba3ea6f35d7e61d1f7646ef31227a3756f2ef5d +case.rule.combine_all_verified_shares.expect=plaintext:5 +case.rule.combine_unverified_bad_share_in_S_not_5.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.combine_unverified_bad_share_in_S_not_5.qual=1,2,3,4,5 +case.rule.combine_unverified_bad_share_in_S_not_5.bound=7 +case.rule.combine_unverified_bad_share_in_S_not_5.ciphertext=d2795edf4add7cd1a43098e5f991abdce948b596010ce040a6f4628b37c8f990836d393634f395345204fd401f9d0c482fca9df2f24e6e77e45d99068ec81041 +case.rule.combine_unverified_bad_share_in_S_not_5.share.1=67f77f75ca8044f860c1bf4028f69150ae1350ad09be172d818c52b5db2b6a36 +case.rule.combine_unverified_bad_share_in_S_not_5.share.2=94aa37e3716353a21d08b1f92e22892add7b7bb40a984983eaa11c6df1f7e842 +case.rule.combine_unverified_bad_share_in_S_not_5.share.5=be929463870a6da438afa76e8fbebd4f54411bf1e2b9caa202c79189126d3991 +case.rule.combine_unverified_bad_share_in_S_not_5.expect=not_plaintext:5 +case.rule.admission_all_confirmations.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_all_confirmations.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_all_confirmations.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_all_confirmations.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_all_confirmations.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_all_confirmations.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_all_confirmations.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_all_confirmations.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_all_confirmations.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_all_confirmations.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_all_confirmations.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_all_confirmations.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_all_confirmations.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_all_confirmations.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_all_confirmations.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_all_confirmations.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_all_confirmations.expect=admit +case.rule.admission_t_plus_1_confirmations.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_plus_1_confirmations.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_plus_1_confirmations.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_plus_1_confirmations.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_plus_1_confirmations.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_plus_1_confirmations.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_plus_1_confirmations.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_plus_1_confirmations.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_plus_1_confirmations.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_plus_1_confirmations.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_plus_1_confirmations.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_plus_1_confirmations.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_confirmations.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_confirmations.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_confirmations.expect=admit +case.rule.admission_t_confirmations.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_confirmations.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_confirmations.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_confirmations.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_confirmations.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_confirmations.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_confirmations.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_confirmations.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_confirmations.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_confirmations.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_confirmations.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_confirmations.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_confirmations.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_confirmations.expect=refuse +case.rule.admission_t_confirmations.step=6 +case.rule.admission_duplicate_sender_counts_once.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_duplicate_sender_counts_once.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_duplicate_sender_counts_once.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_duplicate_sender_counts_once.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_duplicate_sender_counts_once.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_duplicate_sender_counts_once.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_duplicate_sender_counts_once.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_duplicate_sender_counts_once.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_duplicate_sender_counts_once.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_duplicate_sender_counts_once.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_duplicate_sender_counts_once.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_duplicate_sender_counts_once.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_sender_counts_once.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_sender_counts_once.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_sender_counts_once.expect=refuse +case.rule.admission_duplicate_sender_counts_once.step=6 +case.rule.admission_byte_identical_duplicate_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_byte_identical_duplicate_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_byte_identical_duplicate_ok.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_byte_identical_duplicate_ok.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_byte_identical_duplicate_ok.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_byte_identical_duplicate_ok.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_byte_identical_duplicate_ok.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_byte_identical_duplicate_ok.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_byte_identical_duplicate_ok.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_byte_identical_duplicate_ok.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_byte_identical_duplicate_ok.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_byte_identical_duplicate_ok.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_byte_identical_duplicate_ok.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_byte_identical_duplicate_ok.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_byte_identical_duplicate_ok.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_byte_identical_duplicate_ok.expect=admit +case.rule.admission_one_lie_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_one_lie_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_one_lie_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_one_lie_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_one_lie_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_one_lie_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_one_lie_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_one_lie_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_one_lie_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_one_lie_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_one_lie_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_one_lie_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_one_lie_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_one_lie_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_one_lie_ignored.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_one_lie_ignored.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_one_lie_ignored.expect=admit +case.rule.admission_t_plus_1_matching_plus_one_lie.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_plus_1_matching_plus_one_lie.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_plus_1_matching_plus_one_lie.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_matching_plus_one_lie.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_matching_plus_one_lie.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_matching_plus_one_lie.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_t_plus_1_matching_plus_one_lie.expect=admit +case.rule.admission_t_lies_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_lies_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_lies_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_lies_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_lies_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_lies_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_lies_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_lies_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_lies_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_lies_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_lies_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_lies_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_lies_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_lies_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_lies_ignored.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_lies_ignored.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_t_lies_ignored.expect=admit +case.rule.admission_t_matching_plus_lie.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_matching_plus_lie.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_matching_plus_lie.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_matching_plus_lie.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_matching_plus_lie.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_matching_plus_lie.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_matching_plus_lie.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_matching_plus_lie.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_matching_plus_lie.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_matching_plus_lie.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_matching_plus_lie.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_matching_plus_lie.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_matching_plus_lie.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_matching_plus_lie.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_t_matching_plus_lie.expect=refuse +case.rule.admission_t_matching_plus_lie.step=6 +case.rule.admission_t_plus_1_differing_3of5.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_plus_1_differing_3of5.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_plus_1_differing_3of5.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_plus_1_differing_3of5.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_plus_1_differing_3of5.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_plus_1_differing_3of5.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_plus_1_differing_3of5.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_plus_1_differing_3of5.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_plus_1_differing_3of5.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_plus_1_differing_3of5.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_plus_1_differing_3of5.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_plus_1_differing_3of5.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_differing_3of5.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_differing_3of5.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_differing_3of5.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_differing_3of5.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_differing_3of5.expect=refuse +case.rule.admission_t_plus_1_differing_3of5.step=6 +case.rule.admission_2of4_matching_and_t_plus_1_differing.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.rule.admission_2of4_matching_and_t_plus_1_differing.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.rule.admission_2of4_matching_and_t_plus_1_differing.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_matching_and_t_plus_1_differing.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_matching_and_t_plus_1_differing.confirmation.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_matching_and_t_plus_1_differing.confirmation.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055e7f208fb03fd288c4d5859a3f15cb43764ae6b6f7338908caae14f2b595a1c60 +case.rule.admission_2of4_matching_and_t_plus_1_differing.expect=refuse +case.rule.admission_2of4_matching_and_t_plus_1_differing.step=6 +case.rule.admission_2of4_matching_and_t_differing.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.rule.admission_2of4_matching_and_t_differing.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.rule.admission_2of4_matching_and_t_differing.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.rule.admission_2of4_matching_and_t_differing.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.rule.admission_2of4_matching_and_t_differing.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.rule.admission_2of4_matching_and_t_differing.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.rule.admission_2of4_matching_and_t_differing.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.rule.admission_2of4_matching_and_t_differing.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.rule.admission_2of4_matching_and_t_differing.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.rule.admission_2of4_matching_and_t_differing.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_matching_and_t_differing.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_matching_and_t_differing.confirmation.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_matching_and_t_differing.confirmation.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055e7f208fb03fd288c4d5859a3f15cb43764ae6b6f7338908caae14f2b595a1c60 +case.rule.admission_2of4_matching_and_t_differing.expect=admit +case.rule.admission_2of4_equivocator_differing_only.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.rule.admission_2of4_equivocator_differing_only.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.rule.admission_2of4_equivocator_differing_only.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.rule.admission_2of4_equivocator_differing_only.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.rule.admission_2of4_equivocator_differing_only.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.rule.admission_2of4_equivocator_differing_only.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.rule.admission_2of4_equivocator_differing_only.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.rule.admission_2of4_equivocator_differing_only.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.rule.admission_2of4_equivocator_differing_only.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.rule.admission_2of4_equivocator_differing_only.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_equivocator_differing_only.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_equivocator_differing_only.confirmation.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_equivocator_differing_only.expect=refuse +case.rule.admission_2of4_equivocator_differing_only.step=6 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.confirmation.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.confirmation.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.confirmation.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.confirmation.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055e7f208fb03fd288c4d5859a3f15cb43764ae6b6f7338908caae14f2b595a1c60 +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.expect=refuse +case.rule.admission_2of4_two_equivocators_t_plus_1_differing.step=6 +case.rule.admission_2of4_one_equivocator_ignored.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.rule.admission_2of4_one_equivocator_ignored.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.rule.admission_2of4_one_equivocator_ignored.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.rule.admission_2of4_one_equivocator_ignored.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.rule.admission_2of4_one_equivocator_ignored.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.rule.admission_2of4_one_equivocator_ignored.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.rule.admission_2of4_one_equivocator_ignored.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.rule.admission_2of4_one_equivocator_ignored.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.rule.admission_2of4_one_equivocator_ignored.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.rule.admission_2of4_one_equivocator_ignored.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_one_equivocator_ignored.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_one_equivocator_ignored.confirmation.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_one_equivocator_ignored.confirmation.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.rule.admission_2of4_one_equivocator_ignored.confirmation.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055e7f208fb03fd288c4d5859a3f15cb43764ae6b6f7338908caae14f2b595a1c60 +case.rule.admission_2of4_one_equivocator_ignored.expect=admit +case.rule.admission_3of5_equivocators_differing_only.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_3of5_equivocators_differing_only.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_3of5_equivocators_differing_only.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_3of5_equivocators_differing_only.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_3of5_equivocators_differing_only.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_3of5_equivocators_differing_only.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_3of5_equivocators_differing_only.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_3of5_equivocators_differing_only.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_3of5_equivocators_differing_only.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_3of5_equivocators_differing_only.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_3of5_equivocators_differing_only.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_3of5_equivocators_differing_only.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_equivocators_differing_only.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_equivocators_differing_only.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_equivocators_differing_only.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_equivocators_differing_only.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_3of5_equivocators_differing_only.expect=refuse +case.rule.admission_3of5_equivocators_differing_only.step=6 +case.rule.admission_3of5_one_equivocator_among_all.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_3of5_one_equivocator_among_all.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_3of5_one_equivocator_among_all.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_3of5_one_equivocator_among_all.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_3of5_one_equivocator_among_all.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_3of5_one_equivocator_among_all.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_3of5_one_equivocator_among_all.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_3of5_one_equivocator_among_all.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_3of5_one_equivocator_among_all.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_3of5_one_equivocator_among_all.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_3of5_one_equivocator_among_all.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_3of5_one_equivocator_among_all.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_one_equivocator_among_all.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_one_equivocator_among_all.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_one_equivocator_among_all.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_one_equivocator_among_all.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_one_equivocator_among_all.confirmation.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_3of5_one_equivocator_among_all.expect=admit +case.rule.admission_stale_session_confirmations_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_stale_session_confirmations_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_stale_session_confirmations_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_stale_session_confirmations_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_stale_session_confirmations_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_stale_session_confirmations_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_stale_session_confirmations_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_stale_session_confirmations_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_stale_session_confirmations_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_stale_session_confirmations_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_stale_session_confirmations_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_stale_session_confirmations_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_stale_session_confirmations_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_stale_session_confirmations_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_stale_session_confirmations_ignored.confirmation.4=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e07080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_stale_session_confirmations_ignored.confirmation.5=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e07080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_stale_session_confirmations_ignored.confirmation.6=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e07080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_stale_session_confirmations_ignored.expect=admit +case.rule.admission_stale_session_only_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_stale_session_only_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_stale_session_only_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_stale_session_only_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_stale_session_only_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_stale_session_only_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_stale_session_only_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_stale_session_only_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_stale_session_only_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_stale_session_only_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_stale_session_only_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_stale_session_only_refused.confirmation.1=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e07080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_stale_session_only_refused.confirmation.2=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e07080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_stale_session_only_refused.confirmation.3=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e07080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_stale_session_only_refused.expect=refuse +case.rule.admission_stale_session_only_refused.step=6 +case.rule.admission_malformed_confirmations_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_malformed_confirmations_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_malformed_confirmations_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_malformed_confirmations_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_malformed_confirmations_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_malformed_confirmations_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_malformed_confirmations_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_malformed_confirmations_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_malformed_confirmations_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_malformed_confirmations_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_malformed_confirmations_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_malformed_confirmations_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_confirmations_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_confirmations_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_confirmations_ignored.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560a +case.rule.admission_malformed_confirmations_ignored.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560a +case.rule.admission_malformed_confirmations_ignored.expect=admit +case.rule.admission_non_confirmation_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_non_confirmation_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_non_confirmation_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_non_confirmation_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_non_confirmation_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_non_confirmation_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_non_confirmation_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_non_confirmation_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_non_confirmation_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_non_confirmation_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_non_confirmation_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_non_confirmation_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_non_confirmation_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_non_confirmation_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_non_confirmation_ignored.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030405 +case.rule.admission_non_confirmation_ignored.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_non_confirmation_ignored.expect=admit +case.rule.admission_unauthenticated_confirmations_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_unauthenticated_confirmations_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_unauthenticated_confirmations_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_unauthenticated_confirmations_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_unauthenticated_confirmations_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_unauthenticated_confirmations_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_unauthenticated_confirmations_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_unauthenticated_confirmations_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_unauthenticated_confirmations_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_unauthenticated_confirmations_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_unauthenticated_confirmations_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_unauthenticated_confirmations_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.unauthenticated.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.unauthenticated.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_confirmations_ignored.expect=admit +case.rule.admission_unauthenticated_matching_not_counted.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_unauthenticated_matching_not_counted.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_unauthenticated_matching_not_counted.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_unauthenticated_matching_not_counted.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_unauthenticated_matching_not_counted.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_unauthenticated_matching_not_counted.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_unauthenticated_matching_not_counted.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_unauthenticated_matching_not_counted.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_unauthenticated_matching_not_counted.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_unauthenticated_matching_not_counted.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_unauthenticated_matching_not_counted.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_unauthenticated_matching_not_counted.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_matching_not_counted.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_matching_not_counted.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_matching_not_counted.unauthenticated.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_matching_not_counted.expect=refuse +case.rule.admission_unauthenticated_matching_not_counted.step=6 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.confirmation.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.unauthenticated.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.unauthenticated.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.unauthenticated.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_unauthenticated_lies_ignored.expect=admit +case.rule.admission_t_plus_1_authenticated_lies_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_t_plus_1_authenticated_lies_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.confirmation.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300ecd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_t_plus_1_authenticated_lies_refused.expect=refuse +case.rule.admission_t_plus_1_authenticated_lies_refused.step=6 +case.rule.admission_unauthenticated_transcript_message_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_unauthenticated_transcript_message_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_unauthenticated_transcript_message_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_unauthenticated_transcript_message_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_unauthenticated_transcript_message_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_unauthenticated_transcript_message_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_unauthenticated_transcript_message_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_unauthenticated_transcript_message_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_unauthenticated_transcript_message_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_unauthenticated_transcript_message_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_unauthenticated_transcript_message_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_unauthenticated_transcript_message_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_transcript_message_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_transcript_message_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_transcript_message_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_transcript_message_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_unauthenticated_transcript_message_refused.unauthenticated.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_unauthenticated_transcript_message_refused.expect=refuse +case.rule.admission_unauthenticated_transcript_message_refused.step=3 +case.rule.admission_duplicate_transcript_messages_count_once.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_duplicate_transcript_messages_count_once.order=submission +case.rule.admission_duplicate_transcript_messages_count_once.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_duplicate_transcript_messages_count_once.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_duplicate_transcript_messages_count_once.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_duplicate_transcript_messages_count_once.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_duplicate_transcript_messages_count_once.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_duplicate_transcript_messages_count_once.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_duplicate_transcript_messages_count_once.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_duplicate_transcript_messages_count_once.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_duplicate_transcript_messages_count_once.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_duplicate_transcript_messages_count_once.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_duplicate_transcript_messages_count_once.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_duplicate_transcript_messages_count_once.msg.12=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_duplicate_transcript_messages_count_once.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_transcript_messages_count_once.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_transcript_messages_count_once.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_transcript_messages_count_once.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_transcript_messages_count_once.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_duplicate_transcript_messages_count_once.expect=admit +case.rule.admission_malformed_transcript_message_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_malformed_transcript_message_refused.order=submission +case.rule.admission_malformed_transcript_message_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_malformed_transcript_message_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_malformed_transcript_message_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_malformed_transcript_message_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_malformed_transcript_message_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_malformed_transcript_message_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_malformed_transcript_message_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_malformed_transcript_message_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_malformed_transcript_message_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_malformed_transcript_message_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_malformed_transcript_message_refused.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc883 +case.rule.admission_malformed_transcript_message_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_transcript_message_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_transcript_message_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_transcript_message_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_transcript_message_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_malformed_transcript_message_refused.expect=refuse +case.rule.admission_malformed_transcript_message_refused.step=2 +case.rule.admission_other_session_transcript_message_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_other_session_transcript_message_refused.order=submission +case.rule.admission_other_session_transcript_message_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_other_session_transcript_message_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_other_session_transcript_message_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_other_session_transcript_message_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_other_session_transcript_message_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_other_session_transcript_message_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_other_session_transcript_message_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_other_session_transcript_message_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_other_session_transcript_message_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_other_session_transcript_message_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_other_session_transcript_message_refused.msg.11=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e02030201 +case.rule.admission_other_session_transcript_message_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_other_session_transcript_message_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_other_session_transcript_message_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_other_session_transcript_message_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_other_session_transcript_message_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_other_session_transcript_message_refused.expect=refuse +case.rule.admission_other_session_transcript_message_refused.step=2 +case.rule.admission_share_in_transcript_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_share_in_transcript_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_share_in_transcript_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_share_in_transcript_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_share_in_transcript_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_share_in_transcript_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_share_in_transcript_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290102010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.admission_share_in_transcript_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_share_in_transcript_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_share_in_transcript_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_share_in_transcript_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_share_in_transcript_refused.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_share_in_transcript_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_share_in_transcript_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_share_in_transcript_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_share_in_transcript_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_share_in_transcript_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_share_in_transcript_refused.expect=refuse +case.rule.admission_share_in_transcript_refused.step=2 +case.rule.admission_confirmation_in_transcript_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_confirmation_in_transcript_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_confirmation_in_transcript_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_confirmation_in_transcript_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_confirmation_in_transcript_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_confirmation_in_transcript_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_confirmation_in_transcript_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_confirmation_in_transcript_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_confirmation_in_transcript_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_confirmation_in_transcript_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_confirmation_in_transcript_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_confirmation_in_transcript_refused.msg.11=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_confirmation_in_transcript_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_confirmation_in_transcript_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_confirmation_in_transcript_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_confirmation_in_transcript_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_confirmation_in_transcript_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_confirmation_in_transcript_refused.expect=refuse +case.rule.admission_confirmation_in_transcript_refused.step=2 +case.rule.admission_omitted_extraction.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_omitted_extraction.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_omitted_extraction.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_omitted_extraction.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_omitted_extraction.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_omitted_extraction.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_omitted_extraction.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_omitted_extraction.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_omitted_extraction.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_omitted_extraction.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_omitted_extraction.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_extraction.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_extraction.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_extraction.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_extraction.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_extraction.expect=refuse +case.rule.admission_omitted_extraction.step=5 +case.rule.admission_omitted_commitments.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_omitted_commitments.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_omitted_commitments.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_omitted_commitments.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_omitted_commitments.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_omitted_commitments.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_omitted_commitments.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_omitted_commitments.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_omitted_commitments.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_omitted_commitments.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_commitments.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_commitments.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_commitments.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_commitments.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_omitted_commitments.expect=refuse +case.rule.admission_omitted_commitments.step=6 +case.rule.admission_junk_posts_do_not_veto.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_junk_posts_do_not_veto.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_junk_posts_do_not_veto.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_junk_posts_do_not_veto.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_junk_posts_do_not_veto.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_junk_posts_do_not_veto.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_junk_posts_do_not_veto.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_junk_posts_do_not_veto.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_junk_posts_do_not_veto.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_junk_posts_do_not_veto.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_junk_posts_do_not_veto.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_junk_posts_do_not_veto.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.unauthenticated.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030301 +case.rule.admission_junk_posts_do_not_veto.unauthenticated.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030401 +case.rule.admission_junk_posts_do_not_veto.unauthenticated.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_junk_posts_do_not_veto.closure=board +case.rule.admission_junk_posts_do_not_veto.board.1.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_junk_posts_do_not_veto.board.1.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_junk_posts_do_not_veto.board.1.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_junk_posts_do_not_veto.board.1.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_junk_posts_do_not_veto.board.1.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_junk_posts_do_not_veto.board.1.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc883 +case.rule.admission_junk_posts_do_not_veto.board.1.7=12e7d4c27f0468778445a3981543901b33effeb96c11b35a7ba11a7fba84e26e02030201 +case.rule.admission_junk_posts_do_not_veto.board.1.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290102010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.rule.admission_junk_posts_do_not_veto.board.1.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.rule.admission_junk_posts_do_not_veto.board.1.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030301 +case.rule.admission_junk_posts_do_not_veto.board.2.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030401 +case.rule.admission_junk_posts_do_not_veto.board.2.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_junk_posts_do_not_veto.board.4.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_junk_posts_do_not_veto.board.4.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_junk_posts_do_not_veto.board.4.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_junk_posts_do_not_veto.board.4.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_junk_posts_do_not_veto.board.4.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_junk_posts_do_not_veto.board.7.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.board.7.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.board.7.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.board.7.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.board.7.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_junk_posts_do_not_veto.board.7.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf715052c685680d9e0898522138ab946c6fe78b6b573607c8c49a61230f2b560acd +case.rule.admission_junk_posts_do_not_veto.board.7.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c4 +case.rule.admission_junk_posts_do_not_veto.expect=admit +case.rule.admission_round_omitted_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_round_omitted_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_round_omitted_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_round_omitted_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_round_omitted_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_round_omitted_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_round_omitted_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.closure=board +case.rule.admission_round_omitted_refused.board.1.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_round_omitted_refused.board.1.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_round_omitted_refused.board.1.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_round_omitted_refused.board.1.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_round_omitted_refused.board.1.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_round_omitted_refused.board.4.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_round_omitted_refused.board.4.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_round_omitted_refused.board.4.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_round_omitted_refused.board.4.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_round_omitted_refused.board.4.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_round_omitted_refused.board.7.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.board.7.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.board.7.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.board.7.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.board.7.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round_omitted_refused.expect=refuse +case.rule.admission_round_omitted_refused.step=4 +case.rule.admission_round7_closed_honest_run.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_round7_closed_honest_run.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_round7_closed_honest_run.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_round7_closed_honest_run.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_round7_closed_honest_run.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_round7_closed_honest_run.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_round7_closed_honest_run.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_round7_closed_honest_run.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_round7_closed_honest_run.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_round7_closed_honest_run.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_round7_closed_honest_run.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_round7_closed_honest_run.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.confirmation.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.closure=board +case.rule.admission_round7_closed_honest_run.board.1.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_round7_closed_honest_run.board.1.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_round7_closed_honest_run.board.1.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_round7_closed_honest_run.board.1.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_round7_closed_honest_run.board.1.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_round7_closed_honest_run.board.4.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_round7_closed_honest_run.board.4.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_round7_closed_honest_run.board.4.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_round7_closed_honest_run.board.4.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_round7_closed_honest_run.board.4.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_round7_closed_honest_run.board.7.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.board.7.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.board.7.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.board.7.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.board.7.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_closed_honest_run.expect=admit +case.rule.admission_round7_confirmation_omitted_refused.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.rule.admission_round7_confirmation_omitted_refused.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_round7_confirmation_omitted_refused.msg.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_round7_confirmation_omitted_refused.msg.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_round7_confirmation_omitted_refused.msg.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_round7_confirmation_omitted_refused.msg.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_round7_confirmation_omitted_refused.msg.6=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_round7_confirmation_omitted_refused.msg.7=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_round7_confirmation_omitted_refused.msg.8=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_round7_confirmation_omitted_refused.msg.9=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_round7_confirmation_omitted_refused.msg.10=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_round7_confirmation_omitted_refused.confirmation.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.confirmation.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.confirmation.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.confirmation.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.closure=board +case.rule.admission_round7_confirmation_omitted_refused.board.1.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.rule.admission_round7_confirmation_omitted_refused.board.1.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c85 +case.rule.admission_round7_confirmation_omitted_refused.board.1.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d5 +case.rule.admission_round7_confirmation_omitted_refused.board.1.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf894 +case.rule.admission_round7_confirmation_omitted_refused.board.1.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d9 +case.rule.admission_round7_confirmation_omitted_refused.board.4.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354ce78184ea788513fe44d69be1e3943e6f98e50d5cb01cf22d94359b144d6c74d9 +case.rule.admission_round7_confirmation_omitted_refused.board.4.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e +case.rule.admission_round7_confirmation_omitted_refused.board.4.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24120bcfb01098eb7edff167a2d7f527b78061d102a03c0907ffd68af0fd77dcc3 +case.rule.admission_round7_confirmation_omitted_refused.board.4.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583 +case.rule.admission_round7_confirmation_omitted_refused.board.4.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2904050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c107140b5e633240df3ee4aa17faa8a6fad742204166f82568b2133dea1e1cf0306ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea +case.rule.admission_round7_confirmation_omitted_refused.board.7.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.board.7.2=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080200edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.board.7.3=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080300edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.board.7.4=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080400edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.board.7.5=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080500edd7aa9f589992e9801d76987611d293ff921e046da81c3790121d767ffdcf7189eeef65017eb8f1a18e38a5b9fc0efb971386181e0db4649c60941cd5a6c425 +case.rule.admission_round7_confirmation_omitted_refused.expect=refuse +case.rule.admission_round7_confirmation_omitted_refused.step=6 +case.finding.N6_round7_closure_full_set.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.finding.N6_round7_closure_full_set.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.finding.N6_round7_closure_full_set.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.finding.N6_round7_closure_full_set.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.finding.N6_round7_closure_full_set.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.finding.N6_round7_closure_full_set.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.finding.N6_round7_closure_full_set.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.finding.N6_round7_closure_full_set.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.finding.N6_round7_closure_full_set.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.finding.N6_round7_closure_full_set.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.confirmation.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.confirmation.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.closure=board +case.finding.N6_round7_closure_full_set.board.1.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.finding.N6_round7_closure_full_set.board.1.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.finding.N6_round7_closure_full_set.board.1.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.finding.N6_round7_closure_full_set.board.1.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.finding.N6_round7_closure_full_set.board.4.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.finding.N6_round7_closure_full_set.board.4.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.finding.N6_round7_closure_full_set.board.4.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.finding.N6_round7_closure_full_set.board.4.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.finding.N6_round7_closure_full_set.board.7.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.board.7.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.board.7.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.board.7.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_full_set.expect=refuse +case.finding.N6_round7_closure_full_set.step=6 +case.finding.N6_round7_closure_subset.config=1,4,7a65726f6a2e746573742e7265666572656e63652d6f6e6c792e326f6634,1 +case.finding.N6_round7_closure_subset.msg.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.finding.N6_round7_closure_subset.msg.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.finding.N6_round7_closure_subset.msg.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.finding.N6_round7_closure_subset.msg.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.finding.N6_round7_closure_subset.msg.5=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.finding.N6_round7_closure_subset.msg.6=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.finding.N6_round7_closure_subset.msg.7=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.finding.N6_round7_closure_subset.msg.8=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.finding.N6_round7_closure_subset.confirmation.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_subset.confirmation.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_subset.closure=board +case.finding.N6_round7_closure_subset.board.1.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d94 +case.finding.N6_round7_closure_subset.board.1.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c +case.finding.N6_round7_closure_subset.board.1.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee301010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743d +case.finding.N6_round7_closure_subset.board.1.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee3010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c48 +case.finding.N6_round7_closure_subset.board.4.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405010067b7ac32d2d43a6e77a403d935d5ad36a2ce33e35ca9add0749a0fce78ff0c4197f66c8849ff870a13697863bd52bba0d182d0641c0014e944a2b19887b6354c +case.finding.N6_round7_closure_subset.board.4.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc +case.finding.N6_round7_closure_subset.board.4.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee304050300dca01f9f9afbb2de1196e6ef17d689de236775bd1996a9c827fa0fe88064f921e2aacac6e5b3987be5cdc7c3acb93c0da4eb32d9d8a83d75c509d8a244b76f24 +case.finding.N6_round7_closure_subset.board.4.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee30405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a93 +case.finding.N6_round7_closure_subset.board.7.1=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080100bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_subset.board.7.2=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080200bac5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_subset.board.7.3=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080300bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_subset.board.7.4=958b599f96a580e3afd401ca5b152dde00f3b8c1bb0d388557296a852df26ee307080400bbc5d9e27a1251701d34f380446c409f9c22d2fc1786605898924e34cc7bb055f0a2e64db54cf1d4cf1e95a1be328513ed46b7974d473bc7caaf85722b9ce2ae +case.finding.N6_round7_closure_subset.expect=refuse +case.finding.N6_round7_closure_subset.step=6 +case.rule.admission_adversarial_4of7_with_deviator_lies.config=3,7,7a65726f6a2e746573742e616476657273617269616c,7 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.8=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.9=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.10=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.11=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.12=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.13=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.14=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.15=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.16=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.17=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.18=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.19=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.20=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.21=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.22=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.23=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.24=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.25=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.26=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.27=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +case.rule.admission_adversarial_4of7_with_deviator_lies.msg.28=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708070092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968070801000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968070803000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.rule.admission_adversarial_4of7_with_deviator_lies.confirmation.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968070805000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.rule.admission_adversarial_4of7_with_deviator_lies.expect=admit +case.rule.admission_adversarial_4of7_t_matching.config=3,7,7a65726f6a2e746573742e616476657273617269616c,7 +case.rule.admission_adversarial_4of7_t_matching.msg.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +case.rule.admission_adversarial_4of7_t_matching.msg.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +case.rule.admission_adversarial_4of7_t_matching.msg.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +case.rule.admission_adversarial_4of7_t_matching.msg.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +case.rule.admission_adversarial_4of7_t_matching.msg.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +case.rule.admission_adversarial_4of7_t_matching.msg.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +case.rule.admission_adversarial_4of7_t_matching.msg.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +case.rule.admission_adversarial_4of7_t_matching.msg.8=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +case.rule.admission_adversarial_4of7_t_matching.msg.9=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +case.rule.admission_adversarial_4of7_t_matching.msg.10=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_t_matching.msg.11=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +case.rule.admission_adversarial_4of7_t_matching.msg.12=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +case.rule.admission_adversarial_4of7_t_matching.msg.13=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +case.rule.admission_adversarial_4of7_t_matching.msg.14=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +case.rule.admission_adversarial_4of7_t_matching.msg.15=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +case.rule.admission_adversarial_4of7_t_matching.msg.16=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +case.rule.admission_adversarial_4of7_t_matching.msg.17=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_t_matching.msg.18=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_t_matching.msg.19=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_t_matching.msg.20=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_t_matching.msg.21=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_t_matching.msg.22=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_t_matching.msg.23=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +case.rule.admission_adversarial_4of7_t_matching.msg.24=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_t_matching.msg.25=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +case.rule.admission_adversarial_4of7_t_matching.msg.26=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_t_matching.msg.27=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +case.rule.admission_adversarial_4of7_t_matching.msg.28=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_t_matching.confirmation.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_t_matching.confirmation.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_t_matching.confirmation.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_t_matching.confirmation.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968070801000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.rule.admission_adversarial_4of7_t_matching.confirmation.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968070803000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.rule.admission_adversarial_4of7_t_matching.confirmation.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968070805000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.rule.admission_adversarial_4of7_t_matching.expect=refuse +case.rule.admission_adversarial_4of7_t_matching.step=6 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.config=3,7,7a65726f6a2e746573742e616476657273617269616c,7 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.8=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.9=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.10=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.11=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.12=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.13=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.14=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.15=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.16=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.17=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.18=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.19=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.20=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.21=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.22=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.23=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.24=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.25=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.26=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.27=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.msg.28=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.confirmation.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.confirmation.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.confirmation.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.confirmation.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708070092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.confirmation.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708030092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.closure=board +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.1.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.2.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.2.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.3.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.4.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.4.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.4.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.4.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.4.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.5.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.5.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.5.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.5.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.5.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.6.8=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.7.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.7.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.7.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.7.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708070092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.board.7.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708030092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_list_includes_non_qual.expect=admit +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.config=3,7,7a65726f6a2e746573742e616476657273617269616c,7 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.8=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.9=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.10=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.11=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.12=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.13=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.14=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.15=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.16=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.17=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.18=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.19=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.20=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.21=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.22=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.23=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.24=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.25=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.26=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.27=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.msg.28=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.confirmation.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.confirmation.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.confirmation.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.confirmation.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708070092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.closure=board +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336a95b580ad199040322ee01cd5a619889faa95a41ffe403f9013d76b13024f6d6 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010200d30d8862099e9bf1fb9523523df71b15090ede1dc04e9f8b08167fb82004610f54006071f068ddc05b31460fb00f61efdb5ed980904ec223ebf77aef828e796c6c8882e2b8fdc5a42d57a5f1d074810f641f40eae76467dce8874b5056e16c8508dd5ebfdf40d06a53c374d712a5ea9700d643ff8e0f7530f68ce4d9bdac8da0 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010300c50a029a8090882c96827df605030d4d29b2ca4102bb8bbb2f92de5ddf22e916802e25b457b41baf49bc78f2fe2c497abc7f4823e633b50effcdc54e4dc4743dc056b934d39753137a3562a35fb49a743da1d2c4bd66b7d47ff357498a13b3d559510d38a017422c9d182a1805a572f114ee662cfe5d5949312d21a51d8c2c0a +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968010104001ae5d1472cf5deca29666980d647fe59771b9d5fc3bfd4f8720aaf167b8a28eb736e287f57f7257fc476b2c7bddb016019f4ca39542d861ab68cb7912a727c480d6825402fa35e0f56f4576150c7378f1bbc856990d382e9f2b9b587762cf89466b222524a7b838fd15277fc8da08af4a573b5de9cab5f309d0c59c31a1659bf +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010500ea0d5f9664144138726acff023a12e8eddde164309a04c2c268421ee75bd6a585f4342efdd6d7c7e12f0d78b199b34a5f446885a229cec801393cf7746acbcc92ca48615d505610b73bc7d5023bb0c0893434ac1e14e9e94ae8d66c69c51e8d92fccc36c09f2f2e5fed25e351276469afeb5ec5e11862b16242a7a3adb026c60 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680101060001b5482acfcf2b143973c1f45235d357d6bb6f7ab1076f2c5973aa8e087b4c5290358e2b6205da0d035d3f7b2dde9640abb53348656bc651066b7d69f29d15b9d2ecb0f1de5b3446990a75e0b7e0899c30f776f80ced32d093e4a5563c451ba99be0083b4d5be1122f9b25680b0ddd1895d0734757a91d7643e48729d93df48b +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.1.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96801010700d1241e04c90408e84885cce2416a5964b8edfcff7729d0866d6052b32efc02a51c2b77a98236058489ae51d55b4e605515e4b3da81e506c76bb5238fcf0d586ae7597ef1b62156f76ae3e51b062bdbaa8d8d7d1a7e672f71c771ee6deda792d2d5798fac90aa6edc1318b472c7921ac26e0edc0856af2f4260f155bb5b9eb689 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.2.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030201 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.2.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96802030403 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.3.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680304010201c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.4.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050200bef2710efd4db9ef0d488b798e2800ff0325ad3dcba2403328c1db55e54e1f198a223141d921b82a8f001d41bb2aea004925e09cfc742ac0606fa4f5e5dd79dc88b21b4658381c30cb55b7152ce79e62a9890e530daebb99d801613cccf1822e2bedcda31fe5e8a49eb41229f0f05afe83ecbcae2ceda4aa51f9e61224abb8ce +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.4.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680405040014576f2a97bed553ff8855cade850d1d3157a8d3a2b266bdc0898886ec2b192d4bf7c3207bda9571555362b7473779f8590c4659575cfe9ee1f3feb5eb805a9332491e5a3b78c07551ed21ba1f6e354860bd7c67a3c53b58a66268bc2e3be583b575cc684e61492e7765782e8c8be7fead1dca7898f4622a51e7a4ce41a862ca +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.4.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050500f3bdf662128bba97fb0fba8c7395a6c7f140a42e7d4b8ae4b8f2307255364c10cf8cc3c835219143928385c7a16949edb730f165a002ad7e49a9d80da78e92b2ab873a29ad3afb79fc016dda7162ecd0a45848fea91d6bddf3d4fe2bc01b8bea26f954379051e3e04f9ad7acb1e9049970ca8d595f184ca9dec7923855ea9408 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.4.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968040506007c598d4b756133c4db44dd7b91658381d589231f9cd12b84af9d1b5db516be6ec9150a80a2acfc703321a0010ed3b7626b01bc6a621b90524a753cd1b5088933ea8fea7100c156ebeeb87b247928579d2e6d313e58156bf0b2fc69a0b59d1559fd351de99d1370745a15360df98dc6d54b69d339eeb3f3e884332388241869ab +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.4.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b96804050700525231a7920ba077a620ed298b866fef19dd8e0bd6092845006a2de8c2d3afc1ad9500925c4887345ce381cfd58bc9321ee516aa034c503576cac5132d224103bfb8c95d388410ba840f6d5f4aa7da95b14996c7a61a9ae48518c2513e408c56eea0ce287e010654f748f4acc3b1698a574daebce9ff6d9ad999f6df917f07b7 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.5.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506010506076325daa37c31e64712a1a3ab80c301d76d90e2c504fb504864b3b18063fe0619084680b158e6652a5706eb2929282c7f5fa64685fe0f52ba1b9f71386bf5 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.5.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050602050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.5.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050604050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.5.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680506060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.5.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968050607050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607020101c14eb53d92608e6585c2fabc76213d564363b22ec4862904278023147d277c08ae53897efcf611fb9c17477c25476e950fe8115cab6dbf32eb3acfc12d6706 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704010322c86c638a5669e107541b3bc566cfa8cebc353d9e9d635117f610e7772cc2032575b45f40b6635f18d13682643c0df53cd313b5db5062c39b7b987d24dbfa +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060706010973d1c56e4e6ee77c1283a4656ae00b97b9736fc42eaf86ae42c57d4321900607b03ac92fdc3b78359714287c95c8c8bd6f959579fe8778b02a660798914b5d +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707010de93e18c9ae752eff58b6e676065ab478cd9e9596d43d9f8e41b1935d91bbc50a0fa50e7900fca9ca58157213d5d2dd524d7d5910e3e024450251022e7913a2 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060702050bf9bc03ecd7f1cd18758d86eadba104c1a4ac9a793fde2dbc79eff556168f93038ce021034448dcdc4d4958eb35550495eba73218a62150fec325715121b883 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.6=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060704050d5b417f0766f46eae4a2e11b281231b69ea34f373e5b651f13f078aa25cbfde0e05f5ae0351d50508e52b5d5a3364889781fa0cdf19e5a9301a1092441efc57 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.7=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680607060506e01ac0e4609930b5e963f63131be06e647e13cd1b503853ee8e820271df9a40d78c9c38a11d0c2fd735f26891e55eb293a56f784f7a62660d0a5800478ced1 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.6.8=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b968060707050ddce40735811d333b2285cc5e16e9932c0165a1bdb9bb6ca6a9b9693387529c0463aa3de79da40931bdd52ef9acb99e1a053b6114c04cd7b45ccac15091640a +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.7.1=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708020092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.7.2=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708040092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.7.3=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708060092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.7.4=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708070092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.board.7.5=5659181df55b39a400a83b8fd376b7ca344bc9cd89bbb481a76ded0d9bd4b9680708030092ddd0e587537bec6cfcffdc0d4d90d8fa4145bdfa5200107f6c3766caa134a00b881774fb4c7fd67485a8c737cb78d787a46c87c7d2d6af3b588b4409ceec54 +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.expect=refuse +case.rule.admission_adversarial_4of7_round7_non_qual_omitted_refused.step=6 +case.rule.param_t0_n3.config=0,3,63,0 +case.rule.param_t0_n3.roster=standard +case.rule.param_t0_n3.params=reject +case.rule.param_t1_n2.config=1,2,63,0 +case.rule.param_t1_n2.roster=standard +case.rule.param_t1_n2.params=reject +case.rule.param_t2_n4.config=2,4,63,0 +case.rule.param_t2_n4.roster=standard +case.rule.param_t2_n4.params=reject +case.rule.param_t1_n3.config=1,3,63,0 +case.rule.param_t1_n3.roster=standard +case.rule.param_t1_n3.params=accept +case.rule.param_t1_n3.session=78bf8c2a73a34eb8cf3c8a8e56032d2e0d8a447418b2d3620a6ab5a82789531c +case.rule.param_t31_n64.config=31,64,63,0 +case.rule.param_t31_n64.roster=standard +case.rule.param_t31_n64.params=accept +case.rule.param_t31_n64.session=662202721209dca4e52298d434ff3b22f28a5a4b8438bd486425a2df471c2ab6 +case.rule.param_t32_n64.config=32,64,63,0 +case.rule.param_t32_n64.roster=standard +case.rule.param_t32_n64.params=reject +case.rule.param_t1_n65.config=1,65,63,0 +case.rule.param_t1_n65.roster=standard +case.rule.param_t1_n65.params=reject +case.rule.param_empty_key.config=1,3,63,0 +case.rule.param_empty_key.roster=lengths:0,1,1 +case.rule.param_empty_key.params=reject +case.rule.param_key_65535.config=1,3,63,0 +case.rule.param_key_65535.roster=lengths:65535,1,1 +case.rule.param_key_65535.params=accept +case.rule.param_key_65535.session=9784bf49974e245f9b2bba6ab5ad6ce377317ad0470993d87edf6be135b3b6bb +case.rule.param_key_65536.config=1,3,63,0 +case.rule.param_key_65536.roster=lengths:65536,1,1 +case.rule.param_key_65536.params=reject +case.rule.param_ctx_65536.config=1,3,63636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363,0 +case.rule.param_ctx_65536.roster=standard +case.rule.param_ctx_65536.params=reject +case.rule.param_ctx_empty.config=1,3,,0 +case.rule.param_ctx_empty.roster=standard +case.rule.param_ctx_empty.params=accept +case.rule.param_ctx_empty.session=9c397de7378a9d9a38a6fcf1156da280d0640946cad419308e4d1e0b69cfc7b6 +case.rule.param_attempt_2_64.config=1,3,63,18446744073709551616 +case.rule.param_attempt_2_64.roster=standard +case.rule.param_attempt_2_64.params=reject +case.rule.param_attempt_2_64_minus_1.config=1,3,63,18446744073709551615 +case.rule.param_attempt_2_64_minus_1.roster=standard +case.rule.param_attempt_2_64_minus_1.params=accept +case.rule.param_attempt_2_64_minus_1.session=7e10bdcc9696f1219e68acc5a6d44b01cb835028c6476a7fd0a00002a003b6af +case.rule.param_duplicate_keys.config=1,3,63,0 +case.rule.param_duplicate_keys.roster=hex:01,01,03 +case.rule.param_duplicate_keys.params=reject +case.rule.param_distinct_hex_keys.config=1,3,63,0 +case.rule.param_distinct_hex_keys.roster=hex:01,02,03 +case.rule.param_distinct_hex_keys.params=accept +case.rule.param_distinct_hex_keys.session=4fdacc69ea534406efa054d2cab47d1fde56a6a9b35dd2b42b841d4fb86c42cf +case.rule.param_duplicate_keys_standard_length.config=2,5,63,0 +case.rule.param_duplicate_keys_standard_length.roster=hex:0101010101010101010101010101010101010101010101010101010101010101,0202020202020202020202020202020202020202020202020202020202020202,0303030303030303030303030303030303030303030303030303030303030303,0404040404040404040404040404040404040404040404040404040404040404,0101010101010101010101010101010101010101010101010101010101010101 +case.rule.param_duplicate_keys_standard_length.params=reject +case.wf.commitments_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_ok.decode=accept +case.wf.commitments_identity_point_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_identity_point_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661010000000000000000000000000000000000000000000000000000000000000034a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_identity_point_ok.decode=accept +case.wf.commitments_short.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_short.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc883 +case.wf.commitments_short.decode=reject +case.wf.commitments_long.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_long.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc8833600 +case.wf.commitments_long.decode=reject +case.wf.commitments_wrong_session.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_wrong_session.msg.1=79806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_wrong_session.decode=reject +case.wf.commitments_round_kind_mismatch.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_round_kind_mismatch.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902010100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_round_kind_mismatch.decode=reject +case.wf.commitments_unknown_kind.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_unknown_kind.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901090100d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_unknown_kind.decode=reject +case.wf.commitments_sender_0.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_sender_0.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010000d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_sender_0.decode=reject +case.wf.commitments_sender_n_plus_1.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_sender_n_plus_1.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010600d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_sender_n_plus_1.decode=reject +case.wf.commitments_subject_nonzero.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_subject_nonzero.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2901010101d86dd8b8c87cec6186afc6ca451a1f66760f9ec2a6e75daa9f8a3a7825737661509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_subject_nonzero.decode=reject +case.wf.commitments_v_equals_p.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_v_equals_p.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290101010001000000fffffffffe5bfeff02a4bd5305d8a10908d83933487d9d2953a7ed73509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_v_equals_p.decode=reject +case.wf.commitments_non_square_v.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_non_square_v.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010101000200000000000000000000000000000000000000000000000000000000000000509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_non_square_v.decode=reject +case.wf.commitments_identity_sign_set.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_identity_sign_set.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29010101000100000000000000000000000000000000000000000000000000000000000080509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_identity_sign_set.decode=reject +case.wf.commitments_order2_point.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_order2_point.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290101010000000000fffffffffe5bfeff02a4bd5305d8a10908d83933487d9d2953a7ed73509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_order2_point.decode=reject +case.wf.commitments_G_plus_order2.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.commitments_G_plus_order2.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290101010036aaf32ac615f33eebd77dbf7435139a516b40cafa0442baf8a12e3fcf2bda1c509d69188304f71d5741e935f4ba7e0d6aa7ffd1beda3eff51e72d8eb3002d9434a5c8b69277775893d3666719d95ea5c41535233caf588dde89fc285fc88336 +case.wf.commitments_G_plus_order2.decode=reject +case.wf.answer_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010209c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.wf.answer_ok.decode=accept +case.wf.answer_s_equals_l.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_s_equals_l.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29030401020e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb70000000000000000000000000000000000000000000000000000000000000000 +case.wf.answer_s_equals_l.decode=reject +case.wf.answer_sp_equals_l.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_sp_equals_l.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010200000000000000000000000000000000000000000000000000000000000000000e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7 +case.wf.answer_sp_equals_l.decode=reject +case.wf.answer_s_l_minus_1.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_s_l_minus_1.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29030401020e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb60e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb6 +case.wf.answer_s_l_minus_1.decode=accept +case.wf.answer_subject_equals_sender.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_subject_equals_sender.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010109c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.wf.answer_subject_equals_sender.decode=reject +case.wf.answer_subject_0.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_subject_0.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010009c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.wf.answer_subject_0.decode=reject +case.wf.answer_subject_n_plus_1.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.answer_subject_n_plus_1.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290304010609c6fb0ab7b5b74896d80489038d7f48b8172a65677713ccc2b1dba2355a221201f28bfb2d9ef90309b2cb1c7c2184bca37ada03ec15430fc8e78cc7932fa8a4 +case.wf.answer_subject_n_plus_1.decode=reject +case.wf.complaint_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.complaint_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030201 +case.wf.complaint_ok.decode=accept +case.wf.complaint_with_payload.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.complaint_with_payload.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290203020100 +case.wf.complaint_with_payload.decode=reject +case.wf.complaint_subject_equals_sender.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.complaint_subject_equals_sender.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2902030202 +case.wf.complaint_subject_equals_sender.decode=reject +case.wf.share_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.share_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290102010200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004 +case.wf.share_ok.decode=accept +case.wf.share_subject_equals_sender.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.share_subject_equals_sender.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290102010100000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004 +case.wf.share_subject_equals_sender.decode=reject +case.wf.confirmation_ok.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.confirmation_ok.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29070801000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13d7 +case.wf.confirmation_ok.decode=accept +case.wf.confirmation_short.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.confirmation_short.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c29070801000000000000000000000000000000000000000000000000000000000000000000cb550cd538ea0cc1138480408e6eaab9b36c613f0dd3f7784fdb6eea837b13 +case.wf.confirmation_short.decode=reject +case.wf.confirmation_y_not_in_subgroup.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.confirmation_y_not_in_subgroup.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c2907080100000000000000000000000000000000000000000000000000000000000000000036aaf32ac615f33eebd77dbf7435139a516b40cafa0442baf8a12e3fcf2bda1c +case.wf.confirmation_y_not_in_subgroup.decode=reject +case.wf.reconstruction_round_7.config=2,5,7a65726f6a2e746573742e686f6e657374,1 +case.wf.reconstruction_round_7.msg.1=78806eff88ebd243a0444806c16baf6cb42212685c398830880672d52b8d3c290707010200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001 +case.wf.reconstruction_round_7.decode=reject +info.case_count=134 +info.case_count.abort=15 +info.case_count.rule=81 +info.case_count.finding=7 +info.case_count.wf=31 +info.case_internal_only=abort.A7_2of3_one_lie_ignored,abort.A7_2of3_t_plus_1_digest_differs,abort.A7_2of3_t_plus_1_y_differs,abort.A7_2of3_t_plus_1_mixed_digest_and_y,abort.A7_2of3_same_liar_twice_counts_once,abort.A7_control_all_agree,abort.A7_2of3_own_and_one_other_suffice,abort.A7_2of3_only_own_delivered_too_few_matching,abort.A7_2of3_own_not_delivered_back_too_few_matching,abort.A7_2of3_own_not_delivered_back_but_two_others,abort.A7_3of5_t_lies_ignored,abort.A7_3of5_t_plus_1_differing,abort.A7_3of5_two_silent_members_too_few_matching,abort.A7_3of5_stale_session_confirmations_ignored,abort.A7_3of5_malformed_confirmations_ignored,abort.A7_3of5_unauthenticated_confirmations_ignored,abort.A7_3of5_equivocators_count_as_differing,abort.A7_3of5_equivocator_not_matching,abort.A7_2of4_t_plus_1_differing_with_t_plus_1_matching,abort.A7_2of4_one_equivocator_ignored,finding.N6_round7_closure +info.case_replay_failures= +check.case_vectors_replay_self_consistent=true +scalar.a.1.0=0x09f84fe1a99f86b71e45a8958e6c9296f7d5b05e85778a25ccea5d920a7bd993 +scalar.a.1.1=0x0395d68069d56ac3ad3e77b6bd1d454da05dd263828abe339c6432e8be9a766c +scalar.a.1.2=0x09070739da819a814c52c7623fa0c4c61caf8dbed0d08fb20bb110d6cca3b873 +scalar.a.1.3=0x029eb7afea088112fb6f868e776a22febd5f8f4e8c1bb26c3c547827d1a22bdb +scalar.a.2.0=0x0b71d0509b68ce84279de9da6c6f18dd5341b5cb8c972f2009b59119fd3e2e8f +scalar.a.2.1=0x01cc3a697f3299286e55520ce47ec018563273896da1de16e0f7b040f1cb3465 +scalar.a.2.2=0x0d0e024bb133627567a729c1aaf09baca4236c5edaf935adf52607742cbf97e7 +scalar.a.2.3=0x00eeb8da3dde2d473d0b7d13387c134bac8878dfc9aa7a61228a4e8f35124c83 +scalar.a.3.0=0x01e5f7c2fde285ec76704993976e5c5e869fcae1a047d1a1ca60a82427ac1c89 +scalar.a.3.1=0x073a06f80c93c5b7711195fdc8b5beb162e1891686aa63c36f35b14199aca905 +scalar.a.3.2=0x0aeac86dab6f6de3cc939ceab3d2039b3dd22fb6c2792ddf93dc37b2e510b837 +scalar.a.3.3=0x084d3bd630bdb664451c79d9498f10912a09dba8998e37673d332f10591e10d7 +scalar.a.4.0=0x0dee3d011ae1b501aa932119de074791dda0b23f4bdf4f9004e12a4e70d9652f +scalar.a.4.1=0x0925de982cd3374d9492cdb6dc2cb27e48862576565d858759649872fd045945 +scalar.a.4.2=0x022e533cd5178049f145a74835bcdc165eac5b80b7de682a413262f771bd80cf +scalar.a.4.3=0x06e13e9f77bcf871927852bbb973127e4ddba591c0b7a8b92e40b5537e465044 +scalar.a.5.0=0x06f0a2e7b966b3f159bda91e8e66187c4ebf4790f14b9ea1570323c8af73a95d +scalar.a.5.1=0x08c4a3695953867c9b5cbff535e90e57613a0cb3fa0a653ff76a837cf148e873 +scalar.a.5.2=0x0cbfaeebfa0756a14d282ffe44f84ee9847020d7237645f6873b264d1e71b876 +scalar.a.5.3=0x068dd7bd98494a74b0d2ef919ccc81071a3e399c6d88dc291bcdb3dea0407326 +scalar.a.6.0=0x048f2fa945337b2ec5835e829c842d22337be94cf6682711c0b3d74df3c7db28 +scalar.a.6.1=0x00d55e082fb0a0a45ce28e663b7b35357c5e3a1455f88db15478abc253656e41 +scalar.a.6.2=0x01d2e59d2cabd6eb9ef4952cb73c04324fb960ef58a457c38b960ab9fa056173 +scalar.a.6.3=0x0cb115341d0a215d81920bb0c4b720d4187ed38a396ccf375a05d0179941ed57 +scalar.a.7.0=0x0dacd28bbc3aa8e3be28776c2d85f2e7fdbe8f8a4d331150cd1aa098a8b7b68c +scalar.a.7.1=0x05364deb2556568d37661500ca15a8a975a6995cbbdd1a17eb843e7e128e1198 +scalar.a.7.2=0x09f5cea50a1300abab7b387d39dc60b0503e4c2f64e6e8af3ca569f4ee2a32f0 +scalar.a.7.3=0x0058d2c04ff8eaca9426a8398a8bd2cbc6d01cf4d33d6dc235a089a40c2ab99a +scalar.b.1.0=0x0cdf90c771446b7c6c77935b6c2ad0c0403ac165647a00772331ac39fea6cfa3 +scalar.b.1.1=0x08987e4fbce460d505ff4f608abced4d02c3b872c7a1481d45c88c5e06a29ddd +scalar.b.1.2=0x03d6c754dc8b36b5e91c9280bf866299143c425d17ac38f9a2fa7cbb830a48db +scalar.b.1.3=0x0476e62c6378ab8c1fd6f845a04d871667cca9e6a144c976a1663958bb7d82fa +scalar.b.2.0=0x05f2984ce9c10ac050d43fe8304226a98d9b3f02cdc047c76962ff66e8464ab7 +scalar.b.2.1=0x05716fe55c4271134ca17a26359a670e9702092bca8eb65a4f202b22f877bd33 +scalar.b.2.2=0x0cfc0d11c4a809a14bdb860bc98e63675f705514f3225e686d8db38bfbffd851 +scalar.b.2.3=0x0d87da9107119594fe24a87161f2e8153ace9555cb23df814f760bbd185f4152 +scalar.b.3.0=0x0020e750327633df70e5d31f3e6f9ca559d95ff14297cc6db971379e2d155c30 +scalar.b.3.1=0x00838632332c36db8d82c405e871623f7757ce1c8d00dadb1843e2644150e4a8 +scalar.b.3.2=0x0ba21b2136817e8abad8af4abf925e05a5d6a1bcf1cb5a8c5058aae3447f40ef +scalar.b.3.3=0x025ec0af43ab26cb884fd9b9c5ad35ed07dd20ec864994a6044f15b3307a019e +scalar.b.4.0=0x0a23adb7e571fcc2304f38a51f23a671d93982536e84de49f0e280b14c1a2be8 +scalar.b.4.1=0x0a3975ca1a5eca3893d296ec53924a1d52f5f329e842c33e18c35929ba969882 +scalar.b.4.2=0x09e50e25fd42d4b7ee7f770480ef5089a3921f31c4cd60a52569cb5d6ddd8812 +scalar.b.4.3=0x073d563beff15fa37587c210d8892d4e5725cdda59ad421d7aa71c112024a152 +scalar.b.5.0=0x02cd3b1f66ae1a5de3bea59305d25dfec76797a7cce5e00f6211f97deb60cd3f +scalar.b.5.1=0x08f9e2f28b2ac7d04e53c0955a8c91f4106838a4ba19b9e060e530fd068dea8e +scalar.b.5.2=0x076e918c61547561d59d54174ab638a3e45a57b715f1a561b9633e297f614f7d +scalar.b.5.3=0x01610d9292b7b0ff63e1d7c841483b9216bd5836765ccf40a6f6c159d6df9162 +scalar.b.6.0=0x0593438c9359d7764b11156642c1adf23dddf9e12cfcdf414843011d345520c6 +scalar.b.6.1=0x036fc89c5649960dcae51ba46c1e7b2b4763ffeb95d6b4e78ce00d32d7dce36d +scalar.b.6.2=0x0676c22361ad356afc3e1274465776d8e1e805615b7d742bf97e80fd1c3d393d +scalar.b.6.3=0x054f48544f43905bee434d6bb98ed416b5fb1a3c2814d1d04b6c20e1f4f9a126 +scalar.b.7.0=0x0c334308aeeaec1dfe0e4d409833b111d8e44996e9015744536773e9cde4b9c4 +scalar.b.7.1=0x0b00b2ba4f574fd3c6da3f45dccea839ac87bd2b1280833bfee1ec60dad15237 +scalar.b.7.2=0x07e65920fb1cb0a8a5a1fb99692976102f3e3a8bb9313cc85cf959fccba6c190 +scalar.b.7.3=0x0ad1052818a9b8dd76cc1c6d82d33b251e66d968e51f8f1f4e493a4b98a92c9a +scalar.enc.k=0x075efaf9df2621b087ad3e1eab735ca05b130ddbd08d84f760255da42975923c +check.scalars_nonzero=true +info.failed_checks=0 +result=pass diff --git a/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalBallot.java b/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalBallot.java new file mode 100644 index 00000000..2220db3c --- /dev/null +++ b/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalBallot.java @@ -0,0 +1,37 @@ +package org.zeroj.examples.annotation; + +import org.zeroj.circuit.annotation.Prove; +import org.zeroj.circuit.annotation.Public; +import org.zeroj.circuit.annotation.Secret; +import org.zeroj.circuit.annotation.UInt; +import org.zeroj.circuit.annotation.ZKCircuit; +import org.zeroj.circuit.annotation.ZkContext; +import org.zeroj.circuit.annotation.ZkField; +import org.zeroj.circuit.annotation.ZkUInt; +import org.zeroj.circuit.lib.zk.ZkElGamal; +import org.zeroj.circuit.lib.zk.ZkElGamalPublicKey; + +/** + * ADR-0052 annotation example: a one-bit ballot encrypted under an {@code elgamal-jubjub-v1} + * election key. The public inputs are exactly the spec §8 encryption statement, + * {@code PK.u, PK.v, A.u, A.v, B.u, B.v}, so a verifier can check a proof against + * {@code EncryptionStatement.publicInputs()} verbatim during admission. + */ +@ZKCircuit(name = "annotation-elgamal-ballot") +public class AnnotatedElGamalBallot { + @Prove + void prove( + ZkContext zk, + @Public ZkField keyU, + @Public ZkField keyV, + @Public ZkField handleU, + @Public ZkField handleV, + @Public ZkField blindedU, + @Public ZkField blindedV, + @Secret @UInt(bits = 1) ZkUInt vote, + @Secret @UInt(bits = 252) ZkUInt randomness) { + var key = ZkElGamalPublicKey.fromVerifierFixedPublic(zk, keyU, keyV); + ZkElGamal.encrypt(zk, vote, randomness, key) + .assertAffineEquals(zk, handleU, handleV, blindedU, blindedV); + } +} diff --git a/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalDleq.java b/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalDleq.java new file mode 100644 index 00000000..15ca5ca6 --- /dev/null +++ b/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalDleq.java @@ -0,0 +1,34 @@ +package org.zeroj.examples.annotation; + +import org.zeroj.circuit.annotation.Prove; +import org.zeroj.circuit.annotation.Public; +import org.zeroj.circuit.annotation.Secret; +import org.zeroj.circuit.annotation.UInt; +import org.zeroj.circuit.annotation.ZKCircuit; +import org.zeroj.circuit.annotation.ZkContext; +import org.zeroj.circuit.annotation.ZkField; +import org.zeroj.circuit.annotation.ZkUInt; +import org.zeroj.circuit.lib.zk.ZkElGamal; + +/** + * ADR-0052 annotation example: the discrete-log-equality relation of {@code elgamal-jubjub-v1} + * §9.2, {@code P = [x]·G} and {@code D = [x]·X}. The public inputs are exactly a + * {@code DleqStatement}'s, {@code X.u, X.v, P.u, P.v, D.u, D.v}, so one circuit serves both + * proofs of possession ({@code X = G}, {@code D = P}) and decryption-share proofs + * ({@code X = A}). + */ +@ZKCircuit(name = "annotation-elgamal-dleq") +public class AnnotatedElGamalDleq { + @Prove + void prove( + ZkContext zk, + @Public ZkField baseU, + @Public ZkField baseV, + @Public ZkField keyU, + @Public ZkField keyV, + @Public ZkField shareU, + @Public ZkField shareV, + @Secret @UInt(bits = 252) ZkUInt secret) { + ZkElGamal.assertDiscreteLogEquality(zk, secret, baseU, baseV, keyU, keyV, shareU, shareV); + } +} diff --git a/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalTest.java b/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalTest.java new file mode 100644 index 00000000..cfab1848 --- /dev/null +++ b/zeroj-integration-tests/src/test/java/org/zeroj/examples/annotation/AnnotatedElGamalTest.java @@ -0,0 +1,253 @@ +package org.zeroj.examples.annotation; + +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.zeroj.api.CircuitId; +import org.zeroj.api.CurveId; +import org.zeroj.api.ProofSystemId; +import org.zeroj.api.VerificationMaterial; +import org.zeroj.circuit.CircuitBuilder; +import org.zeroj.circuit.lib.jubjub.DkgConfig; +import org.zeroj.circuit.lib.jubjub.DkgMessage; +import org.zeroj.circuit.lib.jubjub.DkgParticipant; +import org.zeroj.circuit.lib.jubjub.DleqStatement; +import org.zeroj.circuit.lib.jubjub.ElGamal; +import org.zeroj.circuit.lib.jubjub.ElGamalCiphertext; +import org.zeroj.circuit.lib.jubjub.ElGamalEncryption; +import org.zeroj.circuit.lib.jubjub.ElGamalPublicKey; +import org.zeroj.circuit.lib.jubjub.ElGamalSecretKey; +import org.zeroj.circuit.lib.jubjub.EncryptionStatement; +import org.zeroj.circuit.lib.jubjub.JubjubPoint; +import org.zeroj.circuit.lib.jubjub.NOfNKeyContext; +import org.zeroj.circuit.lib.jubjub.RawElGamalCiphertext; +import org.zeroj.circuit.lib.jubjub.ThresholdKeyContext; +import org.zeroj.circuit.lib.jubjub.ThresholdKeyShare; +import org.zeroj.circuit.lib.jubjub.VerifiedDecryptionShare; +import org.zeroj.circuit.lib.jubjub.VerifiedKeyShare; +import org.zeroj.codec.SnarkjsJsonCodec; +import org.zeroj.crypto.groth16.Groth16Keys; +import org.zeroj.crypto.snarkjs.SnarkjsGroth16Json; +import org.zeroj.verifier.groth16.bls12381.Groth16BLS12381PureJavaVerifier; + +import java.math.BigInteger; +import java.nio.charset.StandardCharsets; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * ADR-0052 M2 end to end with Groth16 on BLS12-381: the {@code elgamal-jubjub-v1} relations + * through the annotation path, driving the host API's verified admission, possession checks and + * share verification. + * + *

The verifiers below check a real Groth16 proof against the statement the library hands + * them, verbatim. That is the adapter shape the delegated-verifier obligation describes. + * Changing any single public input makes verification fail, so every public input is bound + * (ADR-0045; setup additionally refuses unconstrained public wires). + */ +class AnnotatedElGamalTest { + + private static final SecureRandom RANDOM = new SecureRandom(); + private static Keys ballotKeys; + private static Keys dleqKeys; + + private record Keys(CircuitBuilder circuit, Groth16Keys keys, String vkJson, String name) {} + + @BeforeAll + static void setup() { + ballotKeys = keys(AnnotatedElGamalBallotCircuit.build(), "annotation-elgamal-ballot", 0xe1L); + dleqKeys = keys(AnnotatedElGamalDleqCircuit.build(), "annotation-elgamal-dleq", 0xd1L); + } + + private static Keys keys(CircuitBuilder circuit, String name, long seed) { + var r1cs = circuit.compileR1CS(CurveId.BLS12_381); + var keys = Groth16Keys.setupInMemory(r1cs.constraints(), r1cs.numWires(), r1cs.numPublicInputs(), + BigInteger.valueOf(seed)); + return new Keys(circuit, keys, SnarkjsGroth16Json.verificationKeyJson(keys), name); + } + + private static String prove(Keys k, Map> witnessMap) { + var r1cs = k.circuit().compileR1CS(CurveId.BLS12_381); + BigInteger[] witness = k.circuit().calculateWitness(witnessMap, CurveId.BLS12_381); + return SnarkjsGroth16Json.proofJson(k.keys().prove(witness, r1cs.constraints())); + } + + private static boolean verify(Keys k, String proofJson, List publicInputs) { + var circuitId = new CircuitId(k.name()); + String publicJson = SnarkjsGroth16Json.publicJson(publicInputs.toArray(new BigInteger[0])); + var envelope = SnarkjsJsonCodec.toEnvelopeFromJson(proofJson, k.vkJson(), publicJson, circuitId); + var material = VerificationMaterial.of(k.vkJson().getBytes(StandardCharsets.UTF_8), + ProofSystemId.GROTH16, CurveId.BLS12_381, circuitId); + return new Groth16BLS12381PureJavaVerifier().verify(envelope, material).proofValid(); + } + + private static Map> ballotWitness(EncryptionStatement s, ElGamalEncryption e) { + List pub = s.publicInputs(); + String[] names = {"keyU", "keyV", "handleU", "handleV", "blindedU", "blindedV"}; + Map> w = new HashMap<>(); + for (int i = 0; i < 6; i++) w.put(names[i], List.of(pub.get(i))); + w.put("vote", List.of(e.message())); + w.put("randomness", List.of(e.randomness())); + return w; + } + + private static Map> dleqWitness(DleqStatement s, BigInteger secret) { + List pub = s.publicInputs(); + String[] names = {"baseU", "baseV", "keyU", "keyV", "shareU", "shareV"}; + Map> w = new HashMap<>(); + for (int i = 0; i < 6; i++) w.put(names[i], List.of(pub.get(i))); + w.put("secret", List.of(secret)); + return w; + } + + @Test + @DisplayName("Full flow: possession proofs → joint key → proved ballots admitted → proved shares → tally") + void endToEnd() { + // Three trustees, each proving possession of its key share. + List trustees = List.of( + ElGamalSecretKey.generate(RANDOM), ElGamalSecretKey.generate(RANDOM), ElGamalSecretKey.generate(RANDOM)); + Map possessionProofs = new HashMap<>(); + for (ElGamalSecretKey t : trustees) { + DleqStatement pop = t.possessionStatement(); + possessionProofs.put(pop.publicInputs().toString(), prove(dleqKeys, dleqWitness(pop, t.secretScalar()))); + } + List shares = new ArrayList<>(); + for (ElGamalSecretKey t : trustees) { + shares.add(VerifiedKeyShare.verify(t.publicKey().encode(), s -> + s.kind() == DleqStatement.Kind.POSSESSION + && verify(dleqKeys, possessionProofs.get(s.publicInputs().toString()), s.publicInputs()))); + } + NOfNKeyContext election = ElGamalPublicKey.aggregate(shares); + + // Voters encrypt and prove; the tallier admits each ballot by verifying its proof. + int[] votes = {1, 0, 1, 1}; + List admitted = new ArrayList<>(); + for (int vote : votes) { + ElGamalEncryption ballot = ElGamal.encryptWithOpening(election, BigInteger.valueOf(vote), 1, RANDOM); + String proof = prove(ballotKeys, ballotWitness(ballot.statement(), ballot)); + RawElGamalCiphertext received = RawElGamalCiphertext.decode(ballot.ciphertext().encode()); + admitted.add(ElGamal.admit(received, election, 1, + s -> s.width() == 1 && verify(ballotKeys, proof, s.publicInputs()))); + } + ElGamalCiphertext total = ElGamalCiphertext.sum(admitted); + + // Each trustee publishes a share and proves it; the tallier verifies every share. + List verified = new ArrayList<>(); + for (ElGamalSecretKey t : trustees) { + VerifiedDecryptionShare own = ElGamal.decryptionShare(t, total); + String proof = prove(dleqKeys, dleqWitness(own.statement(), t.secretScalar())); + verified.add(VerifiedDecryptionShare.verify(total, t.publicKey(), own.encode(), s -> + s.kind() == DleqStatement.Kind.DECRYPTION_SHARE && verify(dleqKeys, proof, s.publicInputs()))); + } + assertEquals(3, ElGamal.decrypt(total, verified, total.bound().longValueExact())); + } + + @Test + @DisplayName("Ballot proof: every one of the six public inputs is bound; another key's statement fails") + void ballotPublicInputsBound() { + ElGamalSecretKey sk = ElGamalSecretKey.generate(RANDOM); + NOfNKeyContext ctx = NOfNKeyContext.singleKey(sk); + ElGamalEncryption ballot = ElGamal.encryptWithOpening(ctx, BigInteger.ONE, 1, RANDOM); + List pub = ballot.statement().publicInputs(); + String proof = prove(ballotKeys, ballotWitness(ballot.statement(), ballot)); + assertTrue(verify(ballotKeys, proof, pub)); + for (int i = 0; i < pub.size(); i++) { + List changed = new ArrayList<>(pub); + changed.set(i, pub.get(i).add(BigInteger.ONE)); + assertFalse(verify(ballotKeys, proof, changed), "public input " + i); + } + // Admission under a different context presents a different statement: rejected. + NOfNKeyContext other = NOfNKeyContext.singleKey(ElGamalSecretKey.generate(RANDOM)); + assertThrows(IllegalArgumentException.class, () -> ElGamal.admit(ballot.ciphertext().raw(), other, 1, + s -> verify(ballotKeys, proof, s.publicInputs()))); + } + + @Test + @DisplayName("DLEQ proof: every public input bound; P = D = O with x = 0 proves and verifies (threshold zero share)") + void dleqPublicInputsAndIdentity() { + ElGamalSecretKey sk = ElGamalSecretKey.generate(RANDOM); + DleqStatement pop = sk.possessionStatement(); + String proof = prove(dleqKeys, dleqWitness(pop, sk.secretScalar())); + List pub = pop.publicInputs(); + assertTrue(verify(dleqKeys, proof, pub)); + for (int i = 0; i < pub.size(); i++) { + List changed = new ArrayList<>(pub); + changed.set(i, pub.get(i).add(BigInteger.ONE)); + assertFalse(verify(dleqKeys, proof, changed), "public input " + i); + } + JubjubPoint base = JubjubPoint.SUBGROUP_GENERATOR.scalarMul(BigInteger.valueOf(12345)).normalized(); + JubjubPoint identity = JubjubPoint.IDENTITY; + Map> w = new HashMap<>(); + w.put("baseU", List.of(base.u())); + w.put("baseV", List.of(base.v())); + w.put("keyU", List.of(identity.u())); + w.put("keyV", List.of(identity.v())); + w.put("shareU", List.of(identity.u())); + w.put("shareV", List.of(identity.v())); + w.put("secret", List.of(BigInteger.ZERO)); + String zeroProof = prove(dleqKeys, w); + assertTrue(verify(dleqKeys, zeroProof, + List.of(base.u(), base.v(), BigInteger.ZERO, BigInteger.ONE, BigInteger.ZERO, BigInteger.ONE))); + } + + @Test + @DisplayName("Threshold E2E (ADR-0053): 2-of-3 DKG → proved ballots admitted → two proved shares decrypt") + void thresholdEndToEnd() { + List roster = new ArrayList<>(); + for (int j = 1; j <= 3; j++) { + byte[] key = new byte[32]; + Arrays.fill(key, (byte) j); + roster.add(key); + } + DkgConfig config = DkgConfig.create(1, 3, roster, "e2e".getBytes(StandardCharsets.UTF_8), 1); + List participants = new ArrayList<>(); + for (int j = 1; j <= 3; j++) participants.add(DkgParticipant.create(config, j, RANDOM)); + List outgoing = new ArrayList<>(); + for (DkgParticipant p : participants) outgoing.addAll(p.start()); + for (int round = 1; round <= 7; round++) { + for (DkgMessage m : outgoing) { + for (DkgParticipant p : participants) { + if (m.kind() == DkgMessage.Kind.SHARE) { + if (m.subject() == p.id()) p.receivePrivate(m.sender(), m.encode()); + } else { + p.receiveBroadcast(m.sender(), m.encode()); + } + } + } + outgoing = new ArrayList<>(); + for (DkgParticipant p : participants) outgoing.addAll(p.closeRound()); + } + List keys = new ArrayList<>(); + for (DkgParticipant p : participants) keys.add(p.result()); + ThresholdKeyContext context = keys.get(0).context(); + assertNotNull(context); + + int[] votes = {1, 1, 0}; + List admitted = new ArrayList<>(); + for (int vote : votes) { + ElGamalEncryption ballot = ElGamal.encryptWithOpening(context, BigInteger.valueOf(vote), 1, RANDOM); + String proof = prove(ballotKeys, ballotWitness(ballot.statement(), ballot)); + admitted.add(ElGamal.admit(RawElGamalCiphertext.decode(ballot.ciphertext().encode()), context, 1, + s -> s.width() == 1 && verify(ballotKeys, proof, s.publicInputs()))); + } + ElGamalCiphertext total = ElGamalCiphertext.sum(admitted); + List verified = new ArrayList<>(); + for (ThresholdKeyShare k : List.of(keys.get(0), keys.get(2))) { + VerifiedDecryptionShare own = ElGamal.decryptionShare(k, total); + String proof = prove(dleqKeys, dleqWitness(own.statement(), k.secretScalar())); + verified.add(VerifiedDecryptionShare.verify(total, k.id(), own.encode(), + s -> verify(dleqKeys, proof, s.publicInputs()))); + } + assertEquals(2, ElGamal.decrypt(total, verified, total.bound().longValueExact())); + } +}