Jack Grigg
3329b4de85
Migrate to ff 0.12, group 0.12
...
MSRV is now 1.56.0.
2022-05-04 23:22:15 +00:00
Jack Grigg
94d6a8be03
pasta_curves 0.3.1
2022-04-20 11:15:43 +00:00
ebfull
a80ed3e8aa
Merge pull request #30 from dot-asm/repr-c
...
Add 'repr-c' feature to facilitate FFI.
2022-04-19 08:04:29 -06:00
Volker Mische
870939ab03
Implement ec_gpu:GpuField for Fp/Fq
...
This commit introduces a new feature called "gpu", which enables an
`ec_gpu:GpuField` implementation of `Fp` and `Fq`. This enables the
field arithmetics to be run on a GPU.
The code to convert from a u64 to a u32 vector was taken from
07a84f9727/src/lib.rs (L102-L108)
2022-03-02 14:44:11 +01:00
Andy Polyakov
872065c8a1
Add 'repr-c' feature to facilitate FFI.
2022-02-17 17:06:02 +01:00
Jack Grigg
6b2090ff2c
pasta_curves 0.3.0
2022-01-03 13:57:42 +00:00
Jack Grigg
61fac8a5af
blake2b_simd 1
...
We also move this dependency behind the `alloc` feature flag, as it is
only required for `crate::hashtocurve`.
2022-01-03 13:56:07 +00:00
Jack Grigg
53f65f7e6d
Changelog and comment cleanups
2022-01-03 13:56:07 +00:00
Jack Grigg
21fd9e2c1b
Remove std feature flag
...
Closes zcash/pasta_curves#27 .
2021-12-22 05:41:04 +00:00
Jack Grigg
f874d29238
Remove FieldExt::rand
...
This removes a dependency on the `getrandom` crate in no-std mode, which
doesn't work on some no-std targets that `getrandom` doesn't support.
2021-12-22 05:15:06 +00:00
Jack Grigg
ab03c3d5e1
Remove field traits from behind std feature flag
...
Now that we have a default implementation of `SqrtRatio::sqrt_ratio`, we
can use it and `FieldExt` in no-std environments.
We introduce an `alloc` feature flag to form a common feature dependency
between `std` and `sqrt-table`. It is currently unused directly, but
will be used after `CurveAffine` is refactored to remove the `std`
dependency.
Closes zcash/pasta_curves#25 .
2021-12-22 05:06:16 +00:00
Jack Grigg
314b1bcb94
Place SqrtTables behind a sqrt-tables feature flag
...
This enables the crate to be compiled without the tables, instead using
a simple fallback for `SqrtRatio::sqrt_ratio`.
2021-12-22 04:38:14 +00:00
Jack Grigg
9999964d17
Add no-std support
...
We re-introduce the Tonelli-Shank square root algoritm that was removed
in zcash/halo2#120 , to use in no-std mode (the table-based impl requires
allocations, and also uses 29kiB of memory which is a problem for
constrained environments that typically need no-std).
2021-09-20 18:56:23 +01:00
Jack Grigg
bb2564d586
pasta_curves 0.2.1
2021-09-17 16:37:00 +01:00
Jack Grigg
f747efc6ff
Relicense pasta_curves as MIT OR Apache-2.0
2021-09-17 16:32:36 +01:00
Jack Grigg
6a28a85d8b
pasta_curves 0.2.0
2021-09-02 18:37:13 +01:00
Jack Grigg
fd7a6edbb1
ff 0.11, group 0.11
2021-09-02 18:10:05 +01:00
Daira Hopwood
329f59493c
Add benchmarks for point operations.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-11 15:09:34 +01:00
Jack Grigg
1bac885af5
Release 0.1.2
2021-08-06 13:29:03 +01:00
Jack Grigg
15e16839b3
Release 0.1.1
2021-06-04 18:54:09 +01:00
Jack Grigg
084d57ab10
Release 0.1.0
2021-06-01 23:40:45 +01:00
Jack Grigg
17b2e5275b
Exclude contributor agreement from published crate
...
Can't contribute to hash-pinned binaries! This file is only needed in
the repo itself.
2021-06-01 23:38:30 +01:00
Jack Grigg
bc20c5826b
Migrate to ff 0.10.0
2021-06-01 23:31:00 +01:00
Steven
376ba4eeca
Merge pull request #9 from steven-ecc/change-tgppl-to-bosl
...
Adding BOSL and changing TGPPL references to BOSL
2021-04-26 16:43:21 -07:00
Steven
e6a7d68a3e
Update Cargo.toml
...
Co-authored-by: ebfull <ewillbefull@gmail.com>
2021-04-26 16:43:07 -07:00
Steven Smith
82ddc0ebee
Changing TGPPL references to BOSL
2021-04-16 09:50:44 -07:00
dignifiedquire
9e65e3a67d
bench: add baseline benches for Fp and Fq
2021-03-10 14:46:28 +01:00
Jack Grigg
b36356667f
Rename crate to pasta_curves and remove halo2 code
2021-03-03 21:59:08 +00:00
Jack Grigg
b4ed5295fe
Migrate to group traits
...
The `Curve` trait is now `CurveExt: group::prime::PrimeCurve`, and
`CurveAffine` is now `CurveAffine: group::prime::PrimeCurveAffine`.
There is no `CurveAffine` trait in `group`, and it's a widely-used
trait in this crate, so we don't rename it to `CurveAffineExt`.
2021-02-22 20:20:23 +00:00
Daira Hopwood
704a6c3637
Remove unneeded sha3 dependency.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-02-21 00:45:33 +00:00
Sean Bowe
c48229ce0f
Remove dependency on byteorder crate
2021-02-19 15:52:11 +00:00
Daira Hopwood
fa3afc29bb
Add an implementation of simplified SWU hash-to-curve.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-02-19 15:52:11 +00:00
Jack Grigg
776016fe53
crossbeam-utils 0.8
2021-02-17 20:43:36 +00:00
Jack Grigg
0c4f779993
ff 0.9
2021-02-17 20:42:27 +00:00
Jack Grigg
2c77eccf01
metrics 0.14.2
2021-02-17 20:40:12 +00:00
Sean Bowe
4747112118
Downgrade to funty 1.1.0 to fix CI.
2021-02-14 09:24:15 -07:00
Jack Grigg
3c1132ec59
Add halo2::dev::circuit_layout behind dev-graph feature flag
...
This method renders circuits as tables, showing how the various regions
within them have been layed out.
2021-02-01 18:38:20 +00:00
Jack Grigg
7dd6e65a5f
Add halo2::dev::circuit_dot_graph behind dev-graph feature flag
...
This method renders circuits as dot graphs, to help circuit developers
understand their structure.
2021-02-01 18:38:16 +00:00
Jack Grigg
bf771a7446
Add namespacing and gadget name collection to Layouter
2021-02-01 18:38:04 +00:00
Daira Hopwood
e13ee2c8ff
Add sqrt_ratio implementation.
...
Co-authored-by: Jack Grigg <jack@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-01-14 02:34:43 +00:00
Sean Bowe
dff5a3a692
Generate the URS using a homebrew mixture of blake2b and try-and-increment.
2021-01-06 10:45:11 -07:00
Jack Grigg
c8e6fd9dfd
Pin all metrics crate dependencies
...
We depend on the alpha version, where breaking changes are occurring
regularly. However, the metrics crate does not pin exact versions of
its dependencies, which can break our CI if a new alpha dependency is
released with breaking changes. Fortunately the metrics crate only has
a single metrics-* dependency, so we can just pin that as well.
2020-12-22 12:28:31 +00:00
Jack Grigg
8389389d37
model: metrics 0.13.0-alpha.13
2020-12-22 12:27:36 +00:00
therealyingtong
39df4954b5
Add Committed::construct() to lookup::prover
2020-12-03 10:50:20 +08:00
Sean Bowe
a5d04725bd
We depend on subtle 2.3 for Option<T>: From<CtOption<T>>.
2020-12-02 09:50:43 -07:00
Jack Grigg
cdbc41148a
Migrate to ff traits
...
The `Field` trait in this crate is now `FieldExt: ff::PrimeField`.
2020-12-01 20:55:03 +00:00
Jack Grigg
e5e6700e10
Pin most recent metrics alpha
2020-11-25 19:56:52 +00:00
Jack Grigg
61cddec3b8
Update crate authors
2020-11-24 18:25:56 +00:00
Jack Grigg
fb8f67dfe5
Add a simple metrics Recorder for counting things in models
2020-11-23 12:47:42 +00:00
Sean Bowe
1f3fc875ab
PLONK benchmarks.
2020-11-23 12:47:42 +00:00