9 Commits

Author SHA1 Message Date
Robin Salen
319fc6a2f2
Improve SHA2 precompile (#1480)
* Improve SHA2 precompile

* Review

* Add removed global label
2024-01-22 13:02:38 +00:00
Robin Salen
606732a8b6
Free up some CPU cycles (#1457)
* Free up some cycles

* Comments
2024-01-11 08:58:09 +00:00
Nicholas Ward
a076da7541 fix 2023-05-08 16:32:36 -07:00
Nicholas Ward
24159886eb precompile memory context change 2023-05-08 16:23:14 -07:00
wborgeaud
b721236eb3
Precompiles interface (#983)
* Start

* Some sha256 test passing

* precompiles folder

* Files reorg

* Progress

* Minor

* Start of sha2 interface

* All call opcodes

* ecrec

* rip160

* Fix copy_returndata_to_mem

* id

* bn_add

* bn_mul

* TODOs for snarkv and blake2

* Comments

* Use charge_gas_const when possible

* Minor

* Minor

* Minor

* PR feedback
2023-04-14 12:20:28 +02:00
Nicholas Ward
9534762179 div instead of shr 2023-03-16 11:56:39 -07:00
Nicholas Ward
29df451d9d optimizations 2023-03-14 15:52:52 -07:00
Dmitry Vagner
da7a8879c4 make hash functions take a location pointer 2023-02-16 16:59:51 -08:00
Dmitry Vagner
53ab0ada11 remove blake storage 2023-02-15 19:11:22 -08:00