Skip to content

Commit

Permalink
Fix no_std when the R1CS feature is on (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
weikengchen authored Jun 5, 2021
1 parent 3a83d9f commit 1223fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ jobs:

- name: crypto-primitives
run: |
cargo build --no-default-features --target aarch64-unknown-none
cargo check --examples --no-default-features --target aarch64-unknown-none
cargo build --no-default-features --features=r1cs --target aarch64-unknown-none
cargo check --examples --no-default-features --features=r1cs --target aarch64-unknown-none
2 changes: 1 addition & 1 deletion src/encryption/elgamal/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use ark_ff::{
fields::{Field, PrimeField},
to_bytes, Zero,
};
use core::{borrow::Borrow, marker::PhantomData};
use ark_std::{borrow::Borrow, marker::PhantomData, vec::Vec};

pub type ConstraintF<C> = <<C as ProjectiveCurve>::BaseField as Field>::BasePrimeField;

Expand Down

0 comments on commit 1223fe4

Please sign in to comment.