moneysurfer 0.1.0

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/dist/l.js ADDED
@@ -0,0 +1,3 @@
1
+ var __webpack_require__ = {};
2
+ __webpack_require__.j = "l";
3
+ export { __webpack_require__ };
@@ -0,0 +1,33 @@
1
+ function __webpack_require__(moduleId) {
2
+ var cachedModule = __webpack_module_cache__[moduleId];
3
+ if (void 0 !== cachedModule) return cachedModule.exports;
4
+ var module = __webpack_module_cache__[moduleId] = {
5
+ exports: {}
6
+ };
7
+ return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
8
+ }
9
+ function buildMSM(point) {
10
+ return (list)=>{
11
+ if (!list.length) return point.ZERO;
12
+ let points = list.map((i)=>new point(i.point.X, i.point.Y, i.point.Z));
13
+ return pippenger(point, points, list.map((i)=>i.scalar));
14
+ };
15
+ }
16
+ var moduleInstalledChunks, __webpack_require__temp, __webpack_modules__ = {}, __webpack_module_cache__ = {};
17
+ import { pippenger, bn254, wrkr } from "./i.js";
18
+ __webpack_require__.m = __webpack_modules__, __webpack_require__.add = function(modules) {
19
+ Object.assign(__webpack_require__.m, modules);
20
+ }, __webpack_require__temp = __webpack_require__;
21
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.j = "m", moduleInstalledChunks = {
22
+ m: 0
23
+ }, __webpack_require__.C = (data)=>{
24
+ var moduleId, chunkId, __rspack_esm_ids = data.__rspack_esm_ids, moreModules = data.__webpack_modules__, __rspack_esm_runtime = data.__rspack_esm_runtime, i = 0;
25
+ for(moduleId in moreModules)__webpack_require__.o(moreModules, moduleId) && (__webpack_require__.m[moduleId] = moreModules[moduleId]);
26
+ for(__rspack_esm_runtime && __rspack_esm_runtime(__webpack_require__); i < __rspack_esm_ids.length; i++)chunkId = __rspack_esm_ids[i], __webpack_require__.o(moduleInstalledChunks, chunkId) && moduleInstalledChunks[chunkId] && moduleInstalledChunks[chunkId][0](), moduleInstalledChunks[__rspack_esm_ids[i]] = 0;
27
+ };
28
+ let handlers = {
29
+ bn254_msmG1: buildMSM(bn254.G1.Point),
30
+ bn254_msmG2: buildMSM(bn254.G2.Point)
31
+ };
32
+ wrkr.initWorker(handlers);
33
+ export { __webpack_require__temp as __webpack_require__ };
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "moneysurfer",
3
+ "version": "0.1.0",
4
+ "description": "Lightweight CLI for Privacy Pools V1 and V2",
5
+ "license": "MPL-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/microprivacy/moneysurfer.git"
9
+ },
10
+ "type": "module",
11
+ "bin": {
12
+ "moneysurfer": "./dist/cli.js"
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "engines": {
18
+ "node": ">=22.18"
19
+ },
20
+ "devDependencies": {
21
+ "@biomejs/biome": "^2.5.13",
22
+ "@noble/ciphers": "^2.1.0",
23
+ "@noble/curves": "~2.2.0",
24
+ "@noble/hashes": "^2.4.0",
25
+ "@rslib/core": "^1.0.2",
26
+ "@scure/bip32": "^2.4.0",
27
+ "@scure/bip39": "^2.4.0",
28
+ "@types/node": "^26.5.1",
29
+ "micro-eth-signer": "^0.20.1",
30
+ "micro-zk-proofs": "^0.3.1",
31
+ "typescript": "^7.0.2"
32
+ },
33
+ "scripts": {
34
+ "build": "rslib build",
35
+ "typecheck": "tsc --noEmit",
36
+ "lint": "biome check",
37
+ "format": "biome check --write",
38
+ "test": "node --test test/*.test.ts"
39
+ }
40
+ }