We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db0553c commit 47707ebCopy full SHA for 47707eb
src/pairing.rs
@@ -167,6 +167,14 @@ impl MillerLoopResult {
167
Gt(Fp12(out))
168
}
169
170
+ /// Efficiently compare two `MillerLoopResult`s for equality.
171
+ ///
172
+ /// This method checks if two Miller loop results are equivalent in the
173
+ /// context of the pairing function, without performing the full final
174
+ /// exponentiation on both operands. It is faster than calling
175
+ /// [`final_exponentiation()`] on both and then comparing the results.
176
+ /// This is useful when you only need to check equivalence, not obtain
177
+ /// the final pairing value.
178
pub fn final_verify(&self, other: &MillerLoopResult) -> bool {
179
unsafe { blst::blst_fp12_finalverify(&self.0.0, &other.0.0) }
180
0 commit comments