# altBn128PairingCheck

[**api**](/near-sdk-js/api.md) • **Docs**

***

[near-sdk-js v2.0.0](/near-sdk-js/packages.md) / [api](/near-sdk-js/api.md) / 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://near-sdk-js.gitbook.io/near-sdk-js/api/functions/altbn128pairingcheck.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
