Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions sweep_layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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(
{
Expand Down