From 437a52e66f76a0bbd95c40e0f32b63bc9f62f460 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Sat, 12 Oct 2024 17:03:11 +0100 Subject: [PATCH] add note on vectors being the same --- crypto/bn256/cloudflare/bn256.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/bn256/cloudflare/bn256.go b/crypto/bn256/cloudflare/bn256.go index 4f607af2ad..bc0586f698 100644 --- a/crypto/bn256/cloudflare/bn256.go +++ b/crypto/bn256/cloudflare/bn256.go @@ -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()