Skip to content

Add --subtree-height option to compute subtree node counts #177

@carpalsgrabby

Description

@carpalsgrabby

Summary

Users exploring state commitment trees often want to compute properties of a subtree at height k (e.g., for partial commitments). The script currently only computes full-tree stats.

Proposal

  • Add a flag: --subtree-height N
  • Compute:
    • nodes in subtree
    • leaves in subtree
    • internal nodes in subtree

Benefit

Helps model sharded or incremental commitment structures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions