Verkle State Migration Discussion

Aug 10, 2023

Introduction

On a recent Verkle Implementers Call, we discussed a potential alternative strategy for migrating state from the Merkle Patricia Tree (MPT) to Verkle. The purpose of this document is to aid the discussion by providing an overview of the two proposals now being discussed, their shared characteristics, and (most importantly) the pros/cons of the unique aspects of each approach.

Prior to going through the pros/cons of each approach, let’s start with what the two approaches have in common.

Shared characteristics of the two proposals


Proposal #1: Merkle Tree is read-only

For more details, see this writeup from Pari and Guillaume, and this EthCC talk from Guillaume

Summary

Pros of this approach

Cons of this approach


Proposal #2: Writeable Merkle Tree

Summary

Pros of this approach

Cons of this approach


Conclusion

The decision on this boils down to choosing between a simpler sync (Proposal #1) or a more clear gas model (Proposal #2). The idea behind Proposal #2 has previously been suggested for binary trees, but was judged too complex with regards to to sync, leading to the simplified “current” proposal. Identifying which of these problems has the most viable solution will likely sway the decision in favor of either method.