Skip to content

Selûne v0.3.1 — "Silverfire Crucible"

Choose a tag to compare

@CharlesHoskinson CharlesHoskinson released this 02 Dec 16:03
· 94 commits to master since this release

Selûne v0.3.1: "Silverfire Crucible"

The first public production Jasmin v2026.09.0 ECDSA engine verifies secp256k1 in 16.13 µs and P-256 in 29.09 µs, outpacing libsecp256k1 v0.8.0 and OpenSSL 3.6.5 on both Linux x86-64 and Linux ARM64.

One dual-curve engine across x86-64 (1.09× secp256k1, 1.31× P-256) and ARM64 (1.03× secp256k1, 1.13× P-256) runs on a 192 KiB verify table against 1 MiB and decompresses 33-byte SEC 1 keys on every call. Guarded mlocked signing (768 B workspace, 0 stack alloca, 22 KiB vs 86 KiB signing comb) runs within 0.59 µs of libsecp256k1 on x86-64 (12.99 vs 12.40 µs), paired with pure portable MoonBit verification on managed targets (wasm-gc, wasm, js), an 11-stage formal verification pipeline from EARS to disassembly, and a dedicated 231,718 B zero-GC linear-memory WebAssembly signer signing in 0.28–0.44 ms on a real iPhone 16 Pro Max.


Single-Core Native Performance vs Reference Engines

Measured on locked dual-host Final RC receipts at frozen commit c4ebcfdcd08260b26dbcddd4b959fcc9707af88f (9/9 cross-engine checksum 1305428567 and Matt Corallo parity; strict Wycheproof 464/464 secp256k1 and 484/484 P-256 PASS):

  • Linux x86-64 (ecdsa-benchmarks-huginn.json): Jasmin v2026.09.0 ADX/BMI2 (MULX/ADCX/ADOX, -stack-zero loopSCT, jasmin-ct --doit --sct) on a 24-core Intel Core Ultra 9 290HX Plus.
  • Linux ARM64 (ecdsa-benchmarks.json): Single-TU C11 __uint128_t (MUL/UMULH, -mgeneral-regs-only, runtime PSTATE.DIT bit-24 readback) + stock ARMv8-A Jasmin v2026.09.0 verified leaves on a 20-core ARM64 host.
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

Ratio = reference µs ÷ Silverfire µs. Above 1.00×, Silverfire is faster. The lower median in every pair is bold.

  1. Run. Medians of 25 warmed sequential batch means, one fixed key and digest per row. 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. Silverfire uses a 192 KiB verify table and a 22 KiB signing comb.
  2. Verify. All three engines validate strict DER on every call. Silverfire also decompresses a 33-byte SEC 1 key on every call. libsecp256k1 reuses a parsed key and prepared context; OpenSSL imports the key before timing.
  3. Sign & hardening tax. 32-byte digest in, RFC 6979 nonces. * libsecp256k1 runs with a randomized context; Silverfire's native comb runs unblinded. Both guarded-sign rows trail the stock C references on x86-64 (12.99 vs 12.40 µs; 15.73 vs 14.81 µs) and ARM64 (19.24 vs 14.19 µs; 21.54 vs 14.72 µs). That overhead is the measured cost of running secret signing inside a single 768 B mlocked workspace (sf_sign_workspace_t) with zero stack alloca (including software SHA-256 w[64]), fixed-window RFC 6979 DRBG, atomic split-slot provenance, and mbcrypto_ct_value_barrier_u64 constant-time barriers against Clang 23 select-to-branch lowering.
  4. Durable custody. Full durable custody (wal.v3 authenticated append + immediate monotonic external rollback-anchor sync + mandatory CRYPTO-Q4 stored-Q self-verification before signature release) is measured separately: secp256k1 takes 71.99 µs (12.99 + 59.00 µs, x86-64) and 103.81 µs (19.24 + 84.57 µs, ARM64); P-256 takes 89.40 µs (15.73 + 73.67 µs, x86-64) and 121.30 µs (21.54 + 99.76 µs, ARM64). Neither libsecp256k1 nor OpenSSL performs stored-Q self-verification or durable custody journaling.
  5. Limits. On the full Wycheproof suites, libsecp256k1 and OpenSSL finish first on both hosts (see below). AWS-LC, BoringSSL, AVX-512 IFMA multi-buffer, and GPU batch engines are outside this harness.

Additional Single-Core & Cross-Library Measurements

Operation (median µs, lower is better) Silverfire (x86-64) Reference / Peer (x86-64) Silverfire (ARM64) Reference / Peer (ARM64)
secp256k1 verify vs OpenSSL 3.6.5 / node:crypto / libgcrypt 16.13 µs (9.79× OpenSSL) 157.95 / 159.58 / 366.36 µs 18.09 µs (8.76× OpenSSL) 158.53 / 156.28 / 461.48 µs
secp256k1 guarded sign vs OpenSSL 3.6.5 / node:crypto / libgcrypt 12.99 µs (12.68× OpenSSL) 164.71 / 172.25 / 225.57 µs 19.24 µs (8.96× OpenSSL) 172.43 / 191.99 / 283.26 µs
P-256 verify vs node:crypto / Nettle 4.0 / libgcrypt 29.09 µs 39.21 / 90.64 / 318.28 µs 33.84 µs 39.93 / 126.56 / 387.14 µs
P-256 guarded sign vs node:crypto / Nettle 4.0 / libgcrypt 15.73 µs 15.10 / 26.27 / 196.86 µs 21.54 µs 14.80 / 31.11 / 243.13 µs
BIP-340 Schnorr verify 16.58 µs (60,328/s) - 18.71 µs (53,458/s) -
secp256k1 durable custody (kernel + custody) 71.99 µs (12.99 + 59.00) - 103.81 µs (19.24 + 84.57) -
P-256 durable custody (kernel + custody) 89.40 µs (15.73 + 73.67) - 121.30 µs (21.54 + 99.76) -
sha256_32b / sha256_1kib vs OpenSSL 3.6.5 0.04 / 0.24 µs 0.04 / 0.24 µs 0.05 / 0.54 µs 0.05 / 0.45 µs
hmac_sha256_32b vs OpenSSL 3.6.5 0.11 µs (1.98×) 0.23 µs 0.16 µs (1.79×) 0.30 µs
Pure portable MoonBit secp256k1 verify (wasm-gc / wasm / js) 55.50 / 62.79 / 2,640.35 µs - 63.06 / 77.43 / 1,903.72 µs -
Pure portable MoonBit P-256 verify (wasm-gc / wasm / js) 109.27 / 115.50 / 6,069.00 µs - 130.17 / 144.01 / 4,481.12 µs -

Wycheproof v1 Strict Parity (x86-64 / ARM64)

Corpus (total elapsed ms, lower is better) Silverfire (x86-64 / ARM64) Reference (x86-64 / ARM64) Notes
secp256k1 valid (162/162 strict) 2.69 / 2.90 ms libsecp256k1 2.87 / 2.92 ms OpenSSL 3.6.5: 24.94 / 25.01 ms
secp256k1 full (464/464 strict) 4.66 / 5.08 ms libsecp256k1 3.18 / 3.22 ms OpenSSL 3.6.5: 27.97 / 28.16 ms (462/464)
P-256 valid (174/174 strict) 5.30 / 5.83 ms OpenSSL 3.6.5 6.61 / 6.63 ms 174/174 strict parity
P-256 full (484/484 strict) 9.47 / 10.99 ms OpenSSL 3.6.5 7.64 / 7.69 ms 484/484 strict parity

Multicore Process-Isolated Scaling (silverfire_mt)

Process-isolated selune_mcw workers expose 0 secret, CT, sign, comb, vault, or DIT symbols under nm -a on both hosts, with parity_all_w = true and a bit-identical cross-architecture canonical table_digest (aa6136bdb71780b929b5fb09c986d51adabd2d8150a8aac9d8aa8329c570d974):

Workload x86-64 (W=24) ARM64 (W=16) Verification Semantics
secp256k1 ECDSA CIP-49 (3U, 4,096 items) 516,649/s (8.15× vs 63,367/s serial) 518,153/s (8.15×) Exact per-index + chunked Montgomery batch inv (1,000: 385,802/s 6.08× / 340,599/s 5.36×)
P-256 ECDSA DER (5U, 4,096 items) 286,854/s (10.41× vs 27,538/s serial) 268,942/s (9.51×) Exact per-index + chunked Montgomery batch inv (1,000: 208,029/s 7.63× / 215,100/s 7.62×)
BIP-340 Schnorr Exact (7U, grouped 8,192 / distinct 4,096) 553,812 (9.60×) / 401,332/s (7.83×) 485,020 (9.11×) / 327,182/s (6.95×) Unconditionally exact per-index (default)
BIP-340 Schnorr Opt-In Batch (8U, grouped 8,192 / distinct 4,096) 1,671,495 (8.91×) / 721,126/s (8.02×) 1,239,709 (7.26×) / 645,445/s (7.84×) Opt-in 128-bit OS-CSPRNG GLV Pippenger MSM + exact serial fallback
Cardano Conway 4,000-tx UTxO Precheck + Commit 8,828 tx/s (20.24× total / 21.11× precheck) 3,715 tx/s (10.82× total / 11.31× precheck) Deterministic serial commit root parity

Hardened Browser & Real Mobile Linear-Memory Wasm Signer (6/6 BrowserStack)

Dedicated linear-memory WebAssembly signer (231,718 B, WASM SHA-256 f487f959, Worker bundle 9555b74d): constant-time 384-bit 6×64 signed all-bits comb with 128-bit scalar blinding, complete RCB Alg 8/9, and SafeGCD30; 0 divisions; 0 memory.grow; 4 MiB wipe verified by readback (OR = 0, tail 0x40); worker-owned byte-bound WeakMap module provenance; COOP/COEP Y/Y with 1 immutable worker fetch; 6/6 real targets PASS with 90/90 outputs verified against the local oracle:

Target Kernel (ms) Warm E2E (ms) Cold E2E (ms) OPFS WAL (ms)
macOS Safari 27.0 0.20–0.26 (CIP-49 0.24, StrictDER/P1363 0.20 = 5,000/s) 15.3–15.7 19.4–19.6 27.4
Real iPhone 16 Pro Max (iOS 27 Safari) 0.28–0.44 (CIP-49 0.34, StrictDER/P1363 0.28 = 3,571/s) 21.9 28.1–28.4 32.6
Real Samsung Galaxy S24 (Android Chrome) 0.39–0.52 (CIP-49 0.51, StrictDER 0.39) 13.6–14.2 45.4–48.9 100.3
Windows 11 Chrome 158 0.48–0.56 (CIP-49 0.56) 12.5–13.0 44.8–66.9 83.1
Windows 11 Edge 158 0.47–0.57 (CIP-49 0.57) 10.8–13.2 31.0–34.6 55.8
macOS Firefox 161 0.58–0.82 (CIP-49 0.80) 9.2–9.5 16.6–17.0 18.7
  • CIP-49 span across all 6 targets: kernel 0.24–0.80 ms, standby-warm E2E 9.5–21.9 ms (9.2–21.9 ms across both profiles), cold E2E 16.6–48.9 ms, persistent OPFS WAL 18.7–100.3 ms.
  • Local Linux Chromium 159.0.8154.6: Playwright E2E 6/6 PASS, Node conformance 16/16 PASS.
  • Browser P-256 scope: Browser P-256 uses WebCrypto with Wasm framing; browser JIT, sandbox, and OS memory-zeroization boundaries (WasmSign030/047/048/049) stay permanently open (upgradable = false).

Cryptographic Security, 11-Stage Formal Pipeline & Tooling Highlights

Eleven verification stages link every requirement from specification down to shipped disassembly: EARS/OpenSpec -> MARS 1.0 (606/606 SHA-256 pins) -> adversarial Quint -> Lean 4 (253 theorems) -> moon prove (48/48) -> Jasmin v2026.09.0 DOIT/SCT -> CBMC+Bitwuzla (14,289/14,289) -> Tribble fuzzing (2.79M executions, 0 crashes) -> dual-host dudect (4/4) -> objdump disassembly (0 leaks) -> permanent Warden negative-invariant gates.

  • Jasmin v2026.09.0 & Knowledge Base: Full libs/crypto_jasmin/ integration, primary-source dossier and ontology (docs/jasmin-crypto/), ratified specification (openspec/changes/selune-jasmin-silverfire/, 35 EARS requirements, 38 Lean 4.35.0 theorems with 0 sorry / 0 custom axioms), 8/9 dual-host bit-identical x86-64 .s + pinned p256_point_pub.s exception, 30/30 DOIT+SCT, 26/26 field jasmin-checksafety, and fail-closed verify_arm64_ct_asm.sh with a 4-lane secret-branch negative control.
  • Guarded C11 Vault & SF-01 Hardening: Closed SF-01 with fixed-window retry_idx + 5 RFC 6979 DRBG (MBCRYPTO_RFC6979_MAX_RETRY_IDX = 16), moved all secret buffers and software SHA-256 w[64] schedule into the 768 B mlocked sf_sign_workspace_t (60 KiB <= 64 KiB RLIMIT_MEMLOCK, 0 LLVM-IR alloca [64 x i32]), bound split sign_scalar_ct k slots to (d, gen, curve, digest, r == [k]G.x) with atomic single-use consume, quarantined failed wipe-verify slots, removed ScopedSecretBuffer::read_bytes, added C/MoonBit wipe_byte_array, redacted scalar Show/Debug, sealed AdditionChain, and closed a Clang 23 neg_mask select-to-branch leak via mbcrypto_ct_value_barrier_u64.
  • 4/4 Dual-Host dudect Constant-Time Receipts (Admitted, 0 objdump leaks across 114 CT symbols / 31 zero-branch kernels, identical 46-file CT source digest bf99c7a7, ./bin/selune check-ct-digest PASS 4/4):
    • ARM64 idle: max |t| = 3.194 | ARM64 16-worker saturated: max |t| = 4.284 (29.76M sigs @ 285k/s)
    • x86-64 idle: max |t| = 3.607 | x86-64 16-worker saturated: max |t| = 3.430 (17.20M sigs @ 339k/s)
    • Leaky positive controls caught at |t| = 89–2,105. Covers all 28 shipped CT primitives / 31 timed workloads including shipped native accelerator, forced fallback, and natural rejection.
  • Durable Custody & Adversarial Quint Models: O(1) binary wal.v3 with immediate monotonic external rollback-anchor sync prior to signature release and verified ftruncate + fdatasync + fstat rollback or fencing, backed by adversarial Quint specs (spec/CustodyWalAnchor.qnt, spec/VaultSplitFfiProtocol.qnt) whose positive models pass 2,000×25 simulation (0 violations) and whose buggy negative controls refute in 1–4 steps.
  • CBMC + Bitwuzla & Tribble Continuous Fuzzing: ./bin/selune formal cbmc (2,536/2,536 C11 TCB + 11,753/11,753 ARM64 Jasmin/C11 = 14,289/14,289 properties proved, 0 unwind fails, negative control refuted) and ./bin/selune tribble (5/5 targets, 3/3 negative controls caught, 2,797,493 executions, 0 crashes).
  • Permanent Warden Negative-Invariant Gates & Full Assurance Ledger: Added WD-API-001 (negative .mbti secret-escape and mutable-global gate), WD-ERR-001 (error-discard and Makefile loop gate), WD-ARENA-001 (vault stack-escape gate), and expanded WD-DRIFT-001 (4/4 mirrors including coordinator.mbt saturation guard <-> proofs/crypto/crypto_kernels.mbt). Full gate pass: 1,174/1,174 native tests across 11 suites, 48/48 dual-prelude moon prove, 215 + 38 Lean 4 theorems, 7/7 MARS 1.0 ledgers (606/606 pins, 0 stale), 36/36 CAG, verify-site 0 errors (17 pages, 39 assets, including interactive 3D elliptic-curve exposition), wiki lint PASS, and warden gate PASS (0 Critical, 0 High, 0 repo findings).
  • Cardano Conway Ledger, Plutus V3 CEK & Platform Artifacts: Shipped pure-MoonBit Plutus V3 UPLC CEK machine, BIP-340 Schnorr and secp256k1 ecrecover, full codebase knowledge graph (graphify-out/), unified v0.3.1 platform ontology (docs/architecture/selune-ontology.json), and primary-source Diátaxis documentation corpus (docs/diataxis-framework/).

Locked Final RC Receipt Digests (HEAD = c4ebcfdcd08260b26dbcddd4b959fcc9707af88f)

SHA-256 digests and binary hashes for all 6 Final RC receipts (2026-12-02 UTC)
  • openspec/changes/selune-ecdsa/receipts/ecdsa-benchmarks-huginn.json: c1b61acf3453c1b3026904ab0eed553cf511f3a31f0ba971966f56465322a442 (2026-12-02T15:30:32.556Z)
  • openspec/changes/selune-ecdsa/receipts/ecdsa-benchmarks.json: 6d5dc6ce21f252b4b6ed86509d59584f07902ebc85304ca4926d07a91a8f522c (2026-12-02T15:28:28.200Z)
  • openspec/changes/selune-ecdsa/receipts/silverfire-mt-huginn-scaling.json: d97fb2e2d0498881cd5ba649e014e3354e3b3af06fc6b6e8ef364256f0f2561a (selune_mcw: 0c0cc2708a00c78c8cd7a501705baa6e2afff9ad0d4caf15ab159af827cdd75a)
  • openspec/changes/selune-ecdsa/receipts/silverfire-mt-muninn-scaling.json: 645a140c619004b65423e51e6077f3ef744481d5fede6852a3943293252f1715 (selune_mcw: b53d5e0504412b737fcde4c8bab54475fac8cc591252797c34874a0d12b398ac)
  • bindings/wasm-signer/dist/playwright_e2e_receipt.json: 268fc6104288a781b9bc49a6b61e0037c8294b19f0100207bdbad2d37932b410 (2026-12-02T15:37:40.536Z)
  • openspec/changes/selune-wasm-signing/receipts/browserstack-wasm-signing-benchmarks.json (2026-12-02T15:35:00.776Z):
    • WASM (231,718 B): f487f9590a2e9937022cd06f5ead7331c9a6128c829462abcf6236633d3bc1c4
    • Worker bundle: 9555b74d3dbec5e3a5635f4d022e34280769c4cf70e12d47c00deb003dd3a093
  • Cross-arch silverfire_mt table_digest: aa6136bdb71780b929b5fb09c986d51adabd2d8150a8aac9d8aa8329c570d974
  • Cross-engine self-check checksum (9/9 engines, both hosts): 1305428567
  • 4/4 Dual-host dudect CT source digest: bf99c7a7

Honest Evidence Ceilings & Explicitly Open Boundaries

Selûne preserves non-upgradable evidence boundaries explicitly:

  • Jasmin x86-64 & ARMv8-A hybrid ceiling (L2): Bounded at L2 until kernel-checked functional equivalence proofs bind exact code_pin hashes.
  • Deferred to v0.3.2 (explicitly open, 0 release credit): JasminSf018 (JASMIN-SF-018 scoped linked-relational BINSEC/Rel verification over linked ELFs), JasminSf002 p256_point_pub.s cross-host byte exception (8/9 dual-host bit-identical + host-pinned p256_point_pub.s), and full-loop jasmin-checksafety beyond the 26 field + P-256 RCB slices.
  • Permanently open NonUpgradableEvidence (upgradable = false): JasminSf023 (hardware A4 DOITM/DIT silicon guarantees), JasminSf024 (unlinked Coq CT preservation), and WasmSign030/047/048/049 (browser/JS host JIT, sandbox, and OS memory-zeroization boundaries).

Community Acknowledgements

Thank you to @brunjlar (PR #7, fractional SIM observation windows), @SeungheonOh (PR #8, Cardano UPLC CEK machine & BIP-340 Schnorr), and @cryptod1 for reviews and contributions integrated into v0.3.1.