# altBn128G1Sum

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

***

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

## Function: altBn128G1Sum()

> **altBn128G1Sum**(`value`): `Uint8Array`

Computes sum for signed g1 group elements on alt\_bn128 curve \sum\_i (-1)^{sign\_i} g\_{1 i} should be equal result.

### Parameters

• **value**: `Uint8Array`

sequence of (sign:bool, g1:G1), where 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

`Uint8Array`

sum over Fq.

### Defined in

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


---

# 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/altbn128g1sum.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.
