fix features, fix checked mul
This commit is contained in:
parent
1f391e9f11
commit
7a552ea4d2
2 changed files with 8 additions and 8 deletions
|
@ -6,7 +6,7 @@ edition = "2018"
|
|||
|
||||
[features]
|
||||
default = ["ark", "bellman"]
|
||||
ark = ["ark-ff", "ark-ec", "ark-bn254", "ark-bls12-381", "ark-bls12-377", "ark-bw6-761", "ark-serialize"]
|
||||
ark = ["ark-ec"]
|
||||
bellman = ["bellman_ce"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -18,18 +18,18 @@ serde_json = "1.0"
|
|||
sha2 = "0.8.0"
|
||||
num-traits = { version = "0.2", default-features = false }
|
||||
num-integer = { version = "0.1", default-features = false }
|
||||
ark-ff = { version = "^0.2.0", default-features = false }
|
||||
ark-bn254 = { version = "^0.2.0", features = ["curve"], default-features = false }
|
||||
ark-bls12-377 = { version = "^0.2.0", features = ["curve"], default-features = false }
|
||||
ark-bls12-381 = { version = "^0.2.0", features = ["curve"], default-features = false }
|
||||
ark-bw6-761 = { version = "^0.2.0", default-features = false }
|
||||
ark-serialize = { version = "^0.2.0", default-features = false }
|
||||
|
||||
# bellman
|
||||
bellman_ce = { version = "^0.3", default-features = false, optional = true }
|
||||
|
||||
# ark
|
||||
ark-ff = { version = "^0.2.0", default-features = false, optional = true }
|
||||
ark-ec = { version = "^0.2.0", default-features = false, optional = true }
|
||||
ark-bn254 = { version = "^0.2.0", features = ["curve"], default-features = false, optional = true }
|
||||
ark-bls12-377 = { version = "^0.2.0", features = ["curve"], default-features = false, optional = true }
|
||||
ark-bls12-381 = { version = "^0.2.0", features = ["curve"], default-features = false, optional = true }
|
||||
ark-bw6-761 = { version = "^0.2.0", default-features = false, optional = true }
|
||||
ark-serialize = { version = "^0.2.0", default-features = false, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
rand = "0.4"
|
||||
|
|
|
@ -473,7 +473,7 @@ mod prime_field {
|
|||
if big_res > bound.to_biguint() {
|
||||
None
|
||||
} else {
|
||||
Some(self.clone() * other)
|
||||
Some(self.clone() + other)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue