ffjavascript
Advanced tools
Comparing version 0.2.48 to 0.2.50
{ | ||
"name": "ffjavascript", | ||
"type": "module", | ||
"version": "0.2.48", | ||
"version": "0.2.50", | ||
"description": "Finite Field Library in Javascript", | ||
@@ -6,0 +6,0 @@ "main": "./build/main.cjs", |
import bigInt from "big-integer"; | ||
import buildSqrt from "./fsqrt.js"; | ||
import {getRandomBytes} from "./random.js"; | ||
import * as FFFT from "./fft.js"; | ||
@@ -43,2 +44,4 @@ export default class ZqField { | ||
buildSqrt(this); | ||
this.FFT = new FFFT(this, this, this.mul.bind(this)); | ||
} | ||
@@ -286,4 +289,11 @@ | ||
fft(a) { | ||
return this.FFT.fft(a); | ||
} | ||
ifft(a) { | ||
return this.FFT.ifft(a); | ||
} | ||
} | ||
@@ -6,2 +6,3 @@ /* global BigInt */ | ||
import {getRandomBytes} from "./random.js"; | ||
import FFFT from "./fft.js"; | ||
@@ -47,2 +48,4 @@ export default class ZqField { | ||
buildSqrt(this); | ||
this.FFT = new FFFT(this, this, this.mul.bind(this)); | ||
} | ||
@@ -307,3 +310,11 @@ | ||
fft(a) { | ||
return this.FFT.fft(a); | ||
} | ||
ifft(a) { | ||
return this.FFT.ifft(a); | ||
} | ||
} | ||
Sorry, the diff of this file is not supported yet
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
449420
12200