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

ffjavascript

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffjavascript - npm Package Compare versions

Comparing version 0.2.20 to 0.2.21

4

package.json
{
"name": "ffjavascript",
"type": "module",
"version": "0.2.20",
"version": "0.2.21",
"description": "Finite Field Library in Javascript",

@@ -36,3 +36,3 @@ "main": "./build/main.cjs",

"big-integer": "^1.6.48",
"wasmcurves": "0.0.10",
"wasmcurves": "0.0.11",
"worker-threads": "^1.0.0"

@@ -39,0 +39,0 @@ },

@@ -308,2 +308,3 @@ import {log2, buffReverseBits} from "./utils.js";

const MAX_CHUNK_SIZE = 1<<16;
const MIN_CHUNK_SIZE = 1<<4;

@@ -361,7 +362,11 @@ let fnName;

let chunkSize = Math.floor(nPoints /tm.concurrency);
if (chunkSize < MIN_CHUNK_SIZE) chunkSize = MIN_CHUNK_SIZE;
if (chunkSize > MAX_CHUNK_SIZE) chunkSize = MAX_CHUNK_SIZE;
const opPromises = [];
for (let i=0; i<nPoints; i += MAX_CHUNK_SIZE) {
for (let i=0; i<nPoints; i += chunkSize) {
if (logger) logger.debug(`${loggerTxt}: fftJoinExt Start: ${i}/${nPoints}`);
const n= Math.min(nPoints - i, MAX_CHUNK_SIZE);
const n= Math.min(nPoints - i, chunkSize);

@@ -374,3 +379,2 @@ const firstChunk = Fr.mul(first, Fr.exp( inc, i));

task.push({cmd: "ALLOC", var: 0, len: sMid*n});

@@ -391,3 +395,4 @@ task.push({cmd: "SET", var: 0, buff: b1});

{var: 2},
{var: 3}
{var: 3},
{val: Fr.s},
]});

@@ -394,0 +399,0 @@ if (fnMid2Out) {

Sorry, the diff of this file is not supported yet

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