Skip to content

Instantly share code, notes, and snippets.

@portlandhodl
Last active March 8, 2025 12:22
Show Gist options
  • Save portlandhodl/ad594779d1b3dc978495beab712311dd to your computer and use it in GitHub Desktop.
Save portlandhodl/ad594779d1b3dc978495beab712311dd to your computer and use it in GitHub Desktop.
Sparse Merkle Trees

Notes about Sparse Merkle Trees

  • The primary issue with a SMT is the calculation between each leaf and their intersection with other leaves.
  • A tree with a single sparse element is very easy as you just can add that element in an calculate the path up the tree.
  • When you have multiple keys then you need to make sure when you calculate the path up the tree you need to consider the impact other leaves have on your path to get to the root.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment