481 Commits

Author SHA1 Message Date
wborgeaud
b97ec3bda1 New clippy lint 2022-10-25 10:50:40 +02:00
wborgeaud
77d5c625cd Minor 2022-10-20 19:36:28 +02:00
wborgeaud
0a800f8261 Minor 2022-10-20 19:29:35 +02:00
wborgeaud
fab3fe77c0 Minor 2022-10-20 19:28:24 +02:00
wborgeaud
9982d79999 Add msize 2022-10-20 19:23:01 +02:00
wborgeaud
71ed3c43ac Fix fix interpreter 2022-10-20 14:32:28 +02:00
wborgeaud
61b6b16106 Fix interpreter 2022-10-20 14:06:48 +02:00
Daniel Lubarov
a2edff4670 Small storage fixes 2022-10-17 23:35:34 -07:00
Daniel Lubarov
9639ff22dc MPT storage logic 2022-10-17 22:46:48 -07:00
Daniel Lubarov
f125786d9b More directories for MPT logic 2022-10-16 22:55:09 -07:00
Daniel Lubarov
7f366cdace Treat storage tries as sub-tries of the state trie
I.e. have leaves in the state trie point to the root of a storage trie
2022-10-16 20:26:37 -07:00
Daniel Lubarov
a8e30b0ca0 Switch a few uses of current-context memory to kernel memory
E.g. make sure the RLP segment is only used with the kernel context. Using current-context memory would also work, we just need to be consistent.

For transaction parsing etc, the context should be 0 anyway, but explicitly referring to kernel memory feels more idiomatic to me.
2022-10-15 08:45:01 -07:00
Daniel Lubarov
ecce5be9e3 MPT format tweaks
Don't need value lengths in memory. Branches with null values recognized as value_ptr = null.
2022-10-14 18:09:43 -07:00
Jacqueline Nabaglo
ec3391f9c4
Add Fp254 ops to the CPU table (#779)
* Add Fp254 ops to the CPU table

* Add forgotten file
2022-10-13 14:02:19 -07:00
BGluth
cb2e69a2c9 Updated eth_trie_utils to 0.2.0 2022-10-11 20:57:46 -06:00
Daniel Lubarov
581fcce0b0
Merge pull request #777 from mir-protocol/mpt_insert_7
Fix branch hashing bug
2022-10-11 16:10:44 -07:00
Daniel Lubarov
299aabf860 Fix branch hashing bug 2022-10-11 15:56:23 -07:00
Daniel Lubarov
f4c0337af7 Interpreter feature to configure debug offsets 2022-10-11 08:47:06 -07:00
Daniel Lubarov
caf928b11e MPT logic for inserts into extension nodes 2022-10-10 18:33:45 -07:00
Daniel Lubarov
50002df8e4 MPT insert into leaf, overlapping keys case 2022-10-10 10:42:02 -07:00
Daniel Lubarov
cad0473e1d More MPT insert logic 2022-10-10 09:40:28 -07:00
Daniel Lubarov
33dba3a23d Insertion optimization for leaf case 2022-10-09 20:18:16 -07:00
Daniel Lubarov
4a055b3a76 MPT insert logic, part 2 2022-10-09 11:32:01 -07:00
Daniel Lubarov
6bb1ad94e8 MPT insert logic, part 1 2022-10-08 22:27:57 -07:00
Daniel Lubarov
443a070003 Clippy fix 2022-10-08 14:09:18 -07:00
Daniel Lubarov
8ee7265863 Tweak MPT value storage 2022-10-08 13:51:52 -07:00
Daniel Lubarov
817156cd47 Begin MPT insert 2022-10-08 13:23:00 -07:00
Daniel Lubarov
e6b5e3656f Some more uses of %increment, %decrement 2022-10-07 12:03:37 -07:00
Daniel Lubarov
f8c104033c Hash MPT extension nodes 2022-10-06 20:50:32 -07:00
Daniel Lubarov
ed2aac3af3 MPT fixes 2022-10-06 16:28:52 -07:00
Daniel Lubarov
0424fe680d mload_packing 2022-10-06 14:27:36 -07:00
Daniel Lubarov
f2cb42bbe8 MPT logic to hash branch nodes 2022-10-05 20:46:49 -07:00
Daniel Lubarov
0c9847abf3 Rework MPT hashing to support inlining <32 byte children 2022-10-05 15:23:06 -07:00
Dmitry Vagner
7c7084a8d3 clean up and format 2022-10-05 12:11:10 -07:00
Dmitry Vagner
0afb9b0cf4 fmt 2022-10-05 10:10:45 -07:00
Dmitry Vagner
9ebbc033bc fix padlength issue 2022-10-05 09:45:38 -07:00
Daniel Lubarov
d8bf30150f
Merge pull request #756 from mir-protocol/rlp_fixes
RLP related fixes
2022-10-04 15:34:38 -07:00
Daniel Lubarov
0ccb340e40 RLP related fixes 2022-10-04 15:18:31 -07:00
Dima V
dd6c5a0d1a
Merge pull request #640 from mir-protocol/ripeMD
RipeMD
2022-10-03 15:49:04 -07:00
Dmitry Vagner
95128cbbf5 done 2022-10-03 15:32:47 -07:00
Dmitry Vagner
53014b732f almost done 2022-10-03 15:30:17 -07:00
Nicholas Ward
d48f63142f
Merge pull request #754 from mir-protocol/sha2_inline_consts
Inline some SHA2 constants
2022-10-03 15:20:34 -07:00
Dmitry Vagner
1475cddb3d rearrange 2022-10-03 15:01:59 -07:00
Daniel Lubarov
c03773bab1 Inline some SHA2 constants
I think `%mload_kernel_code_u32` is good when we need to do random access, but since the indices are constant here, let's just hardcode them like this.

This reduces the assembled size of `compression.asm` from 1827 to 1454 bytes. I think there's still a lot more we could do to shrink it, though it's not that important.
2022-10-03 14:59:33 -07:00
Dmitry Vagner
54885fefa0 fix merge problem 2022-10-03 14:57:04 -07:00
Daniel Lubarov
66c28e953d Unroll num_bytes
Since it's in some code paths where speed is critical.
2022-10-03 14:42:11 -07:00
Dmitry Vagner
6e5fe43c7e delete duplicates 2022-10-03 14:31:56 -07:00
Daniel Lubarov
295bd60ee7
Merge pull request #752 from mir-protocol/hash_kernel
Fill in `hash_kernel`
2022-10-03 14:28:46 -07:00
Dmitry Vagner
d42250d677 merge 2022-10-03 14:25:33 -07:00
Daniel Lubarov
5e32241543 Fill in hash_kernel 2022-10-03 14:12:05 -07:00