mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
ff: Add PrimeField: From<u64> constraint
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use pairing::bls12_381::Bls12;
|
||||
use zcash_primitives::jubjub::{
|
||||
edwards, fs::FsRepr, FixedGenerators, JubjubBls12, JubjubParams, Unknown,
|
||||
edwards, fs::Fs, FixedGenerators, JubjubBls12, JubjubParams, Unknown,
|
||||
};
|
||||
use zcash_primitives::transaction::components::Amount;
|
||||
|
||||
@@ -30,7 +30,7 @@ fn compute_value_balance(
|
||||
// Compute it in the exponent
|
||||
let mut value_balance = params
|
||||
.generator(FixedGenerators::ValueCommitmentValue)
|
||||
.mul(FsRepr::from(abs), params);
|
||||
.mul(Fs::from(abs), params);
|
||||
|
||||
// Negate if necessary
|
||||
if is_negative {
|
||||
|
Reference in New Issue
Block a user