Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate if square size can be added as a parameter to TreeConstructorFn #298

Open
rootulp opened this issue Feb 13, 2024 · 0 comments
Open

Comments

@rootulp
Copy link
Collaborator

rootulp commented Feb 13, 2024

Prerequisite

  1. Moving nmt wrapper to the rsmt2d  #248

Context

rsmt2d/tree.go

Lines 9 to 11 in 76d7440

// TreeConstructorFn creates a fresh Tree instance to be used as the Merkle tree
// inside of rsmt2d.
type TreeConstructorFn = func(axis Axis, index uint) Tree
lacks a parameter for square size so multiple tree constructor functions must be registered (one per square size).

Proposal

Explore if it's possible to add a square size param to the tree constructor function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant