Hamish Ivey-Law
6a7728798b
Fix negative quotient issue ( #1140 )
...
* First draft.
* Separate out mulmod constraint poly from the rest.
* Offset quot limbs when doing SUB* operations.
* Refactor constr_poly calculation.
* Clippy.
* Constrain the hi part of quot to be 0 or 1 for SUB* ops.
* Simplify storage and handling of negative quotient limbs.
* Remove unnecessary constant; move another to main file.
* Move constant back; cast properly.
2023-07-21 20:59:27 +10:00
Robin Salen
7ba051f4c7
Fix failing byte constraint ( #1135 )
2023-07-18 02:45:07 +10:00
Nicholas Ward
152e395903
Merge pull request #1137 from topos-protocol/fix-kernel-panic
...
Change context used in `bignum_modmul`
2023-07-17 08:41:27 -07:00
Linda Guiga
1af1afcff4
Change current context in bignum_modmul
2023-07-17 10:17:52 +01:00
Robin Salen
f116c855aa
Fix risk of division by zero
2023-07-16 15:01:36 -04:00
Nicholas Ward
4893a86001
Merge pull request #1116 from topos-protocol/recursive_ranges
...
Remove need for matching start ranges
2023-07-14 09:32:24 -07:00
Linda Guiga
7437fe2b51
Fill modulus in cpu row for Fp254 operations. ( #1122 )
2023-07-14 06:53:06 +10:00
Nicholas Ward
94f880b67b
Merge pull request #1104 from topos-protocol/serializer
...
Make serializer work with slices
2023-07-11 10:34:23 -07:00
Jacqueline Nabaglo
dca50adfac
Merge pull request #1119 from mir-protocol/jacqui/topos-protocol/stack_len_bounds_aux_error
...
Fix `generate_exception` (#1115 replacement)
2023-07-10 15:37:21 -04:00
Jacqueline Nabaglo
6b493d6faa
Remove redundant case (error in kernel mode)
2023-07-08 16:52:26 -04:00
Jacqueline Nabaglo
1664ab4408
Merge pull request #1112 from topos-protocol/fix-generate-jump
...
Fix jump operation generation
2023-07-08 16:38:35 -04:00
Linda Guiga
5bff02a198
Fix generate_set_context
2023-07-07 15:37:47 +01:00
Robin Salen
0a59aa6e6f
Remove need for matching start ranges
2023-07-06 16:26:00 -04:00
Hamy Ratoanina
325cd2f7c1
Compute stack_len_bounds_aux correctly in generate_error
2023-07-06 16:24:45 -04:00
Linda Guiga
224064bf05
Fix jump operation generation
2023-07-06 13:57:41 -04:00
Robin Salen
d960bfe2a3
Make serializer work with slices instead of Vec
2023-06-24 18:32:02 -04:00
Nicholas Ward
897e2e99e7
fix
2023-06-21 12:32:39 -07:00
Nicholas Ward
54cf74ac2d
addressed comments
2023-06-21 09:03:43 -07:00
Nicholas Ward
975e9a49fa
fmt
2023-06-20 12:51:55 -07:00
Nicholas Ward
8eeca9be95
undo dummy change
2023-06-20 12:48:38 -07:00
Nicholas Ward
2fa43121d7
dummy change to get tests to rerun :P
2023-06-20 12:48:21 -07:00
Nicholas Ward
9bb6da049e
fmt
2023-06-20 12:30:37 -07:00
Nicholas Ward
afd4bd0406
cleanup
2023-06-20 12:02:45 -07:00
Nicholas Ward
bc53ddc56f
fix
2023-06-20 12:01:24 -07:00
Nicholas Ward
264192aa05
modexp uses current_general
2023-06-20 11:56:21 -07:00
Nicholas Ward
39d2237dee
Merge pull request #1101 from mir-protocol/blake_fix
...
Blake fix
2023-06-16 07:30:47 -07:00
wborgeaud
ef8ea64dda
Minor
2023-06-16 09:35:00 +02:00
wborgeaud
7559bb2f5b
Minor
2023-06-16 09:31:16 +02:00
wborgeaud
83ee5fd646
Minor
2023-06-16 09:30:01 +02:00
wborgeaud
c8ff80caa2
Fix blake2 fix
2023-06-16 09:23:53 +02:00
Nicholas Ward
7ca5676808
fix
2023-06-15 21:57:22 -07:00
Nicholas Ward
246eb8d80c
blake fix
2023-06-15 21:51:09 -07:00
Jacqueline Nabaglo
23bc390a83
Merge pull request #1095 from mir-protocol/jacqui/push0-opcode
...
PUSH0
2023-06-14 22:06:18 -07:00
Jacqueline Nabaglo
3eb41edb69
William comments
2023-06-14 20:47:15 -07:00
wborgeaud
564864eac3
Remove parts of the copy-on-write logic ( #1096 )
...
* Remove parts of the copy-on-write logic
* Minor
2023-06-14 14:46:49 +02:00
Jacqueline Nabaglo
cedeff5219
PUSH0
2023-06-13 13:29:30 -07:00
Jacqueline Nabaglo
9cc353607e
Merge pull request #1082 from mir-protocol/jacqui/simplify-stack-bounds
...
Simplify stack bounds constraints
2023-06-13 10:59:33 -07:00
Jacqueline Nabaglo
8ded9e8455
Minor: William comment
2023-06-13 10:39:11 -07:00
wborgeaud
ec07255f01
Fix halt loop ( #1094 )
2023-06-13 10:42:37 +02:00
wborgeaud
01efa0130e
Fix account touch in calls ( #1093 )
2023-06-13 09:57:34 +02:00
wborgeaud
ba705703a5
Use current context for pairing memory ( #1091 )
2023-06-12 22:55:38 +02:00
wborgeaud
9838a367ae
Check call depth in create ( #1089 )
2023-06-08 12:59:38 +02:00
wborgeaud
e51c4d0d21
Set returndata size to 0 in some create errors ( #1088 )
2023-06-08 12:09:28 +02:00
wborgeaud
d37c545591
Increment call depth in precompiles ( #1087 )
2023-06-08 12:08:28 +02:00
wborgeaud
56e7ad0037
Fix LOG* gas ( #1086 )
2023-06-08 12:08:15 +02:00
wborgeaud
68b15ea503
Fix CALLDATALOAD for large offsets ( #1085 )
2023-06-08 12:08:02 +02:00
wborgeaud
f852984e07
Implement PREVRANDAO as if it was DIFFICULTY ( #1084 )
2023-06-08 12:07:48 +02:00
Jacqueline Nabaglo
6920992e01
Simplify stack bounds constraints
2023-06-07 18:27:23 -07:00
Jacqueline Nabaglo
0117541909
Merge pull request #1071 from mir-protocol/jacqui/bad-opcode-witness-generation
...
Error handling
2023-06-07 15:49:07 -07:00
Jacqueline Nabaglo
ae290dbf11
William PR comments
2023-06-07 14:58:59 -07:00