Align optimized SMT appendix with hashed-zero algorithm and fix example encoding - #319
Conversation
|
One thing that might be useful to avoid some confusion is specifying that the concatenation operator ( I can imagine a scenario where the word "concatenation" is interpreted as "string concatenation" instead of "byte array concatenation". Also, the SMT Proof Verification algorithm description and pseudocode currently do not work with "non-updates" (i.e., with a proof of non-inclusion). It's a simple fix; make the concatenation of hashed-nonce and update hash optional (while maintaining the outer hash - very important). The Still reviewing the changes. This is just a thought that came up while going over it. |
parasyte
left a comment
There was a problem hiding this comment.
Looks great! I found only one minor suggestion.
The new diagram reads better (IMHO) with every level of the tree covered and each node receiving a meaningful identifier. I'll create a separate PR for fixing the unrelated SMT Proof Verification algorithm issue I noticed.
Thanks for the prompt review! Addressed here:
|
46cbf43 to
9eaa5dc
Compare
parasyte
left a comment
There was a problem hiding this comment.
The + operator is also used in the Optimized SMT chapter. But this works for me.
|
I also approve, looks great! Like Jay mentioned though, maybe you can also add the "Throughout this section, |
7009890 to
e002f1d
Compare
60a124e to
3f70bd9
Compare
This was discussed in #319 (comment) Adds support for non-inclusion proofs to the algorithm description and pseudocode. Fixes some minor syntactic errors (missing semicolons) and slightly improves readability with whitespace. The `cachedZero` pseudocode was also updated to use `n` as the index variable name to better match the longer pseudocode. And today I learned that mdBook's `smart-punctuation` option allows rendering em dashes with triple-hyphens. https://rust-lang.github.io/mdBook/format/markdown.html#smart-punctuation Em dashes looked better than parentheses and commas.
Closes #317
Closes #318