Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

as-chain

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-chain - npm Package Compare versions

Comparing version 0.0.68 to 0.0.69

9

assembly/crypto.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc