Iterative rather than recursive traversal

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Quiet
Tech stack
cpp
Domain
cryptography

Research direction

Start by locating the recursive traversal operations in the C++ Merkle tree library and determine which inputs could exhaust the stack. Map the traversal behavior before changing it; done means the relevant operations use iterative traversal while preserving existing tree creation and manipulation behavior.

Written by the indexing model from the issue text.

Description

Back of the napkin math says that we might overflow the stack on reasonable inputs (albeit bigger than anything we've seen in practise).
So it is reasonable that we should transform traversal operations from the recursive style to an iterative style.

Dominant language
C++
Stars
91
Forks
24
Avg merge
2d 20h
Merged PRs (30d)
9

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.