diff --git a/sweep_layouts.py b/sweep_layouts.py index 159ea49..f95093f 100644 --- a/sweep_layouts.py +++ b/sweep_layouts.py @@ -19,6 +19,12 @@ def parse_args() -> argparse.Namespace: choices=["aztec", "zama", "soundness"], help="Commitment style to use.", ) + parser.add_argument( + "--header-only", + action="store_true", + help="Print only the table header and exit.", + ) + parser.add_argument( "--json-summary", action="store_true", @@ -156,6 +162,13 @@ def main() -> None: proof_branch = data.get("proofBranchLength") per_proof_bytes = data.get("perProofBytes") total_commitment_bytes = data.get("totalCommitmentBytes") + if args.header_only: + header = ( + f"{'LEAVES':>10} {'FANOUT':>6} {'HEIGHT':>6} " + f"{'NODES':>12} {'PROOF BYTES':>12} {'TOTAL COMM BYTES':>16}" + ) + print(header) + return rows.append( {