Skip to content

Commit

Permalink
chore: remove duplicate nil-check (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub authored Dec 16, 2024
1 parent 9154785 commit 2945fbc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions std/algebra/emulated/sw_bls12381/pairing.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,6 @@ func (pr Pairing) AssertFinalExponentiationIsOne(x *GTEl) {
panic(err)
}

if err != nil {
// err is non-nil only for invalid number of inputs
panic(err)
}

residueWitness := pr.FromTower([12]*baseEl{res[0], res[1], res[2], res[3], res[4], res[5], res[6], res[7], res[8], res[9], res[10], res[11]})
// constrain cubicNonResiduePower to be in Fp6
// that is: a100=a101=a110=a111=a120=a121=0
Expand Down

0 comments on commit 2945fbc

Please sign in to comment.