Commit Graph

9 Commits

Author SHA1 Message Date
Pratyush Mishra
4020fbc226 Add convenience impls for common types (#137)
* Work

* Tweak

* Fmt

* Work

* Format + typo fixes

* `no-std` fix
2024-01-27 09:58:26 +01:00
Pratyush Mishra
d011859416 Refactor UInt{8,16,64,128} into one struct UInt (#121) 2024-01-03 05:23:54 -08:00
Michele Orrù
6d64f379a2 Fix with latest arkworks version. (#95)
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2022-08-01 10:15:17 -07:00
Weikeng Chen
b7874406ec Upgrade to work with latest ark-ff (#90)
Co-authored-by: Sun <huachuang20@gmail.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
2022-03-07 14:25:06 -08:00
Tom Shen
986ab20ac0 Minor Bug Fix (#87) 2021-12-22 18:13:42 -08:00
Tom Shen
1f56c46edc Bug Fix in domain and API changes (#86)
* Bug Fix in `domain` and API changes

Currently, `domain.query_position_to_coset` is not consistent native code in `ark-ldt`. This commit does the following changes:
* change `query_position_to_coset` to `query_position_to_coset_elements`, and make the return result consistent with native code
* add function `query_position_to_coset` to just return generator and offset instead of coset elements. This is useful when evaluating vanishing poly.

* minor bug fix

* update CHANGELOG

* `query_position_to_coset_elements` use `query_position_to_coset`

* Update CHANGELOG.md

Co-authored-by: Weikeng Chen <w.k@berkeley.edu>
2021-12-07 11:47:05 -08:00
Pratyush Mishra
b6e7e94521 Introduce mul_by_inverse_unchecked, and use it (#75) 2021-07-15 16:39:34 -07:00
Tom Shen
c3a99ac3f6 Let Radix2Domain::offset to be FpVar instead of F (#65)
* restructure code

* done

* add changelog

* add the changelog to mark this as a breaking change

* add the CHANGELOG

* tweak

* add `EqGadget`

* rename generate_interpolate_cache to generate_interpolation_cache

* address the comment

Co-authored-by: weikeng <w.k@berkeley.edu>
2021-06-06 12:56:30 -07:00
Tom Shen
989f579ca8 Add Univariate Domain, Vanishing Polynomial, Lagrange Interpolation (#53)
* add domain and vp

* add lagrange interpolator

* add query position to coset

* nostd

* add test assertion

* fmt

* fix test

* add Add and Sub arithmetic

* add Add and Sub arithmetic

* add unit test for mul/div arithmetic

* add more doc for clarification

* add test for native interpolate

* add test for vp constraints

* fix lagrange interpolate bug

* comment cleanup + fmt

* add CHANGELOG

* fix a compile error

* Update CHANGELOG.md

* Update CHANGELOG.md

* fix comment

* doc fix

* doc update 2

* doc update 3

* pub lagrange_interpolator

* doc fix

* rename `EvaluationDomain` to `Radix2Domain`

* tweak

* tweak

Co-authored-by: weikeng <w.k@berkeley.edu>
2021-05-10 14:12:28 -05:00