Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
srinathsetty committed Jun 25, 2024
1 parent 79de586 commit 4eed015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
repository = "https://github.com/Microsoft/Nova"
license-file = "LICENSE"
keywords = ["zkSNARKs", "cryptography", "proofs"]
rust-version="1.67.1"
rust-version="1.79.0"

[dependencies]
bellpepper-core = { version="0.4.0", default-features = false }
Expand Down
7 changes: 2 additions & 5 deletions src/gadgets/nonnative/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ use std::io::{self, Write};
pub struct Bit<Scalar: PrimeField> {
/// The linear combination which constrain the value of the bit
pub bit: LinearCombination<Scalar>,
/// The value of the bit (filled at witness-time)
pub value: Option<bool>,
}

#[derive(Clone)]
Expand Down Expand Up @@ -58,14 +56,13 @@ impl<Scalar: PrimeField> Bit<Scalar> {

Ok(Self {
bit: LinearCombination::zero() + var,
value,
})
}
}

pub struct Num<Scalar: PrimeField> {
pub num: LinearCombination<Scalar>,
pub value: Option<Scalar>,
pub(crate) num: LinearCombination<Scalar>,
pub(crate) value: Option<Scalar>,
}

impl<Scalar: PrimeField> Num<Scalar> {
Expand Down

0 comments on commit 4eed015

Please sign in to comment.