Comparing version 0.0.68 to 0.0.69
@@ -660,6 +660,7 @@ import { check } from "./system"; | ||
export function bn128Pair(g1: AltBn128G1, g2: AltBn128G2): boolean { | ||
const rawG1 = g1.pack(); | ||
const rawG2 = g2.pack(); | ||
const input = rawG1.concat(rawG2) | ||
export function bn128Pair(pairs: [AltBn128G1, AltBn128G2][]): boolean { | ||
let input: u8[] = [] | ||
for (let i=0; i<pairs.length; i++) { | ||
input = input.concat(pairs[i][0].pack()).concat(pairs[i][1].pack()) | ||
} | ||
const ret = env.alt_bn128_pair(input.dataStart, input.length) | ||
@@ -666,0 +667,0 @@ check(ret != -1, "bn128Pair error"); |
{ | ||
"name": "as-chain", | ||
"version": "0.0.68", | ||
"version": "0.0.69", | ||
"description": "chain module for assemblyscript", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1573571
6642