Skip to content

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

@rootulp

Description

@rootulp

Prerequisite

  1. Move nmt wrapper to 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions