This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5a7ffa
commit 4bfbaa9
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
# BN256 pairing | ||
|
||
BN256 pairing library that implements original traits from `zkcrypto`, | ||
|
||
* [`zkcrypto/ff`](https://github.com/zkcrypto/ff) | ||
* [`zkcrypto/group`](https://github.com/zkcrypto/group) | ||
* [`zkcrypto/pairing`](https://github.com/zkcrypto/pairing) | ||
|
||
and plus | ||
|
||
`FieldExt`, `CurveExt` [traits](https://github.com/zcash/pasta_curves/tree/main/src/arithmetic) that are used in `halo2` library. | ||
|
||
This implementation is mostly ported from [matterlabs/pairing](https://github.com/matter-labs/pairing/tree/master/src/bn256) and [zkcrypto/bls12-381](https://github.com/zkcrypto/bls12_381). | ||
This implementation is mostly ported from [matterlabs/pairing](https://github.com/matter-labs/pairing/tree/master/src/bn256) and [zkcrypto/bls12-381](https://github.com/zkcrypto/bls12_381). | ||
|
||
## Bench | ||
|
||
None Assembly | ||
``` | ||
$ cargo test --profile bench test_field -- --nocapture | ||
``` | ||
|
||
Assembly | ||
``` | ||
$ cargo test --profile bench test_field --features asm -- --nocapture | ||
``` |