diff --git a/crates/zk/prover/README.md b/crates/zk/prover/README.md index e682ad0194..e453b74acf 100644 --- a/crates/zk/prover/README.md +++ b/crates/zk/prover/README.md @@ -159,6 +159,10 @@ guards and C6 key validation. The ignored `local_small_c7_request_proves_ten_shares_with_the_canonical_committee` test also lives here; it requires `E3_CUSTOM_BB` and `E3_TEST_ARTIFACTS_ROOT` for prepared insecure-64/small artifacts. +`tests/node_pipeline_trbfv_measure.rs` measures one node's production proving pipeline. Every test +returns at once unless `MEASURE_RUN=1` (and its own flag) is set; once requested, it fails unless +the active artifacts match. It asserts no results. Its module documentation gives the command. + ### Real-proof tests Prepare pinned nargo and bb, jq, pnpm/workspace dependencies, and circuits/VKs matching the active diff --git a/crates/zk/prover/tests/common/node_pipeline_measure.rs b/crates/zk/prover/tests/common/node_pipeline_measure.rs new file mode 100644 index 0000000000..0190ebdd7f --- /dev/null +++ b/crates/zk/prover/tests/common/node_pipeline_measure.rs @@ -0,0 +1,846 @@ +// SPDX-License-Identifier: LGPL-3.0-only +// +// This file is provided WITHOUT ANY WARRANTY; +// without even the implied warranty of MERCHANTABILITY +// or FITNESS FOR A PARTICULAR PURPOSE. + +//! Support for the per-node trBFV DKG pipeline measurement (`node_pipeline_trbfv_measure.rs`). +//! +//! Output lines: +//! - `skipping: `: a flag is not set; the test passes without measuring. With the flags set, +//! active circuit artifacts for another preset or committee fail the test. +//! `measure: preset= committee= n= h= t= party=` opens a +//! measurement. +//! - `MEASURE