Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ligero PCS #125

Closed
wants to merge 132 commits into from
Closed

Add Ligero PCS #125

wants to merge 132 commits into from

Commits on Jun 27, 2023

  1. Configuration menu
    Copy the full SHA
    a4c6e2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f6becd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa94494 View commit details
    Browse the repository at this point in the history
  4. testing commit signing

    Antonio95 committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    d0f00b1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    848933b View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    543c8e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a39289d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d82c4e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c20d28d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    008151b View commit details
    Browse the repository at this point in the history
  6. Merge pull request #2 from mmagician/pcs-constructor

    PCS Ligero constructor
    mmagician authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    ffea25d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    91184aa View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2941c8a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4ef9adb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b008983 View commit details
    Browse the repository at this point in the history
  11. changed reed-solomon code to receive fft_domain from caller; continue…

    …d work on commit function
    Antonio95 committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    c13cf28 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    dd7e28f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    bb3b6bb View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1d6c30b View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Configuration menu
    Copy the full SHA
    129cbfb View commit details
    Browse the repository at this point in the history
  2. deleted settings.json file

    Antonio95 committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    7183c1e View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1 from Antonio95/commit

    Commit
    mmagician authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    903eaaf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5d349b6 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #4 from mmagician/commitment-with-transcript

    Commitment with transcript
    mmagician authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    edae282 View commit details
    Browse the repository at this point in the history
  6. remove merge artifacts

    mmagician committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    fe63bc2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d58c366 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    aa913ef View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    243be3d View commit details
    Browse the repository at this point in the history
  10. hashing columns - WIP

    mmagician committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    4c7631d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    348c88e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0b7ee4a View commit details
    Browse the repository at this point in the history
  13. temp remove hash params

    mmagician committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    5a309e2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    89286fe View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    0775b24 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    74c7c54 View commit details
    Browse the repository at this point in the history
  17. commit function compiling

    Antonio95 committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    092a22a View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. (self) PR review

    mmagician committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    64ff2d3 View commit details
    Browse the repository at this point in the history
  2. bring back lints

    mmagician committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    958d9cc View commit details
    Browse the repository at this point in the history
  3. Merge pull request #5 from HungryCatsStudio/fix-commit

    Fix the Commit functionality for Ligero PCS
    Antonio95 authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    0febe90 View commit details
    Browse the repository at this point in the history
  4. fmt tests

    mmagician committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    f8bed31 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1b00e25 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a2addcc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d48145f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dde6fb2 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #6 from HungryCatsStudio/ligero-tests

    Add first tests for setup of LigeroPCS
    Antonio95 authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    16ed2be View commit details
    Browse the repository at this point in the history
  10. Place params under VerifierKey

    replace local path with HungryCatsStudio fork of crypto-primitives
    mmagician committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    7e0b9b2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    48e5598 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2108414 View commit details
    Browse the repository at this point in the history
  13. open implemented

    Antonio95 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    5bdee22 View commit details
    Browse the repository at this point in the history
  14. Merge pull request #7 from HungryCatsStudio/params-trait-bounds

    Params trait bounds
    Antonio95 authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    90e3e53 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9987c05 View commit details
    Browse the repository at this point in the history
  16. compiling

    Antonio95 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    f896801 View commit details
    Browse the repository at this point in the history
  17. Merge pull request #8 from HungryCatsStudio/open_and_check

    Open and check
    mmagician authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    1d8acb9 View commit details
    Browse the repository at this point in the history
  18. changed access to params

    Antonio95 authored and Diego de Estrada committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    d1a6b6c View commit details
    Browse the repository at this point in the history
  19. Merge pull request #9 from HungryCatsStudio/open_and_check2

    changed access to params
    mmagician authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    f2d52b5 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    614d586 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5dcad7b View commit details
    Browse the repository at this point in the history
  22. Merge pull request #10 from HungryCatsStudio/fix-matrix-from-flat

    Fix matrix `new_from_flat`
    Antonio95 authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    500a67b View commit details
    Browse the repository at this point in the history
  23. compiling

    Antonio95 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    48df32f View commit details
    Browse the repository at this point in the history
  24. added data_structures.rs

    Antonio95 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    0dfed86 View commit details
    Browse the repository at this point in the history
  25. Merge pull request #11 from HungryCatsStudio/refactor_prover

    Refactor prover
    mmagician authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    e8acdf6 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    983f7e8 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7e01340 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2023

  1. Configuration menu
    Copy the full SHA
    3da40e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00a1557 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa19604 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d1c7b62 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3614b6c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    da676d3 View commit details
    Browse the repository at this point in the history
  7. Swap the test field for one with large FFT domain

    and add an extra test for a small-FFT-domain-field
    mmagician committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    62071b3 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Merge pull request #12 from HungryCatsStudio/functionality-testing

    Fix & refactor Reed-Solomon; Functionality testing
    Antonio95 authored Jul 3, 2023
    Configuration menu
    Copy the full SHA
    dce829c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43d7fbb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    136a639 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #14 from HungryCatsStudio/mt-construction-fix

    Merkle Tree construction fix
    Antonio95 authored Jul 3, 2023
    Configuration menu
    Copy the full SHA
    af8b464 View commit details
    Browse the repository at this point in the history
  5. Test open & check methods

    mmagician committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    b8ca9c8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a6db789 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9c91d72 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    27320ec View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    16ecc28 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d8d7132 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #15 from HungryCatsStudio/test-open-and-check

    Opening and check fixes
    Antonio95 authored Jul 3, 2023
    Configuration menu
    Copy the full SHA
    26c0103 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    99fa3a7 View commit details
    Browse the repository at this point in the history
  13. changed test bound

    Antonio95 committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    e74a522 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e31deb4 View commit details
    Browse the repository at this point in the history
  15. Update .gitignore

    mmagician authored Jul 3, 2023
    Configuration menu
    Copy the full SHA
    0bd313a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6e9c2dd View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Configuration menu
    Copy the full SHA
    f510f54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff3b27b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b36322 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4b1647f View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. Merge pull request #18 from HungryCatsStudio/functionality_new_rs

    Main functionality test passing with the new RS
    Antonio95 authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    8adde17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    660cd1d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c5d056 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    817f566 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5f2f56 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    990782d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f9dbf3 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

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

Commits on Jul 14, 2023

  1. Merge pull request #20 from HungryCatsStudio/pin-deps

    pin dependencies to original upstreams, not forks
    Antonio95 authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    2bc0620 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9df98d2 View commit details
    Browse the repository at this point in the history
  3. formatted utils.rs

    Antonio95 committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    ba00e0a View commit details
    Browse the repository at this point in the history
  4. Merge pull request #19 from HungryCatsStudio/several_polynomials

    Several polynomials
    mmagician authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    2c5d814 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. change the git dependency to rely on our own fork

    we dont yet want to have `AdditiveGroup` and other algebra changes post-0.4 in
    mmagician committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    4105abe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1af21e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Well-formedness checks refactor (#24)

    * Add a flag for keeping the wellformedness check
    
    * Rename generics to capital case
    
    * WIP: Refactor many checks and data structure
    
    * Add the calculation of t
    
    * Make the calculation more precise
    
    * Fix some error handling and move around stuff
    
    * Adjust transcript order, make clippy a bit happy, and fix tests
    
    * fix: the loop over merkle paths should use a different index j
    
    * refactor: well-formedness check only contains `v`
    
    since we're using the same indices as for the opening proof, we can re-use these
    
    * remove outdated TODOs; update comments
    
    old todo
    
    fix some more commetns
    
    * rename `well_formedness_proof` var to `well_formedness`
    
    * replace panic by error handling
    
    * avoid vector size reallocation
    
    * replace into_iter with iter
    
    * Undo the change in `src/lib.rs`
    
    ---------
    
    Co-authored-by: Hossein Moghaddas <autquis@gmail.com>
    mmagician and autquis authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    ef6be5d View commit details
    Browse the repository at this point in the history
  2. Change encoding function (#25)

    * reed_solomon -> linear_encode; no longer doing iFFT + FFT; just FFT now
    
    * revert naming `linear_encode` -> `reed_solomon`
    
    * Update src/ligero/tests.rs
    mmagician authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    1e3afee View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Configuration menu
    Copy the full SHA
    01a0f94 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c61ec6d View commit details
    Browse the repository at this point in the history
  3. Delete extra TODO

    autquis committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    498613d View commit details
    Browse the repository at this point in the history
  4. Add sanity check for t

    autquis committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    d5b7e6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e1e5a1f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bce0670 View commit details
    Browse the repository at this point in the history
  7. Add test for calculate_t

    autquis committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    7abaffb View commit details
    Browse the repository at this point in the history
  8. Merge pull request #23 from HungryCatsStudio/what-t

    Add the computation of `t`
    mmagician authored Sep 26, 2023
    Configuration menu
    Copy the full SHA
    7360276 View commit details
    Browse the repository at this point in the history
  9. Cleanup (#26)

    * checking RHO_INV >=1 is too verbose of a sanity check
    
    * default params are not used
    
    * Revert "checking RHO_INV >=1 is too verbose of a sanity check"
    
    This reverts commit fdc1f71.
    
    * rename `InvalidSecurityGuarantee` -> `InvalidParameters`; add string err
    
    * replace assert with error handling in setup
    
    ensure that RHO_INV > 1
    
    * fix error formatting
    
    * fix: swap the condidtion on RHO_INV
    
    * Improve error description
    
    Co-authored-by: Hossein Moghaddas <autquis@gmail.com>
    
    ---------
    
    Co-authored-by: Hossein Moghaddas <autquis@gmail.com>
    mmagician and autquis authored Sep 26, 2023
    Configuration menu
    Copy the full SHA
    61d58fe View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Implementation of setup and trim + Update tests + Clean up (#28)

    * Change `setup`
    
    * Make `setup` and `trim` compatible to arkworks, use a default setup, remove some generics
    
    Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
    
    * Fix tests
    
    Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
    
    * Add `Metadate` and clean up
    
    ---------
    
    Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
    autquis and mmagician authored Sep 28, 2023
    Configuration menu
    Copy the full SHA
    356ecd8 View commit details
    Browse the repository at this point in the history
  2. Add Breakdown and Ligero to README.md (#27)

    * Add Breakdown and Ligero to `README.md`
    
    * Fix newline
    
    * Apply suggestions from code review
    
    remove brakedown reference for now
    
    ---------
    
    Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
    autquis and mmagician authored Sep 28, 2023
    Configuration menu
    Copy the full SHA
    d450683 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Configuration menu
    Copy the full SHA
    2b72639 View commit details
    Browse the repository at this point in the history
  2. Bring in remaining tests from the test suite (#29)

    * make test util functions cfg-gated
    
    * Add constant_poly_test
    
    * Add quadratic tests
    
    * Add linear poly tests
    
    * Add all other tests from test suite
    
    * fix check_combinations
    
    fix combinations
    
    remove prints
    
    remove old comments
    
    * remove deprecated deny
    
    * change the signature of rand_point to allow other fields
    
    * remove tests superseded by automated test suite
    
    * Create a `new` method for `LigeroPCUniversalParams`
    
    * document `LigeroPCUniversalParams`
    mmagician authored Sep 29, 2023
    Configuration menu
    Copy the full SHA
    845989d View commit details
    Browse the repository at this point in the history
  3. Fix todo(); Move Ligero implementation to data_structures; minor …

    …clippy lints (#31)
    
    * replace direct construction by `new` call to LigeroPCUniversalParams
    
    * some clippy fixes
    
    * replace `todo()`s by `default()` or `()`
    
    * move implementation of `Ligero` to data_structures
    
    * Add more info to `Ligero` struct incl. link and no-hiding note
    mmagician authored Sep 29, 2023
    Configuration menu
    Copy the full SHA
    332fde5 View commit details
    Browse the repository at this point in the history
  4. Copy from jellyfish and patch dependency (#32)

    * Copy from `jellyfish` and patch dependency
    
    * Use `borrow` from `ark-std`
    
    * Remove default from `PhantomData`
    autquis authored Sep 29, 2023
    Configuration menu
    Copy the full SHA
    9e40efb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6ce243b View commit details
    Browse the repository at this point in the history
  6. no-std compat (#33)

    * use Vec/ToString from ark_std
    
    * rayon should only be enabled under the parallel feature
    
    * for no-std targets, enable Float arithmetic from num_traits
    mmagician authored Sep 29, 2023
    Configuration menu
    Copy the full SHA
    840ee52 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6e2c946 View commit details
    Browse the repository at this point in the history
  8. post merge fmt

    mmagician committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    46a6a85 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a46ea25 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. remove Debug bounds

    mmagician committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    61f3c64 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44d2004 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    780f525 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    46a28c8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d15d4e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6f3c663 View commit details
    Browse the repository at this point in the history