Skip to content

Commit 1365116

Browse files
committed
feat: remove P256 from EC_ADD/MUL/PAIRING/BLS precompile processing
1 parent 77b8727 commit 1365116

File tree

3 files changed

+111
-119
lines changed

3 files changed

+111
-119
lines changed

hub/osaka/constraints/instruction-handling/call/precompiles/ec_add_mul_pairing_bls_and_p256_verify/FKTR.lisp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@
2020
;; Shorthands ;;
2121
;;;;;;;;;;;;;;;;
2222

23-
(defun (precompile-processing---ECADD_MUL_PAIRING_BLS_and_P256_VERIFY---FKTR-case) (* PEEK_AT_SCENARIO
24-
(+ scenario/PRC_ECADD
25-
scenario/PRC_ECMUL
26-
scenario/PRC_ECPAIRING
27-
(scenario-shorthand---PRC---common-BLS-address-bit-sum)
28-
scenario/PRC_P256_VERIFY
29-
)
30-
scenario/PRC_FAILURE_KNOWN_TO_RAM))
31-
32-
(defconstraint precompile-processing---ECADD_MUL_PAIRING_BLS_and_P256_VERIFY---FKTR-requires-extracting-non-empty-call-data
33-
(:guard (precompile-processing---ECADD_MUL_PAIRING_BLS_and_P256_VERIFY---FKTR-case))
23+
(defun (precompile-processing---ECADD-ECMUL-ECPAIRING-and-BLS---FKTR-case) (* PEEK_AT_SCENARIO
24+
(+ scenario/PRC_ECADD
25+
scenario/PRC_ECMUL
26+
scenario/PRC_ECPAIRING
27+
(scenario-shorthand---PRC---common-BLS-address-bit-sum)
28+
)
29+
scenario/PRC_FAILURE_KNOWN_TO_RAM))
30+
31+
(defconstraint precompile-processing---ECADD-ECMUL-ECPAIRING-and-BLS---FKTR-requires-extracting-non-empty-call-data
32+
(:guard (precompile-processing---ECADD-ECMUL-ECPAIRING-and-BLS---FKTR-case))
3433
(eq! (precompile-processing---common---OOB-extract-call-data)
3534
1))
3635

hub/osaka/constraints/instruction-handling/call/precompiles/ec_add_mul_pairing_bls_and_p256_verify/constants.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
(defconst
1313
;;
14-
precompile-processing---ECADD_MUL_PAIRING_BLS_and_P256_VERIFY---misc-row-offset---full-return-data-transfer 2
15-
precompile-processing---ECADD_MUL_PAIRING_BLS_and_P256_VERIFY---misc-row-offset---partial-return-data-copy 3
16-
precompile-processing---ECADD_MUL_PAIRING_BLS_and_P256_VERIFY---context-row-offset---updating-caller-context 4
14+
precompile-processing---ECADD-ECMUL-ECPAIRING-and-BLS---misc-row-offset---full-return-data-transfer 2
15+
precompile-processing---ECADD-ECMUL-ECPAIRING-and-BLS---misc-row-offset---partial-return-data-copy 3
16+
precompile-processing---ECADD-ECMUL-ECPAIRING-and-BLS---context-row-offset---updating-caller-context 4
1717
)

0 commit comments

Comments
 (0)