@@ -428,20 +428,6 @@ ExecutionResult bls12_g1add_execute(const uint8_t* input, size_t input_size, uin
428
428
return {EVMC_SUCCESS, 128 };
429
429
}
430
430
431
- ExecutionResult bls12_g1mul_execute (const uint8_t * input, size_t input_size, uint8_t * output,
432
- [[maybe_unused]] size_t output_size) noexcept
433
- {
434
- if (input_size != 160 )
435
- return {EVMC_PRECOMPILE_FAILURE, 0 };
436
-
437
- assert (output_size == 128 );
438
-
439
- if (!crypto::bls::g1_mul (output, &output[64 ], input, &input[64 ], &input[128 ]))
440
- return {EVMC_PRECOMPILE_FAILURE, 0 };
441
-
442
- return {EVMC_SUCCESS, 128 };
443
- }
444
-
445
431
ExecutionResult bls12_g1msm_execute (const uint8_t * input, size_t input_size, uint8_t * output,
446
432
[[maybe_unused]] size_t output_size) noexcept
447
433
{
@@ -470,20 +456,6 @@ ExecutionResult bls12_g2add_execute(const uint8_t* input, size_t input_size, uin
470
456
return {EVMC_SUCCESS, 256 };
471
457
}
472
458
473
- ExecutionResult bls12_g2mul_execute (const uint8_t * input, size_t input_size, uint8_t * output,
474
- [[maybe_unused]] size_t output_size) noexcept
475
- {
476
- if (input_size != 288 )
477
- return {EVMC_PRECOMPILE_FAILURE, 0 };
478
-
479
- assert (output_size == 256 );
480
-
481
- if (!crypto::bls::g2_mul (output, &output[128 ], input, &input[128 ], &input[256 ]))
482
- return {EVMC_PRECOMPILE_FAILURE, 0 };
483
-
484
- return {EVMC_SUCCESS, 256 };
485
- }
486
-
487
459
ExecutionResult bls12_g2msm_execute (const uint8_t * input, size_t input_size, uint8_t * output,
488
460
[[maybe_unused]] size_t output_size) noexcept
489
461
{
@@ -562,10 +534,8 @@ inline constexpr auto traits = []() noexcept {
562
534
{blake2bf_analyze, blake2bf_execute},
563
535
{point_evaluation_analyze, point_evaluation_execute},
564
536
{bls12_g1add_analyze, bls12_g1add_execute},
565
- {bls12_g1mul_analyze, bls12_g1mul_execute},
566
537
{bls12_g1msm_analyze, bls12_g1msm_execute},
567
538
{bls12_g2add_analyze, bls12_g2add_execute},
568
- {bls12_g2mul_analyze, bls12_g2mul_execute},
569
539
{bls12_g2msm_analyze, bls12_g2msm_execute},
570
540
{bls12_pairing_check_analyze, bls12_pairing_check_execute},
571
541
{bls12_map_fp_to_g1_analyze, bls12_map_fp_to_g1_execute},
0 commit comments