INNER CODE UNIT · Rust
x_i
ZcashFoundation/frost · frost-core/src/lib.rs:309
if x_i == *x_j {
x_i_found = true;
continue;
}
if let Some(x) = x {
num = num * (x.to_scalar() - x_j.to_scalar());
den = den * (x_i.to_scalar() - x_j.to_scalar());
} else {
// Both signs inverted just to avoid requiring Neg (-*xj)
num = num * x_j.to_scalar();
den = den * (x_j.to_scalar() - x_i.to_scalar());
}
}
if !x_i_found {
return Err(Error::UnknownIdentifier);
}