@hinkal/common 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crypto/preProcessing.cjs +1 -1
- package/crypto/preProcessing.mjs +6 -6
- package/package.json +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
package/crypto/preProcessing.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./babyJub.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./babyJub.cjs"),o=require("./poseidon.cjs"),i=require("buffer"),n=require("process");let e=!1;const s=async()=>{e||(typeof window<"u"&&(window.global=window,window.Buffer=i.Buffer,window.process=n),await o.poseidonHolder.init(),await r.jubHolder.init(),e=!0)};exports.preProcessing=s;
|
package/crypto/preProcessing.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jubHolder as r } from "./babyJub.mjs";
|
|
2
|
-
import { poseidonHolder as
|
|
3
|
-
import { Buffer as
|
|
4
|
-
import
|
|
2
|
+
import { poseidonHolder as i } from "./poseidon.mjs";
|
|
3
|
+
import { Buffer as e } from "buffer";
|
|
4
|
+
import n from "process";
|
|
5
5
|
let o = !1;
|
|
6
|
-
const
|
|
7
|
-
o || (typeof window < "u" && (window.Buffer =
|
|
6
|
+
const w = async () => {
|
|
7
|
+
o || (typeof window < "u" && (window.global = window, window.Buffer = e, window.process = n), await i.init(), await r.init(), o = !0);
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
w as preProcessing
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-
|
|
1
|
+
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-C2sEzlcI.js").href:new URL("../../assets/utxoWorkerLauncher-C2sEzlcI.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-DqoryIuY.js").href:new URL("../../assets/zkProofWorkerLauncher-DqoryIuY.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=r;
|