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 Dot representation of a VerkleTrie #4

Open
thomas-quadratic opened this issue Nov 6, 2023 · 0 comments
Open

Implement Dot representation of a VerkleTrie #4

thomas-quadratic opened this issue Nov 6, 2023 · 0 comments
Assignees

Comments

@thomas-quadratic
Copy link
Member

Description

Currently, there is no humanly readable string representation implemented for VerkleTrie.
However, this could be helpful for debugging for example.
This issue proposes to implement a method toDot, a textual format for graphs used in visualisations and in go-verkle

Expected behavior:
We expect toDot to return the representation of the tree in Dot format.
Nodes should have location as attribute.
BranchNodes should have the commitment as attribute.
SuffixNodes should have stem, leftCommitment and rightCommitment as attributes.
LeafNodes should have suffix and value as attributes.

Location could also be used to uniquely name the nodes.

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

2 participants