Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
add asm features
Browse files Browse the repository at this point in the history
  • Loading branch information
ashWhiteHat committed Jan 25, 2022
1 parent e5a7ffa commit 4bfbaa9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ rand = "0.8"
rand_core = { version = "0.6", default-features = false }

[features]
default = []
asm = []

[profile.bench]
Expand Down
18 changes: 16 additions & 2 deletions README.md
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
```

0 comments on commit 4bfbaa9

Please sign in to comment.