872 Commits

Author SHA1 Message Date
Nicholas Ward
446c3b7140 fix 2023-05-08 16:02:43 -07:00
Nicholas Ward
b566dbd735 refactor memory/core.asm to make code more reusable 2023-05-08 15:52:35 -07:00
wborgeaud
f11921c9ad
Fix doubly_encode_rlp_scalar in the 0 case. (#1022) 2023-05-04 17:51:27 +02:00
Nicholas Ward
4380395e8b
Merge pull request #1017 from mir-protocol/expmod-fix
expmod edge case fix
2023-05-02 10:46:39 -07:00
Nicholas Ward
91067e58ba expmod edge case fix 2023-05-02 10:45:43 -07:00
Daniel Lubarov
b159c9e791
Merge pull request #1013 from topos-network/overflow-check
Address overflow-related TODOs in ASM code.
2023-05-02 10:22:53 -07:00
Nicholas Ward
f0df03f65a
Merge pull request #1009 from mir-protocol/expmod_precompile
expmod precompile calling code
2023-05-02 08:14:19 -07:00
Nicholas Ward
099e7946e7 fixes 2023-05-02 08:13:49 -07:00
Robin Salen
17a7c57d03
Change add_or_fault macro 2023-05-02 08:22:00 +02:00
Linda Guiga
1f39c555a9
Address overflow-related TODOs in ASM code, using a macro add_or_fault. This is related to a4ea0965d7 2023-05-02 08:22:00 +02:00
Nicholas Ward
f3de2afc3b remove test file 2023-05-01 15:34:23 -07:00
Nicholas Ward
cae5a2cf21 fix 2023-05-01 15:25:45 -07:00
Nicholas Ward
050c2e657e fix: calculate gas properly 2023-05-01 13:03:48 -07:00
Nicholas Ward
ade5b433ae fix 2023-05-01 10:58:56 -07:00
Nicholas Ward
08e6c3521c addressed comments 2023-05-01 08:09:13 -07:00
Nicholas Ward
037c2f5ee8 addressed comments 2023-05-01 08:04:14 -07:00
Nicholas Ward
debe65f91c addressed comments 2023-05-01 00:32:03 -07:00
Dima V
ae21ef8fd1
Merge pull request #997 from mir-protocol/pairing-test
Restructure BN254 Pairing Precompile to fit EVM Test Spec
2023-04-28 22:11:56 -07:00
Dmitry Vagner
84f17699be comments 2023-04-28 21:57:10 -07:00
Dmitry Vagner
f9aad433fe neutral input 2023-04-28 18:23:08 -07:00
Nicholas Ward
397d5953f4 fix 2023-04-28 13:42:41 -07:00
Nicholas Ward
031fe6ed90 Merge branch 'main' into expmod_precompile 2023-04-28 11:39:47 -07:00
Nicholas Ward
9e4056e24f cleanup 2023-04-28 11:39:03 -07:00
Nicholas Ward
badbf01021 store and unpack at end 2023-04-28 11:01:51 -07:00
Nicholas Ward
998cd8ab77 addressed comments 2023-04-28 10:37:37 -07:00
Nicholas Ward
a638ebe0ce fix 2023-04-28 08:30:02 -07:00
Nicholas Ward
7ede443e80
Merge pull request #1006 from mir-protocol/blake_precompile
Blake2_f function and precompile call
2023-04-28 08:29:06 -07:00
Nicholas Ward
dc076df5b6 addressed comments 2023-04-28 08:28:52 -07:00
Nicholas Ward
96742f2946 addressed comments 2023-04-28 07:05:54 -07:00
Nicholas Ward
e40b9edb5b addressed comments 2023-04-28 06:59:17 -07:00
Dmitry Vagner
9b18b3aeec fix unit 2023-04-27 18:24:08 -07:00
wborgeaud
4ad8520e34
SNARKV precompile (#1010)
* Serialize impls, and use in Fibonacci example

* seralizing

* cleanup

* don't serialize challenges

* deterministic build function

* cleanup

* cleanup

* cleanup

* fix

* cleanup

* fmt

* rename

* Unpacking and storing inputs

* Finish snarkv interface

* Failing test

* move serialization to separate example

* Imaginary part in front of real

* serialize ProofChallenges

* remove build_without_randomizing (no longer needed)

* fix

* Fix kernel peak

* Fix stack comments

* Minor

* SSTORE gas (#1007)

* Update storage access list and sload

* Add noop for sys_sstore

* Comments

* Fix access list test

* PR feedback

---------

Co-authored-by: Nicholas Ward <npward@berkeley.edu>
2023-04-27 19:21:26 +02:00
Dmitry Vagner
b28e3e0db7 minor 2023-04-27 07:45:35 -07:00
wborgeaud
ab721fa340
SSTORE gas (#1007)
* Update storage access list and sload

* Add noop for sys_sstore

* Comments

* Fix access list test
2023-04-27 15:42:09 +02:00
Dmitry Vagner
89122a3d73 it works 2023-04-26 15:29:53 -07:00
Dmitry Vagner
4c235e5a4b Merge branch 'main' of github.com:mir-protocol/plonky2 into pairing-test 2023-04-26 14:16:08 -07:00
Nicholas Ward
b4e06271df fix 2023-04-26 11:14:29 -07:00
Dmitry Vagner
d31c60a045 clean up 2023-04-26 09:57:36 -07:00
Nicholas Ward
1e9db2924f fixes 2023-04-26 09:46:29 -07:00
wborgeaud
67a3edb2f1
Precompiles exist (#1008)
* Precompiles exist

* Fix
2023-04-26 06:26:41 +02:00
Nicholas Ward
0d98e4b8ee formatting 2023-04-25 17:47:19 -07:00
Nicholas Ward
dc91554da2 expmod precompile 2023-04-25 17:19:44 -07:00
Nicholas Ward
3b7ad771e0 cleanup 2023-04-25 15:00:17 -07:00
Nicholas Ward
46d9cee09d charge gas! 2023-04-25 14:58:43 -07:00
Nicholas Ward
9460acc196 rename blake2b 2023-04-25 14:55:44 -07:00
Nicholas Ward
ce033410c3 fix 2023-04-25 14:52:55 -07:00
Nicholas Ward
a41cf018ef fixed blake tests 2023-04-25 14:16:54 -07:00
Nicholas Ward
11a03c5ebc
Merge pull request #1005 from mir-protocol/precompile-fixes
Minor optimizations to precompile call code
2023-04-24 22:21:09 -07:00
Nicholas Ward
5dc4491681 Merge branch 'main' into blake_precompile 2023-04-24 16:59:17 -07:00
Nicholas Ward
454e0add24 fixed blake2_f, and testing 2023-04-24 16:58:57 -07:00