zkvm: execute block - #2554
zkvm: execute block#2554goodlyrottenapple wants to merge 9 commits into
Conversation
30cdea9 to
d60c041
Compare
| // along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| // Ordered-trie root for the block-body binding. Self-contained on purpose: | ||
| // the node computes these roots through its database machinery, which the |
There was a problem hiding this comment.
[P2] Hand-rolled MPT/RLP consensus code has no unit test
ordered_trie_root reimplements hex-prefix encoding, the embedded-node (<32-byte) rule, and RLP integer keys from scratch, and its correctness argument in this comment is only the end-to-end mainnet comparison — which the x86 runner exercises manually, not under ctest. A subtle bug (e.g. in the 128+-item key encoding, or the embedded-child threshold, which only bites with small receipts) would surface as an unexplained root mismatch far from this code. A small host-side gtest checking known vectors — empty trie → NULL_ROOT, a single item, and a >128-item trie against a canonical mainnet transactions root — would pin this down cheaply; per REVIEW.md § Testing, new source should carry a matching *_test.cpp.
d60c041 to
6056ba9
Compare
6312712 to
1a3921e
Compare
b9e2e61 to
f59d52b
Compare
1a3921e to
709f3bb
Compare
f59d52b to
aa9cb43
Compare
709f3bb to
f2cd515
Compare
aa9cb43 to
4c5722e
Compare
8052b2f to
d12b6c0
Compare
9740495 to
40b069f
Compare
The decoder currently loops while the payload is no less than 32 bytes, meaning it will silently drop any "trailing" bytes instead of throwing a decoding error Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…ansactions buffer for views to undecoded transactions Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The guest CMakeLists builds two ways: a bare-metal RISC-V static archive (cross-compile mode, driven by build-support) that adapts the host monad_execution/monad_precompiles OBJECT libs via source/library drops, and a host x86 test-runner executable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rawals root, receipts root
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> (cherry picked from commit 8176ab9)
d12b6c0 to
4efc3c7
Compare
40b069f to
2fc347f
Compare
4efc3c7 to
d0dbe7b
Compare
No description provided.