On chain state compression using Crypthographic Accumulators #13
paluh
started this conversation in
Marlowe Improvements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The memory limitations of the Marlowe Validator on-chain present considerable challenges due to memory constraints (for example we have the capacity to store merely five distinct native tokens in the state). While we must also take into account the computational load, theoretically, state compression through providing a subset of the state could reduce the datum decoding volume.
I propose we explore various strategies and potentially conduct performance analyses for each. Brian has suggested that, alongside Merkle Trees, we could experiment with other Cryptographic Accumulator techniques.
Let's briefly examine the properties of Merkle Trees in this context:
Alternatively, we could consider working with the full potential state tree from the outset. The complete structure of the tree — encompassing all possible choices, variables, and accounts — is known and could be fully initialized (all set to
0
orNothing
?).This approach might minimize the proof size needed for updates and insertions, although it could add more overhead to initial operations when the tree is small. However, an added benefit of this methodology is that we can achieve perfect balance within the tree.
Beta Was this translation helpful? Give feedback.
All reactions