Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

@kunxian-xia
Copy link

@kunxian-xia kunxian-xia commented Aug 25, 2023

Description

Meant to be a part of #811.

  • ec_add
  • ec_mul
  • ec_pairing
  • modexp

Issue Link

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@roynalnaruto roynalnaruto merged commit f444787 into feat/invalid-inputs-precompile Aug 25, 2023
@roynalnaruto roynalnaruto deleted the feat/invalid-inputs-gas-cost branch August 25, 2023 17:37
lispc added a commit that referenced this pull request Aug 28, 2023
…alid Inputs" and "Insufficient Gas" (#811)

* wip: preliminary work (EcAdd)

* wip: refactoring ecc circuit and ecaddop

* wip: prelim work for EcMul

* wip: ecmul decompose and more tests

* wip: some more changes in EcAdd and EcMul gadgets (evm cir)

* fix: refactor is_zero to avoid enforce < p

* chore: add back traces

* chore: update cargo lock

* chore: refactor AND to AND many

* wip: ecpairing in ecc ciruit

* fix: ecpairing ecc circuit debugged

* feat: invalid len(input) handling in ecpairing gadget

* assignment to ecpairing cells, tests OK

* is_valid todo complete

* minor refactor

* add invalid test for ec add

* chore: clippy fix

* fix: precompile failed (ecXX) through individual gadgets

* Feat: enforce gas_cost for precompiles called with invalid inputs (#827)

* enforce gas_cost for ec_add

* enforce gas_cost for ec_mul

* enforce gas_cost for ec_pairing

* fix: test case generation random G2 coeffs

* chore: refactor unnecessary cell being returned

* enforce gas_cost for modexp

* remove tests for gadget that wont be used

* tests: invalid cases for ecpairing

* fix: input cells (pairing) for RLC

---------

Co-authored-by: Rohit Narurkar <rohit.narurkar@protonmail.com>

* gas costs for ecrecover and identity

* chore: fmt fix

* upgrade halo2-lib

* variadic size tests with valid/invalid inputs

---------

Co-authored-by: kunxian xia <xiakunxian130@gmail.com>
Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants