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

Implement toDot Method and File Storing Mechanism for VerkleTrie #1

Open
neotheprogramist opened this issue Nov 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@neotheprogramist
Copy link
Member

Description

This issue aims to enhance the functionality of VerkleTrie in two significant ways:

  1. Implementing toDot Method for String Representation:

    • Develop a method toDot for VerkleTrie to create a human-readable string representation in Dot format. This feature will aid in debugging and visualizing the VerkleTrie structure.
    • The toDot method should include:
      • BranchNodes with commitment attribute.
      • StemNodes with stem, leftCommitment, and rightCommitment attributes.
      • LeafNodes with suffix and value attributes.
      • A location attribute for each node to uniquely name them.
  2. Implementing File Storing Mechanism for toDot Output:

    • Extend the toDot functionality to include the capability of saving its output into a file. This addition will facilitate users in saving the VerkleTrie graphical representation for further analysis or sharing.
    • The file storing feature should:
      • Allow efficient and user-friendly saving of the Dot format output.
      • Handle errors related to write permissions or file system issues.
      • Optionally let users specify the file path and name for storing the output.

Expected Behavior

  • toDot returns the tree representation in Dot format with specified attributes for different node types.
  • Users can save the Dot format output of VerkleTrie into a file, enhancing the method's usability for debugging and analysis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants