@gurge/sdk-react-native 0.3.130 → 0.3.138

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.
Files changed (38) hide show
  1. package/HinkalProvider.cjs +1 -0
  2. package/{react-native/HinkalProvider.mjs → HinkalProvider.mjs} +2 -2
  3. package/{react-native/HinkalWebViewWorker.cjs → HinkalWebViewWorker.cjs} +1 -1
  4. package/{react-native/HinkalWebViewWorker.mjs → HinkalWebViewWorker.mjs} +5 -5
  5. package/bridge/HinkalRNWorker.cjs +1 -0
  6. package/{react-native/bridge → bridge}/HinkalRNWorker.d.ts +1 -1
  7. package/{react-native/bridge → bridge}/HinkalRNWorker.mjs +1 -1
  8. package/{react-native/bridge → bridge}/serialization.utils.mjs +1 -1
  9. package/common/src/crypto/babyJub.cjs +1 -1
  10. package/common/src/crypto/babyJub.mjs +1 -2
  11. package/common/src/crypto/eddsa.cjs +1 -1
  12. package/common/src/crypto/eddsa.mjs +2 -3
  13. package/common/src/crypto/poseidon.cjs +1 -1
  14. package/common/src/crypto/poseidon.mjs +2 -3
  15. package/common/src/functions/utils/index.cjs +1 -1
  16. package/common/src/functions/utils/index.d.ts +0 -1
  17. package/common/src/functions/utils/index.mjs +0 -1
  18. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
  19. package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
  20. package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
  21. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
  22. package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
  23. package/index.cjs +1 -1
  24. package/index.d.ts +1 -1
  25. package/index.mjs +1 -1
  26. package/package.json +1 -2
  27. package/scripts/patch-libsodium-for-rn.js +5 -3
  28. package/shims/circomlibjs-hinkal-fork.mjs +11 -1752
  29. package/shims/crypto.cjs +1 -1
  30. package/common/src/functions/utils/bigint-math.utils.cjs +0 -1
  31. package/common/src/functions/utils/bigint-math.utils.d.ts +0 -2
  32. package/common/src/functions/utils/bigint-math.utils.mjs +0 -1
  33. package/react-native/HinkalProvider.cjs +0 -1
  34. package/react-native/bridge/HinkalRNWorker.cjs +0 -1
  35. /package/{react-native/HinkalProvider.d.ts → HinkalProvider.d.ts} +0 -0
  36. /package/{react-native/HinkalWebViewWorker.d.ts → HinkalWebViewWorker.d.ts} +0 -0
  37. /package/{react-native/bridge → bridge}/serialization.utils.cjs +0 -0
  38. /package/{react-native/bridge → bridge}/serialization.utils.d.ts +0 -0
package/shims/crypto.cjs CHANGED
@@ -7,7 +7,7 @@ function ensureRng() {
7
7
  if (!global.crypto || typeof global.crypto.getRandomValues !== 'function') {
8
8
  throw new Error(
9
9
  '[hinkal-rn] global.crypto.getRandomValues is not available. ' +
10
- 'Import @hinkal/sdk-react-native (HinkalProvider) before other SDK code.',
10
+ 'Import @gurge/sdk-react-native (HinkalProvider) before other SDK code.',
11
11
  );
12
12
  }
13
13
  }
@@ -1 +0,0 @@
1
- require(`../../constants/protocol.constants.cjs`);
@@ -1,2 +0,0 @@
1
- export declare const mod: (value: bigint, m?: bigint) => bigint;
2
- export declare const modInverse: (value: bigint, m?: bigint) => bigint;
@@ -1 +0,0 @@
1
- import "../../constants/protocol.constants.mjs";
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../_virtual/_rolldown/runtime.cjs"),require(`../bootstrap.cjs`);const e=require(`./HinkalWebViewWorker.cjs`);let t=require(`react/jsx-runtime`);var n=({children:n})=>(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)(e,{})]});exports.HinkalProvider=n;
@@ -1 +0,0 @@
1
- require("../../_virtual/_rolldown/runtime.cjs");const e=require(`./serialization.utils.cjs`);let t=require(`react-native`);var n=class{onmessage=null;onerror=null;requestId=e.nextRequestId();subscription;constructor(e){this.variant=e,this.subscription=t.DeviceEventEmitter.addListener(`FROM_WEBVIEW_WORKER`,e=>{!e||e.requestId!==this.requestId||(e.type===`RESULT`?this.onmessage?.({data:e.data}):e.type===`ERROR`&&this.onerror?.(Error(e.error??`WebView worker error`)))})}postMessage(e){t.DeviceEventEmitter.emit(`TO_WEBVIEW_WORKER`,{__requestId:this.requestId,variant:this.variant,message:e})}terminate(){this.subscription?.remove?.(),this.subscription=null}};exports.HinkalRNWorker=n;