ffjavascript
Advanced tools
Comparing version 0.2.53 to 0.2.54
{ | ||
"name": "ffjavascript", | ||
"type": "module", | ||
"version": "0.2.53", | ||
"version": "0.2.54", | ||
"description": "Finite Field Library in Javascript", | ||
@@ -6,0 +6,0 @@ "main": "./build/main.cjs", |
@@ -32,4 +32,4 @@ import { buildBls12381 as buildBls12381wasm } from "wasmcurves"; | ||
bls12381wasm.n8r = 32; | ||
bls12381wasm.q = moduleBuilder.modules.bn128.q; | ||
bls12381wasm.r = moduleBuilder.modules.bn128.r; | ||
bls12381wasm.q = moduleBuilder.modules.bls12381.q; | ||
bls12381wasm.r = moduleBuilder.modules.bls12381.r; | ||
@@ -36,0 +36,0 @@ |
@@ -30,3 +30,3 @@ import * as Scalar from "./scalar.js"; | ||
} else { | ||
throw new Error(`Curve not supported: ${Scalar.toString(q)}`); | ||
throw new Error(`Curve not supported: ${Scalar.toString(q, 16)}`); | ||
} | ||
@@ -33,0 +33,0 @@ return curve; |
@@ -19,4 +19,4 @@ import WasmField1 from "./wasm_field1.js"; | ||
curve.q = Scalar.e(params.wasm.q); | ||
curve.r = Scalar.e(params.wasm.r); | ||
curve.q = Scalar.e(params.wasm.q.toString()); | ||
curve.r = Scalar.e(params.wasm.r.toString()); | ||
curve.name = params.name; | ||
@@ -23,0 +23,0 @@ curve.tm = tm; |
Sorry, the diff of this file is not supported yet
450564