@veil-cash/sdk 0.6.4 → 0.6.5

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/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ethers } from 'ethers';
2
2
  import { Buffer } from 'buffer';
3
3
  import { privateKeyToAccount, privateKeyToAddress } from 'viem/accounts';
4
- import ethSigUtil from 'eth-sig-util';
5
- import circomlib from 'circomlib';
4
+ import * as _ethSigUtil from 'eth-sig-util';
5
+ import * as _circomlib from 'circomlib';
6
6
  import { encodeFunctionData, parseEther, parseUnits, createPublicClient, http, formatUnits, keccak256, encodePacked, isAddress, formatEther } from 'viem';
7
7
  import { base } from 'viem/chains';
8
8
  import MerkleTree from 'fixed-merkle-tree-legacy';
@@ -10,6 +10,15 @@ import { groth16 } from 'snarkjs';
10
10
  import { utils } from 'ffjavascript';
11
11
 
12
12
  // src/keypair.ts
13
+ function resolveInterop(mod) {
14
+ if (mod && typeof mod === "object" && "default" in mod) {
15
+ const defaultVal = mod.default;
16
+ if (defaultVal != null) return defaultVal;
17
+ }
18
+ return mod;
19
+ }
20
+ var ethSigUtil = resolveInterop(_ethSigUtil);
21
+ var circomlib = resolveInterop(_circomlib);
13
22
  var poseidon = circomlib.poseidon;
14
23
  var FIELD_SIZE = BigInt(
15
24
  "21888242871839275222246405745257275088548364400416034343698204186575808495617"