add note on vectors being the same

This commit is contained in:
Kevaundray Wedderburn 2024-10-12 17:03:11 +01:00
parent 3a5313f3f3
commit 437a52e66f

View file

@ -319,6 +319,9 @@ func Pair(g1 *G1, g2 *G2) *GT {
}
// PairingCheck calculates the Optimal Ate pairing for a set of points.
//
// Note: It is the callers responsibility to ensure that the length of
// `a` and `b` are the same.
func PairingCheck(a []*G1, b []*G2) bool {
acc := new(gfP12)
acc.SetOne()