Recent

↑ ↓ to move ↵ to open esc to close

Offline Seed Entropy, GF(256) Shamir & Multisig Quorum Lab

Physical dice and coin entropy bias auditor, Rijndael GF(2^8) Shamir secret splitter, and M-of-N multisig versus MPC fault simulator.

OFFLINE SANDBOX (connect-src 'none') Zero network uploads | Client-side deterministic execution
Tool Verification Scope & Threat Model
The DT.gl Seed Entropy and Multisig Quorum Lab audits physical dice and coin randomness using Shannon entropy and Pearson chi-square bias statistics, demonstrates polynomial Shamir Secret Sharing over finite field GF(256) via Lagrange interpolation, and models M-of-N hardware multisig versus threshold MPC survival under coercion, fire loss, and firmware compromise.

Verification Scope & Offline Cryptography Boundary

This lab verifies physical dice bias, finite-field GF(2^8) Shamir polynomial math (0x11B), and custody fault trees entirely inside volatile browser memory under connect-src 'none'. Rejection sampling (discard >= 252) eliminates modulo bias when simulating base-6 dice from crypto.getRandomValues.

SLIP-39 Shamir Single-Key Convergence vs Multi-Vendor 2-of-3 MultisigSHAMIR GF(2^8) RECOVERY CONVERGENCE VS HETEROGENEOUS NATIVE MULTISIGMODEL A: SLIP-39 SHAMIR (k-of-n BACKUP)Share 1: f(1)Share 2: f(2)Share 3 (Bank)Lagrange f(0) Rebuilds 1 Master KeySingle-Device RAM & Single-Vendor Risk0 bits leaked at k-1 shares, but signing trustsone vendor Secure Element & screen.MODEL B: 2-OF-3 MULTI-VENDOR MULTISIGKey A: ColdcardSigns PSBT #1Key B: Safe 7TROPIC01 PSBT #2Key C: JadeOffsite VaultOn-Chain P2WSH / Taproot MiniscriptKeys NEVER Co-Exist on Any DeviceDefeats single-vendor bugs & coercionMandatory: back up BIP-380 Descriptor.

Entropy Math & GF(256) Shamir Specifications

Combinatorial Capacity: C = N * log2(b) bits
  - Base-2 Coin Flip : log2(2) = 1.000000 bits/flip -> 256 flips = 256.0 bits
  - Base-6 Casino Die: log2(6) = 2.584963 bits/roll ->  99 rolls = 255.91 bits (use 100+ -> 258.5 bits)

Chi-Square Uniformity Cutoffs (p = 0.01 critical warning threshold):
  - Dice (df = 5): chi^2 > 15.086 flags mechanical die weight bias or patterned human typing
  - Coin (df = 1): chi^2 > 6.635 flags coin weight or entry bias

Shamir Field Polynomials over GF(2^8) = F_2[x] / (x^8 + x^4 + x^3 + x + 1) [0x11B]:
  - Add/Sub: a XOR b | Inverse: a^-1 = a^254 | Lagrange x=0 recovers S[r] identically at >= k shares
  • Signing-Time Nonce Defense (Anti-Exfil): Entropy conditioning does not stop compromised firmware from leaking seeds via biased ECDSA/Schnorr nonces (Dark Skippy class). Prefer devices implementing host-committed Pay-to-Contract Anti-Exfil (Jade, BitBox02) so neither host nor hardware signer unilaterally picks R_final.

Custody Architecture Trade-Off Matrix

ArchitectureLoss ToleranceSilicon DiversityCoercion & Metadata Overhead
1-of-1 HW + Passphrase0 device fault toleranceNone (1 vendor SE trusted 100%)Decoy wallet only; passphrase needs >=60-80 bits against GPU brute-force
SLIP-39 2-of-3 ShamirSurvives 1 lost shareNone (reconstructs 1 key on 1 signer)Resists single-site theft if split offsite; zero descriptor needed
2-of-3 Multi-Vendor MultisigSurvives 1 lost keyMax (Coldcard + Safe 7 + Jade)Mandatory: archive complete BIP-380 output descriptor alongside every seed!
2-of-2 / 2-of-3 MPC-TSSVendor recovery kit dependentOften coupled to mobile + cloud enclaveZero on-chain script overhead; weak if phone biometrics + SMS reset co-signer

Frequently Verified Technical Questions

How many 6-sided casino dice rolls are mathematically required for a 24-word BIP-39 seed?

Each fair 6-sided die roll contributes log2(6), or approximately 2.58496 bits of raw combinatorial entropy. Reaching full 256-bit cryptographic security for a 24-word BIP-39 mnemonic requires a minimum of 99 independent fair rolls (255.91 bits), with 100 rolls recommended (258.50 bits) before SHA-256 conditioning.

Primary Reference: NIST SP 800-90B Entropy Sources

Why does Shamir Secret Sharing (SLIP-39) still leave a single point of failure compared to native multisig?

Shamir Secret Sharing eliminates single-backup physical loss during storage, because k-of-n polynomial shares must be combined via Lagrange interpolation. However, at transaction signing time those shares reconstruct a single master private key in one device's memory, leaving full exposure to a compromised host UI or single-vendor firmware flaw.

Primary Reference: SLIP-0039 Shamir Backup Specification

Why must rejection sampling be used when generating synthetic base-6 dice from random bytes?

An 8-bit unsigned byte takes 256 equiprobable values (0 through 255), and 256 is not evenly divisible by 6 (256 equals 42 times 6 plus 4). Computing raw byte modulo 6 overweights outcomes 1 through 4 slightly; discarding byte values 252 through 255 eliminates modulo bias completely.

Primary Reference: NIST SP 800-90A Rev. 1 Random Number Generation

Why is wallet output descriptor backup mandatory alongside seed phrases in Bitcoin multisig?

In a 2-of-3 Bitcoin P2WSH or Taproot Miniscript quorum, knowing two of the three 24-word mnemonics is insufficient to spend funds! Reconstructing the locking script hash and derivation paths requires every participant's extended public key (xpub), master fingerprint, and script template via the BIP-380 output descriptor.

Primary Reference: BIP-380 Output Script Descriptors

Cryptographic & Editorial Revision Ledger

Published: | Last Verified:

  • 2026-11-11: V1 operator manual covering FIPS 180-4 SHA-256 dice conditioning, GF(2^8) 0x11B Shamir polynomial interpolation, Anti-Exfil nonce commitments, and quorum fault modeling.