SELÛNE v0.3.1 · SILVERFIRE CRUCIBLE

The first public production Jasmin ECDSA verifies secp256k1 in 16.13 µs and P-256 in 29.09 µs — faster than libsecp256k1 v0.8.0 and OpenSSL 3.6.5 on both x86-64 and ARM64.

One dual-curve engine across x86-64 (1.09× k1, 1.31× P-256) and ARM64 (1.03× k1, 1.13× P-256) on a 192 KiB verify table against 1 MiB, decompressing 33-byte SEC 1 keys on every call. Guarded mlocked signing (768 B workspace, 0 stack alloca, 22 KiB vs 86 KiB comb) runs within 0.59 µs of libsecp256k1 on x86-64 (12.99 vs 12.40 µs), backed by 11 assurance stages and a 231,718 B zero-GC Wasm signer signing in 0.28–0.44 ms on a real iPhone 16 Pro Max.

Category Studio · Cardano Lab · BrowserStack 6/6

Dual-host single-core ECDSA ratio against libsecp256k1 v0.8.0 and OpenSSL 3.6.5 Ratio equals reference microseconds divided by Silverfire microseconds on a 0.60x to 1.40x axis anchored at 1.00x. x86-64 bars and ARM64 hollow diamonds sit right of 1.00x on both verify rows (1.09x and 1.03x for secp256k1, 1.31x and 1.13x for P-256) and left of 1.00x on both guarded sign rows (0.95x and 0.74x for secp256k1, 0.94x and 0.68x for P-256). Ratio = ref ÷ Silverfire ■ x86-64 ◇ ARM64 1.00× ref secp256k1 verify 192 KiB vs 1 MiB 1.09 / 1.03× 16.13 µs P-256 verify OpenSSL 3.6.5 1.31 / 1.13× 29.09 µs secp256k1 sign* 22 KiB vs 86 KiB 0.95 / 0.74× 12.99 µs P-256 sign OpenSSL 3.6.5 0.94 / 0.68× 15.73 µs 0.60× 0.80× 1.00× 1.20× 1.40×
Right of 1.00×: Silverfire faster. Left of 1.00×: reference faster, drawn in equal ink weight. Click any row to open its receipt proof below.
  • 16.13 µs secp256k1 verify, x86-64
  • 11 stages spec to disassembly (ceiling L2)
  • 231,718 B zero-GC linear-memory Wasm signer
  • 516,649/s exact ECDSA CIP-49, 24 workers

1. First production secp256k1 and P-256 ECDSA on Jasmin v2026.09.0

Upstream Formosa repos (formosa-25519, formosa-libjade, libjbn) cover Curve25519, ML-KEM/ML-DSA and generic prime-field templates, with no published upstream secp256k1 or NIST P-256 ECDSA library. Silverfire compiles 4×64 ADX/BMI2 (MULX/ADCX/ADOX) ECDSA kernels on Linux x86-64 with -stack-zero loopSCT, passing 30/30 jasmin-ct --doit --sct checks and 26/26 field plus P-256 RCB jasmin-checksafety slices.

Linux ARMv8-A pairs single-TU C11 __uint128_t and runtime PSTATE.DIT readback with stock ARMv8-A Jasmin leaves. On ARM64, Clang 23 lowered branchless neg_mask into a secret-dependent branch; a value barrier and fail-closed disassembly gate close it (0 leaks across 114/114 CT symbols per host, 4/4 dual-host dudect receipts max |t| = 4.284).

Receipts: JASMIN-MANIFEST.json · ecdsa-native-ct-huginn-saturated-receipt.json · ecdsa-native-ct-saturated-receipt.json

2. Eleven-stage formal assurance from EARS specs to binaries

Every production source sits inside one machine-checked pipeline: EARS and OpenSpec specs bind 7/7 MARS 1.0 ledgers (606/606 verified code_pin and receipt pins, 0 stale) → adversarial Quint kills 32/32 single-fault mutants and refutes WAL and split-FFI attacks in 1–4 steps → Lean 4.35.0 checks 253 zero-sorry theorems (215 core + 38 Jasmin) → dual-prelude moon prove discharges 48/48 crypto goals.

Below the algebra, Jasmin DOIT/SCT and CBMC+Bitwuzla verify 14,289/14,289 C11 and ARM64 properties (2,536 TCB + 11,753 ARM64, 0 unwind fails), Tribble runs 2,797,493 fuzz executions (0 crashes, 3/3 negative controls caught), 4/4 dudect receipts verify timing, objdump finds 0 leaks, and permanent Warden negative-invariant gates (WD-API-001, WD-ERR-001, WD-ARENA-001, WD-CAG-006, 36/36 CAG) block regressions on every commit.

Receipts: formal-bridge-impl-receipt.json · crypto-hard-gate-checklist.json

3. Hardened 231,718 B zero-GC linear-memory Wasm signer

Managed GC heaps cannot wipe freed buffers on demand, so libs/crypto_ecdsa fails closed on wasm-gc, wasm and js. Browser signing runs in a dedicated fixed 4 MiB linear-memory .wasm module (231,718 B, SHA-256 f487f959, worker bundle 9555b74d): constant-time 384-bit 6×64 comb with 128-bit scalar blinding, complete RCB Alg 8/9, SafeGCD30, 0 divisions, 0 memory.grow ops, and a COOP/COEP (Y/Y) standby worker with byte-bound WeakMap provenance and realm-captured crypto.subtle.

After every sign, an unrolled BigUint64Array scan verifies all 4 MiB read back zero (OR = 0, tail 0x40). Across 6 BrowserStack targets (90/90 locally oracle-verified), kernel signing runs 0.20–0.26 ms on macOS Safari, 0.28–0.44 ms on a real iPhone 16 Pro Max, and 0.39–0.52 ms on a real Galaxy S24. CIP-49 spans 0.24–0.80 ms kernel, 9.5–21.9 ms warm E2E, and 16.6–48.9 ms cold E2E; browser P-256 uses WebCrypto with Wasm framing.

Receipt: browserstack-wasm-signing-benchmarks.json

4. Process-isolated multicore pools and sealed durable custody

Verify-only selune_mcw workers spawn via posix_spawn and exec with 0 secret symbols in nm -a on both hosts and 11/11 bit-identical cross-architecture digests (table_digest aa6136bd). On 24 x86-64 workers (4,096 items, 64-item chunks), exact secp256k1 CIP-49 reaches 516,649/s (8.15× vs 63,367/s serial; 518,153/s on 16 ARM64 workers). Exact grouped BIP-340 Schnorr (7U) reaches 553,812/s (401,332/s distinct), while opt-in probabilistic 128-bit batch BIP-340 (8U) reaches 1,671,495/s (721,126/s distinct).

Native signing seals keys, SF-01 RFC 6979 nonces and SHA-256 schedules inside a 768 B mlocked C11 arena (PROT_NONE guard pages, MADV_DONTFORK, MADV_DONTDUMP, 0 stack alloca). Durable custody adds O(1) binary wal.v3, immediate external rollback anchoring, and mandatory CRYPTO-Q4 stored-Q self-verification.

Receipts: silverfire-mt-huginn-scaling.json · silverfire-mt-muninn-scaling.json

Three-dimensional equalizer surfaces z = y² and z = x³ + 7 intersecting along the elliptic curve y² = x³ + 7 in Astral Midnight

See the elliptic curve in motion

Watch how two prime fields, y² = x³ + 7, nine 29-bit limbs, Jacobian slices, GLV splitting, and a four-stream Straus ladder drive portable pure-MoonBit verification (55.50 µs in wasm-gc) and anchor the 16.13 µs native Jasmin engine.

Wonder Loop (Ambient)

Why algebra makes the right skeleton for cryptographic software

Cryptographic libraries rarely fail because a programmer mistyped one curve formula. They fail at the seams. A nonce gets reused across two messages, or a base-field coordinate gets reduced modulo the scalar order in the wrong place. A malleable high-S signature slips past a consensus rule, an unvalidated point enters projective arithmetic, or a signing routine releases output before its custody journal commits. Testing catches individual instances of these failures. Algebra eliminates whole classes of them before any arithmetic runs.

An algebraic structure is a carrier set with operations and the equations those operations obey: a prime field 𝔽p, an elliptic-curve group E(𝔽p), a quotient by a two-element group, a substructural monoidal category of single-use resources. MoonBit has algebraic data types: struct products, enum coproducts and opaque wrapper types. With them, those structures stop being comments in a specification and become the load-bearing skeleton of the code.

Every optimization plugs into that fixed frame, from 9×29-bit portable limb arithmetic, SafeGCD30 and Solinas folding to verified 4×64 native kernels, Montgomery reduction, GLV endomorphism splits and 24-worker dispatch. Speed changes the representation inside a module. The algebraic interfaces and the commuting laws between modules stay the same. The five bones below each have a live diagram, compiled from MoonBit and drawn in your browser, and each one has an executable test in libs/crypto_ecdsa/algebraic_skeleton_test.mbt that runs against the production secp256k1 and P-256 code on native, wasm, wasm-gc and js.

The skeleton, drawn live

Loading the compiled MoonBit diagram engine.

Bone 1

Distinct prime fields as separate opaque types

ECDSA works over two prime fields at once. Point coordinates live in the base field 𝔽p. Private keys, nonces and the signature components (r, s) live in the scalar field 𝔽n. Because p ≠ n, lifting a residue modulo p and reducing it modulo n is a map of sets and never a group homomorphism. On the small curve E(𝔽79) of order 67, adding 78 and 1 in 𝔽79 gives 0, which maps to 0; mapping first gives 11 + 1 = 12.

Raw 32-byte arrays invite exactly this confusion. Silverfire gives each field its own opaque type (FpSecp256k1, FnSecp256k1, FpP256, FnP256), so the one non-additive crossing appears at a single explicit boundary and the compiler rejects every accidental mix of coordinates and scalars.

Bone 2

Curve points as an equalizer, projective arithmetic as a commuting square

Valid finite affine points form an equalizer: Eaff(𝔽p) is the subset of 𝔽p × 𝔽p on which the two maps (x, y) ↦ y² and (x, y) ↦ x³ + ax + b agree, and adding the point at infinity gives the group E(𝔽p). The opaque AffinePointSecp256k1 and AffinePointP256 constructors check the curve equation once at the boundary, and both curves have cofactor one under their pinned parameters, so every finite point on the curve lies in the prime-order group.

Fast signing cannot afford an inversion at every addition, so execution moves to projective coordinates. The contract between the fast engine and the textbook group is one commuting square: projecting after an RCB addition equals adding after projecting, π ∘ RCB_add = (+) ∘ (π × π). Over any field of characteristic not 2 with no two-torsion, Lean 4.35.0 proves unconditional RCB completeness for a = 0 and a = −3 with (0, 0, 0) excluded and instantiates the real secp256k1 and P-256 primes and curves in spec/ecdsa_algebra_proofs.lean. Separately, the kernel-checked natural-number lemma secp256k1_fe9_mul_no_u64_overflow bounds one nine-term schoolbook accumulator below 264 for limbs below 230.

Bone 3

Products and coproducts for fail-closed verification

A product A × B carries two projections and a unique mediating map. A coproduct A + B carries two injections and forces every consumer to handle every case. In MoonBit a struct is a product and an enum is a coproduct.

A signature is a product of two nonzero scalars. Core verification returns a typed coproduct (EcdsaVerifyOutcome with the five reasons of EcdsaRejectReason) separating acceptance from exact rejection causes, and ProfileVerifyResult keeps its outcome private so no caller can forge a valid result with an error code. A MoonBit match enforces exhaustive handling on all four targets, while the five foreign bindings receive stable result codes.

Bone 4

Signature malleability as a split quotient

If (r, s) satisfies the verification equation, so does (r, n − s). The two-element group C2 acts freely on valid signatures by swapping s and n − s. Malleability bugs appear when one subsystem treats the raw pair as unique and another accepts its twin.

Algebra names the fix. Form the quotient Q = X / C2 with projection q, and choose the section j that picks min(s, n − s). The laws q ∘ j = id and j ∘ q = normalize_low_s turn low-S canonicalization from a bit trick into an invariant shared by Wycheproof, BIP-62 and Cardano CIP-49.

Bone 5

Custody and side effects as a substructural monoidal category

Algebra also governs resources and the order of effects. Reusing one nonce k across digests z1 and z2 gives away the private key at once: d ≡ (s2z1 − s1z2) · (r(s1 − s2))−1 (mod n).

The signing pipeline lives in a substructural monoidal category. Private keys and nonces travel on linear wires that have no copy map, and public transcripts stay freely copyable. Ordered effect rails serialize nonce reservation, native signing, self-verification against the stored public key, the custody journal write and release. A diagram that copies k or drops a curve tag fails the categorical validator before anything runs.

The evidence wall

What the algebraic skeleton does not prove

Commuting squares, equalizers, quotient sections and linear wires guarantee structural and mathematical soundness. They do not prove the hardness assumptions (ECDLP, SHA-256 collision resistance, HMAC-SHA256 as a PRF), silence timing channels in the processor or guard process memory across fork().

Silverfire pairs the skeleton with a layered verification stack. Lean 4 and moon prove discharge exact bitvector and modular identities. Jasmin v2026.09.0 CT and safety verification, CBMC 6.11.0 + Bitwuzla 0.11.0 over unmodified C11 sources, LLVM-IR relational proofs checked by Z3 and cvc5, the 3-lane check_ct_asm.sh gate, and live objdump disassembly on two architectures rule out secret-dependent branches and division instructions. Tribble runs continuous multi-runtime differential fuzzing, dual-host dudect measures real timing on hardware idle and under load, guard pages and MADV_DONTFORK protect native secrets, and verify-only workers carry no secret state. Algebra gives the cryptography its bones; proofs about the implementation and physical isolation give it its armor.

Benchmark workbench: dual-host single-core & custody anatomy

These receipts test fixed, warmed single-core ECDSA workloads on two hosts: a 24-core Intel Core Ultra 9 290HX Plus and a 20-core ARM64 host. Both hosts ran Clang 23.1.3, MoonBit v1.0.0-rc1+3c0520448, libsecp256k1 v0.8.0 and OpenSSL 3.6.5, agreeing on the 9-engine self-check checksum 1305428567. Bold marks the lower median in every pair, including all guarded-sign rows where references finish first.

Host:
Scale:
Custody:
Single-core ECDSA benchmark workbench (x86-64 and ARM64, ratio vs reference, guarded kernel sign) Four-row ratio plot anchored at 1.00x comparing Silverfire against libsecp256k1 v0.8.0 and OpenSSL 3.6.5 on x86-64 and ARM64. Ratio = ref µs ÷ Silverfire µs (> 1.00× faster) ■ x86-64 ◇ ARM64 1.00× ref secp256k1 verify 192 KiB vs 1 MiB 1.09× x86 · 1.03× ARM 16.13 / 17.65 µs P-256 verify OpenSSL 3.6.5 EVP 1.31× x86 · 1.13× ARM 29.09 / 37.98 µs secp256k1 sign* 22 KiB vs 86 KiB comb 0.95× x86 · 0.74× ARM 12.99 / 12.40 µs P-256 sign OpenSSL 3.6.5 EVP 0.94× x86 · 0.68× ARM 15.73 / 14.81 µs 0.60× 0.80× 1.00× 1.20× 1.40×

Receipt proof: secp256k1 verify (libsecp256k1 v0.8.0)

JSON keys: engines.silverfire_native.ops.secp256k1_verify vs engines.libsecp256k1.ops.secp256k1_verify

Receipts (SHA-256 prefix): x86-64 c1b61acf · ARM64 6d5dc6ce · Harness: c_bench.c:773 (secp_verify_bench)

192 KiB Silverfire verify table vs 1 MiB libsecp256k1 v0.8.0 (window 15); Silverfire also decompresses 33-byte SEC 1 keys per call.

Single-core medians (µs/op, lower is better). Ratio = reference µs ÷ Silverfire µs; above 1.00×, Silverfire is faster. Bold marks the lower median in every pair.
Workload x86-64 Jasmin / ref (µs) x86-64 Ratio ARM64 hybrid / ref (µs) ARM64 Ratio Reference
secp256k1 verify 16.13 / 17.65 1.09× 18.09 / 18.60 1.03× libsecp256k1 v0.8.0
P-256 verify 29.09 / 37.98 1.31× 33.84 / 38.10 1.13× OpenSSL 3.6.5
secp256k1 guarded sign* 12.99 / 12.40 0.95× 19.24 / 14.19 0.74× libsecp256k1 v0.8.0
P-256 guarded sign 15.73 / 14.81 0.94× 21.54 / 14.72 0.68× OpenSSL 3.6.5
  1. Run. Medians of 25 warmed sequential batch means, one fixed key and digest per row. 24-core Intel Core Ultra 9 290HX Plus and a 20-core ARM64 host. Clang 23.1.3, libsecp256k1 v0.8.0 at its defaults (window 15, 1 MiB verify table, 86 KiB signing table), OpenSSL 3.6.5 through EVP. Batch-mean dispersion does not measure per-request tail latency.
  2. Verify. All three check strict DER on every call. Silverfire also decompresses a 33-byte SEC 1 key on every call on a 192 KiB verify table. libsecp256k1 reuses one parsed key and a prepared context. OpenSSL imports the key before timing.
  3. Sign. 32-byte digest in, RFC 6979 nonces. libsecp256k1 runs with a randomized context. Silverfire’s native 22 KiB comb runs in a 768 B mlocked arena (0 stack alloca) without scalar blinding (128-bit scalar blinding is scoped to the 384-bit linear-memory Wasm comb). Guarded sign trails references on both hosts. Durable custody is measured separately below: 71.99 and 89.40 µs on x86-64, 103.81 and 121.30 µs on ARM64.
  4. Limits. On the full Wycheproof v1 suites (464/464 Bitcoin, 484/484 P-256 strict agreement), libsecp256k1 (3.18 / 3.22 ms vs 4.66 / 5.08 ms) and OpenSSL (7.64 / 7.69 ms vs 9.47 / 10.99 ms) finish first on both hosts (valid-only subsets: Silverfire 2.69 / 2.90 ms vs 2.87 / 2.92 ms k1, 5.30 / 5.83 ms vs 6.61 / 6.63 ms P-256). AWS-LC, BoringSSL, AVX-512 IFMA multi-buffer and GPU batch engines are outside this harness.

Custody cost anatomy: guarded kernel vs durable custody

Stacked custody signing latency breakdown on x86-64 and ARM64 Four stacked horizontal bars showing guarded kernel latency plus stored-Q self-verify, wal.v3 append, and rollback anchor sync delta: secp256k1 x86-64 12.99 plus 59.00 equals 71.99 microseconds; P-256 x86-64 15.73 plus 73.67 equals 89.40 microseconds; secp256k1 ARM64 19.24 plus 84.57 equals 103.81 microseconds; P-256 ARM64 21.54 plus 99.76 equals 121.30 microseconds. Median µs/op ■ Guarded kernel ■ stored-Q self-verify + wal.v3 + anchor sync secp256k1 · x86-64 12.99 + 59.00 = 71.99 µs P-256 · x86-64 15.73 + 73.67 = 89.40 µs secp256k1 · ARM64 19.24 + 84.57 = 103.81 µs P-256 · ARM64 21.54 + 99.76 = 121.30 µs 0 25 50 75 100 125 µs
No reference bar. The receipts hold no stock-library custody timing. Second segment adds CRYPTO-Q4 stored-Q post-sign self-verification, O(1) authenticated binary wal.v3 append, and immediate durable external rollback anchor sync.
Full dual-host telemetry: nine engines, Wycheproof v1 parity, JSON receipts
Median latency per operation across all nine engines (Final RC, HEAD=c4ebcfd)
OperationHostnativewasm-gcwasmjslibsecp256k1 0.8.0OpenSSL 3.6.5libgcrypt 1.12.4Nettle 4.0node:crypto
secp256k1 verifyx86-6416.13 µs55.50 µs62.79 µs2,640.35 µs17.65 µs157.95 µs366.36 µs—159.58 µs
secp256k1 verifyARM6418.09 µs63.06 µs77.43 µs1,903.72 µs18.60 µs158.53 µs461.48 µs—156.28 µs
secp256k1 guarded sign*x86-6412.99 µs———12.40 µs164.71 µs225.57 µs—172.25 µs
secp256k1 guarded sign*ARM6419.24 µs———14.19 µs172.43 µs283.26 µs—191.99 µs
secp256k1 durable custodyx86-6471.99 µs————————
secp256k1 durable custodyARM64103.81 µs————————
P-256 verifyx86-6429.09 µs109.27 µs115.50 µs6,069.00 µs—37.98 µs318.28 µs90.64 µs39.21 µs
P-256 verifyARM6433.84 µs130.17 µs144.01 µs4,481.12 µs—38.10 µs387.14 µs126.56 µs39.93 µs
P-256 guarded signx86-6415.73 µs————14.81 µs196.86 µs26.27 µs15.10 µs
P-256 guarded signARM6421.54 µs————14.72 µs243.13 µs31.11 µs14.80 µs
P-256 durable custodyx86-6489.40 µs————————
P-256 durable custodyARM64121.30 µs————————
BIP-340 Schnorr verifyx86-64 / ARM6416.58 / 18.71 µs————————
SHA-256, 32 Bx86-64 / ARM640.04 / 0.05 µs0.12 / 0.14 µs0.13 / 0.16 µs0.15 / 0.16 µs—0.04 / 0.05 µs0.04 / 0.04 µs0.03 / 0.04 µs0.42 / 0.59 µs
SHA-256, 1 KiBx86-64 / ARM640.24 / 0.54 µs2.11 / 2.39 µs2.15 / 2.36 µs2.58 / 2.72 µs—0.24 / 0.45 µs0.23 / 0.43 µs0.22 / 0.42 µs0.62 / 0.98 µs
HMAC-SHA256, 32 Bx86-64 / ARM640.11 / 0.16 µs0.48 / 0.55 µs0.52 / 0.59 µs0.59 / 0.64 µs—0.23 / 0.30 µs0.08 / 0.08 µs0.11 / 0.13 µs0.97 / 1.33 µs
Wycheproof v1 strict parity suites (median ms, lower is better)
CorpusSilverfire (x86-64 / ARM64)libsecp256k1 0.8.0OpenSSL 3.6.5Strict agreement
secp256k1 valid (162)2.69 / 2.90 ms2.87 / 2.92 ms24.94 / 25.01 ms162/162 strict
secp256k1 full Bitcoin (464)4.66 / 5.08 ms3.18 / 3.22 ms27.97 / 28.16 ms464/464 (OpenSSL 462/464)
P-256 valid (174)5.30 / 5.83 ms—6.61 / 6.63 ms174/174 strict
P-256 full (484)9.47 / 10.99 ms—7.64 / 7.69 ms484/484 on all 4 targets

Signing in libs/crypto_ecdsa on wasm-gc, wasm and js fails closed with ForbiddenCapability via target_ecdsa_capability, so those cells are empty. Cross-engine self-check checksum: 1305428567. Table footprints: 192 KiB verify table vs 1 MiB (libsecp256k1 window 15); 22 KiB signing comb vs 86 KiB.

Jasmin v2026.09.0 dual-architecture scope & L2 boundaries

Silverfire separates each target’s implementation and evidence tier explicitly in openspec/changes/selune-jasmin-silverfire/ (35 EARS requirements JASMIN-SF-001–035, 38 Lean 4 theorems in spec/JasminSilverfireProofAudit.lean) and docs/jasmin-crypto/ (6 primary-source dossiers, 109-node typed ontology). Eight of nine generated .s files cross-compile bit-identically across hosts, while p256_point_pub.s carries a documented host-pinned exception under JasminSf002; libs/crypto_jasmin/gen/JASMIN-MANIFEST.json verifies 44/44 SHA-256 digests (9 .s artifacts + 31 C11 sources + 4 precomputed tables), and nm-check / check-elf confirm 0 secret symbols in verify-only objects and non-executable GNU_STACK RW.

Linux x86-64 (Jasmin L2)

Stock Jasmin v2026.09.0 ADX/BMI2 (MULX/ADCX/ADOX) 4×64 field and point kernels compiled with -stack-zero loopSCT, verified by jasmin-ct --arch=x86-64 --doit --sct (30/30) and jasmin-checksafety across 4 field files (26 slices) plus P-256 RCB sub-slices (full composite point files exceed single-pass checker limits). Capped at L2 until a kernel-checked functional proof binds the exact code_pin.

Linux ARMv8-A (Two L2 bases)

Single-TU C11 __uint128_t 4×64 (MUL/UMULH, -mgeneral-regs-only, runtime PSTATE.DIT guard with readback enforcement, 11,753 CBMC + Bitwuzla properties, verify_arm64_ct_asm.sh disassembly gate, 3-lane check_ct_asm.sh, objdump, dudect; JasminSf018 remains open pending binary-level BINSEC/Rel) paired with stock ARMv8-A Jasmin v2026.09.0 verified leaves (jasmin-ct --arch=armv8a --doit, -stack-zero loop, 43 scalar integer mnemonics; stock v2026.09.0 omits UMULH, SBCS, SLH and jasmin-checksafety on armv8a).

Managed targets (Pure MoonBit)

wasm, wasm-gc, js and the portable fallback run 100% pure portable MoonBit (SafeGCD30 20×30 steps, Global-Z / Co-Z coordinates, lazy w=12 tables), bit-identical to native on every test vector (CAG-30).

NonUpgradableEvidence · upgradable = false

Hardware DOIT / DIT boundary (JasminSf023)

Software constant-time checks and runtime PSTATE.DIT toggling cannot prove silicon-level microarchitectural timing invariance. Assumption A4 (hardware ARM PSTATE.DIT and x86 DOITM, plus speculative and physical channels) remains permanently open in openspec/changes/selune-jasmin-silverfire/obligations.mars.

NonUpgradableEvidence · upgradable = false

Unlinked Coq CT preservation (JasminSf024)

Stock Jasmin v2026.09.0 proves its Coq compiler passes with 0 Admitted ITrees, but end-to-end Coq constant-time preservation is not linked to the exact compiled assembly code_pin; native Jasmin kernels therefore remain at L2 and are never promoted to L3.

Safe multicore throughput

No raw fork(), no C threads touching MoonBit’s reference-counted heap and no SharedArrayBuffer. Native selune_mcw workers start from a separate verify-only binary over AF_UNIX sockets with the 32-byte SFMT-v1 frame. nm -a confirms 0 secret, signing, comb, vault or DIT symbols in selune_mcw.exe on both hosts (1,571 x86-64 / 1,476 ARM64 defined symbols). All eleven canonical cross-architecture digests—including table_digest aa6136bd—are bit-identical between ARM64 and x86-64 for every worker count from 1 to 24 (parity_all_w = true).

Exact secp256k1 ECDSA, CIP-49, 4,096 items, 64-item chunks

Exact secp256k1 ECDSA CIP-49 throughput across worker counts on x86-64 and ARM64 Worker scaling for exact secp256k1 CIP-49 batch verification (4,096 items, 64-item chunks). Serial baseline is 63,367 signatures per second. x86-64 scales to 516,649 signatures per second at 24 workers (8.15x). ARM64 scales to 518,153 signatures per second at 16 workers (8.15x). 63,367/s serial 0 200k 400k 600k ARM64: 518,153/s · 16w · 8.15× x86-64: 516,649/s 24w · 8.15× 1 2 4 8 16 24 Workers (verify-only selune_mcw, nm -a = 0 secret symbols)
Solid blue: x86-64 (W=1..24). Dashed teal: ARM64 (W=1..16). Cardano Conway 4,000-tx block reaches 8,828 tx/s (20.24× total / 21.11× precheck, 24w x86-64) and 3,715 tx/s (10.82× total / 11.31× precheck, 16w ARM64).

BIP-340 Schnorr multicore: exact default (7U) vs opt-in probabilistic batch (8U)

Default exact per-index (7U · 0 soundness error)

553,812/s grouped · 401,332/s distinct

24 workers x86-64 (9.60× on 8,192 grouped / 7.83× on 4,096 distinct). ARM64 16 workers: 485,020/s grouped (9.11×) and 327,182/s distinct (6.95×).

Opt-in probabilistic 128-bit batch (8U · GLV Pippenger MSM)

1,671,495/s grouped · 721,126/s distinct

24 workers x86-64 (8.91× grouped / 8.02× distinct) with fresh 128-bit OS CSPRNG weights and exact deterministic serial fallback on any invalid chunk. ARM64 16 workers: 1,239,709/s grouped (7.26×) and 645,445/s distinct (7.84×).

Full multicore scaling table across all worker counts (W=1..24)
Batch throughput by worker count (native chunked selune_mcw & zero-SharedArrayBuffer wasm-gc)
Workload and hostW=1W=4W=16W=24SpeedupIsolation & parity
secp256k1 CIP-49 (3U, 4,096), native, x86-6463,368/s214,877/s449,467/s516,649/s8.15×0 secret symbols in 1,571 nm -a symbols
secp256k1 CIP-49 (3U, 4,096), native, ARM6463,670/s205,963/s518,153/s—8.15×0 secret symbols in 1,476 nm -a symbols
secp256k1 CIP-49 (1,000), native, x86-64 / ARM6463,431 / 63,584/s196,232 / 169,692/s393,391 / 340,599/s385,802/s (x64)6.08× / 5.36×Montgomery batch inversion (chunk=64)
P-256 DER (5U, 4,096), native, x86-6427,521/s98,298/s234,929/s286,854/s10.41×Verify-only workers (1k: 208,029/s)
P-256 DER (5U, 4,096), native, ARM6428,165/s88,796/s268,942/s—9.51×Verify-only workers (1k: 215,100/s)
BIP-340 exact (7U, 8,192 grouped), x86-6457,630/s208,649/s471,427/s553,812/s9.60×Default exact per-index (0 soundness error)
BIP-340 exact (7U, 8,192 grouped), ARM6453,258/s168,037/s485,020/s—9.11×Bit-identical canonical digest
BIP-340 exact (7U, 4,096 distinct), x86-6451,244/s184,454/s355,493/s401,332/s7.83×4,096 distinct keys, exact W=1..24 invariant
BIP-340 exact (7U, 4,096 distinct), ARM6447,076/s149,538/s327,182/s—6.95×Bit-identical canonical digest
BIP-340 opt-in prob. batch (8U, 8,192 grouped), x86-64187,399/s621,783/s1,239,521/s1,671,495/s8.91×Opt-in 128-bit GLV MSM + serial fallback
BIP-340 opt-in prob. batch (8U, 8,192 grouped), ARM64170,769/s498,509/s1,239,709/s—7.26×Bit-identical canonical digest
BIP-340 opt-in prob. batch (8U, 4,096 distinct), x86-6490,148/s306,082/s674,127/s721,126/s8.02×4,096 distinct keys, W=1..24 invariant
BIP-340 opt-in prob. batch (8U, 4,096 distinct), ARM6482,338/s231,242/s645,445/s—7.84×Bit-identical canonical digest
secp256k1 DER (1,000), wasm-gc, x86-64 / ARM6411,120 / 10,982/s44,304 / 32,776/s105,555 / 99,372/s119,359/s (x64)10.73× / 9.05×Zero SharedArrayBuffer, no COOP/COEP
P-256 DER (1,000), wasm-gc, x86-647,271/s26,319/s69,589/s82,582/s11.36×Transferred buffers only
Conway 4,000 tx, native, x86-64436 tx/s1,661 tx/s6,124 tx/s8,828 tx/s20.24×21.11× precheck; bit-identical four-epoch root
Conway 4,000 tx, native, ARM64343 tx/s1,371 tx/s3,715 tx/s—10.82×11.31× precheck; bit-identical four-epoch root

dudect under load 28/28 shipped CT primitives pass on both hosts under 16-worker saturation: ARM64 |t| ≤ 4.284 (29,760,512 sigs @ 285,352/s) & x86-64 |t| ≤ 3.430 (17,196,032 sigs @ 338,998/s), 0 parity failures and 0 orphaned workers

Zero CT leaks 0 leaks across 114 ARM64 CT symbols (26,333 insns) and 114 x86-64 CT symbols (44,392 insns) on the shipped CT binary, plus 3-lane check_ct_asm.sh (gcc, clang, LLVM-IR)

Isolation posix_spawn + exec, MADV_DONTFORK, 0 secret symbols in selune_mcw.exe on both architectures

Constant time: 4×28 dudect strip plot on both architectures

All RFC 6979 and BIP-340 nonce paths enforce the SF-01 fixed-window schedule (FIXED_EXTRA_ROUNDS=4, supported-curve allowlist, non-inlined mbcrypto_rfc6979_select_candidate_ct, permanent Warden guard WD-CAG-006) and store guarded HMAC-SHA-256’s message schedule inside the 768 B mlocked sf_sign_workspace_t (0 alloca [64 x i32] in Clang -O2 -emit-llvm IR). All 4/4 dual-host dudect receipts (canonical 46-file CT source digest bf99c7a7) admit all 28 shipped CT primitives idle and under 16-worker saturation while catching both deliberately leaky positive controls at |t| = 89–2,105.

4 by 28 dual-host dudect Welch |t| strip plot with broken-axis leaky control inset Four rows showing 28 shipped constant-time primitives per run on a shared absolute t-statistic axis from 0 to 5 with a dashed admission gate at 4.5. Maximum shipped dot is 4.284 on ARM64 16-worker saturated. A broken-axis inset on the right plots the two deliberately leaky positive controls per run caught between 89.4 and 2,105.4. 28 shipped CT primitives per run (|t|) gate 4.5 controls: must fail ARM64 · idle ARM64 · 16w sat x86-64 · idle x86-64 · 16w sat 4.284 0 1 2 3 4 5 89–2,105
20,000 samples per workload (95th-percentile cropped). Max |t|: ARM64 idle 3.194, ARM64 16w sat 4.284, x86-64 idle 3.607, x86-64 16w sat 3.430. Both deliberately leaky controls (vartime inversion on secret k and secret-bit branch) trigger across every run at |t| = 89–2,105.
Full 31-workload dual-host dudect table (28 shipped CT primitives + clean baseline + 2 leaky controls)
Welch |t| across all 31 dual-host dudect workloads (threshold |t| < 4.5; positive controls > 10)
WorkloadARM64 Idle (cntvct_el0)ARM64 16-worker satx86-64 Idle (rdtsc)x86-64 16-worker sat
scalar_mul_base_ct_secp256k10.1050.5980.0350.509
scalar_mul_base_ct_p2561.4410.4470.2020.513
SecretScalarSecp256k1::ct_inv0.0810.2700.3830.174
SecretScalarSecp256k1::ct_sign_s1.2540.2840.5360.476
SecretScalarP256::ct_inv0.1510.4500.2760.393
SecretScalarP256::ct_sign_s1.0501.2170.4140.604
ProjectivePointSecp256k1::to_affine0.2011.5832.5860.898
ProjectivePointP256::to_affine2.3773.0671.7960.286
FpSecp256k1::inv_ct1.3691.3681.0580.112
FpP256::inv_ct0.9950.0421.6420.019
normalize_low_s_secp256k11.7411.6220.9040.359
normalize_low_s_typed_p2560.5022.1851.2290.803
SecretScalarSecp256k1::derive_rfc6979_k0.9240.5451.1270.617
SecretScalarP256::derive_rfc6979_k0.2500.3840.4690.982
mbcrypto_rfc6979_sha256_derive_k[secp256k1]0.8531.4590.5560.089
mbcrypto_rfc6979_sha256_derive_k[p256]2.0190.8200.4780.383
mbcrypto_rfc6979_sha256_derive_k[p256_sf01_natural_reject]0.4840.4610.3640.630
sf_ecdsa_vault_sign_s_rfc6979_ct[secp256k1]0.2714.2840.2350.184
sf_ecdsa_vault_sign_s_rfc6979_ct[p256]0.3310.0960.3860.940
sf_ecdsa_vault_sign_attempt_rfc6979_ct[secp256k1]1.1270.8360.4880.154
sf_ecdsa_vault_sign_attempt_rfc6979_ct[p256]0.3580.6550.0240.394
sf_ecdsa_vault_sign_attempt_rfc6979_ct[p256_sf01_natural_reject]0.2080.2292.0740.094
sf_ecdsa_vault_sign_attempt_fallback_ct[secp256k1]0.6200.6100.3730.380
sf_ecdsa_vault_sign_attempt_fallback_ct[p256]0.6760.8590.6940.390
sf_ecdsa_vault_sign_attempt_fallback_ct[p256_sf01_natural_reject]0.1510.3390.7872.042
ct_lookup_u2560.2641.1710.0530.465
ct_lt_u2563.1940.2173.6073.430
reduce_u512_mod_p_secp256k10.4270.3400.3810.616
Clean baseline (fixed against fixed)1.2053.1880.2010.144
Positive control: leaky secret-bit branch2,094.074, detected2,105.401, detected1,515.664, detected1,141.910, detected
Positive control: vartime inversion on secret k101.064, detected103.642, detected134.067, detected89.414, detected

On ARMv8-A, the C11 secret kernels toggle PSTATE.DIT around secret execution with live readback enforcement when HWCAP_DIT is present, while the idle host process starts at PSTATE.DIT=0; silicon timing guarantees (A4: ARM PSTATE.DIT and x86 DOITM) remain permanently open NonUpgradableEvidence (JasminSf023). Because no compiler guarantees zeroization of a managed heap, signing in libs/crypto_ecdsa fails closed on wasm, wasm-gc and js; browser custody uses the separate opt-in linear-memory Wasm engine below.

Wasm signer on six BrowserStack targets · 90/90 outputs verified locally · 231,718 B

For single-user browser custody without a signing server, libs/crypto_wasm_signer/ and bindings/wasm-signer/ compile to a fixed 64-page (4 MiB) unshared linear-memory module (crypto_wasm_signer.wasm, 231,718 B, SHA-256 f487f9590a2e9937, 0 inspect_wasm_artifact violations). Each attempt runs inside a COOP/COEP (Y/Y) standby zero-secret worker fetched once from immutable hashed bundle /v/9555b74d3dbec5e3/src/signing_worker.mjs (HTML no-store), enforcing worker-owned byte-bound WeakMap provenance, realm-captured crypto.subtle, dual-slot OPFS A/B WAL with synchronous flush(), post-sign self-verification, and full 4 MiB BigUint64Array OR-reduction zero readback (OR = 0, tail control 0x40). Local Linux Chromium 159.0.8154.6 passes 6/6 Playwright E2E and 16/16 Node conformance checks.

0.20–0.26 ms macOS Safari · 0.28–0.44 ms real iPhone 16 Pro Max · 0.39–0.52 ms real Galaxy S24 (secp256k1 kernel span across StrictDER / P1363 / CIP-49 / BIP-340)

BrowserStack 6/6 CIP-49 latency across desktop browsers and real phones on a log millisecond axis Six BrowserStack targets plotted on a log-10 millisecond axis from 0.1 ms to 100 ms showing CIP-49 kernel latency (0.24 to 0.80 ms), standby-warm end-to-end latency (9.46 to 21.88 ms), and cold end-to-end latency (16.64 to 48.94 ms), with 4 MiB wipe readback verified at 0 residue on all six targets. CIP-49 (log ms) ● kernel ○ standby-warm E2E ◆ cold E2E 4 MiB wipe macOS Safari 27.0 0 residue iPhone 16 Pro Max 0 residue Galaxy S24 Chrome 0 residue Win 11 Chrome 158 0 residue Win 11 Edge 158 0 residue macOS Firefox 161 0 residue 0.1 ms 1 ms 10 ms 100 ms
CIP-49 span across all 6 targets: 0.24–0.80 ms kernel, 9.5–21.9 ms standby-warm E2E (9.2–21.9 ms across both E2E profiles), 16.6–48.9 ms cold E2E, and 18.7–100.3 ms persistent OPFS WAL. 4 MiB wipe readback: 0 residue on all 6/6 targets.
BrowserStack 6/6 Desktop & Real Mobile Phone Matrix (Final RC, worker bundle 9555b74d, 90/90 locally oracle-verified, StrictTopLevelSigner COI Y/Y)
DeviceBIP-340 p50CIP-49 p50P1363 / DER p50P-256 p504 MiB Wipe p50One-Shot E2E Warm / Cold (CIP-49; BIP-340 Warm)OPFS A/B WAL P-256
macOS Safari 27.00.26 ms (3,846/s)0.24 ms (4,167/s)0.20 / 0.20 ms (5,000/s)0.22 ms6.46 ms15.7 / 19.4 ms; 15.3 ms27.4 ms
Real iPhone 16 Pro Max (iOS 27 Safari)0.44 ms (2,273/s)0.34 ms (2,941/s)0.28 / 0.28 ms (3,571/s)0.28 ms8.60 ms21.9 / 28.4 ms; 21.9 ms32.6 ms
Real Samsung Galaxy S24 (Android Chrome)0.52 ms (1,942/s)0.51 ms (1,961/s)0.47 / 0.39 ms (2,564/s)0.30 ms2.39 ms13.6 / 48.9 ms; 14.2 ms100.3 ms
Windows 11 Chrome 1580.52 ms (1,923/s)0.56 ms (1,802/s)0.51 / 0.48 ms (2,083/s)0.36 ms0.58 ms13.0 / 44.8 ms; 12.5 ms83.1 ms
Windows 11 Edge 1580.52 ms (1,923/s)0.57 ms (1,754/s)0.53 / 0.47 ms (2,128/s)0.37 ms0.59 ms10.8 / 31.0 ms; 13.2 ms55.8 ms
macOS Firefox 1610.58 ms (1,724/s)0.80 ms (1,250/s)0.80 / 0.82 ms (1,220/s)0.76 ms0.18 ms9.5 / 16.6 ms; 9.2 ms18.7 ms

90/90 Oracle Verified 15/15 remote signatures per device independently verified locally against Node OpenSSL + BIP-340 oracles; 6/6 P-256 IDB reload & OPFS flush() PASS

1-Fetch Worker Caching Every device fetched immutable worker bundle 9555b74d exactly once (200:10, 304:0) across 40+ worker spawns while HTML stayed no-store

Wipe & Scoped Timing 6/6 verified 4 MiB OR == 0 and tail tamper control (0x40 at byte 4,194,303); scoped Wasm timing |t| = 1.017 vs leaky 15.4933 (promotesToConstantTimeProof = false)

Safari & iOS WebKit operational notes

Verified WebKit behavior

macOS Safari 27.0 and real iPhone 16 Pro Max (iOS 27 Safari) do not expose window.originAgentCluster, yet both achieve StrictTopLevelSigner with live document and worker crossOriginIsolated === true, 1-fetch immutable caching, WebCrypto P-256 IDB reload, and synchronous OPFS flush(). WebKit JSC runs the 4 MiB BigUint64Array wipe pass in 6.46–8.60 ms (vs 0.18–2.39 ms on V8/Gecko due to BigInt boxing) and requires CA-trusted HTTPS for isSecureContext.

NonUpgradableEvidence · upgradable = false

Four permanently open browser trust boundaries

Pinned in openspec/changes/selune-wasm-signing/obligations.mars: WasmSign030 (host OS, browser binary, WebCrypto, authenticator hardware, RNG and served assets sit outside algebraic proof scope); WasmSign047/WasmSign051 (crossOriginIsolated does not prove OS process isolation or exclude speculative/JIT leaks, and scoped Wasm timing never equates browser signing to native GuardedSecretVault CT); WasmSign048 (all-zero readback covers observed linear memory only, not engine copies, JIT spills, swap or dumps); WasmSign049 (OPFS A/B WAL cannot detect whole-origin-store snapshot rollback).

Five languages, one frozen ABI

The shared library libsilverfire.so.1 exports exactly 18 symbols under the version node SILVERFIRE_1.0 and links nothing but the C library and the loader, so the calling process carries no MoonBit runtime. Each binding checks the C struct layout at start-up and refuses to run on a mismatch. Before a pool spawns its workers, the library pins the SHA-256 of the worker binary.

The header is ffi/c/include/silverfire.h. It builds clean with gcc and clang at -std=c11 -Wall -Wextra -Werror -Wpedantic. 7,312 assertions pass under the standard build and under ASan, UBSan and LSan; 7,349 pass under TSan with eight concurrent threads; 36 more cover worker reaping after faults.

sf_abi_layout_info_t layout = sf_abi_layout_local();
assert(sf_abi_layout_check(&layout) == SF_OK);
sf_context_t *ctx = NULL;
sf_context_open(&cfg, &ctx);
sf_verify_outcome_t outcome = SF_VERIFY_INVALID_SIGNATURE;
sf_ecdsa_verify_cip49(ctx, pk33, msg32, sig64, &outcome);
sf_context_close(ctx);

Assurance without theater

A green badge hides where software verification ends. Every row in Silverfire’s 7/7 MARS 1.0 ledgers holds one non-upgradable tier: tests stay L0, Quint stays L1, and Jasmin DOIT/SCT, CBMC/Bitwuzla and LLVM-IR SMT stay L2. Only zero-sorry Lean 4 kernel proofs reach L3. Native Jasmin x86-64 and hybrid ARMv8-A kernels stay capped at L2 until kernel-checked functional equivalence proofs bind their exact code_pins.

Software proofs cannot verify silicon or browser hosts, so those rows stay permanently open (NonUpgradableEvidence, upgradable = false). JasminSf023 leaves hardware A4 timing assumptions (ARM PSTATE.DIT, x86 DOITM) open, and JasminSf024 leaves unlinked Coq CT preservation open. WasmSign030/047/048/049 leave browser and OS binaries, WebCrypto, JIT/speculative isolation, non-linear memory copies and whole-origin OPFS snapshot rollback open. Linked-ELF BINSEC/Rel (JasminSf018), cross-host parity for host-pinned p256_point_pub.s (JasminSf002; 8/9 .s files match) and full-loop jasmin-checksafety hold 0 release credit in v0.3.1 and remain roadmap items, coming soon.

  1. Lean 4.35.0 (L3). The proof audit checks 215 declarations selected by ProofAudit.lean (145 Silverfire declarations independently audited in spec/EcdsaProofAudit.lean: 73 in EcdsaAlgebra covering unconditional RCB completeness with (0, 0, 0) excluded and real secp256k1 and P-256 instantiations, 44 in SilverfireFieldBV, and 28 in WasmSigningAlgebra) plus 38 audited theorems in spec/JasminSilverfireProofAudit.lean, all with zero sorry and only the standard axioms propext, Classical.choice and Quot.sound. No positive proof uses the native bv_decide trust axiom.
  2. Solver proofs (moon prove). Dual-prelude moon prove discharges 48 crypto goals in proofs/crypto, 15 in-place production kernel goals in libs/crypto_proof_kernels, 16 linear-memory Wasm signer kernel goals in libs/crypto_wasm_signer/prove_kernels, and 14 Conway kernel goals under both the default and the machine-integer prelude.
  3. Bounded model checking (CBMC 6.11.0 + Bitwuzla 0.11.0, L2). ./bin/selune formal cbmc directly #includes unmodified production C11 TCB sources (mbcrypto.c, silverfire_client.c, sfmt_pool.c) with --unwinding-assertions, proving 2,536/2,536 properties (0 unwinding failures) and refuting its 1-bit negative control mutant (exit 10). Separately, libs/crypto_jasmin/csrc/cbmc_harness_* proves 11,753/11,753 ARMv8-A field and point properties via cbmc --bitwuzla (14,289/14,289 total).
  4. Protocol model checking (Quint, L1). Bounded Quint checks kill 32/32 live single-fault mutants across 16 ECDSA custody mutants, 8 multicore mutants and 8 browser Wasm custody mutants, with zero ghost flags, plus two adversarial POSIX/FFI glue models (spec/CustodyWalAnchor.qnt, 5/5 tests; spec/VaultSplitFfiProtocol.qnt, 4/4 tests) proving 2,000-trace positive safety while refuting rollback-lag, unverified-truncation, and split-FFI key-extraction controls.
  5. Continuous differential fuzzing (Tribble, L0). ./bin/selune tribble runs 5/5 targets across libFuzzer + ASan/UBSan + OpenSSL differential oracles (c_mbcrypto_stateful, c_mbcrypto_rfc6979, c_sfmt_wire), a pure-MoonBit codec bijection oracle (mbt_crypto_codec), and the pinned production .wasm ABI oracle (wasm_signer_abi), with llvm-cov coverage, 3/3 fail-closed negative controls (NC-1..NC-3), and 2,797,493 executions with 0 crashes.
  6. Jasmin v2026.09.0 & 3-lane CT gate (L2). libs/crypto_jasmin/ verifies 8/9 bit-identical cross-compiled .s files (with a documented host-pinned exception for p256_point_pub.s under JasminSf002), 44/44 JASMIN-MANIFEST.json SHA-256 pins, jasmin-ct --doit --sct and field/sub-slice jasmin-checksafety on x86-64, stock ARMv8-A Jasmin leaves + verify_arm64_ct_asm.sh (JasminSf018 open), 3-lane check_ct_asm.sh (gcc, clang, LLVM-IR br i1), and live objdump on the shipped CT binary across 114 ARM64 / 114 x86-64 CT symbols (0 leaks). Hardware A4 (JasminSf023) and unlinked Coq CT preservation (JasminSf024) stay permanently open NonUpgradableEvidence.
  7. Formal bridge. The checked-in release-manifest.json pins the SHA-256 of all 25 fixture targets (14 positive, 6 negative controls refuted, 5 probes), the exact theorem types of the 4 Lean kernel proofs, and 5 production_sources (fe9.mbt, mont.mbt, verify.mbt, sign.mbt, mbcrypto.c). ./bin/selune formal verify --manifest ... --replay passes 16/16 checks with 20 obligations replayed; LLVM-IR proofs (Z3 + cvc5) stay at L2, Lean kernel proofs reach L3.
  8. MARS 1.0 & Warden release gate. Seven active MARS 1.0 ledgers hold 533 obligation rows with 606/606 verified code_pin and receipt pins (0 diagnostics, 0 stale sources under mars check --fresh; live witness and drop controls under mars audit --fresh). ./bin/selune warden gate passes with 0 CRITICAL, 0 HIGH, 36/36 CAG gates (including WD-CAG-006, WD-API-001, WD-ERR-001, and WD-ARENA-001), 31/31 receipts, and 4/4 mirrors.
  9. Custody & release gate. GuardedSecretVault::open_native_strict() seals keys and signing workspaces inside the guarded C11 arena with O(1) authenticated binary wal.v3 journaling, immediate durable external rollback anchoring, and mandatory CRYPTO-Q4 stored-Q self-verify; browser signing runs in an isolated fixed 4 MiB linear-memory Wasm worker. No review can waive a failing machine gate.

The 36 cryptographic hard gates

The checklist crypto-hard-gate-checklist.json (3e5b2d6f…) defines CAG-01 to CAG-36 across eight domains, each with its requirement, primary sources, evidence paths and attack prompts. The Warden checks on every tick that all 36 gates are present and well formed. Gates that carry a disclosed boundary or hardening note are marked.

D1 Algebraic & Curve Soundness CAG-01–CAG-06
  • CAG-01Pinned Curve Domain Parameters & Rigiditytest
  • CAG-02Limb Overflow & Carry-Chain No-Overflow Boundsproof
  • CAG-03Canonical Field Reduction & Total U512 Reductiontest
  • CAG-04Projective Completeness & Exceptional-Case Immunityproof
  • CAG-05Twist, Subgroup & Public-Key On-Curve Validationtest
  • CAG-06GLV Babai Lattice Bounds, r+n < p Verification Check & L1 Non-Homomorphismproof
D2 Encoding, Parsing & Malleability CAG-07–CAG-11
  • CAG-07Strict ASN.1 DER / BIP-66 Signature Decodingtest
  • CAG-08Profile-Exact Low-S Non-Malleability (BIP-146 / CIP-49 / P1363)test
  • CAG-09SEC 1 Public-Key Point Encoding Strictnesstest
  • CAG-10Trailing Bytes, Zero-Length/Oversized Inputs & Hash Truncationtest
  • CAG-11Project Wycheproof v1 Full Corpus Adjudicationtest
D3 Nonce, Signing & Fault Resistance CAG-12–CAG-16
  • CAG-12RFC 6979 Deterministic Nonce Derivation & Zero-r/Zero-s RetrytestHardened: SF-01 fixed-window schedule (FIXED_EXTRA_ROUNDS=4) + curve allowlist enforced by WD-CAG-006.
  • CAG-13One-Use Custody Nonce Discipline & Crash-Unresolved Fencemodel check
  • CAG-14Mandatory Stored-Q Post-Sign Self-Verify & Fault-Injection Resistance (CRYPTO-Q4)test
  • CAG-15Prehashed Signing Capability Gating & Digest-Range Disciplinetest
  • CAG-16Biased-Nonce, Lattice (HNP) & Minerva Immunitymeasurement
D4 Constant-Time & Microarchitectural Side Channels CAG-17–CAG-21
  • CAG-17Secret-Branch-Free & Secret-Memory-Index-Free ExecutioninspectionHardened: SF-01 fixed-window selection + Jasmin/C11 CT & LLVM-IR SMT fixtures stay at L2.
  • CAG-18Zero Variable-Time Division/Modulo Instructions in Shipped Disassemblydisassembly
  • CAG-19Compiler-Barrier & Optimization Leakage ResistancedisassemblyHardened: 3-lane check_ct_asm.sh (gcc, clang, LLVM-IR) + verify_arm64_ct_asm.sh + objdump across 114 ARM64 / 114 x86-64 CT symbols on the shipped CT binary.
  • CAG-20Statistical Timing Verification (dudect |t| < 4.5) Idle & Under 16-Worker SaturationmeasurementVerified: 4/4 dual-host receipts Admitted across 28 shipped CT primitives (ARM64 idle 3.194, ARM64 16-worker sat 4.284, x86-64 idle 3.607, x86-64 16-worker sat 3.430; incl. accelerator-disabled production fallback).
  • CAG-21Explicit Hardware Timing Caveats (PSTATE.DIT / x86 DOITM) & Target Capability HonestymeasurementDisclosed: ARMv8-A C11 kernels toggle PSTATE.DIT with live readback when HWCAP_DIT is present; idle host starts at DIT=0; A4 (JasminSf023) remains NonUpgradable.
D5 Secret Custody & Memory Hygiene CAG-22–CAG-25
  • CAG-22Opaque Secret Types (Zero Debug/Show/Eq/Serialization Leakage)inspection
  • CAG-23Native ScopedSecretBuffer Guarded Arena (mmap + PROT_NONE + mlock + MADV_DONTFORK/DONTDUMP)test
  • CAG-24Compiler-Safe Zeroization (explicit_bzero + Volatile Readback Verification)disassembly
  • CAG-25Honest Managed-GC Heap & Non-Native Memory Hygiene DisclosureinspectionDisclosed: managed-heap zeroization is unsupported; browser signing uses opt-in 4 MiB linear-memory Wasm with WasmSign048 open.
D6 Safe Multicore & Isolation CAG-26–CAG-29
  • CAG-26Verify-Only Worker Binary Free of Secret & Signing Symbols (posix_spawn + exec + nm Audit)disassembly
  • CAG-27Zero Raw fork() Without exec & Zero C Pthreads on Non-Atomic RC Heapinspection
  • CAG-28Confirmed waitpid Quiescence & Fail-Closed WorkerLost Handlingmodel checkDeferred: MED-02 unreaped-PID retry ownership at close.
  • CAG-29Schedule-Invariant W-Invariant Canonical Slot-Order Merge (W=1..24 & Multi-Runtime)test
D7 Cross-Target Determinism & Differential Interop CAG-30–CAG-32
  • CAG-30Four-Target Bit-Identical Determinism (native == wasm-gc == wasm == js)test
  • CAG-31Multi-Oracle Cross-Sign & N x M Cross-Verify Differential Interoptest
  • CAG-32Dual-Architecture Hardware Verification (ARM64 + x86_64)measurement
D8 Formal & Mechanical Assurance Traceability CAG-33–CAG-36
  • CAG-33moon prove Dual-Prelude Machine-Checked Contractsproof
  • CAG-34Lean 4 Zero-sorry Algebraic Soundness & Witness/Drop Non-Vacuityproof
  • CAG-35Quint Model Checking & 100% Killed Single-Fault Mutantsmodel check
  • CAG-36MARS 1.0 code_pin Integrity & Non-Upgradable Evidence Lattice (A1-A5)inspection

Reproduce every number in one command

Clone github.com/CharlesHoskinson/selune and run the 9-engine benchmark and Wycheproof parity suite on your hardware:

systemd-run --user --scope -p MemoryMax=8G -p MemorySwapMax=2G -- ./examples/oracles/ecdsa/bench/run_bench.sh

Replay the Lean 4 kernel proofs, CT source digests and Warden release gate in one check:

./bin/selune formal verify --manifest libs/formal_bridge/fixtures/release-manifest.json --replay openspec/changes/selune-ecdsa/receipts/formal-bridge-impl-receipt.json && ./bin/selune check-ct-digest && ./bin/selune warden gate

Call one frozen ABI from C11, C++20, Rust, TypeScript and Haskell (five-language quickstart), or test live signatures in ECDSA Lab and 3D Curve Explorer.

Next for Silverfire

Selûne v0.3.1 ships BIP-340 Schnorr signing and batch verification (libs/crypto_ecdsa/schnorr.mbt and silverfire_mt randomized GLV MSM), secp256k1 ecrecover (libs/crypto_ecdsa/ecrecover.mbt), and the pure-MoonBit Cardano UPLC CEK machine (libs/cardano_cek/). The v0.4.0 Cardano ledger requirements set 60 EARS requirements across six milestones for a fully conformant ledger. BLS12-381 pairings for CIP-381 with multi-scalar multiplication for CIP-133, BLAKE2b and Keccak-256, the Praos ECVRF, and Sum6 and Sum7 key-evolving signatures—each held to the same 36 gates, formal bridge and five bindings—are roadmap items, coming soon.