mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
add note on vectors being the same
This commit is contained in:
parent
3a5313f3f3
commit
437a52e66f
1 changed files with 3 additions and 0 deletions
|
|
@ -319,6 +319,9 @@ func Pair(g1 *G1, g2 *G2) *GT {
|
||||||
}
|
}
|
||||||
|
|
||||||
// PairingCheck calculates the Optimal Ate pairing for a set of points.
|
// 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 {
|
func PairingCheck(a []*G1, b []*G2) bool {
|
||||||
acc := new(gfP12)
|
acc := new(gfP12)
|
||||||
acc.SetOne()
|
acc.SetOne()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue