# altBn128PairingCheck

[**api**](..) • **Docs**

***

[near-sdk-js v2.0.0](../../packages) / [api](..) / altBn128PairingCheck

## Function: altBn128PairingCheck()

> **altBn128PairingCheck**(`value`): `boolean`

Computes pairing check on alt\_bn128 curve. \sum\_i e(g\_{1 i}, g\_{2 i}) should be equal one (in additive notation), e(g1, g2) is Ate pairing

### Parameters

• **value**: `Uint8Array`

sequence of (g1:G1, g2:G2), where G2 is Fr-ordered subgroup point (x:Fq2, y:Fq2) on alt\_bn128 twist, alt\_bn128 twist is Y^2 = X^3 + 3/(i+9) curve over Fq2 Fq2 is complex field element (re: Fq, im: Fq) G1 is point (x:Fq, y:Fq) on alt\_bn128, alt\_bn128 is Y^2 = X^3 + 3 curve over Fq `value` is encoded a as packed, little-endian `[((u256, u256), ((u256, u256), (u256, u256)))]` slice.

### Returns

`boolean`

whether pairing check pass

### Defined in

[packages/near-sdk-js/src/api.ts:1015](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/api.ts#L1015)
