Skip to content

Commit

Permalink
runtime/storage/mkvs: Support v1 proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Feb 15, 2024
1 parent 57647a5 commit a085a27
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 88 deletions.
10 changes: 10 additions & 0 deletions .changelog/5531.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Support for Proofs Without Implicit Internal Leaf Nodes

Previously, internal MKVS nodes in proofs included full leaf nodes implicitly.
With this update, leaf nodes are explicitly added as regular child nodes
within the proof structure. This modification optimizes proof sizes by
avoiding inclusion of potentially large values associated with leaf nodes that
are not directly relevant to the proof's target node.

This change maintains backward compatibility. Existing proofs are unmarshaled
as version 0, while version 1 proofs adopt the new scheme.
Loading

0 comments on commit a085a27

Please sign in to comment.