FROST council signatures
Purpose
The paper gives the Inspection Council a threshold key K_C, generated by distributed
key generation and used with FROST so that any t of n signers can sign and fewer
cannot. This module is a working demo of that on an existing library, with no
cryptography written here: the Zcash Foundation's FROST (frost-core and
frost-secp256k1-tr, the BIP340/Taproot ciphersuite) compiled to WebAssembly, plus a
typed TypeScript wrapper that runs in Node and in browsers. The group key is used as
K_C in the bond's 2-of-2 leaf (src/bond), the Council signs through the ROAST
coordinator in src/roast, and bitcoind accepts the resulting signatures
(test/regtest). Share refresh (resharing that keeps K_C) is wrapped and tested.
Library and build
| Item | Version |
|---|---|
| frost-core | 3.0.0 (crates.io, published 2026-04-23) |
| frost-secp256k1-tr | 3.0.0 (crates.io, published 2026-04-23) |
| rand_core / rand_chacha | 0.6.4 / 0.3.1 |
| wasm-bindgen (crate and CLI) | 0.2.130 |
| rustc used for the committed build | 1.100.0 |
frost-wasm/ is the Rust crate (src/lib.rs only moves bytes); frost-wasm/build.sh
rebuilds src/frost/wasm/ (frost_bg.wasm, frost.js, frost.d.ts, wasm-bindgen
--target web). The build output is committed, so tests, the site and Vercel need no
Rust. build.sh refuses to run if the wasm-bindgen CLI does not match Cargo.lock.
Audit status (read from the ZF FROST README, 2026-11-27)
The README says NCC Group audited "the v0.6.0 release (corresponding to commit 5fa17ed)"
of frost-core, frost-ed25519, frost-ed448, frost-p256, frost-secp256k1 and
frost-ristretto255, including "key generation (both trusted dealer and DKG) and FROST
signing", and states: "This does not include frost-secp256k1-tr and rerandomized FROST."
The report is linked as
research.nccgroup.com/2023/10/23/public-report-zcash-frost-security-assessment/.
So, precisely: the ciphersuite this demo uses (frost-secp256k1-tr) was not in the
audit's scope, and the frost-core version used here (3.0.0) is later than the audited
0.6.0. frost-secp256k1-tr was added in 2.1.0 (frost-core CHANGELOG; first published on
crates.io on 2025-01-15), after the audit. The README calls the crates "stable and feature complete";
that is the maintainers' statement, not an audit finding. We could not open the NCC
report itself (the link now redirects to a generic index), so nothing here relies on its
contents.
Formats
Every library object crosses the wasm boundary as hex of the library's own canonical
serialization (serialize() / deserialize()): secret shares, key packages, the public
key package, nonces, commitments, signing packages and signature shares. Participants
are identified by the integers 1..n. Maps keyed by participant are JSON objects
({"1": "<hex>", ...}). The group key is returned both as 33-byte SEC1
(groupKey) and as the 32-byte x-only BIP340 key (groupKeyXOnly) that signatures
verify under. Signatures are 64-byte BIP340. Errors come back as
{"error": "...", "culprits": [ids]} and are thrown as FrostError with culprits.
Flow
keygen (one of):
trusted dealer: keygenDealer(t, n, seed) -> shares[i] (secretShare, keyPackage), publicKeyPackage
keyPackageFromSecretShare(secretShare) -- receiver checks its share against the VSS commitment
DKG (paper): dkgPart1(i) -> broadcast package_i
dkgPart2(secret_i, {package_j}) -> per-recipient packages
dkgPart3(secret2_i, {package_j}, {received_j}) -> keyPackage_i, publicKeyPackage
(runDkg runs all three rounds for n simulated signers)
sign (any t signers S, coordinator C):
signer i in S: signRound1(keyPackage_i, seed) -> nonces_i (secret), commitments_i -> C
C: makeSigningPackage({commitments_i}, message) -> signingPackage -> signers
signer i in S: signRound2(signingPackage, nonces_i, keyPackage_i) -> share_i -> C
C: aggregate(signingPackage, {share_i}, publicKeyPackage)
-> 64-byte BIP340 signature valid under groupKeyXOnly
or FrostError naming every signer whose share fails (CheaterDetection::AllCheaters)
C (per share): verifyShare(signingPackage, i, share_i, publicKeyPackage) -> true/false
(frost_core::verify_signature_share; ROAST uses it to mark a signer malicious)
refresh (resharing that keeps K_C; frost_core::keys::refresh):
trusted dealer: refreshDealer(publicKeyPackage, ids, seed) -> zeroShares[i], new publicKeyPackage (same group key)
refreshShare(zeroShare_i, keyPackage_i) -> new keyPackage_i
dealerless: refresh_dkg_part1/2 and refresh_dkg_shares (runRefreshDkg runs them for simulated signers)
Refresh keeps t; it can drop participants (not add them).The plain aggregate applies no Taproot tweak, so signatures verify under the untweaked
x-only group key, which is what a tapscript <P_c> OP_CHECKSIG needs. The library
normalizes the group key to even y internally (BIP340), so odd-y group keys work too.
Randomness
Every randomized call takes a 32-byte seed and runs ChaCha20Rng::from_seed. If the
caller passes no seed, the wrapper draws one from crypto.getRandomValues (the platform
CSPRNG, in Node and browsers), so real use gets OS randomness without getrandom in the
wasm (no crate in the tree depends on it). Fixed seeds exist only to make demos and tests
reproducible. Never reuse a round-1 seed for two signing sessions with the same key
package: the same seed gives the same nonces, and two signatures with the same nonces
on different messages reveal the signer's share. deriveSeed(master, label) and the
demo helpers thresholdSign and runDkg derive per-session seeds from labels and are
for demos only.
Loading (Node, browser, Next.js)
await initFrost() once, then call the functions synchronously.
- Node (22.3+):
initFrost()readswasm/frost_bg.wasmfrom disk throughprocess.getBuiltinModule("node:fs"), so noimport "node:fs"reaches a browser bundle. - Browser:
initFrost()lets the glue fetchnew URL("./wasm/frost_bg.wasm", import.meta.url); webpack 5, Turbopack and Vite emit the.wasmas a static asset from that pattern. - Any environment:
initFrost(source)accepts a URL, a Response, bytes or a compiledWebAssembly.Module.
For the Next.js site: import from @firebreak/protocol/frost/index inside a client
component ("use client") and call await initFrost() in an effect before signing. If a
bundler setup does not emit the asset, copy src/frost/wasm/frost_bg.wasm into
apps/web/public/ and call initFrost("/frost_bg.wasm"). Do not run it in a server
component: nothing on the server needs it, and server bundles rewrite import.meta.url.
Bloc-neutral thresholds
isBlocNeutral(t, n, w) and blocNeutralThresholds(n, w) implement the paper's
w < t <= n - w (no plausible coalition of w signers can forge or deny), which has a
solution exactly when 2w + 1 <= n.
Security properties and the tests that check them
| Property | Test (test/frost/) |
|---|---|
(2,3), (3,5), (5,7): every t-subset signs; @noble/curves schnorr.verify (an independent implementation) accepts under the x-only group key; the library agrees; a different message fails |
frost.test.ts "(t,n): every t-subset ..." |
| Works for both parities of the group key | "signs correctly whatever the parity ..." |
| Reproducible from a seed, distinct across seeds | "is reproducible from a seed ..." |
| t-1 signers cannot complete a signature | "refuses to sign with t-1 participants"; DKG test |
| t-1 honest shares plus a substituted share fail, and the substitute is named | "t-1 honest shares plus a forged share ..." |
| Corrupted signature shares are identified at aggregation, all of them | "identifies every corrupted signature share ..." |
| Every single-byte corruption of a dealer's secret share fails the VSS check | "rejects every single-byte corruption ..." |
| (3,5) DKG: all participants agree on the group key; any 3 sign | "distributed key generation" |
| Loads from a Response (the browser fetch path); refuses calls before loading; default seeds come from the CSPRNG | load.test.ts |
The group key works as K_C in the bond's 2-of-2 leaf and bitcoind accepts it |
test/bond "FROST group key as K_C"; test/regtest (3-of-5 DKG key: notices, slashes from B and N mined) |
| Dealer refresh keeps the group key; new shares sign; a mix of old and new shares fails | refresh.test.ts "trusted-dealer refresh ..." |
| Refresh can remove a participant, whose stale share then signs with nobody | "refresh can remove a participant ..." |
| Dealerless refresh of a DKG key keeps the group key; any 3 new shares sign; stale shares fail | "dealerless (DKG-style) refresh ..." |
| Per-share verification accepts an honest share and rejects a corrupted one | "accepts an honest share and rejects a corrupted one" |
| ROAST: t honest signers succeed despite a malicious and a silent signer | test/roast (see src/roast/SPEC.md) |
| Bloc-neutral rule | "bloc-neutral thresholds" |
Interpretations
- Interpretation: trusted dealer for quick demos, DKG for the council. The paper specifies DKG; the regtest suite uses a 3-of-5 DKG key. The dealer path is kept for the site's interactive demo, and the dealer sees the whole key.
- Interpretation: ROAST lives in
src/roast, a TypeScript coordinator over these rounds that usesverifySharefor cheater identification. No new cryptography. - Resharing condition (operational requirement, not enforceable in code). The paper's
security argument needs that no plausible coalition ever holds
tshares of one sharing. Refresh makes old shares useless only if every holder deletes them: a signer who keeps its old share keeps a vote in the old sharing, andtsuch hoarded shares still sign for the sameK_C(the test "old and new shares do not mix" shows only that shares from different sharings cannot be combined, not that old ones are gone). Code cannot prove deletion. Departing signers must be removed by a refresh that excludes them, and the Council's procedures must ensure that across all sharings ever issued no plausible coalition accumulatestshares of any one of them.
Open questions for the paper authors
- Audit coverage. The Taproot ciphersuite a Bitcoin-settled council needs is outside the only published audit of this library. The paper should not describe the signing stack as audited without qualification.
- Resharing scope. The library's refresh keeps
tand can remove but not add participants; adding a signer or changingtneeds a new DKG and a newK_C, which forces every bond to roll over (bond SPEC, question 8). The paper should say whether resharing may changetandn, and how it ensures old shares are destroyed. - Threshold decryption for whistleblower evidence is a different primitive (threshold encryption) and is not provided by FROST.
ROAST coordinator
Purpose
The paper's Council signs with FROST through ROAST (Ruffing, Ronge, Jin, Schneider-Bensch,
Schroeder, CCS 2022), so that any t honest, responsive signers produce a signature even
while other signers send invalid shares or never answer. This module is the coordinator's
protocol logic in TypeScript over the FROST rounds in src/frost; it adds no cryptography.
A deterministic network simulation (simulateRoast) drives it in tests and in the site.
Formats
- Signer to coordinator:
{ from, commitments, reply? }, wherecommitmentsis a fresh round-1 commitment (hex, library serialization) andreplyis{ session, share }for the session the signer was last asked to sign. Every reply carries the signer's next commitment, as in ROAST. - Coordinator to signer:
{ kind: "sign-request", session, to, commitments }, wherecommitmentsmaps the session'stsigners to the commitments it will sign with. Signers rebuild the signing package from these and the message, so they check what they sign. - Coordinator outputs:
{ kind: "malicious", signer, session }and{ kind: "done", session, signers, signature }(64-byte BIP340).
Flow
R := {} (responsive signers with a fresh commitment), M := {} (malicious)
on message from i (ignored if i is in M, unknown, or a result exists):
if i is in an open session s:
the message must carry a reply for s, else it is ignored
verifyShare(s.package, i, share) fails -> M += i, s fails, emit "malicious" (i never used again)
holds -> s.valid[i] = share
if |s.valid| = t: signature = aggregate(...); check it verifies; emit "done"
R[i] := i's new commitment
if |R| >= t: take t signers from R (lowest ids), remove them from R,
build the signing package, open session s', send sign requestsA session never completes without t shares that each passed verifyShare, and the
aggregate is checked against the group key before it is output. A signer is in at most one
open session; a silent signer leaves its session open forever, which costs nothing because
new sessions start as soon as t other signers are responsive. With at most n - t
faulty signers, at most n - t + 1 sessions start.
Security properties and the tests that check them
| Property | Test (test/roast/roast.test.ts) |
|---|---|
Honest signers produce a valid BIP340 signature (checked with @noble/curves), marking nobody, within n - t + 1 sessions |
"signs when everyone is honest ..." |
n = 5, t = 3, one signer sending invalid shares and one never responding: a valid BIP340 signature over 40 delivery orders; the signed session has exactly t verified shares from honest signers; at most n - t + 1 sessions; once marked, the malicious signer is in no later session |
"with one signer sending invalid shares and one never responding ..." |
With only two honest signers no signature or "done" is ever output, and no session holds t valid shares |
"never outputs a signature without t valid shares ..." |
| A share valid for another signer, or with one bit flipped, marks its sender malicious; later messages from it are ignored | "rejects a forged share, marks its sender, and ignores it afterwards" |
| The Council's signatures in the regtest suite (notices, slashes, including one with a malicious and a silent signer) come from this coordinator and bitcoind accepts them | test/regtest/bond.test.ts |
Interpretations
- Interpretation: session choice. When more than
tsigners are responsive the coordinator takes thetlowest ids. ROAST allows any choice. - Interpretation: one coordinator. ROAST assumes a coordinator that may be unreliable but cannot forge; the paper does not say who runs it. Running several coordinators in parallel (as the ROAST paper suggests for a faulty coordinator) is not built.
- The simulation's delivery order uses a seeded xorshift generator; it never touches keys
or nonces, whose seeds come from
deriveSeed(demo) or the CSPRNG (real use).
Open questions for the paper authors
- Who coordinates, and what if the coordinator withholds? A coordinator can stall signing (for example, delay a slash) without being caught by ROAST. The paper should name the coordinator role and a fallback.
- Nonce storage. Each signer keeps one secret nonce per outstanding commitment; a signer that crashes and restores old state could reuse a nonce and leak its share. Signer implementations need durable, monotonic nonce state.