Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

feat/#1665 Precompile ECRECOVER #1720

Merged
merged 28 commits into from
Feb 19, 2024
Merged

feat/#1665 Precompile ECRECOVER #1720

merged 28 commits into from
Feb 19, 2024

Commits on Jan 26, 2024

  1. Precompile ECRECOVER (#529)

    * feat: preliminary work
    
    * wip
    
    * finish assignment to ecrecover
    
    * fix: input length may be different than call data length (for precompiles)
    
    * fix: input bytes to ecrecover
    
    * minor edits
    
    * Fix ecrecover input rlc comparison (right-padding zeroes) (#585)
    
    * potential approach (pow of rand lookup)
    
    * add lookup for pow of rand
    
    * fix: right pad only if needed
    
    * fix: missing constraint on padded_rlc
    
    * constrain pow of rand table
    
    * Update step.rs
    
    * fix: sig_v sanity check (remove assertions to allow garbage input)
    
    * fix: calldata length == 0 handled
    
    * chore: renaming precompile_* and parallel iter for tests
    
    ---------
    
    Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
    
    Precompile ECRECOVER (#529)
    
    * feat: preliminary work
    
    * wip
    
    * finish assignment to ecrecover
    
    * fix: input length may be different than call data length (for precompiles)
    
    * fix: input bytes to ecrecover
    
    * minor edits
    
    * Fix ecrecover input rlc comparison (right-padding zeroes) (#585)
    
    * potential approach (pow of rand lookup)
    
    * add lookup for pow of rand
    
    * fix: right pad only if needed
    
    * fix: missing constraint on padded_rlc
    
    * constrain pow of rand table
    
    * Update step.rs
    
    * fix: sig_v sanity check (remove assertions to allow garbage input)
    
    * fix: calldata length == 0 handled
    
    * chore: renaming precompile_* and parallel iter for tests
    
    ---------
    
    Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
    2 people authored and KimiWu123 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    63c5439 View commit details
    Browse the repository at this point in the history
  2. ecrecover soundness (address not recovered) (#930)

    * wip: preliminary work sig circuit/lookp
    
    * feat: handle panics and edge cases in sig circuit
    
    * fix: handle v not boolean
    
    * fix: fq modulus not assigned and bus-mapping handle overflowing r/s
    
    * fix: sig_v handle invalid values (lookup) and is_valid dev_load fix
    
    * refactor (review comment)
    
    * fix: no sig table lookup for invalid sig_v
    
    * remove wrong test case (assertion fail)
    roynalnaruto authored and KimiWu123 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    ffca5b9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c0d6123 View commit details
    Browse the repository at this point in the history
  4. feat: compiling error free

    KimiWu123 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    b76fd2f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2e72daf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5851481 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    831556d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ce4d6a6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    187768e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ea52925 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    21d2d19 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b88a8af View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2e2625c View commit details
    Browse the repository at this point in the history
  14. fix error due to rebase

    KimiWu123 committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    d0d3c4a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    772ae18 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Configuration menu
    Copy the full SHA
    3dc90c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09dbea8 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2024

  1. chore: fix clippy warnings

    KimiWu123 committed Jan 28, 2024
    Configuration menu
    Copy the full SHA
    0e6ebbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1cd2ac4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e308fc5 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Configuration menu
    Copy the full SHA
    fc1065c View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. chore: some leftovers

    KimiWu123 committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    4f09a7d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    359ad7e View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Configuration menu
    Copy the full SHA
    aed502b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7af89c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d5070f View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2024

  1. Configuration menu
    Copy the full SHA
    d6bc6c1 View commit details
    Browse the repository at this point in the history
  2. refactor to WordLoHi

    KimiWu123 committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    a9858ef View commit details
    Browse the repository at this point in the history