-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TSMT serialization #235
Conversation
rpo: added conversions for digest
RPX hash function
mmr: publicly export MmrDelta
mmr: support arbitrary from/to delta updates
…r-versions mmr: support proofs with older forest versions
Bump winterfell release to .7
…-forest mmr: support accumulator of older forest versions
When a prefix is pushed to the depth 64, the entry list includes only the values different than ZERO. This is required, since each block represents a 2^192 values. The bug was in the proof membership code, that failed to handle the case of a key that was not in the list, because the depth is 64 and the value was not set.
…ic-data simple_smt: reduce serialized size, use static hashes of the empty word
mmr: add into_parts for the peaks
Implement `IntoIterator` for `RpoDigest`
feat: memoize Signature polynomial decoding
…ndex-bug simplesmt: bugfix, index must be validated before modifying the tree
…duplicate-check simplesmt: simplify duplicate check
…#228) * Change InvalidNumEntries error * max computation * remove length check * remove ExactSizeIterator constraint * fix InvalidNumEntries error condition * 2_usize
…value-depth-64 bugfix: TSMT failed to verify empty word for depth 64.
serde: for MerklePath, ValuePath, and RootPath
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
In what context do we need this serialization? Originally, it was meant to be used only for mock data purposes. |
I can't speak for why it was added in the first place, but I implemented this to be able to serialize an However with 0xPolygonMiden/miden-base#369 we no longer need this change (for the purpose of |
Actually maybe it would be better to import the serialization strategy from that PR - see 0xPolygonMiden/miden-base#369 (comment) |
Closing this as we re removing TSMT. |
The current serde serialization of
NodeIndex
makes serializing data structures that contain aHashMap<NodeIndex, ...>
fail with the error:"key must be a string"
(more details here).This implements a workaround:
NodeIndex
is serialized as"depth-value"
.