Skip to content

fix(prove): trim non-subtree keys from both ends of the sorted key slice - #33

Merged
buffrr merged 2 commits into
spacesprotocol:mainfrom
buffrr:tree-prove-fix
Aug 3, 2026
Merged

fix(prove): trim non-subtree keys from both ends of the sorted key slice#33
buffrr merged 2 commits into
spacesprotocol:mainfrom
buffrr:tree-prove-fix

Conversation

@buffrr

@buffrr buffrr commented Aug 3, 2026

Copy link
Copy Markdown
Member

Keys diverging from an internal node's prefix with a 0 bit sort before the prefix-matching band, not after it. The single partition_point assumed matching keys came first, so any diverge-left key made it return 0 and silently drop every matching key from the proof. The returned subtree could not replay inserts for the very keys it proved.

Keys diverging from an internal node's prefix with a 0 bit sort before
the prefix-matching band, not after it. The single partition_point
assumed matching keys came first, so any diverge-left key made it
return 0 and silently drop every matching key from the proof — the
returned subtree could not replay inserts for the very keys it proved.
@buffrr
buffrr merged commit fcc9bf2 into spacesprotocol:main Aug 3, 2026
8 checks passed
@buffrr
buffrr deleted the tree-prove-fix branch August 3, 2026 16:28
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

Successfully merging this pull request may close these issues.

1 participant