@umbra-privacy/sdk 2.0.2 → 2.0.3
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/{addresses-BIzQplvu.d.ts → addresses-B7HybtbJ.d.ts} +1 -1
- package/dist/{addresses-Djkrs22V.d.cts → addresses-CTVY1oi7.d.cts} +1 -1
- package/dist/{chunk-JPDF7BIT.cjs → chunk-3LS5P32X.cjs} +3 -3
- package/dist/{chunk-JPDF7BIT.cjs.map → chunk-3LS5P32X.cjs.map} +1 -1
- package/dist/{chunk-D5MWU3TV.js → chunk-KH3YTDKA.js} +3 -3
- package/dist/{chunk-D5MWU3TV.js.map → chunk-KH3YTDKA.js.map} +1 -1
- package/dist/{chunk-RVUYPKKD.js → chunk-KMRROOME.js} +3 -3
- package/dist/{chunk-RVUYPKKD.js.map → chunk-KMRROOME.js.map} +1 -1
- package/dist/{chunk-ZPSWMSXL.js → chunk-OFDWNWCL.js} +3 -3
- package/dist/{chunk-ZPSWMSXL.js.map → chunk-OFDWNWCL.js.map} +1 -1
- package/dist/{chunk-DQ25W34A.cjs → chunk-UEI7SYH6.cjs} +3 -3
- package/dist/{chunk-DQ25W34A.cjs.map → chunk-UEI7SYH6.cjs.map} +1 -1
- package/dist/{chunk-GXCRPFTT.cjs → chunk-YEZBTYCP.cjs} +3 -3
- package/dist/{chunk-GXCRPFTT.cjs.map → chunk-YEZBTYCP.cjs.map} +1 -1
- package/dist/{client-BmzzZ8qS.d.cts → client-DkVBHMWb.d.cts} +5 -5
- package/dist/{client-CQytBtEn.d.ts → client-V4AF6Bz9.d.ts} +5 -5
- package/dist/common/pda/index.cjs +35 -35
- package/dist/common/pda/index.d.cts +2 -2
- package/dist/common/pda/index.d.ts +2 -2
- package/dist/common/pda/index.js +2 -2
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.cts +3 -3
- package/dist/constants/index.d.ts +3 -3
- package/dist/constants/index.js +1 -1
- package/dist/crypto/index.cjs +145 -145
- package/dist/crypto/index.d.cts +13 -13
- package/dist/crypto/index.d.ts +13 -13
- package/dist/crypto/index.js +4 -4
- package/dist/{cryptography-Dk1cBuym.d.ts → cryptography-BFSJcvi6.d.ts} +1 -1
- package/dist/{cryptography-BJ5sCytb.d.cts → cryptography-D6tPDh-Y.d.cts} +1 -1
- package/dist/{index-Ckj9PfBk.d.cts → index-BG0yjL7C.d.cts} +8 -8
- package/dist/{index-DAO_47xr.d.ts → index-ByynoyBO.d.ts} +8 -8
- package/dist/index.cjs +564 -564
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +10 -10
- package/dist/interfaces/index.d.cts +12 -12
- package/dist/interfaces/index.d.ts +12 -12
- package/dist/{interfaces-CpZDActo.d.cts → interfaces-43cReBcS.d.cts} +4 -4
- package/dist/{interfaces-CxrUtnVG.d.ts → interfaces-B8xKNl_6.d.ts} +2 -2
- package/dist/{interfaces-2b_ySL0r.d.cts → interfaces-D2NO6kDD.d.cts} +2 -2
- package/dist/{interfaces-C-N3oLgJ.d.ts → interfaces-z_xYJlgV.d.ts} +4 -4
- package/dist/math/index.cjs +8 -8
- package/dist/math/index.d.cts +4 -4
- package/dist/math/index.d.ts +4 -4
- package/dist/math/index.js +2 -2
- package/dist/{networks-B3pArLLR.d.ts → networks-RMd3abPE.d.ts} +1 -1
- package/dist/{networks-Bkl2oP0q.d.cts → networks-yAoO8peQ.d.cts} +1 -1
- package/dist/solana/index.d.cts +7 -7
- package/dist/solana/index.d.ts +7 -7
- package/dist/{temporal-B3yk1YkA.d.ts → temporal-BbRaEPoO.d.ts} +1 -1
- package/dist/{temporal-BHMGDS-0.d.cts → temporal-oUj7iCaq.d.cts} +1 -1
- package/dist/{transaction-forwarder-BODYfi-S.d.ts → transaction-forwarder-5mAMTjw6.d.ts} +2 -2
- package/dist/{transaction-forwarder-DwAK9whb.d.cts → transaction-forwarder-C6gMUG7a.d.cts} +2 -2
- package/dist/types/index.d.cts +8 -8
- package/dist/types/index.d.ts +8 -8
- package/dist/{types-2UHG9wC-.d.cts → types-BohhvPth.d.cts} +1 -1
- package/dist/{types-C42QtYXI.d.ts → types-CW0oTT0j.d.ts} +1 -1
- package/dist/{types-CM3nVKl2.d.ts → types-C_V_CaKK.d.cts} +1 -1
- package/dist/{types-CM3nVKl2.d.cts → types-C_V_CaKK.d.ts} +1 -1
- package/dist/{types-BrQv82ne.d.ts → types-Ca7frykr.d.ts} +2 -2
- package/dist/{types-4rAlbodI.d.cts → types-CuKeoI19.d.cts} +2 -2
- package/dist/{types-gNnLmOsz.d.ts → types-CxfTIpN9.d.ts} +2 -2
- package/dist/{types-DfmTaW3z.d.ts → types-D1jDUjfN.d.ts} +1 -1
- package/dist/{types-KMWXIyOY.d.ts → types-DKEDUlH9.d.ts} +2 -2
- package/dist/{types-i26vVlXf.d.cts → types-EKuIfxTz.d.cts} +2 -2
- package/dist/{types-BYBfXNV_.d.cts → types-IMGYmlv-.d.cts} +1 -1
- package/dist/{types-C8HrYlDv.d.cts → types-PwNLi_2k.d.cts} +2 -2
- package/dist/utils/index.cjs +120 -120
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.js +2 -2
- package/package.json +19 -19
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkGXCRPFTT_cjs = require('./chunk-GXCRPFTT.cjs');
|
|
4
3
|
var chunkNKVMSABR_cjs = require('./chunk-NKVMSABR.cjs');
|
|
4
|
+
var chunk3LS5P32X_cjs = require('./chunk-3LS5P32X.cjs');
|
|
5
|
+
var chunkZY3TSHMJ_cjs = require('./chunk-ZY3TSHMJ.cjs');
|
|
6
|
+
var chunkUEI7SYH6_cjs = require('./chunk-UEI7SYH6.cjs');
|
|
5
7
|
var chunkZQOIYCGA_cjs = require('./chunk-ZQOIYCGA.cjs');
|
|
8
|
+
require('./chunk-TQQZGNOI.cjs');
|
|
6
9
|
var chunkBL6WXLPV_cjs = require('./chunk-BL6WXLPV.cjs');
|
|
7
|
-
var
|
|
8
|
-
var chunkJPDF7BIT_cjs = require('./chunk-JPDF7BIT.cjs');
|
|
10
|
+
var chunkYEZBTYCP_cjs = require('./chunk-YEZBTYCP.cjs');
|
|
9
11
|
var chunkY55PYKXH_cjs = require('./chunk-Y55PYKXH.cjs');
|
|
10
|
-
var chunkAXD7LXYY_cjs = require('./chunk-AXD7LXYY.cjs');
|
|
11
|
-
var chunkZY3TSHMJ_cjs = require('./chunk-ZY3TSHMJ.cjs');
|
|
12
12
|
require('./chunk-DMPMQ74B.cjs');
|
|
13
|
-
var chunkDQ25W34A_cjs = require('./chunk-DQ25W34A.cjs');
|
|
14
13
|
var chunk5GUSMQ74_cjs = require('./chunk-5GUSMQ74.cjs');
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var chunkFSK2ICMB_cjs = require('./chunk-FSK2ICMB.cjs');
|
|
16
15
|
require('./chunk-QJAUUYZU.cjs');
|
|
16
|
+
var chunkAXD7LXYY_cjs = require('./chunk-AXD7LXYY.cjs');
|
|
17
17
|
var chunkENVYYEM4_cjs = require('./chunk-ENVYYEM4.cjs');
|
|
18
18
|
var chunkFZYWLQAF_cjs = require('./chunk-FZYWLQAF.cjs');
|
|
19
19
|
var chunkLTCKPTZC_cjs = require('./chunk-LTCKPTZC.cjs');
|
|
@@ -855,7 +855,7 @@ var BPS_DIVISOR = 16384n;
|
|
|
855
855
|
var TREE_DEPTH = 4;
|
|
856
856
|
var MAX_LEAVES = 1 << TREE_DEPTH;
|
|
857
857
|
async function computeLeafHash(slab) {
|
|
858
|
-
const aggregator =
|
|
858
|
+
const aggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
859
859
|
return await aggregator([
|
|
860
860
|
slab.amountLowerBound,
|
|
861
861
|
slab.amountUpperBound,
|
|
@@ -870,7 +870,7 @@ async function buildFullTree(slabs) {
|
|
|
870
870
|
`Too many fee slabs: ${String(slabs.length)} (max ${String(MAX_LEAVES)})`
|
|
871
871
|
);
|
|
872
872
|
}
|
|
873
|
-
const hasher =
|
|
873
|
+
const hasher = chunk3LS5P32X_cjs.getPoseidonHasher();
|
|
874
874
|
const leafHashes = Array.from({ length: MAX_LEAVES }, () => 0n);
|
|
875
875
|
for (const [index, slab] of slabs.entries()) {
|
|
876
876
|
leafHashes[index] = await computeLeafHash(slab);
|
|
@@ -1144,9 +1144,9 @@ function getClaimableUtxoScannerFunction(args, deps) {
|
|
|
1144
1144
|
);
|
|
1145
1145
|
}
|
|
1146
1146
|
const fetchUtxoData = deps?.fetchUtxoData ?? client.fetchUtxoData;
|
|
1147
|
-
const aesDecryptor = deps?.aesDecryptor ??
|
|
1147
|
+
const aesDecryptor = deps?.aesDecryptor ?? chunk3LS5P32X_cjs.getAesDecryptor();
|
|
1148
1148
|
const x25519GetSharedSecret = deps?.x25519GetSharedSecret ?? ((privateKey, publicKey) => ed25519_js.x25519.getSharedSecret(privateKey, publicKey));
|
|
1149
|
-
const mvkX25519KeypairDeriver =
|
|
1149
|
+
const mvkX25519KeypairDeriver = chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({
|
|
1150
1150
|
client
|
|
1151
1151
|
});
|
|
1152
1152
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function fetchClaimableUtxos(treeIndex, startInsertionIndex, endInsertionIndex) {
|
|
@@ -1492,10 +1492,10 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1492
1492
|
depositModifiedGenerationIndexBytes[index2] = Number(indexValue & 0xffn);
|
|
1493
1493
|
indexValue >>= 8n;
|
|
1494
1494
|
}
|
|
1495
|
-
const nullifier =
|
|
1495
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(
|
|
1496
1496
|
depositModifiedGenerationIndexBytes
|
|
1497
1497
|
);
|
|
1498
|
-
const randomSecret =
|
|
1498
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(
|
|
1499
1499
|
depositModifiedGenerationIndexBytes
|
|
1500
1500
|
);
|
|
1501
1501
|
perLeafNullifiers.push(nullifier);
|
|
@@ -1672,7 +1672,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1672
1672
|
const blindingFactorOffset = chunk5GUSMQ74_cjs.decodeU256BeBytesToU256(
|
|
1673
1673
|
blindingFactorOffsetBytes
|
|
1674
1674
|
);
|
|
1675
|
-
const blindingFactor =
|
|
1675
|
+
const blindingFactor = chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor(blindingFactorOffset);
|
|
1676
1676
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(
|
|
1677
1677
|
blindingFactor,
|
|
1678
1678
|
`linkerKeystreamBlindingFactor[${String(leafIndex)}][${String(keyIndex)}]`
|
|
@@ -1752,7 +1752,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
const nullifierHashesAggregatedHash = await poseidonAggregator(nullifierHashes);
|
|
1754
1754
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifierHashesAggregatedHash, "nullifierHashesAggregatedHash");
|
|
1755
|
-
const rcEncryptor =
|
|
1755
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
1756
1756
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
1757
1757
|
});
|
|
1758
1758
|
const randomFactorBytes = sha3Addons_js.kmac256(
|
|
@@ -1820,7 +1820,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1820
1820
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedMvkHigh, "rcEncryptedMvkHigh");
|
|
1821
1821
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorLow, "rcEncryptedRandomFactorLow");
|
|
1822
1822
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorHigh, "rcEncryptedRandomFactorHigh");
|
|
1823
|
-
const rcKeyGenerator =
|
|
1823
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
1824
1824
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
1825
1825
|
});
|
|
1826
1826
|
const rcCounters = [
|
|
@@ -1887,7 +1887,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1887
1887
|
rescueEncryptionCommitmentBlindingFactorOffsetBytes
|
|
1888
1888
|
);
|
|
1889
1889
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(blindingFactorForRescueCommitment, "blindingFactorForRescueCommitment");
|
|
1890
|
-
const rescueEncryptionCommitmentGenerator =
|
|
1890
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
1891
1891
|
const getRcKey = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((counter) => {
|
|
1892
1892
|
const key = rcKeys.get(counter);
|
|
1893
1893
|
if (key === void 0) {
|
|
@@ -1958,7 +1958,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1958
1958
|
const fiatShamirChallenge = fiatShamirChallengeGenerator(fiatShamirInputBytes);
|
|
1959
1959
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(fiatShamirChallenge, "fiatShamirChallenge");
|
|
1960
1960
|
const fiatShamirChallengeLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(fiatShamirChallenge);
|
|
1961
|
-
const modulePow =
|
|
1961
|
+
const modulePow = chunk3LS5P32X_cjs.getModuloPowCurve25519Function();
|
|
1962
1962
|
const challengeSquared = modulePow(fiatShamirChallenge, 2n);
|
|
1963
1963
|
const challengeCubed = modulePow(fiatShamirChallenge, 3n);
|
|
1964
1964
|
const challengeToFourth = modulePow(fiatShamirChallenge, 4n);
|
|
@@ -1971,51 +1971,51 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1971
1971
|
const challengeCubedLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeCubed);
|
|
1972
1972
|
const challengeToFourthLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeToFourth);
|
|
1973
1973
|
const challengeToFifthLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeToFifth);
|
|
1974
|
-
const inverseForFinalAmountLimbs =
|
|
1974
|
+
const inverseForFinalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1975
1975
|
limbsToTuple(finalAmountAsLimbs)
|
|
1976
1976
|
);
|
|
1977
|
-
const inverseForMvkLowLimbs =
|
|
1978
|
-
const inverseForMvkHighLimbs =
|
|
1979
|
-
const inverseForRandomFactorLowLimbs =
|
|
1977
|
+
const inverseForMvkLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(limbsToTuple(mvkLowAsLimbs));
|
|
1978
|
+
const inverseForMvkHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(limbsToTuple(mvkHighAsLimbs));
|
|
1979
|
+
const inverseForRandomFactorLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1980
1980
|
limbsToTuple(randomFactorLowAsLimbs)
|
|
1981
1981
|
);
|
|
1982
|
-
const inverseForRandomFactorHighLimbs =
|
|
1982
|
+
const inverseForRandomFactorHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1983
1983
|
limbsToTuple(randomFactorHighAsLimbs)
|
|
1984
1984
|
);
|
|
1985
|
-
const inverseForChallengeLimbs =
|
|
1985
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1986
1986
|
limbsToTuple(fiatShamirChallengeLimbs)
|
|
1987
1987
|
);
|
|
1988
|
-
const inverseForChallengeSquaredLimbs =
|
|
1988
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1989
1989
|
limbsToTuple(challengeSquaredLimbs)
|
|
1990
1990
|
);
|
|
1991
|
-
const inverseForChallengeCubedLimbs =
|
|
1991
|
+
const inverseForChallengeCubedLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1992
1992
|
limbsToTuple(challengeCubedLimbs)
|
|
1993
1993
|
);
|
|
1994
|
-
const inverseForChallengeToFourthLimbs =
|
|
1994
|
+
const inverseForChallengeToFourthLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1995
1995
|
limbsToTuple(challengeToFourthLimbs)
|
|
1996
1996
|
);
|
|
1997
|
-
const inverseForChallengeToFifthLimbs =
|
|
1997
|
+
const inverseForChallengeToFifthLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
1998
1998
|
limbsToTuple(challengeToFifthLimbs)
|
|
1999
1999
|
);
|
|
2000
|
-
const inverseForKeysForFinalAmountLimbs =
|
|
2000
|
+
const inverseForKeysForFinalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2001
2001
|
limbsToTuple(keysForFinalAmountLimbs)
|
|
2002
2002
|
);
|
|
2003
|
-
const inverseForKeysForProtocolFeeLimbs =
|
|
2003
|
+
const inverseForKeysForProtocolFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2004
2004
|
limbsToTuple(keysForProtocolFeeLimbs)
|
|
2005
2005
|
);
|
|
2006
|
-
const inverseForKeysForRelayerFeeLimbs =
|
|
2006
|
+
const inverseForKeysForRelayerFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2007
2007
|
limbsToTuple(keysForRelayerFeeLimbs)
|
|
2008
2008
|
);
|
|
2009
|
-
const inverseForKeysForMvkLowLimbs =
|
|
2009
|
+
const inverseForKeysForMvkLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2010
2010
|
limbsToTuple(keysForMvkLowLimbs)
|
|
2011
2011
|
);
|
|
2012
|
-
const inverseForKeysForMvkHighLimbs =
|
|
2012
|
+
const inverseForKeysForMvkHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2013
2013
|
limbsToTuple(keysForMvkHighLimbs)
|
|
2014
2014
|
);
|
|
2015
|
-
const inverseForKeysForRandomFactorLowLimbs =
|
|
2015
|
+
const inverseForKeysForRandomFactorLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2016
2016
|
limbsToTuple(keysForRandomFactorLowLimbs)
|
|
2017
2017
|
);
|
|
2018
|
-
const inverseForKeysForRandomFactorHighLimbs =
|
|
2018
|
+
const inverseForKeysForRandomFactorHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
2019
2019
|
limbsToTuple(keysForRandomFactorHighLimbs)
|
|
2020
2020
|
);
|
|
2021
2021
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(inverseForFinalAmountLimbs, "inverseForFinalAmountLimbs");
|
|
@@ -2041,7 +2041,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
2041
2041
|
inverseForKeysForRandomFactorHighLimbs,
|
|
2042
2042
|
"inverseForKeysForRandomFactorHighLimbs"
|
|
2043
2043
|
);
|
|
2044
|
-
const polynomialEvaluator =
|
|
2044
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
2045
2045
|
const polynomialEvaluationResultScalar = polynomialEvaluator(
|
|
2046
2046
|
[
|
|
2047
2047
|
chunkZY3TSHMJ_cjs.createCurve25519FieldElement(finalAmount),
|
|
@@ -2180,7 +2180,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
const publicAggregatedHash = await poseidonAggregator(aggregatedHashInputs);
|
|
2182
2182
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(publicAggregatedHash, "publicAggregatedHash");
|
|
2183
|
-
const bpsDivisorInverse =
|
|
2183
|
+
const bpsDivisorInverse = chunkYEZBTYCP_cjs.computeBn254ModularInverse(chunkZY3TSHMJ_cjs.createBn254FieldElement(BPS_DIVISOR2));
|
|
2184
2184
|
const zkCircuitInputs = {
|
|
2185
2185
|
// Per-UTXO H1 data
|
|
2186
2186
|
version: utxosBatch.map((u) => chunkZY3TSHMJ_cjs.createBn254FieldElement(u.version)),
|
|
@@ -2489,19 +2489,19 @@ function getReceiverClaimableUtxoToEncryptedBalanceClaimerFunction(args, deps) {
|
|
|
2489
2489
|
const pollingIntervalMs = deps.pollingIntervalMs ?? 3e3;
|
|
2490
2490
|
const timeoutMs = deps.timeoutMs ?? 12e4;
|
|
2491
2491
|
const onProgress = deps.onProgress;
|
|
2492
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
2493
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
2494
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
2495
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
2496
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
2497
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
2498
|
-
const poseidonHasher = deps.crypto?.poseidonHasher ??
|
|
2499
|
-
const poseidonAggregator = deps.crypto?.poseidonAggregator ??
|
|
2500
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
2501
|
-
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ??
|
|
2502
|
-
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ??
|
|
2503
|
-
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ??
|
|
2504
|
-
const fiatShamirChallengeGeneratorFunction = deps.crypto?.fiatShamirChallengeGenerator ??
|
|
2492
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
2493
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
2494
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
2495
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
2496
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
2497
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
2498
|
+
const poseidonHasher = deps.crypto?.poseidonHasher ?? chunk3LS5P32X_cjs.getPoseidonHasher();
|
|
2499
|
+
const poseidonAggregator = deps.crypto?.poseidonAggregator ?? chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
2500
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
2501
|
+
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
2502
|
+
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ?? chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
2503
|
+
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
2504
|
+
const fiatShamirChallengeGeneratorFunction = deps.crypto?.fiatShamirChallengeGenerator ?? chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
2505
2505
|
const generateRandomU2562 = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
2506
2506
|
const generateRandomU1282 = deps.random?.generateRandomU128 ?? chunkZY3TSHMJ_cjs.generateRandomU128;
|
|
2507
2507
|
return async (utxos, optionalData, microLamportsPerAcu) => {
|
|
@@ -2805,7 +2805,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
2805
2805
|
depositModifiedGenerationIndexBytes[index] = Number(indexValueForExpansion & 0xffn);
|
|
2806
2806
|
indexValueForExpansion >>= 8n;
|
|
2807
2807
|
}
|
|
2808
|
-
const expandedModifiedGenerationIndex =
|
|
2808
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(
|
|
2809
2809
|
depositModifiedGenerationIndexBytes
|
|
2810
2810
|
);
|
|
2811
2811
|
let ephemeralOffset = 0n;
|
|
@@ -2877,10 +2877,10 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
2877
2877
|
depositModifiedGenerationIndexBytes2[index2] = Number(indexValue & 0xffn);
|
|
2878
2878
|
indexValue >>= 8n;
|
|
2879
2879
|
}
|
|
2880
|
-
const nullifier =
|
|
2880
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(
|
|
2881
2881
|
depositModifiedGenerationIndexBytes2
|
|
2882
2882
|
);
|
|
2883
|
-
const randomSecret =
|
|
2883
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(
|
|
2884
2884
|
depositModifiedGenerationIndexBytes2
|
|
2885
2885
|
);
|
|
2886
2886
|
perLeafNullifiers.push(nullifier);
|
|
@@ -3057,7 +3057,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3057
3057
|
const blindingFactorOffset = chunk5GUSMQ74_cjs.decodeU256BeBytesToU256(
|
|
3058
3058
|
blindingFactorOffsetBytes
|
|
3059
3059
|
);
|
|
3060
|
-
const blindingFactor =
|
|
3060
|
+
const blindingFactor = chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor(blindingFactorOffset);
|
|
3061
3061
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(
|
|
3062
3062
|
blindingFactor,
|
|
3063
3063
|
`linkerKeystreamBlindingFactor[${String(leafIndex)}][${String(keyIndex)}]`
|
|
@@ -3136,7 +3136,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3136
3136
|
}
|
|
3137
3137
|
const nullifierHashesAggregatedHash = await poseidonAggregator(nullifierHashes);
|
|
3138
3138
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifierHashesAggregatedHash, "nullifierHashesAggregatedHash");
|
|
3139
|
-
const rcEncryptor =
|
|
3139
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
3140
3140
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
3141
3141
|
});
|
|
3142
3142
|
const randomFactorBytes = sha3Addons_js.kmac256(
|
|
@@ -3204,7 +3204,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3204
3204
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedMvkHigh, "rcEncryptedMvkHigh");
|
|
3205
3205
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorLow, "rcEncryptedRandomFactorLow");
|
|
3206
3206
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorHigh, "rcEncryptedRandomFactorHigh");
|
|
3207
|
-
const rcKeyGenerator =
|
|
3207
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
3208
3208
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
3209
3209
|
});
|
|
3210
3210
|
const rcCounters = [
|
|
@@ -3271,7 +3271,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3271
3271
|
rescueEncryptionCommitmentBlindingFactorOffsetBytes
|
|
3272
3272
|
);
|
|
3273
3273
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(blindingFactorForRescueCommitment, "blindingFactorForRescueCommitment");
|
|
3274
|
-
const rescueEncryptionCommitmentGenerator =
|
|
3274
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
3275
3275
|
const rcEncryptionCommitment = await rescueEncryptionCommitmentGenerator(
|
|
3276
3276
|
[
|
|
3277
3277
|
rcEncryptedFinalAmount,
|
|
@@ -3331,7 +3331,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3331
3331
|
const fiatShamirChallenge = fiatShamirChallengeGenerator(fiatShamirInputBytes);
|
|
3332
3332
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(fiatShamirChallenge, "fiatShamirChallenge");
|
|
3333
3333
|
const fiatShamirChallengeLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(fiatShamirChallenge);
|
|
3334
|
-
const modulePow =
|
|
3334
|
+
const modulePow = chunk3LS5P32X_cjs.getModuloPowCurve25519Function();
|
|
3335
3335
|
const challengeSquared = modulePow(fiatShamirChallenge, 2n);
|
|
3336
3336
|
const challengeCubed = modulePow(fiatShamirChallenge, 3n);
|
|
3337
3337
|
const challengeToFourth = modulePow(fiatShamirChallenge, 4n);
|
|
@@ -3344,55 +3344,55 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3344
3344
|
const challengeCubedLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeCubed);
|
|
3345
3345
|
const challengeToFourthLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeToFourth);
|
|
3346
3346
|
const challengeToFifthLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeToFifth);
|
|
3347
|
-
const inverseForFinalAmountLimbs =
|
|
3347
|
+
const inverseForFinalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3348
3348
|
limbsToTuple2(finalAmountAsLimbs)
|
|
3349
3349
|
);
|
|
3350
|
-
const inverseForMvkLowLimbs =
|
|
3350
|
+
const inverseForMvkLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3351
3351
|
limbsToTuple2(ephemeralMvkLowAsLimbs)
|
|
3352
3352
|
);
|
|
3353
|
-
const inverseForMvkHighLimbs =
|
|
3353
|
+
const inverseForMvkHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3354
3354
|
limbsToTuple2(ephemeralMvkHighAsLimbs)
|
|
3355
3355
|
);
|
|
3356
|
-
const inverseForRandomFactorLowLimbs =
|
|
3356
|
+
const inverseForRandomFactorLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3357
3357
|
limbsToTuple2(randomFactorLowAsLimbs)
|
|
3358
3358
|
);
|
|
3359
|
-
const inverseForRandomFactorHighLimbs =
|
|
3359
|
+
const inverseForRandomFactorHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3360
3360
|
limbsToTuple2(randomFactorHighAsLimbs)
|
|
3361
3361
|
);
|
|
3362
|
-
const inverseForChallengeLimbs =
|
|
3362
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3363
3363
|
limbsToTuple2(fiatShamirChallengeLimbs)
|
|
3364
3364
|
);
|
|
3365
|
-
const inverseForChallengeSquaredLimbs =
|
|
3365
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3366
3366
|
limbsToTuple2(challengeSquaredLimbs)
|
|
3367
3367
|
);
|
|
3368
|
-
const inverseForChallengeCubedLimbs =
|
|
3368
|
+
const inverseForChallengeCubedLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3369
3369
|
limbsToTuple2(challengeCubedLimbs)
|
|
3370
3370
|
);
|
|
3371
|
-
const inverseForChallengeToFourthLimbs =
|
|
3371
|
+
const inverseForChallengeToFourthLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3372
3372
|
limbsToTuple2(challengeToFourthLimbs)
|
|
3373
3373
|
);
|
|
3374
|
-
const inverseForChallengeToFifthLimbs =
|
|
3374
|
+
const inverseForChallengeToFifthLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3375
3375
|
limbsToTuple2(challengeToFifthLimbs)
|
|
3376
3376
|
);
|
|
3377
|
-
const inverseForKeysForFinalAmountLimbs =
|
|
3377
|
+
const inverseForKeysForFinalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3378
3378
|
limbsToTuple2(keysForFinalAmountLimbs)
|
|
3379
3379
|
);
|
|
3380
|
-
const inverseForKeysForProtocolFeeLimbs =
|
|
3380
|
+
const inverseForKeysForProtocolFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3381
3381
|
limbsToTuple2(keysForProtocolFeeLimbs)
|
|
3382
3382
|
);
|
|
3383
|
-
const inverseForKeysForRelayerFeeLimbs =
|
|
3383
|
+
const inverseForKeysForRelayerFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3384
3384
|
limbsToTuple2(keysForRelayerFeeLimbs)
|
|
3385
3385
|
);
|
|
3386
|
-
const inverseForKeysForMvkLowLimbs =
|
|
3386
|
+
const inverseForKeysForMvkLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3387
3387
|
limbsToTuple2(keysForMvkLowLimbs)
|
|
3388
3388
|
);
|
|
3389
|
-
const inverseForKeysForMvkHighLimbs =
|
|
3389
|
+
const inverseForKeysForMvkHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3390
3390
|
limbsToTuple2(keysForMvkHighLimbs)
|
|
3391
3391
|
);
|
|
3392
|
-
const inverseForKeysForRandomFactorLowLimbs =
|
|
3392
|
+
const inverseForKeysForRandomFactorLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3393
3393
|
limbsToTuple2(keysForRandomFactorLowLimbs)
|
|
3394
3394
|
);
|
|
3395
|
-
const inverseForKeysForRandomFactorHighLimbs =
|
|
3395
|
+
const inverseForKeysForRandomFactorHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
3396
3396
|
limbsToTuple2(keysForRandomFactorHighLimbs)
|
|
3397
3397
|
);
|
|
3398
3398
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(inverseForFinalAmountLimbs, "inverseForFinalAmountLimbs");
|
|
@@ -3418,7 +3418,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3418
3418
|
inverseForKeysForRandomFactorHighLimbs,
|
|
3419
3419
|
"inverseForKeysForRandomFactorHighLimbs"
|
|
3420
3420
|
);
|
|
3421
|
-
const polynomialEvaluator =
|
|
3421
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
3422
3422
|
const polynomialEvaluationResultScalar = polynomialEvaluator(
|
|
3423
3423
|
[
|
|
3424
3424
|
chunkZY3TSHMJ_cjs.createCurve25519FieldElement(finalAmount),
|
|
@@ -3557,7 +3557,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3557
3557
|
}
|
|
3558
3558
|
const publicAggregatedHash = await poseidonAggregator(aggregatedHashInputs);
|
|
3559
3559
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(publicAggregatedHash, "publicAggregatedHash");
|
|
3560
|
-
const bpsDivisorInverse =
|
|
3560
|
+
const bpsDivisorInverse = chunkYEZBTYCP_cjs.computeBn254ModularInverse(chunkZY3TSHMJ_cjs.createBn254FieldElement(BPS_DIVISOR3));
|
|
3561
3561
|
const zkCircuitInputs = {
|
|
3562
3562
|
// Per-UTXO H1 data
|
|
3563
3563
|
version: utxosBatch.map((u) => chunkZY3TSHMJ_cjs.createBn254FieldElement(u.version)),
|
|
@@ -3840,22 +3840,22 @@ function getSelfClaimableUtxoToEncryptedBalanceClaimerFunction(args, deps) {
|
|
|
3840
3840
|
const pollingIntervalMs = deps.pollingIntervalMs ?? 3e3;
|
|
3841
3841
|
const timeoutMs = deps.timeoutMs ?? 12e4;
|
|
3842
3842
|
const onProgress = deps.onProgress;
|
|
3843
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
3844
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
3843
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
3844
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
3845
3845
|
client
|
|
3846
3846
|
});
|
|
3847
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
3848
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
3847
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
3848
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
3849
3849
|
client
|
|
3850
3850
|
});
|
|
3851
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
3852
|
-
const poseidonHasher = deps.crypto?.poseidonHasher ??
|
|
3853
|
-
const poseidonAggregator = deps.crypto?.poseidonAggregator ??
|
|
3854
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
3855
|
-
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ??
|
|
3856
|
-
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ??
|
|
3857
|
-
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ??
|
|
3858
|
-
const fiatShamirChallengeGeneratorFunction = deps.crypto?.fiatShamirChallengeGenerator ??
|
|
3851
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
3852
|
+
const poseidonHasher = deps.crypto?.poseidonHasher ?? chunk3LS5P32X_cjs.getPoseidonHasher();
|
|
3853
|
+
const poseidonAggregator = deps.crypto?.poseidonAggregator ?? chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
3854
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
3855
|
+
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
3856
|
+
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ?? chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
3857
|
+
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
3858
|
+
const fiatShamirChallengeGeneratorFunction = deps.crypto?.fiatShamirChallengeGenerator ?? chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
3859
3859
|
const generateRandomU2562 = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
3860
3860
|
const generateRandomU1282 = deps.random?.generateRandomU128 ?? chunkZY3TSHMJ_cjs.generateRandomU128;
|
|
3861
3861
|
return async (utxos, optionalData, microLamportsPerAcu) => {
|
|
@@ -4157,7 +4157,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4157
4157
|
depositModifiedGenerationIndexBytes[index] = Number(indexValueForExpansion & 0xffn);
|
|
4158
4158
|
indexValueForExpansion >>= 8n;
|
|
4159
4159
|
}
|
|
4160
|
-
const expandedModifiedGenerationIndex =
|
|
4160
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(
|
|
4161
4161
|
depositModifiedGenerationIndexBytes
|
|
4162
4162
|
);
|
|
4163
4163
|
let ephemeralOffset = 0n;
|
|
@@ -4229,10 +4229,10 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4229
4229
|
depositModifiedGenerationIndexBytes2[index2] = Number(indexValue & 0xffn);
|
|
4230
4230
|
indexValue >>= 8n;
|
|
4231
4231
|
}
|
|
4232
|
-
const nullifier =
|
|
4232
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(
|
|
4233
4233
|
depositModifiedGenerationIndexBytes2
|
|
4234
4234
|
);
|
|
4235
|
-
const randomSecret =
|
|
4235
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(
|
|
4236
4236
|
depositModifiedGenerationIndexBytes2
|
|
4237
4237
|
);
|
|
4238
4238
|
perLeafNullifiers.push(nullifier);
|
|
@@ -4353,7 +4353,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4353
4353
|
const blindingFactorOffset = chunk5GUSMQ74_cjs.decodeU256BeBytesToU256(
|
|
4354
4354
|
blindingFactorOffsetBytes
|
|
4355
4355
|
);
|
|
4356
|
-
const blindingFactor =
|
|
4356
|
+
const blindingFactor = chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor(blindingFactorOffset);
|
|
4357
4357
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(
|
|
4358
4358
|
blindingFactor,
|
|
4359
4359
|
`linkerKeystreamBlindingFactor[${String(leafIndex)}][${String(keyIndex)}]`
|
|
@@ -4432,7 +4432,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
const nullifierHashesAggregatedHash = await poseidonAggregator(nullifierHashes);
|
|
4434
4434
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifierHashesAggregatedHash, "nullifierHashesAggregatedHash");
|
|
4435
|
-
const rcEncryptor =
|
|
4435
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
4436
4436
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
4437
4437
|
});
|
|
4438
4438
|
const randomFactorBytes = sha3Addons_js.kmac256(
|
|
@@ -4495,7 +4495,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4495
4495
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedMvkHigh, "rcEncryptedMvkHigh");
|
|
4496
4496
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorLow, "rcEncryptedRandomFactorLow");
|
|
4497
4497
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorHigh, "rcEncryptedRandomFactorHigh");
|
|
4498
|
-
const rcKeyGenerator =
|
|
4498
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
4499
4499
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
4500
4500
|
});
|
|
4501
4501
|
const rcCounters = [
|
|
@@ -4543,7 +4543,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4543
4543
|
rescueEncryptionCommitmentBlindingFactorOffsetBytes
|
|
4544
4544
|
);
|
|
4545
4545
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(blindingFactorForRescueCommitment, "blindingFactorForRescueCommitment");
|
|
4546
|
-
const rescueEncryptionCommitmentGenerator =
|
|
4546
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
4547
4547
|
const rcEncryptionCommitment = await rescueEncryptionCommitmentGenerator(
|
|
4548
4548
|
[
|
|
4549
4549
|
rcEncryptedMvkLow,
|
|
@@ -4594,38 +4594,38 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4594
4594
|
const fiatShamirChallenge = fiatShamirChallengeGenerator(fiatShamirInputBytes);
|
|
4595
4595
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(fiatShamirChallenge, "fiatShamirChallenge");
|
|
4596
4596
|
const fiatShamirChallengeLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(fiatShamirChallenge);
|
|
4597
|
-
const modulePow =
|
|
4597
|
+
const modulePow = chunk3LS5P32X_cjs.getModuloPowCurve25519Function();
|
|
4598
4598
|
const challengeSquared = modulePow(fiatShamirChallenge, 2n);
|
|
4599
4599
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(challengeSquared, "challengeSquared");
|
|
4600
4600
|
const challengeSquaredLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeSquared);
|
|
4601
|
-
const inverseForMvkLowLimbs =
|
|
4601
|
+
const inverseForMvkLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4602
4602
|
limbsToTuple3(ephemeralMvkLowAsLimbs)
|
|
4603
4603
|
);
|
|
4604
|
-
const inverseForMvkHighLimbs =
|
|
4604
|
+
const inverseForMvkHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4605
4605
|
limbsToTuple3(ephemeralMvkHighAsLimbs)
|
|
4606
4606
|
);
|
|
4607
|
-
const inverseForRandomFactorLowLimbs =
|
|
4607
|
+
const inverseForRandomFactorLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4608
4608
|
limbsToTuple3(randomFactorLowAsLimbs)
|
|
4609
4609
|
);
|
|
4610
|
-
const inverseForRandomFactorHighLimbs =
|
|
4610
|
+
const inverseForRandomFactorHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4611
4611
|
limbsToTuple3(randomFactorHighAsLimbs)
|
|
4612
4612
|
);
|
|
4613
|
-
const inverseForChallengeLimbs =
|
|
4613
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4614
4614
|
limbsToTuple3(fiatShamirChallengeLimbs)
|
|
4615
4615
|
);
|
|
4616
|
-
const inverseForChallengeSquaredLimbs =
|
|
4616
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4617
4617
|
limbsToTuple3(challengeSquaredLimbs)
|
|
4618
4618
|
);
|
|
4619
|
-
const inverseForKeysForMvkLowLimbs =
|
|
4619
|
+
const inverseForKeysForMvkLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4620
4620
|
limbsToTuple3(keysForMvkLowLimbs)
|
|
4621
4621
|
);
|
|
4622
|
-
const inverseForKeysForMvkHighLimbs =
|
|
4622
|
+
const inverseForKeysForMvkHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4623
4623
|
limbsToTuple3(keysForMvkHighLimbs)
|
|
4624
4624
|
);
|
|
4625
|
-
const inverseForKeysForRandomFactorLowLimbs =
|
|
4625
|
+
const inverseForKeysForRandomFactorLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4626
4626
|
limbsToTuple3(keysForRandomFactorLowLimbs)
|
|
4627
4627
|
);
|
|
4628
|
-
const inverseForKeysForRandomFactorHighLimbs =
|
|
4628
|
+
const inverseForKeysForRandomFactorHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
4629
4629
|
limbsToTuple3(keysForRandomFactorHighLimbs)
|
|
4630
4630
|
);
|
|
4631
4631
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(inverseForMvkLowLimbs, "inverseForMvkLowLimbs");
|
|
@@ -4644,7 +4644,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4644
4644
|
inverseForKeysForRandomFactorHighLimbs,
|
|
4645
4645
|
"inverseForKeysForRandomFactorHighLimbs"
|
|
4646
4646
|
);
|
|
4647
|
-
const polynomialEvaluator =
|
|
4647
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
4648
4648
|
const polynomialEvaluationResultScalar = polynomialEvaluator(
|
|
4649
4649
|
[ephemeralMvkLow, ephemeralMvkHigh, randomFactorForPolynomialCommitment],
|
|
4650
4650
|
fiatShamirChallenge
|
|
@@ -4985,21 +4985,21 @@ function getSelfClaimableUtxoToPublicBalanceClaimerFunction(args, deps) {
|
|
|
4985
4985
|
const pollingIntervalMs = deps.pollingIntervalMs ?? 3e3;
|
|
4986
4986
|
const timeoutMs = deps.timeoutMs ?? 12e4;
|
|
4987
4987
|
const onProgress = deps.onProgress;
|
|
4988
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
4989
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
4988
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
4989
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
4990
4990
|
client
|
|
4991
4991
|
});
|
|
4992
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
4993
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
4992
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
4993
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
4994
4994
|
client
|
|
4995
4995
|
});
|
|
4996
|
-
const poseidonHasher = deps.crypto?.poseidonHasher ??
|
|
4997
|
-
const poseidonAggregator = deps.crypto?.poseidonAggregator ??
|
|
4998
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
4999
|
-
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ??
|
|
5000
|
-
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ??
|
|
5001
|
-
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ??
|
|
5002
|
-
const fiatShamirChallengeGeneratorFunction = deps.crypto?.fiatShamirChallengeGenerator ??
|
|
4996
|
+
const poseidonHasher = deps.crypto?.poseidonHasher ?? chunk3LS5P32X_cjs.getPoseidonHasher();
|
|
4997
|
+
const poseidonAggregator = deps.crypto?.poseidonAggregator ?? chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
4998
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
4999
|
+
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
5000
|
+
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ?? chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
5001
|
+
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
5002
|
+
const fiatShamirChallengeGeneratorFunction = deps.crypto?.fiatShamirChallengeGenerator ?? chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
5003
5003
|
const generateRandomU2562 = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
5004
5004
|
const generateRandomU1282 = deps.random?.generateRandomU128 ?? chunkZY3TSHMJ_cjs.generateRandomU128;
|
|
5005
5005
|
const protocolFeeProviderFn = deps.fees?.protocolFeeProvider ?? getHardcodedClaimUtxoProtocolFeeProvider();
|
|
@@ -5011,7 +5011,7 @@ function getSelfClaimableUtxoToPublicBalanceClaimerFunction(args, deps) {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
const masterSeedBytes = await client.masterSeed.getMasterSeed();
|
|
5013
5013
|
const generationIndex = providedGenerationIndex ?? generateRandomU2562();
|
|
5014
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
5014
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
5015
5015
|
const keypairResult = await mvkX25519KeypairDeriver();
|
|
5016
5016
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
5017
5017
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
@@ -5118,7 +5118,7 @@ function getComplianceGrantIssuerFunction(args, deps) {
|
|
|
5118
5118
|
const { signer } = client;
|
|
5119
5119
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5120
5120
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5121
|
-
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ??
|
|
5121
|
+
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
5122
5122
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createUserGrantedComplianceGrant(receiver, granterX25519, receiverX25519, nonce, optionalData, callbacks) {
|
|
5123
5123
|
const userAddress = signer.address;
|
|
5124
5124
|
const programId = client.networkConfig.programId;
|
|
@@ -5126,7 +5126,7 @@ function getComplianceGrantIssuerFunction(args, deps) {
|
|
|
5126
5126
|
const mvkProvingSigner = await kit.createKeyPairSignerFromPrivateKeyBytes(
|
|
5127
5127
|
keypairResult.ed25519Keypair.seed
|
|
5128
5128
|
);
|
|
5129
|
-
await
|
|
5129
|
+
await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(userAddress, programId);
|
|
5130
5130
|
const noopSigner = kit.createNoopSigner(userAddress);
|
|
5131
5131
|
const instruction = await umbraCodama.getCreateUserGrantInstructionAsync({
|
|
5132
5132
|
granterX25519ProvingSigner: mvkProvingSigner,
|
|
@@ -5162,7 +5162,7 @@ function getComplianceGrantRevokerFunction(args, deps) {
|
|
|
5162
5162
|
const { signer } = client;
|
|
5163
5163
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5164
5164
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5165
|
-
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ??
|
|
5165
|
+
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
5166
5166
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function deleteUserGrantedComplianceGrant(receiver, granterX25519, receiverX25519, nonce, optionalData, callbacks) {
|
|
5167
5167
|
const userAddress = signer.address;
|
|
5168
5168
|
const programId = client.networkConfig.programId;
|
|
@@ -5170,7 +5170,7 @@ function getComplianceGrantRevokerFunction(args, deps) {
|
|
|
5170
5170
|
const mvkProvingSigner = await kit.createKeyPairSignerFromPrivateKeyBytes(
|
|
5171
5171
|
keypairResult.ed25519Keypair.seed
|
|
5172
5172
|
);
|
|
5173
|
-
await
|
|
5173
|
+
await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(userAddress, programId);
|
|
5174
5174
|
const noopSigner = kit.createNoopSigner(userAddress);
|
|
5175
5175
|
const instruction = await umbraCodama.getDeleteUserGrantInstructionAsync({
|
|
5176
5176
|
feePayer: noopSigner,
|
|
@@ -5228,7 +5228,7 @@ function getSharedCiphertextReencryptorForUserGrantFunction(args, deps) {
|
|
|
5228
5228
|
);
|
|
5229
5229
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5230
5230
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5231
|
-
const arciumAccounts = await
|
|
5231
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5232
5232
|
client.networkConfig.programId,
|
|
5233
5233
|
client.networkConfig.arciumProgramAddress,
|
|
5234
5234
|
clusterOffset,
|
|
@@ -5314,7 +5314,7 @@ function getNetworkCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5314
5314
|
);
|
|
5315
5315
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5316
5316
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5317
|
-
const arciumAccounts = await
|
|
5317
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5318
5318
|
client.networkConfig.programId,
|
|
5319
5319
|
client.networkConfig.arciumProgramAddress,
|
|
5320
5320
|
clusterOffset,
|
|
@@ -5399,7 +5399,7 @@ function getSharedCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5399
5399
|
);
|
|
5400
5400
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5401
5401
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5402
|
-
const arciumAccounts = await
|
|
5402
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5403
5403
|
client.networkConfig.programId,
|
|
5404
5404
|
client.networkConfig.arciumProgramAddress,
|
|
5405
5405
|
clusterOffset,
|
|
@@ -5463,7 +5463,7 @@ function getUserComplianceGrantQuerierFunction(args, deps) {
|
|
|
5463
5463
|
const umbraProgram = client.networkConfig.programId;
|
|
5464
5464
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function queryUserComplianceGrant(granterX25519, nonce, receiverX25519, options) {
|
|
5465
5465
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5466
|
-
const pda = await
|
|
5466
|
+
const pda = await chunkUEI7SYH6_cjs.findUserComplianceGrantPda(
|
|
5467
5467
|
granterX25519,
|
|
5468
5468
|
nonce,
|
|
5469
5469
|
receiverX25519,
|
|
@@ -5484,7 +5484,7 @@ function getNetworkComplianceGrantQuerierFunction(args, deps) {
|
|
|
5484
5484
|
const umbraProgram = client.networkConfig.programId;
|
|
5485
5485
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function queryNetworkMxeComplianceGrant(nonce, receiverX25519, options) {
|
|
5486
5486
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5487
|
-
const pda = await
|
|
5487
|
+
const pda = await chunkUEI7SYH6_cjs.findNetworkComplianceGrantPda(nonce, receiverX25519, umbraProgram);
|
|
5488
5488
|
const accountMap = await accountInfoProvider([pda], { commitment: accountInfoCommitment });
|
|
5489
5489
|
const maybeAccount = accountMap.get(pda);
|
|
5490
5490
|
if (maybeAccount?.exists !== true) {
|
|
@@ -5500,7 +5500,7 @@ function getSharedComplianceGrantQuerierFunction(args, deps) {
|
|
|
5500
5500
|
const umbraProgram = client.networkConfig.programId;
|
|
5501
5501
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function queryNetworkSharedComplianceGrant(granterX25519, nonce, receiverX25519, options) {
|
|
5502
5502
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5503
|
-
const pda = await
|
|
5503
|
+
const pda = await chunkUEI7SYH6_cjs.findSharedComplianceGrantPda(
|
|
5504
5504
|
granterX25519,
|
|
5505
5505
|
nonce,
|
|
5506
5506
|
receiverX25519,
|
|
@@ -5543,7 +5543,7 @@ function getNetworkEncryptionToSharedEncryptionConverterFunction(args, deps) {
|
|
|
5543
5543
|
const pdaDerivations = await Promise.all(
|
|
5544
5544
|
mints.map(async (mint) => ({
|
|
5545
5545
|
mint,
|
|
5546
|
-
pda: await
|
|
5546
|
+
pda: await chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(
|
|
5547
5547
|
userAddress,
|
|
5548
5548
|
mint,
|
|
5549
5549
|
client.networkConfig.programId
|
|
@@ -5593,7 +5593,7 @@ function getNetworkEncryptionToSharedEncryptionConverterFunction(args, deps) {
|
|
|
5593
5593
|
const transactionPromises = eligibleMints.map(async (mint) => {
|
|
5594
5594
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5595
5595
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5596
|
-
const arciumAccounts = await
|
|
5596
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5597
5597
|
client.networkConfig.programId,
|
|
5598
5598
|
client.networkConfig.arciumProgramAddress,
|
|
5599
5599
|
clusterOffset,
|
|
@@ -5696,7 +5696,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5696
5696
|
const accountInfoProvider = deps?.rpc?.accountInfoProvider ?? client.accountInfoProvider;
|
|
5697
5697
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5698
5698
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5699
|
-
const mintX25519KeypairDeriver = deps?.keys?.mintX25519KeypairDeriver ??
|
|
5699
|
+
const mintX25519KeypairDeriver = deps?.keys?.mintX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMintX25519KeypairDeriver({ client });
|
|
5700
5700
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function rotateMintX25519EncryptionKey(mint, optionalData, callbacks, microLamportsPerAcu, options) {
|
|
5701
5701
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5702
5702
|
const userAddress = signer.address;
|
|
@@ -5704,7 +5704,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5704
5704
|
const x25519ProvingSigner = await kit.createKeyPairSignerFromPrivateKeyBytes(
|
|
5705
5705
|
keypairResult.ed25519Keypair.seed
|
|
5706
5706
|
);
|
|
5707
|
-
const tokenAccountPda = await
|
|
5707
|
+
const tokenAccountPda = await chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(
|
|
5708
5708
|
userAddress,
|
|
5709
5709
|
mint,
|
|
5710
5710
|
client.networkConfig.programId
|
|
@@ -5746,7 +5746,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5746
5746
|
}
|
|
5747
5747
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5748
5748
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5749
|
-
const arciumAccounts = await
|
|
5749
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5750
5750
|
client.networkConfig.programId,
|
|
5751
5751
|
client.networkConfig.arciumProgramAddress,
|
|
5752
5752
|
clusterOffset,
|
|
@@ -6057,8 +6057,8 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6057
6057
|
let encryptedUserAccountPda;
|
|
6058
6058
|
try {
|
|
6059
6059
|
[encryptedTokenAccountPda, encryptedUserAccountPda] = await Promise.all([
|
|
6060
|
-
|
|
6061
|
-
|
|
6060
|
+
chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(destinationAddress, mint, client.networkConfig.programId),
|
|
6061
|
+
chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(destinationAddress, client.networkConfig.programId)
|
|
6062
6062
|
]);
|
|
6063
6063
|
} catch (error) {
|
|
6064
6064
|
throw new chunkBL6WXLPV_cjs.EncryptedDepositError(
|
|
@@ -6127,7 +6127,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6127
6127
|
const resetCompDefName = isSharedMode ? "reset_shared_eta_queue_v9" : "reset_mxe_eta_queue_v9";
|
|
6128
6128
|
const resetComputationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
6129
6129
|
const resetMpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
6130
|
-
const resetArciumAccounts = await
|
|
6130
|
+
const resetArciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
6131
6131
|
client.networkConfig.programId,
|
|
6132
6132
|
client.networkConfig.arciumProgramAddress,
|
|
6133
6133
|
clusterOffset,
|
|
@@ -6196,7 +6196,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6196
6196
|
[DepositInstructionVariant.ExistingSharedBalance]: "deposit_from_public_balance_into_existing_shared_balance_v11"
|
|
6197
6197
|
}[instructionVariant];
|
|
6198
6198
|
const altEntry = chunkAXD7LXYY_cjs.lookupAltEntry(client.networkConfig.addressLookupTables, clusterOffset, compDefInstructionName);
|
|
6199
|
-
const arciumAccounts = await
|
|
6199
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
6200
6200
|
client.networkConfig.programId,
|
|
6201
6201
|
client.networkConfig.arciumProgramAddress,
|
|
6202
6202
|
clusterOffset,
|
|
@@ -6365,32 +6365,32 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6365
6365
|
const factoryCloseProofAccountCallbacks = deps.hooks?.closeProofAccount;
|
|
6366
6366
|
const factoryCreateProofAccountCallbacks = deps.hooks?.createProofAccount;
|
|
6367
6367
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
6368
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
6369
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
6370
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
6371
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
6372
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
6373
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
6374
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
6375
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
6368
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
6369
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
6370
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
6371
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
6372
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
6373
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
6374
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
6375
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
6376
6376
|
client
|
|
6377
6377
|
});
|
|
6378
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
6379
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
6378
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
6379
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
6380
6380
|
client
|
|
6381
6381
|
});
|
|
6382
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
6383
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
6384
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
6385
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
6386
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
6387
|
-
const userCommitmentGenerator =
|
|
6388
|
-
const rescueEncryptionCommitmentGenerator =
|
|
6389
|
-
const poseidonAggregator =
|
|
6390
|
-
const fiatShamirChallengeGenerator =
|
|
6391
|
-
const challengePowersFunction =
|
|
6392
|
-
const polynomialEvaluator =
|
|
6393
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
6382
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
6383
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
6384
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
6385
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
6386
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
6387
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
6388
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
6389
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
6390
|
+
const fiatShamirChallengeGenerator = chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
6391
|
+
const challengePowersFunction = chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
6392
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
6393
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
6394
6394
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
6395
6395
|
const generateComputationOffsetFunction = deps.random?.generateComputationOffset ?? chunkZY3TSHMJ_cjs.generateComputationOffset;
|
|
6396
6396
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createSelfClaimableUtxo(args2, options) {
|
|
@@ -6418,12 +6418,12 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6418
6418
|
masterSeed,
|
|
6419
6419
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
6420
6420
|
);
|
|
6421
|
-
const expandedModifiedGenerationIndex =
|
|
6421
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6422
6422
|
let expandedModifiedGenerationIndexU256 = 0n;
|
|
6423
6423
|
for (let index = 0; index < 32; index++) {
|
|
6424
6424
|
expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
6425
6425
|
}
|
|
6426
|
-
const proofAccountOffsetBytes =
|
|
6426
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6427
6427
|
let proofAccountOffset = 0n;
|
|
6428
6428
|
for (let index = 0; index < 16; index++) {
|
|
6429
6429
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
@@ -6489,9 +6489,9 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6489
6489
|
);
|
|
6490
6490
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
6491
6491
|
const ephemeralOffset = expandedModifiedGenerationIndexU256;
|
|
6492
|
-
const randomSecret =
|
|
6492
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6493
6493
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
6494
|
-
const nullifier =
|
|
6494
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6495
6495
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
6496
6496
|
const ephemeralMasterViewingKey = await ephemeralUtxoMvkGenerator(ephemeralOffset);
|
|
6497
6497
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(ephemeralMasterViewingKey);
|
|
@@ -6582,10 +6582,10 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6582
6582
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
6583
6583
|
chunkLTCKPTZC_cjs.assertX25519PrivateKey(clientX25519PrivateKey);
|
|
6584
6584
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
6585
|
-
const rcEncryptor =
|
|
6585
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
6586
6586
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
6587
6587
|
});
|
|
6588
|
-
const randomFactorForPolynomialCommitment =
|
|
6588
|
+
const randomFactorForPolynomialCommitment = chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex(
|
|
6589
6589
|
modifiedGenerationIndex
|
|
6590
6590
|
);
|
|
6591
6591
|
chunkLTCKPTZC_cjs.assertU256(randomFactorForPolynomialCommitment);
|
|
@@ -6621,7 +6621,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6621
6621
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedProtocolFees);
|
|
6622
6622
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorLow);
|
|
6623
6623
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorHigh);
|
|
6624
|
-
const rcKeyGenerator =
|
|
6624
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
6625
6625
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
6626
6626
|
});
|
|
6627
6627
|
const rcEncryptionKeys = await rcKeyGenerator(
|
|
@@ -6674,7 +6674,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6674
6674
|
const rcEncryptionKeyForRandomFactorHighAsLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(
|
|
6675
6675
|
toU256(rcEncryptionKeyForRandomFactorHigh)
|
|
6676
6676
|
);
|
|
6677
|
-
const rescueEncryptionCommitmentBlindingFactor =
|
|
6677
|
+
const rescueEncryptionCommitmentBlindingFactor = chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex(
|
|
6678
6678
|
modifiedGenerationIndex
|
|
6679
6679
|
);
|
|
6680
6680
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(rescueEncryptionCommitmentBlindingFactor);
|
|
@@ -6803,64 +6803,64 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6803
6803
|
toBn254FieldElement(protocolFeeConfig.merkleRoot)
|
|
6804
6804
|
];
|
|
6805
6805
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
6806
|
-
const inverseForSenderMvkBlindingFactor =
|
|
6807
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
6806
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
6807
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6808
6808
|
senderPrivateKeyBlindingFactor
|
|
6809
6809
|
);
|
|
6810
|
-
const inverseForSenderPrivateKey =
|
|
6811
|
-
const inverseForSenderMasterViewingKey =
|
|
6812
|
-
const inverseForAmount =
|
|
6813
|
-
const protocolFeeDivisorInverse =
|
|
6814
|
-
const inverseForTotalAmountLimbs =
|
|
6810
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
6811
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
6812
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement(amount));
|
|
6813
|
+
const protocolFeeDivisorInverse = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement(16384n));
|
|
6814
|
+
const inverseForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6815
6815
|
amountAsLimbs.low,
|
|
6816
6816
|
amountAsLimbs.middle,
|
|
6817
6817
|
amountAsLimbs.high
|
|
6818
6818
|
]);
|
|
6819
|
-
const inverseForKeysForTotalAmountLimbs =
|
|
6819
|
+
const inverseForKeysForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6820
6820
|
rcEncryptionKeyForAmountAsLimbs.low,
|
|
6821
6821
|
rcEncryptionKeyForAmountAsLimbs.middle,
|
|
6822
6822
|
rcEncryptionKeyForAmountAsLimbs.high
|
|
6823
6823
|
]);
|
|
6824
|
-
const inverseForKeysForProtocolFeeLimbs =
|
|
6824
|
+
const inverseForKeysForProtocolFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6825
6825
|
rcEncryptionKeyForProtocolFeesAsLimbs.low,
|
|
6826
6826
|
rcEncryptionKeyForProtocolFeesAsLimbs.middle,
|
|
6827
6827
|
rcEncryptionKeyForProtocolFeesAsLimbs.high
|
|
6828
6828
|
]);
|
|
6829
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
6829
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6830
6830
|
rcEncryptionKeyForRandomFactorLowAsLimbs.low,
|
|
6831
6831
|
rcEncryptionKeyForRandomFactorLowAsLimbs.middle,
|
|
6832
6832
|
rcEncryptionKeyForRandomFactorLowAsLimbs.high
|
|
6833
6833
|
]);
|
|
6834
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
6834
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6835
6835
|
rcEncryptionKeyForRandomFactorHighAsLimbs.low,
|
|
6836
6836
|
rcEncryptionKeyForRandomFactorHighAsLimbs.middle,
|
|
6837
6837
|
rcEncryptionKeyForRandomFactorHighAsLimbs.high
|
|
6838
6838
|
]);
|
|
6839
|
-
const inverseForNullifier =
|
|
6840
|
-
const inverseForH2BlindingFactor =
|
|
6841
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
6839
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
6840
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
6841
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6842
6842
|
firstKeystreamBlindingFactor
|
|
6843
6843
|
);
|
|
6844
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
6844
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6845
6845
|
secondKeystreamBlindingFactor
|
|
6846
6846
|
);
|
|
6847
|
-
const inverseForThirdKeystreamBlindingFactor =
|
|
6847
|
+
const inverseForThirdKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6848
6848
|
thirdKeystreamBlindingFactor
|
|
6849
6849
|
);
|
|
6850
|
-
const inverseForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
6850
|
+
const inverseForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6851
6851
|
randomFactorLowAsLimbs.low,
|
|
6852
6852
|
randomFactorLowAsLimbs.middle,
|
|
6853
6853
|
randomFactorLowAsLimbs.high
|
|
6854
6854
|
]);
|
|
6855
|
-
const inverseForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
6855
|
+
const inverseForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
6856
6856
|
[randomFactorHighAsLimbs.low, randomFactorHighAsLimbs.middle, randomFactorHighAsLimbs.high]
|
|
6857
6857
|
);
|
|
6858
|
-
const inverseForChallengeLimbs =
|
|
6858
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6859
6859
|
fiatShamirChallengeLimbs.low,
|
|
6860
6860
|
fiatShamirChallengeLimbs.middle,
|
|
6861
6861
|
fiatShamirChallengeLimbs.high
|
|
6862
6862
|
]);
|
|
6863
|
-
const inverseForChallengeSquaredLimbs =
|
|
6863
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6864
6864
|
fiatShamirChallengeSquaredLimbs.low,
|
|
6865
6865
|
fiatShamirChallengeSquaredLimbs.middle,
|
|
6866
6866
|
fiatShamirChallengeSquaredLimbs.high
|
|
@@ -7004,11 +7004,11 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7004
7004
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
7005
7005
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
7006
7006
|
const stealthPoolIndex = 0n;
|
|
7007
|
-
const stealthPoolAddress = await
|
|
7007
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
7008
7008
|
stealthPoolIndex,
|
|
7009
7009
|
client.networkConfig.programId
|
|
7010
7010
|
);
|
|
7011
|
-
const arciumAccounts = await
|
|
7011
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
7012
7012
|
client.networkConfig.programId,
|
|
7013
7013
|
client.networkConfig.arciumProgramAddress,
|
|
7014
7014
|
clusterOffset,
|
|
@@ -7095,7 +7095,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7095
7095
|
}
|
|
7096
7096
|
chunkPK6SKIKE_cjs.__name(executeTransaction, "executeTransaction");
|
|
7097
7097
|
async function checkAndCloseExistingProofAccount(offset) {
|
|
7098
|
-
const proofAccountPda = await
|
|
7098
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findUtxoInputBufferPda(
|
|
7099
7099
|
client.signer.address,
|
|
7100
7100
|
offset,
|
|
7101
7101
|
client.networkConfig.programId
|
|
@@ -7353,24 +7353,24 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7353
7353
|
const factoryCloseProofAccountCallbacks = deps.hooks?.closeProofAccount;
|
|
7354
7354
|
const factoryCreateProofAccountCallbacks = deps.hooks?.createProofAccount;
|
|
7355
7355
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
7356
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
7357
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
7358
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
7359
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
7360
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
7361
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
7362
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
7363
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
7364
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
7365
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
7366
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
7367
|
-
const userCommitmentGenerator =
|
|
7368
|
-
const rescueEncryptionCommitmentGenerator =
|
|
7369
|
-
const poseidonAggregator =
|
|
7370
|
-
const fiatShamirChallengeGenerator =
|
|
7371
|
-
const challengePowersFunction =
|
|
7372
|
-
const polynomialEvaluator =
|
|
7373
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
7356
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
7357
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
7358
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
7359
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
7360
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
7361
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
7362
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
7363
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
7364
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
7365
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
7366
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
7367
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
7368
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
7369
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
7370
|
+
const fiatShamirChallengeGenerator = chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
7371
|
+
const challengePowersFunction = chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
7372
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
7373
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
7374
7374
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
7375
7375
|
const generateComputationOffsetFunction = deps.random?.generateComputationOffset ?? chunkZY3TSHMJ_cjs.generateComputationOffset;
|
|
7376
7376
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createReceiverClaimableUtxo(args2, options) {
|
|
@@ -7394,17 +7394,17 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7394
7394
|
masterSeed,
|
|
7395
7395
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
7396
7396
|
);
|
|
7397
|
-
const expandedModifiedGenerationIndex =
|
|
7397
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7398
7398
|
let _expandedModifiedGenerationIndexU256 = 0n;
|
|
7399
7399
|
for (let index = 0; index < 32; index++) {
|
|
7400
7400
|
_expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
7401
7401
|
}
|
|
7402
|
-
const proofAccountOffsetBytes =
|
|
7402
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7403
7403
|
let proofAccountOffset = 0n;
|
|
7404
7404
|
for (let index = 0; index < 16; index++) {
|
|
7405
7405
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
7406
7406
|
}
|
|
7407
|
-
const receiverUserAccountPda = await
|
|
7407
|
+
const receiverUserAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(
|
|
7408
7408
|
destinationAddress,
|
|
7409
7409
|
client.networkConfig.programId
|
|
7410
7410
|
);
|
|
@@ -7493,9 +7493,9 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7493
7493
|
senderPrivateKeyBlindingFactor
|
|
7494
7494
|
);
|
|
7495
7495
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
7496
|
-
const randomSecret =
|
|
7496
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7497
7497
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
7498
|
-
const nullifier =
|
|
7498
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7499
7499
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
7500
7500
|
const unlockingUserCommitment = receiverUserCommitment;
|
|
7501
7501
|
const h2Hash = await h2Generator.generateH2({
|
|
@@ -7572,10 +7572,10 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7572
7572
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
7573
7573
|
chunkLTCKPTZC_cjs.assertX25519PrivateKey(clientX25519PrivateKey);
|
|
7574
7574
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
7575
|
-
const rcEncryptor =
|
|
7575
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
7576
7576
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
7577
7577
|
});
|
|
7578
|
-
const randomFactorForPolynomialCommitment =
|
|
7578
|
+
const randomFactorForPolynomialCommitment = chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex(
|
|
7579
7579
|
modifiedGenerationIndex
|
|
7580
7580
|
);
|
|
7581
7581
|
chunkLTCKPTZC_cjs.assertU256(randomFactorForPolynomialCommitment);
|
|
@@ -7611,7 +7611,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7611
7611
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedProtocolFees);
|
|
7612
7612
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorLow);
|
|
7613
7613
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorHigh);
|
|
7614
|
-
const rcKeyGenerator =
|
|
7614
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
7615
7615
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
7616
7616
|
});
|
|
7617
7617
|
const rcEncryptionKeys = await rcKeyGenerator(
|
|
@@ -7664,7 +7664,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7664
7664
|
const rcEncryptionKeyForRandomFactorHighAsLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(
|
|
7665
7665
|
toU2562(rcEncryptionKeyForRandomFactorHigh)
|
|
7666
7666
|
);
|
|
7667
|
-
const rescueEncryptionCommitmentBlindingFactor =
|
|
7667
|
+
const rescueEncryptionCommitmentBlindingFactor = chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex(
|
|
7668
7668
|
modifiedGenerationIndex
|
|
7669
7669
|
);
|
|
7670
7670
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(rescueEncryptionCommitmentBlindingFactor);
|
|
@@ -7793,64 +7793,64 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7793
7793
|
toBn254FieldElement2(protocolFeeConfig.merkleRoot)
|
|
7794
7794
|
];
|
|
7795
7795
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
7796
|
-
const inverseForSenderMvkBlindingFactor =
|
|
7797
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
7796
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
7797
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7798
7798
|
senderPrivateKeyBlindingFactor
|
|
7799
7799
|
);
|
|
7800
|
-
const inverseForSenderPrivateKey =
|
|
7801
|
-
const inverseForSenderMasterViewingKey =
|
|
7802
|
-
const inverseForAmount =
|
|
7803
|
-
const protocolFeeDivisorInverse =
|
|
7804
|
-
const inverseForTotalAmountLimbs =
|
|
7800
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
7801
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
7802
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement2(amount));
|
|
7803
|
+
const protocolFeeDivisorInverse = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement2(16384n));
|
|
7804
|
+
const inverseForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7805
7805
|
amountAsLimbs.low,
|
|
7806
7806
|
amountAsLimbs.middle,
|
|
7807
7807
|
amountAsLimbs.high
|
|
7808
7808
|
]);
|
|
7809
|
-
const inverseForKeysForTotalAmountLimbs =
|
|
7809
|
+
const inverseForKeysForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7810
7810
|
rcEncryptionKeyForAmountAsLimbs.low,
|
|
7811
7811
|
rcEncryptionKeyForAmountAsLimbs.middle,
|
|
7812
7812
|
rcEncryptionKeyForAmountAsLimbs.high
|
|
7813
7813
|
]);
|
|
7814
|
-
const inverseForKeysForProtocolFeeLimbs =
|
|
7814
|
+
const inverseForKeysForProtocolFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7815
7815
|
rcEncryptionKeyForProtocolFeesAsLimbs.low,
|
|
7816
7816
|
rcEncryptionKeyForProtocolFeesAsLimbs.middle,
|
|
7817
7817
|
rcEncryptionKeyForProtocolFeesAsLimbs.high
|
|
7818
7818
|
]);
|
|
7819
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
7819
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7820
7820
|
rcEncryptionKeyForRandomFactorLowAsLimbs.low,
|
|
7821
7821
|
rcEncryptionKeyForRandomFactorLowAsLimbs.middle,
|
|
7822
7822
|
rcEncryptionKeyForRandomFactorLowAsLimbs.high
|
|
7823
7823
|
]);
|
|
7824
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
7824
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7825
7825
|
rcEncryptionKeyForRandomFactorHighAsLimbs.low,
|
|
7826
7826
|
rcEncryptionKeyForRandomFactorHighAsLimbs.middle,
|
|
7827
7827
|
rcEncryptionKeyForRandomFactorHighAsLimbs.high
|
|
7828
7828
|
]);
|
|
7829
|
-
const inverseForNullifier =
|
|
7830
|
-
const inverseForH2BlindingFactor =
|
|
7831
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
7829
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
7830
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
7831
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7832
7832
|
firstKeystreamBlindingFactor
|
|
7833
7833
|
);
|
|
7834
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
7834
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7835
7835
|
secondKeystreamBlindingFactor
|
|
7836
7836
|
);
|
|
7837
|
-
const inverseForThirdKeystreamBlindingFactor =
|
|
7837
|
+
const inverseForThirdKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7838
7838
|
thirdKeystreamBlindingFactor
|
|
7839
7839
|
);
|
|
7840
|
-
const inverseForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
7840
|
+
const inverseForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7841
7841
|
randomFactorLowAsLimbs.low,
|
|
7842
7842
|
randomFactorLowAsLimbs.middle,
|
|
7843
7843
|
randomFactorLowAsLimbs.high
|
|
7844
7844
|
]);
|
|
7845
|
-
const inverseForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
7845
|
+
const inverseForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
7846
7846
|
[randomFactorHighAsLimbs.low, randomFactorHighAsLimbs.middle, randomFactorHighAsLimbs.high]
|
|
7847
7847
|
);
|
|
7848
|
-
const inverseForChallengeLimbs =
|
|
7848
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7849
7849
|
fiatShamirChallengeLimbs.low,
|
|
7850
7850
|
fiatShamirChallengeLimbs.middle,
|
|
7851
7851
|
fiatShamirChallengeLimbs.high
|
|
7852
7852
|
]);
|
|
7853
|
-
const inverseForChallengeSquaredLimbs =
|
|
7853
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7854
7854
|
fiatShamirChallengeSquaredLimbs.low,
|
|
7855
7855
|
fiatShamirChallengeSquaredLimbs.middle,
|
|
7856
7856
|
fiatShamirChallengeSquaredLimbs.high
|
|
@@ -7994,11 +7994,11 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7994
7994
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
7995
7995
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
7996
7996
|
const stealthPoolIndex = 0n;
|
|
7997
|
-
const stealthPoolAddress = await
|
|
7997
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
7998
7998
|
stealthPoolIndex,
|
|
7999
7999
|
client.networkConfig.programId
|
|
8000
8000
|
);
|
|
8001
|
-
const arciumAccounts = await
|
|
8001
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
8002
8002
|
client.networkConfig.programId,
|
|
8003
8003
|
client.networkConfig.arciumProgramAddress,
|
|
8004
8004
|
clusterOffset,
|
|
@@ -8085,7 +8085,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8085
8085
|
}
|
|
8086
8086
|
chunkPK6SKIKE_cjs.__name(executeTransaction, "executeTransaction");
|
|
8087
8087
|
async function checkAndCloseExistingProofAccount(offset) {
|
|
8088
|
-
const proofAccountPda = await
|
|
8088
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findUtxoInputBufferPda(
|
|
8089
8089
|
client.signer.address,
|
|
8090
8090
|
offset,
|
|
8091
8091
|
client.networkConfig.programId
|
|
@@ -8307,24 +8307,24 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8307
8307
|
const transactionForwarder = deps.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
8308
8308
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
8309
8309
|
const getEpochInfo = deps.rpc?.epochInfo ?? client.epochInfoProvider;
|
|
8310
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
8311
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
8312
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
8313
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
8314
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
8315
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
8316
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
8317
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
8318
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
8319
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
8320
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
8321
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
8322
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
8323
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
8324
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
8325
|
-
const userCommitmentGenerator =
|
|
8326
|
-
const poseidonAggregator =
|
|
8327
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
8310
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
8311
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8312
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
8313
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
8314
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
8315
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
8316
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
8317
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8318
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
8319
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({ client });
|
|
8320
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
8321
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
8322
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
8323
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
8324
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
8325
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
8326
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
8327
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
8328
8328
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
8329
8329
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createSelfClaimableUtxoFromPublicBalance(args2, options) {
|
|
8330
8330
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
@@ -8347,12 +8347,12 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8347
8347
|
masterSeed,
|
|
8348
8348
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
8349
8349
|
);
|
|
8350
|
-
const proofAccountOffsetBytes =
|
|
8350
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8351
8351
|
let proofAccountOffset = 0n;
|
|
8352
8352
|
for (let index = 0; index < 16; index++) {
|
|
8353
8353
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
8354
8354
|
}
|
|
8355
|
-
const expandedModifiedGenerationIndex =
|
|
8355
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8356
8356
|
let expandedModifiedGenerationIndexU256 = 0n;
|
|
8357
8357
|
for (let index = 0; index < 32; index++) {
|
|
8358
8358
|
expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
@@ -8458,9 +8458,9 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8458
8458
|
);
|
|
8459
8459
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
8460
8460
|
const ephemeralOffset = expandedModifiedGenerationIndexU256;
|
|
8461
|
-
const randomSecret =
|
|
8461
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8462
8462
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
8463
|
-
const nullifier =
|
|
8463
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8464
8464
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
8465
8465
|
const ephemeralMasterViewingKey = await ephemeralUtxoMvkGenerator(ephemeralOffset);
|
|
8466
8466
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(ephemeralMasterViewingKey);
|
|
@@ -8575,19 +8575,19 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8575
8575
|
toBn254FieldElement3(protocolFeeConfig.merkleRoot)
|
|
8576
8576
|
];
|
|
8577
8577
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
8578
|
-
const inverseForSenderMvkBlindingFactor =
|
|
8579
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
8578
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
8579
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
8580
8580
|
senderPrivateKeyBlindingFactor
|
|
8581
8581
|
);
|
|
8582
|
-
const inverseForSenderPrivateKey =
|
|
8583
|
-
const inverseForSenderMasterViewingKey =
|
|
8584
|
-
const inverseForAmount =
|
|
8585
|
-
const inverseForNullifier =
|
|
8586
|
-
const inverseForH2BlindingFactor =
|
|
8587
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
8582
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
8583
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
8584
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement3(netDepositAmount));
|
|
8585
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
8586
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
8587
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
8588
8588
|
firstKeystreamBlindingFactor
|
|
8589
8589
|
);
|
|
8590
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
8590
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
8591
8591
|
secondKeystreamBlindingFactor
|
|
8592
8592
|
);
|
|
8593
8593
|
const zkCircuitInputs = {
|
|
@@ -8637,7 +8637,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8637
8637
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
8638
8638
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
8639
8639
|
const stealthPoolIndex = 0n;
|
|
8640
|
-
const stealthPoolAddress = await
|
|
8640
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
8641
8641
|
stealthPoolIndex,
|
|
8642
8642
|
client.networkConfig.programId
|
|
8643
8643
|
);
|
|
@@ -8698,7 +8698,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8698
8698
|
chunkPK6SKIKE_cjs.__name(buildAndSendTransaction, "buildAndSendTransaction");
|
|
8699
8699
|
chunkLTCKPTZC_cjs.assertU128(proofAccountOffset);
|
|
8700
8700
|
let closeProofAccountSignature;
|
|
8701
|
-
const proofAccountPda = await
|
|
8701
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findPublicUtxoInputBufferPda(
|
|
8702
8702
|
client.signer.address,
|
|
8703
8703
|
proofAccountOffset,
|
|
8704
8704
|
client.networkConfig.programId
|
|
@@ -8835,20 +8835,20 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8835
8835
|
const transactionForwarder = deps.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
8836
8836
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
8837
8837
|
const getEpochInfo = deps.rpc?.epochInfo ?? client.epochInfoProvider;
|
|
8838
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
8839
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
8840
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
8841
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
8842
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
8843
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
8844
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
8845
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
8846
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
8847
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
8848
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
8849
|
-
const userCommitmentGenerator =
|
|
8850
|
-
const poseidonAggregator =
|
|
8851
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
8838
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
8839
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8840
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
8841
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
8842
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
8843
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
8844
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
8845
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
8846
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
8847
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
8848
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
8849
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
8850
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
8851
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
8852
8852
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
8853
8853
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createReceiverClaimableUtxoFromPublicBalance(args2, options) {
|
|
8854
8854
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
@@ -8871,12 +8871,12 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8871
8871
|
masterSeed,
|
|
8872
8872
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
8873
8873
|
);
|
|
8874
|
-
const proofAccountOffsetBytes =
|
|
8874
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8875
8875
|
let proofAccountOffset = 0n;
|
|
8876
8876
|
for (let index = 0; index < 16; index++) {
|
|
8877
8877
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
8878
8878
|
}
|
|
8879
|
-
const receiverUserAccountPda = await
|
|
8879
|
+
const receiverUserAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(
|
|
8880
8880
|
destinationAddress,
|
|
8881
8881
|
client.networkConfig.programId
|
|
8882
8882
|
);
|
|
@@ -9001,9 +9001,9 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9001
9001
|
senderPrivateKeyBlindingFactor
|
|
9002
9002
|
);
|
|
9003
9003
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
9004
|
-
const randomSecret =
|
|
9004
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
9005
9005
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
9006
|
-
const nullifier =
|
|
9006
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
9007
9007
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
9008
9008
|
const h2Hash = await h2Generator.generateH2({
|
|
9009
9009
|
amount: toBn254FieldElement4(netDepositAmount),
|
|
@@ -9105,19 +9105,19 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9105
9105
|
toBn254FieldElement4(protocolFeeConfig.merkleRoot)
|
|
9106
9106
|
];
|
|
9107
9107
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
9108
|
-
const inverseForSenderMvkBlindingFactor =
|
|
9109
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
9108
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
9109
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
9110
9110
|
senderPrivateKeyBlindingFactor
|
|
9111
9111
|
);
|
|
9112
|
-
const inverseForSenderPrivateKey =
|
|
9113
|
-
const inverseForSenderMasterViewingKey =
|
|
9114
|
-
const inverseForAmount =
|
|
9115
|
-
const inverseForNullifier =
|
|
9116
|
-
const inverseForH2BlindingFactor =
|
|
9117
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
9112
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
9113
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
9114
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement4(netDepositAmount));
|
|
9115
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
9116
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
9117
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
9118
9118
|
firstKeystreamBlindingFactor
|
|
9119
9119
|
);
|
|
9120
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
9120
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
9121
9121
|
secondKeystreamBlindingFactor
|
|
9122
9122
|
);
|
|
9123
9123
|
const zkCircuitInputs = {
|
|
@@ -9167,7 +9167,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9167
9167
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
9168
9168
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
9169
9169
|
const stealthPoolIndex = 0n;
|
|
9170
|
-
const stealthPoolAddress = await
|
|
9170
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
9171
9171
|
stealthPoolIndex,
|
|
9172
9172
|
client.networkConfig.programId
|
|
9173
9173
|
);
|
|
@@ -9228,7 +9228,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9228
9228
|
chunkPK6SKIKE_cjs.__name(buildAndSendTransaction, "buildAndSendTransaction");
|
|
9229
9229
|
chunkLTCKPTZC_cjs.assertU128(proofAccountOffset);
|
|
9230
9230
|
let closeProofAccountSignature;
|
|
9231
|
-
const proofAccountPda = await
|
|
9231
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findPublicUtxoInputBufferPda(
|
|
9232
9232
|
client.signer.address,
|
|
9233
9233
|
proofAccountOffset,
|
|
9234
9234
|
client.networkConfig.programId
|
|
@@ -9368,7 +9368,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9368
9368
|
const { client } = args;
|
|
9369
9369
|
const userAddress = client.signer.address;
|
|
9370
9370
|
const accountInfoProvider = deps?.accountInfoProvider ?? client.accountInfoProvider;
|
|
9371
|
-
const tokenX25519KeypairDeriver =
|
|
9371
|
+
const tokenX25519KeypairDeriver = chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({
|
|
9372
9372
|
client
|
|
9373
9373
|
});
|
|
9374
9374
|
let cachedDecryptor = null;
|
|
@@ -9388,7 +9388,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9388
9388
|
);
|
|
9389
9389
|
}
|
|
9390
9390
|
const x25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
9391
|
-
cachedDecryptor =
|
|
9391
|
+
cachedDecryptor = chunk3LS5P32X_cjs.getRescueDecryptorFromPrivateKey(x25519PrivateKey, {
|
|
9392
9392
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9393
9393
|
});
|
|
9394
9394
|
}
|
|
@@ -9406,7 +9406,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9406
9406
|
pdaDerivations = await Promise.all(
|
|
9407
9407
|
mints.map(async (mint) => ({
|
|
9408
9408
|
mint,
|
|
9409
|
-
pda: await
|
|
9409
|
+
pda: await chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(
|
|
9410
9410
|
userAddress,
|
|
9411
9411
|
mint,
|
|
9412
9412
|
client.networkConfig.programId
|
|
@@ -9534,7 +9534,7 @@ function getUserAccountQuerierFunction(args, deps) {
|
|
|
9534
9534
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
9535
9535
|
let userAccountPda;
|
|
9536
9536
|
try {
|
|
9537
|
-
userAccountPda = await
|
|
9537
|
+
userAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(userAddress, umbraProgram);
|
|
9538
9538
|
} catch (error) {
|
|
9539
9539
|
throw new chunkBL6WXLPV_cjs.QueryError(
|
|
9540
9540
|
"pda-derivation",
|
|
@@ -9659,28 +9659,28 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9659
9659
|
const accountInfoProvider = deps?.rpc?.accountInfoProvider ?? client.accountInfoProvider;
|
|
9660
9660
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
9661
9661
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
9662
|
-
const userAccountX25519KeypairDeriver = deps?.keys?.userAccountX25519KeypairDeriver ??
|
|
9663
|
-
const masterViewingKeyEncryptingX25519KeypairDeriver = deps?.keys?.masterViewingKeyEncryptingX25519KeypairDeriver ??
|
|
9664
|
-
const masterViewingKeyGenerator = deps?.keys?.masterViewingKeyGenerator ??
|
|
9665
|
-
const masterViewingKeyBlindingFactorGenerator = deps?.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
9666
|
-
const poseidonPrivateKeyGenerator = deps?.keys?.poseidonPrivateKeyGenerator ??
|
|
9667
|
-
const poseidonBlindingFactorGenerator = deps?.keys?.poseidonBlindingFactorGenerator ??
|
|
9668
|
-
const rescueCommitmentBlindingFactorGenerator = deps?.crypto?.rescueCommitmentBlindingFactorGenerator ??
|
|
9662
|
+
const userAccountX25519KeypairDeriver = deps?.keys?.userAccountX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
9663
|
+
const masterViewingKeyEncryptingX25519KeypairDeriver = deps?.keys?.masterViewingKeyEncryptingX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
9664
|
+
const masterViewingKeyGenerator = deps?.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
9665
|
+
const masterViewingKeyBlindingFactorGenerator = deps?.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
9666
|
+
const poseidonPrivateKeyGenerator = deps?.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
9667
|
+
const poseidonBlindingFactorGenerator = deps?.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
9668
|
+
const rescueCommitmentBlindingFactorGenerator = deps?.crypto?.rescueCommitmentBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getRescueCommitmentBlindingFactorDeriver({
|
|
9669
9669
|
client
|
|
9670
9670
|
});
|
|
9671
|
-
const randomFactorGenerator = deps?.crypto?.randomFactorGenerator ??
|
|
9672
|
-
const getRcKeyGenerator = deps?.crypto?.getRcKeyGenerator ?? ((pk) =>
|
|
9671
|
+
const randomFactorGenerator = deps?.crypto?.randomFactorGenerator ?? chunk3LS5P32X_cjs.getPolynomialCommitmentFactorDeriver({ client });
|
|
9672
|
+
const getRcKeyGenerator = deps?.crypto?.getRcKeyGenerator ?? ((pk) => chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(pk, {
|
|
9673
9673
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9674
9674
|
}));
|
|
9675
|
-
const getRcEncryptor = deps?.crypto?.getRcEncryptor ?? ((pk) =>
|
|
9675
|
+
const getRcEncryptor = deps?.crypto?.getRcEncryptor ?? ((pk) => chunk3LS5P32X_cjs.getRescueEncryptorWithNonceFromPrivateKey(pk, {
|
|
9676
9676
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9677
9677
|
}));
|
|
9678
|
-
const rescueCommitmentGenerator = deps?.crypto?.rescueCommitmentGenerator ??
|
|
9679
|
-
const userCommitmentGenerator = deps?.crypto?.userCommitmentGenerator ??
|
|
9680
|
-
const fiatShamirChallengeGenerator = deps?.crypto?.fiatShamirChallengeGenerator ??
|
|
9681
|
-
const challengePowersFunction = deps?.crypto?.challengePowersFunction ??
|
|
9682
|
-
const polynomialEvaluator = deps?.crypto?.polynomialEvaluator ??
|
|
9683
|
-
const poseidonAggregator = deps?.crypto?.poseidonAggregator ??
|
|
9678
|
+
const rescueCommitmentGenerator = deps?.crypto?.rescueCommitmentGenerator ?? chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
9679
|
+
const userCommitmentGenerator = deps?.crypto?.userCommitmentGenerator ?? chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
9680
|
+
const fiatShamirChallengeGenerator = deps?.crypto?.fiatShamirChallengeGenerator ?? chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
9681
|
+
const challengePowersFunction = deps?.crypto?.challengePowersFunction ?? chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
9682
|
+
const polynomialEvaluator = deps?.crypto?.polynomialEvaluator ?? chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
9683
|
+
const poseidonAggregator = deps?.crypto?.poseidonAggregator ?? chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
9684
9684
|
const bn254ModuleInverter = deps?.crypto?.bn254ModInverter ?? chunkY55PYKXH_cjs.getBn254ModularInverter();
|
|
9685
9685
|
const computeLimbwiseSumInverse = deps?.crypto?.computeLimbwiseSumInverse ?? chunkY55PYKXH_cjs.computeBn254LimbwiseSumInverse;
|
|
9686
9686
|
const zkProver = deps?.zkProver;
|
|
@@ -9721,7 +9721,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9721
9721
|
"ZK prover is required for anonymous mode registration. Provide zkProver in the deps argument."
|
|
9722
9722
|
);
|
|
9723
9723
|
}
|
|
9724
|
-
const userAccountPda = await
|
|
9724
|
+
const userAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(
|
|
9725
9725
|
signer.address,
|
|
9726
9726
|
client.networkConfig.programId
|
|
9727
9727
|
);
|
|
@@ -10161,7 +10161,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
10161
10161
|
}
|
|
10162
10162
|
const zkProof = await zkProver.prove(zkCircuitInputs);
|
|
10163
10163
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
10164
|
-
const arciumAccounts = await
|
|
10164
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
10165
10165
|
client.networkConfig.programId,
|
|
10166
10166
|
client.networkConfig.arciumProgramAddress,
|
|
10167
10167
|
clusterOffset,
|
|
@@ -10545,7 +10545,7 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10545
10545
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
10546
10546
|
let arciumAccounts;
|
|
10547
10547
|
try {
|
|
10548
|
-
arciumAccounts = await
|
|
10548
|
+
arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
10549
10549
|
client.networkConfig.programId,
|
|
10550
10550
|
client.networkConfig.arciumProgramAddress,
|
|
10551
10551
|
clusterOffset,
|
|
@@ -10629,30 +10629,6 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10629
10629
|
}
|
|
10630
10630
|
chunkPK6SKIKE_cjs.__name(getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction, "getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction");
|
|
10631
10631
|
|
|
10632
|
-
Object.defineProperty(exports, "bn254Add", {
|
|
10633
|
-
enumerable: true,
|
|
10634
|
-
get: function () { return chunkGXCRPFTT_cjs.bn254Add; }
|
|
10635
|
-
});
|
|
10636
|
-
Object.defineProperty(exports, "bn254ModuloPow", {
|
|
10637
|
-
enumerable: true,
|
|
10638
|
-
get: function () { return chunkGXCRPFTT_cjs.bn254ModuloPow; }
|
|
10639
|
-
});
|
|
10640
|
-
Object.defineProperty(exports, "bn254Mul", {
|
|
10641
|
-
enumerable: true,
|
|
10642
|
-
get: function () { return chunkGXCRPFTT_cjs.bn254Mul; }
|
|
10643
|
-
});
|
|
10644
|
-
Object.defineProperty(exports, "bn254Sub", {
|
|
10645
|
-
enumerable: true,
|
|
10646
|
-
get: function () { return chunkGXCRPFTT_cjs.bn254Sub; }
|
|
10647
|
-
});
|
|
10648
|
-
Object.defineProperty(exports, "computeBn254LimbwiseSumInverse", {
|
|
10649
|
-
enumerable: true,
|
|
10650
|
-
get: function () { return chunkGXCRPFTT_cjs.computeBn254LimbwiseSumInverse; }
|
|
10651
|
-
});
|
|
10652
|
-
Object.defineProperty(exports, "computeBn254ModularInverse", {
|
|
10653
|
-
enumerable: true,
|
|
10654
|
-
get: function () { return chunkGXCRPFTT_cjs.computeBn254ModularInverse; }
|
|
10655
|
-
});
|
|
10656
10632
|
Object.defineProperty(exports, "RelayerError", {
|
|
10657
10633
|
enumerable: true,
|
|
10658
10634
|
get: function () { return chunkNKVMSABR_cjs.RelayerError; }
|
|
@@ -10665,641 +10641,665 @@ Object.defineProperty(exports, "pollClaimUntilTerminal", {
|
|
|
10665
10641
|
enumerable: true,
|
|
10666
10642
|
get: function () { return chunkNKVMSABR_cjs.pollClaimUntilTerminal; }
|
|
10667
10643
|
});
|
|
10668
|
-
Object.defineProperty(exports, "ClaimUtxoError", {
|
|
10669
|
-
enumerable: true,
|
|
10670
|
-
get: function () { return chunkBL6WXLPV_cjs.ClaimUtxoError; }
|
|
10671
|
-
});
|
|
10672
|
-
Object.defineProperty(exports, "ComputationMonitorError", {
|
|
10673
|
-
enumerable: true,
|
|
10674
|
-
get: function () { return chunkBL6WXLPV_cjs.ComputationMonitorError; }
|
|
10675
|
-
});
|
|
10676
|
-
Object.defineProperty(exports, "ConversionError", {
|
|
10677
|
-
enumerable: true,
|
|
10678
|
-
get: function () { return chunkBL6WXLPV_cjs.ConversionError; }
|
|
10679
|
-
});
|
|
10680
|
-
Object.defineProperty(exports, "CreateUtxoError", {
|
|
10681
|
-
enumerable: true,
|
|
10682
|
-
get: function () { return chunkBL6WXLPV_cjs.CreateUtxoError; }
|
|
10683
|
-
});
|
|
10684
|
-
Object.defineProperty(exports, "EncryptedDepositError", {
|
|
10685
|
-
enumerable: true,
|
|
10686
|
-
get: function () { return chunkBL6WXLPV_cjs.EncryptedDepositError; }
|
|
10687
|
-
});
|
|
10688
|
-
Object.defineProperty(exports, "EncryptedWithdrawalError", {
|
|
10689
|
-
enumerable: true,
|
|
10690
|
-
get: function () { return chunkBL6WXLPV_cjs.EncryptedWithdrawalError; }
|
|
10691
|
-
});
|
|
10692
|
-
Object.defineProperty(exports, "FetchUtxosError", {
|
|
10693
|
-
enumerable: true,
|
|
10694
|
-
get: function () { return chunkBL6WXLPV_cjs.FetchUtxosError; }
|
|
10695
|
-
});
|
|
10696
|
-
Object.defineProperty(exports, "QueryError", {
|
|
10697
|
-
enumerable: true,
|
|
10698
|
-
get: function () { return chunkBL6WXLPV_cjs.QueryError; }
|
|
10699
|
-
});
|
|
10700
|
-
Object.defineProperty(exports, "RegistrationError", {
|
|
10701
|
-
enumerable: true,
|
|
10702
|
-
get: function () { return chunkBL6WXLPV_cjs.RegistrationError; }
|
|
10703
|
-
});
|
|
10704
|
-
Object.defineProperty(exports, "isClaimUtxoError", {
|
|
10705
|
-
enumerable: true,
|
|
10706
|
-
get: function () { return chunkBL6WXLPV_cjs.isClaimUtxoError; }
|
|
10707
|
-
});
|
|
10708
|
-
Object.defineProperty(exports, "isComputationMonitorError", {
|
|
10709
|
-
enumerable: true,
|
|
10710
|
-
get: function () { return chunkBL6WXLPV_cjs.isComputationMonitorError; }
|
|
10711
|
-
});
|
|
10712
|
-
Object.defineProperty(exports, "isConversionError", {
|
|
10713
|
-
enumerable: true,
|
|
10714
|
-
get: function () { return chunkBL6WXLPV_cjs.isConversionError; }
|
|
10715
|
-
});
|
|
10716
|
-
Object.defineProperty(exports, "isCreateUtxoError", {
|
|
10717
|
-
enumerable: true,
|
|
10718
|
-
get: function () { return chunkBL6WXLPV_cjs.isCreateUtxoError; }
|
|
10719
|
-
});
|
|
10720
|
-
Object.defineProperty(exports, "isEncryptedDepositError", {
|
|
10721
|
-
enumerable: true,
|
|
10722
|
-
get: function () { return chunkBL6WXLPV_cjs.isEncryptedDepositError; }
|
|
10723
|
-
});
|
|
10724
|
-
Object.defineProperty(exports, "isEncryptedWithdrawalError", {
|
|
10725
|
-
enumerable: true,
|
|
10726
|
-
get: function () { return chunkBL6WXLPV_cjs.isEncryptedWithdrawalError; }
|
|
10727
|
-
});
|
|
10728
|
-
Object.defineProperty(exports, "isFetchUtxosError", {
|
|
10729
|
-
enumerable: true,
|
|
10730
|
-
get: function () { return chunkBL6WXLPV_cjs.isFetchUtxosError; }
|
|
10731
|
-
});
|
|
10732
|
-
Object.defineProperty(exports, "isQueryError", {
|
|
10733
|
-
enumerable: true,
|
|
10734
|
-
get: function () { return chunkBL6WXLPV_cjs.isQueryError; }
|
|
10735
|
-
});
|
|
10736
|
-
Object.defineProperty(exports, "isRegistrationError", {
|
|
10737
|
-
enumerable: true,
|
|
10738
|
-
get: function () { return chunkBL6WXLPV_cjs.isRegistrationError; }
|
|
10739
|
-
});
|
|
10740
10644
|
Object.defineProperty(exports, "AES_AUTH_TAG_LENGTH", {
|
|
10741
10645
|
enumerable: true,
|
|
10742
|
-
get: function () { return
|
|
10646
|
+
get: function () { return chunk3LS5P32X_cjs.AES_AUTH_TAG_LENGTH; }
|
|
10743
10647
|
});
|
|
10744
10648
|
Object.defineProperty(exports, "AES_IV_LENGTH", {
|
|
10745
10649
|
enumerable: true,
|
|
10746
|
-
get: function () { return
|
|
10650
|
+
get: function () { return chunk3LS5P32X_cjs.AES_IV_LENGTH; }
|
|
10747
10651
|
});
|
|
10748
10652
|
Object.defineProperty(exports, "AES_KEY_LENGTH", {
|
|
10749
10653
|
enumerable: true,
|
|
10750
|
-
get: function () { return
|
|
10654
|
+
get: function () { return chunk3LS5P32X_cjs.AES_KEY_LENGTH; }
|
|
10751
10655
|
});
|
|
10752
10656
|
Object.defineProperty(exports, "AES_METADATA_OVERHEAD", {
|
|
10753
10657
|
enumerable: true,
|
|
10754
|
-
get: function () { return
|
|
10658
|
+
get: function () { return chunk3LS5P32X_cjs.AES_METADATA_OVERHEAD; }
|
|
10755
10659
|
});
|
|
10756
10660
|
Object.defineProperty(exports, "ALPHA", {
|
|
10757
10661
|
enumerable: true,
|
|
10758
|
-
get: function () { return
|
|
10662
|
+
get: function () { return chunk3LS5P32X_cjs.ALPHA; }
|
|
10759
10663
|
});
|
|
10760
10664
|
Object.defineProperty(exports, "ALPHA_INVERSE", {
|
|
10761
10665
|
enumerable: true,
|
|
10762
|
-
get: function () { return
|
|
10666
|
+
get: function () { return chunk3LS5P32X_cjs.ALPHA_INVERSE; }
|
|
10763
10667
|
});
|
|
10764
10668
|
Object.defineProperty(exports, "BASE85_LIMB_MAX", {
|
|
10765
10669
|
enumerable: true,
|
|
10766
|
-
get: function () { return
|
|
10670
|
+
get: function () { return chunk3LS5P32X_cjs.BASE85_LIMB_MAX; }
|
|
10767
10671
|
});
|
|
10768
10672
|
Object.defineProperty(exports, "BLOCK_SIZE", {
|
|
10769
10673
|
enumerable: true,
|
|
10770
|
-
get: function () { return
|
|
10674
|
+
get: function () { return chunk3LS5P32X_cjs.BLOCK_SIZE; }
|
|
10771
10675
|
});
|
|
10772
10676
|
Object.defineProperty(exports, "CIPHER_ROUND_COUNT", {
|
|
10773
10677
|
enumerable: true,
|
|
10774
|
-
get: function () { return
|
|
10678
|
+
get: function () { return chunk3LS5P32X_cjs.CIPHER_ROUND_COUNT; }
|
|
10775
10679
|
});
|
|
10776
10680
|
Object.defineProperty(exports, "FIELD_ELEMENT_BYTE_LENGTH", {
|
|
10777
10681
|
enumerable: true,
|
|
10778
|
-
get: function () { return
|
|
10682
|
+
get: function () { return chunk3LS5P32X_cjs.FIELD_ELEMENT_BYTE_LENGTH; }
|
|
10779
10683
|
});
|
|
10780
10684
|
Object.defineProperty(exports, "FIELD_PRIME", {
|
|
10781
10685
|
enumerable: true,
|
|
10782
|
-
get: function () { return
|
|
10686
|
+
get: function () { return chunk3LS5P32X_cjs.FIELD_PRIME; }
|
|
10783
10687
|
});
|
|
10784
10688
|
Object.defineProperty(exports, "GROTH16_G1_BYTE_LENGTH", {
|
|
10785
10689
|
enumerable: true,
|
|
10786
|
-
get: function () { return
|
|
10690
|
+
get: function () { return chunk3LS5P32X_cjs.GROTH16_G1_BYTE_LENGTH; }
|
|
10787
10691
|
});
|
|
10788
10692
|
Object.defineProperty(exports, "GROTH16_G2_BYTE_LENGTH", {
|
|
10789
10693
|
enumerable: true,
|
|
10790
|
-
get: function () { return
|
|
10694
|
+
get: function () { return chunk3LS5P32X_cjs.GROTH16_G2_BYTE_LENGTH; }
|
|
10791
10695
|
});
|
|
10792
10696
|
Object.defineProperty(exports, "HASH_CAPACITY", {
|
|
10793
10697
|
enumerable: true,
|
|
10794
|
-
get: function () { return
|
|
10698
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_CAPACITY; }
|
|
10795
10699
|
});
|
|
10796
10700
|
Object.defineProperty(exports, "HASH_DIGEST_LENGTH", {
|
|
10797
10701
|
enumerable: true,
|
|
10798
|
-
get: function () { return
|
|
10702
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_DIGEST_LENGTH; }
|
|
10799
10703
|
});
|
|
10800
10704
|
Object.defineProperty(exports, "HASH_RATE", {
|
|
10801
10705
|
enumerable: true,
|
|
10802
|
-
get: function () { return
|
|
10706
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_RATE; }
|
|
10803
10707
|
});
|
|
10804
10708
|
Object.defineProperty(exports, "HASH_ROUND_COUNT", {
|
|
10805
10709
|
enumerable: true,
|
|
10806
|
-
get: function () { return
|
|
10710
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_ROUND_COUNT; }
|
|
10807
10711
|
});
|
|
10808
10712
|
Object.defineProperty(exports, "HASH_STATE_SIZE", {
|
|
10809
10713
|
enumerable: true,
|
|
10810
|
-
get: function () { return
|
|
10714
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_STATE_SIZE; }
|
|
10811
10715
|
});
|
|
10812
10716
|
Object.defineProperty(exports, "MASTER_VIEWING_KEY_MAX", {
|
|
10813
10717
|
enumerable: true,
|
|
10814
|
-
get: function () { return
|
|
10718
|
+
get: function () { return chunk3LS5P32X_cjs.MASTER_VIEWING_KEY_MAX; }
|
|
10815
10719
|
});
|
|
10816
10720
|
Object.defineProperty(exports, "MAX_AGGREGATOR_INPUTS", {
|
|
10817
10721
|
enumerable: true,
|
|
10818
|
-
get: function () { return
|
|
10722
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_AGGREGATOR_INPUTS; }
|
|
10819
10723
|
});
|
|
10820
10724
|
Object.defineProperty(exports, "MAX_POSEIDON_INPUTS", {
|
|
10821
10725
|
enumerable: true,
|
|
10822
|
-
get: function () { return
|
|
10726
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_POSEIDON_INPUTS; }
|
|
10823
10727
|
});
|
|
10824
10728
|
Object.defineProperty(exports, "MAX_PRF_SEEDS", {
|
|
10825
10729
|
enumerable: true,
|
|
10826
|
-
get: function () { return
|
|
10730
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_PRF_SEEDS; }
|
|
10827
10731
|
});
|
|
10828
10732
|
Object.defineProperty(exports, "NONCE_BYTES", {
|
|
10829
10733
|
enumerable: true,
|
|
10830
|
-
get: function () { return
|
|
10734
|
+
get: function () { return chunk3LS5P32X_cjs.NONCE_BYTES; }
|
|
10831
10735
|
});
|
|
10832
10736
|
Object.defineProperty(exports, "OPTIONAL_DATA_BYTE_LENGTH", {
|
|
10833
10737
|
enumerable: true,
|
|
10834
|
-
get: function () { return
|
|
10738
|
+
get: function () { return chunk3LS5P32X_cjs.OPTIONAL_DATA_BYTE_LENGTH; }
|
|
10835
10739
|
});
|
|
10836
10740
|
Object.defineProperty(exports, "PRECOMPUTED_FIELD_INVERSES", {
|
|
10837
10741
|
enumerable: true,
|
|
10838
|
-
get: function () { return
|
|
10742
|
+
get: function () { return chunk3LS5P32X_cjs.PRECOMPUTED_FIELD_INVERSES; }
|
|
10839
10743
|
});
|
|
10840
10744
|
Object.defineProperty(exports, "REDUCTION_CONST", {
|
|
10841
10745
|
enumerable: true,
|
|
10842
|
-
get: function () { return
|
|
10746
|
+
get: function () { return chunk3LS5P32X_cjs.REDUCTION_CONST; }
|
|
10843
10747
|
});
|
|
10844
10748
|
Object.defineProperty(exports, "SAMPLE_BUFFER_BYTE_LENGTH", {
|
|
10845
10749
|
enumerable: true,
|
|
10846
|
-
get: function () { return
|
|
10750
|
+
get: function () { return chunk3LS5P32X_cjs.SAMPLE_BUFFER_BYTE_LENGTH; }
|
|
10847
10751
|
});
|
|
10848
10752
|
Object.defineProperty(exports, "SECRET_BYTES", {
|
|
10849
10753
|
enumerable: true,
|
|
10850
|
-
get: function () { return
|
|
10754
|
+
get: function () { return chunk3LS5P32X_cjs.SECRET_BYTES; }
|
|
10851
10755
|
});
|
|
10852
10756
|
Object.defineProperty(exports, "SHAKE256_CIPHER_SEED", {
|
|
10853
10757
|
enumerable: true,
|
|
10854
|
-
get: function () { return
|
|
10758
|
+
get: function () { return chunk3LS5P32X_cjs.SHAKE256_CIPHER_SEED; }
|
|
10855
10759
|
});
|
|
10856
10760
|
Object.defineProperty(exports, "X25519_BYTE_LENGTH", {
|
|
10857
10761
|
enumerable: true,
|
|
10858
|
-
get: function () { return
|
|
10762
|
+
get: function () { return chunk3LS5P32X_cjs.X25519_BYTE_LENGTH; }
|
|
10859
10763
|
});
|
|
10860
10764
|
Object.defineProperty(exports, "ZK_PROOF_BYTE_LENGTH", {
|
|
10861
10765
|
enumerable: true,
|
|
10862
|
-
get: function () { return
|
|
10766
|
+
get: function () { return chunk3LS5P32X_cjs.ZK_PROOF_BYTE_LENGTH; }
|
|
10863
10767
|
});
|
|
10864
10768
|
Object.defineProperty(exports, "assertAesCiphertextWithMetadata", {
|
|
10865
10769
|
enumerable: true,
|
|
10866
|
-
get: function () { return
|
|
10770
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesCiphertextWithMetadata; }
|
|
10867
10771
|
});
|
|
10868
10772
|
Object.defineProperty(exports, "assertAesKey", {
|
|
10869
10773
|
enumerable: true,
|
|
10870
|
-
get: function () { return
|
|
10774
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesKey; }
|
|
10871
10775
|
});
|
|
10872
10776
|
Object.defineProperty(exports, "assertAesPlaintext", {
|
|
10873
10777
|
enumerable: true,
|
|
10874
|
-
get: function () { return
|
|
10778
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesPlaintext; }
|
|
10875
10779
|
});
|
|
10876
10780
|
Object.defineProperty(exports, "assertBase85Limb", {
|
|
10877
10781
|
enumerable: true,
|
|
10878
|
-
get: function () { return
|
|
10782
|
+
get: function () { return chunk3LS5P32X_cjs.assertBase85Limb; }
|
|
10879
10783
|
});
|
|
10880
10784
|
Object.defineProperty(exports, "assertCurve25519KeypairResult", {
|
|
10881
10785
|
enumerable: true,
|
|
10882
|
-
get: function () { return
|
|
10786
|
+
get: function () { return chunk3LS5P32X_cjs.assertCurve25519KeypairResult; }
|
|
10883
10787
|
});
|
|
10884
10788
|
Object.defineProperty(exports, "assertDailyViewingKey", {
|
|
10885
10789
|
enumerable: true,
|
|
10886
|
-
get: function () { return
|
|
10790
|
+
get: function () { return chunk3LS5P32X_cjs.assertDailyViewingKey; }
|
|
10887
10791
|
});
|
|
10888
10792
|
Object.defineProperty(exports, "assertEd25519Keypair", {
|
|
10889
10793
|
enumerable: true,
|
|
10890
|
-
get: function () { return
|
|
10794
|
+
get: function () { return chunk3LS5P32X_cjs.assertEd25519Keypair; }
|
|
10891
10795
|
});
|
|
10892
10796
|
Object.defineProperty(exports, "assertGenerationSeed", {
|
|
10893
10797
|
enumerable: true,
|
|
10894
|
-
get: function () { return
|
|
10798
|
+
get: function () { return chunk3LS5P32X_cjs.assertGenerationSeed; }
|
|
10895
10799
|
});
|
|
10896
10800
|
Object.defineProperty(exports, "assertGroth16ProofA", {
|
|
10897
10801
|
enumerable: true,
|
|
10898
|
-
get: function () { return
|
|
10802
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofA; }
|
|
10899
10803
|
});
|
|
10900
10804
|
Object.defineProperty(exports, "assertGroth16ProofB", {
|
|
10901
10805
|
enumerable: true,
|
|
10902
|
-
get: function () { return
|
|
10806
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofB; }
|
|
10903
10807
|
});
|
|
10904
10808
|
Object.defineProperty(exports, "assertGroth16ProofC", {
|
|
10905
10809
|
enumerable: true,
|
|
10906
|
-
get: function () { return
|
|
10810
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofC; }
|
|
10907
10811
|
});
|
|
10908
10812
|
Object.defineProperty(exports, "assertHourlyViewingKey", {
|
|
10909
10813
|
enumerable: true,
|
|
10910
|
-
get: function () { return
|
|
10814
|
+
get: function () { return chunk3LS5P32X_cjs.assertHourlyViewingKey; }
|
|
10911
10815
|
});
|
|
10912
10816
|
Object.defineProperty(exports, "assertKeccak256Hash", {
|
|
10913
10817
|
enumerable: true,
|
|
10914
|
-
get: function () { return
|
|
10818
|
+
get: function () { return chunk3LS5P32X_cjs.assertKeccak256Hash; }
|
|
10915
10819
|
});
|
|
10916
10820
|
Object.defineProperty(exports, "assertKeccak512Hash", {
|
|
10917
10821
|
enumerable: true,
|
|
10918
|
-
get: function () { return
|
|
10822
|
+
get: function () { return chunk3LS5P32X_cjs.assertKeccak512Hash; }
|
|
10919
10823
|
});
|
|
10920
10824
|
Object.defineProperty(exports, "assertMasterSeed", {
|
|
10921
10825
|
enumerable: true,
|
|
10922
|
-
get: function () { return
|
|
10826
|
+
get: function () { return chunk3LS5P32X_cjs.assertMasterSeed; }
|
|
10923
10827
|
});
|
|
10924
10828
|
Object.defineProperty(exports, "assertMasterViewingKey", {
|
|
10925
10829
|
enumerable: true,
|
|
10926
|
-
get: function () { return
|
|
10830
|
+
get: function () { return chunk3LS5P32X_cjs.assertMasterViewingKey; }
|
|
10927
10831
|
});
|
|
10928
10832
|
Object.defineProperty(exports, "assertMintViewingKey", {
|
|
10929
10833
|
enumerable: true,
|
|
10930
|
-
get: function () { return
|
|
10834
|
+
get: function () { return chunk3LS5P32X_cjs.assertMintViewingKey; }
|
|
10931
10835
|
});
|
|
10932
10836
|
Object.defineProperty(exports, "assertMinuteViewingKey", {
|
|
10933
10837
|
enumerable: true,
|
|
10934
|
-
get: function () { return
|
|
10838
|
+
get: function () { return chunk3LS5P32X_cjs.assertMinuteViewingKey; }
|
|
10935
10839
|
});
|
|
10936
10840
|
Object.defineProperty(exports, "assertMonthlyViewingKey", {
|
|
10937
10841
|
enumerable: true,
|
|
10938
|
-
get: function () { return
|
|
10842
|
+
get: function () { return chunk3LS5P32X_cjs.assertMonthlyViewingKey; }
|
|
10939
10843
|
});
|
|
10940
10844
|
Object.defineProperty(exports, "assertOptionalData32", {
|
|
10941
10845
|
enumerable: true,
|
|
10942
|
-
get: function () { return
|
|
10846
|
+
get: function () { return chunk3LS5P32X_cjs.assertOptionalData32; }
|
|
10943
10847
|
});
|
|
10944
10848
|
Object.defineProperty(exports, "assertPoseidonCiphertext", {
|
|
10945
10849
|
enumerable: true,
|
|
10946
|
-
get: function () { return
|
|
10850
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonCiphertext; }
|
|
10947
10851
|
});
|
|
10948
10852
|
Object.defineProperty(exports, "assertPoseidonCounter", {
|
|
10949
10853
|
enumerable: true,
|
|
10950
|
-
get: function () { return
|
|
10854
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonCounter; }
|
|
10951
10855
|
});
|
|
10952
10856
|
Object.defineProperty(exports, "assertPoseidonHash", {
|
|
10953
10857
|
enumerable: true,
|
|
10954
|
-
get: function () { return
|
|
10858
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonHash; }
|
|
10955
10859
|
});
|
|
10956
10860
|
Object.defineProperty(exports, "assertPoseidonKey", {
|
|
10957
10861
|
enumerable: true,
|
|
10958
|
-
get: function () { return
|
|
10862
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonKey; }
|
|
10959
10863
|
});
|
|
10960
10864
|
Object.defineProperty(exports, "assertPoseidonKeystream", {
|
|
10961
10865
|
enumerable: true,
|
|
10962
|
-
get: function () { return
|
|
10866
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonKeystream; }
|
|
10963
10867
|
});
|
|
10964
10868
|
Object.defineProperty(exports, "assertPoseidonPlaintext", {
|
|
10965
10869
|
enumerable: true,
|
|
10966
|
-
get: function () { return
|
|
10870
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonPlaintext; }
|
|
10967
10871
|
});
|
|
10968
10872
|
Object.defineProperty(exports, "assertRcCiphertext", {
|
|
10969
10873
|
enumerable: true,
|
|
10970
|
-
get: function () { return
|
|
10874
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcCiphertext; }
|
|
10971
10875
|
});
|
|
10972
10876
|
Object.defineProperty(exports, "assertRcCounter", {
|
|
10973
10877
|
enumerable: true,
|
|
10974
|
-
get: function () { return
|
|
10878
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcCounter; }
|
|
10975
10879
|
});
|
|
10976
10880
|
Object.defineProperty(exports, "assertRcEncryptionNonce", {
|
|
10977
10881
|
enumerable: true,
|
|
10978
|
-
get: function () { return
|
|
10882
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcEncryptionNonce; }
|
|
10979
10883
|
});
|
|
10980
10884
|
Object.defineProperty(exports, "assertRcKey", {
|
|
10981
10885
|
enumerable: true,
|
|
10982
|
-
get: function () { return
|
|
10886
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcKey; }
|
|
10983
10887
|
});
|
|
10984
10888
|
Object.defineProperty(exports, "assertRcPlaintext", {
|
|
10985
10889
|
enumerable: true,
|
|
10986
|
-
get: function () { return
|
|
10890
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcPlaintext; }
|
|
10987
10891
|
});
|
|
10988
10892
|
Object.defineProperty(exports, "assertSecondViewingKey", {
|
|
10989
10893
|
enumerable: true,
|
|
10990
|
-
get: function () { return
|
|
10894
|
+
get: function () { return chunk3LS5P32X_cjs.assertSecondViewingKey; }
|
|
10991
10895
|
});
|
|
10992
10896
|
Object.defineProperty(exports, "assertSharedSecret", {
|
|
10993
10897
|
enumerable: true,
|
|
10994
|
-
get: function () { return
|
|
10898
|
+
get: function () { return chunk3LS5P32X_cjs.assertSharedSecret; }
|
|
10995
10899
|
});
|
|
10996
10900
|
Object.defineProperty(exports, "assertX25519Bytes", {
|
|
10997
10901
|
enumerable: true,
|
|
10998
|
-
get: function () { return
|
|
10902
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519Bytes; }
|
|
10999
10903
|
});
|
|
11000
10904
|
Object.defineProperty(exports, "assertX25519Keypair", {
|
|
11001
10905
|
enumerable: true,
|
|
11002
|
-
get: function () { return
|
|
10906
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519Keypair; }
|
|
11003
10907
|
});
|
|
11004
10908
|
Object.defineProperty(exports, "assertX25519PrivateKey", {
|
|
11005
10909
|
enumerable: true,
|
|
11006
|
-
get: function () { return
|
|
10910
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519PrivateKey; }
|
|
11007
10911
|
});
|
|
11008
10912
|
Object.defineProperty(exports, "assertX25519PublicKey", {
|
|
11009
10913
|
enumerable: true,
|
|
11010
|
-
get: function () { return
|
|
10914
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519PublicKey; }
|
|
11011
10915
|
});
|
|
11012
10916
|
Object.defineProperty(exports, "assertYearlyViewingKey", {
|
|
11013
10917
|
enumerable: true,
|
|
11014
|
-
get: function () { return
|
|
10918
|
+
get: function () { return chunk3LS5P32X_cjs.assertYearlyViewingKey; }
|
|
11015
10919
|
});
|
|
11016
10920
|
Object.defineProperty(exports, "assertZkProofBytes", {
|
|
11017
10921
|
enumerable: true,
|
|
11018
|
-
get: function () { return
|
|
10922
|
+
get: function () { return chunk3LS5P32X_cjs.assertZkProofBytes; }
|
|
11019
10923
|
});
|
|
11020
10924
|
Object.defineProperty(exports, "buildPersonalizationString", {
|
|
11021
10925
|
enumerable: true,
|
|
11022
|
-
get: function () { return
|
|
10926
|
+
get: function () { return chunk3LS5P32X_cjs.buildPersonalizationString; }
|
|
11023
10927
|
});
|
|
11024
10928
|
Object.defineProperty(exports, "defaultAesDecryptor", {
|
|
11025
10929
|
enumerable: true,
|
|
11026
|
-
get: function () { return
|
|
10930
|
+
get: function () { return chunk3LS5P32X_cjs.defaultAesDecryptor; }
|
|
11027
10931
|
});
|
|
11028
10932
|
Object.defineProperty(exports, "defaultAesEncryptor", {
|
|
11029
10933
|
enumerable: true,
|
|
11030
|
-
get: function () { return
|
|
10934
|
+
get: function () { return chunk3LS5P32X_cjs.defaultAesEncryptor; }
|
|
11031
10935
|
});
|
|
11032
10936
|
Object.defineProperty(exports, "deriveBn254FieldElementFromKeccak512", {
|
|
11033
10937
|
enumerable: true,
|
|
11034
|
-
get: function () { return
|
|
10938
|
+
get: function () { return chunk3LS5P32X_cjs.deriveBn254FieldElementFromKeccak512; }
|
|
11035
10939
|
});
|
|
11036
10940
|
Object.defineProperty(exports, "deriveEphemeralMasterViewingKey", {
|
|
11037
10941
|
enumerable: true,
|
|
11038
|
-
get: function () { return
|
|
10942
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralMasterViewingKey; }
|
|
11039
10943
|
});
|
|
11040
10944
|
Object.defineProperty(exports, "deriveEphemeralMasterViewingKeyBlindingFactor", {
|
|
11041
10945
|
enumerable: true,
|
|
11042
|
-
get: function () { return
|
|
10946
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralMasterViewingKeyBlindingFactor; }
|
|
11043
10947
|
});
|
|
11044
10948
|
Object.defineProperty(exports, "deriveEphemeralPoseidonPrivateKey", {
|
|
11045
10949
|
enumerable: true,
|
|
11046
|
-
get: function () { return
|
|
10950
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralPoseidonPrivateKey; }
|
|
11047
10951
|
});
|
|
11048
10952
|
Object.defineProperty(exports, "deriveEphemeralPoseidonPrivateKeyBlindingFactor", {
|
|
11049
10953
|
enumerable: true,
|
|
11050
|
-
get: function () { return
|
|
10954
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralPoseidonPrivateKeyBlindingFactor; }
|
|
11051
10955
|
});
|
|
11052
10956
|
Object.defineProperty(exports, "deriveKeystreamBlindingFactor", {
|
|
11053
10957
|
enumerable: true,
|
|
11054
|
-
get: function () { return
|
|
10958
|
+
get: function () { return chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor; }
|
|
11055
10959
|
});
|
|
11056
10960
|
Object.defineProperty(exports, "deriveModifiedGenerationIndexForReceiverClaim", {
|
|
11057
10961
|
enumerable: true,
|
|
11058
|
-
get: function () { return
|
|
10962
|
+
get: function () { return chunk3LS5P32X_cjs.deriveModifiedGenerationIndexForReceiverClaim; }
|
|
11059
10963
|
});
|
|
11060
10964
|
Object.defineProperty(exports, "deriveModifiedGenerationIndexForSenderClaim", {
|
|
11061
10965
|
enumerable: true,
|
|
11062
|
-
get: function () { return
|
|
10966
|
+
get: function () { return chunk3LS5P32X_cjs.deriveModifiedGenerationIndexForSenderClaim; }
|
|
11063
10967
|
});
|
|
11064
10968
|
Object.defineProperty(exports, "deriveNullifierFromModifiedGenerationIndex", {
|
|
11065
10969
|
enumerable: true,
|
|
11066
|
-
get: function () { return
|
|
10970
|
+
get: function () { return chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex; }
|
|
11067
10971
|
});
|
|
11068
10972
|
Object.defineProperty(exports, "deriveProofAccountOffsetFromModifiedGenerationIndex", {
|
|
11069
10973
|
enumerable: true,
|
|
11070
|
-
get: function () { return
|
|
10974
|
+
get: function () { return chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex; }
|
|
11071
10975
|
});
|
|
11072
10976
|
Object.defineProperty(exports, "deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex", {
|
|
11073
10977
|
enumerable: true,
|
|
11074
|
-
get: function () { return
|
|
10978
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex; }
|
|
11075
10979
|
});
|
|
11076
10980
|
Object.defineProperty(exports, "deriveRandomSecretFromModifiedGenerationIndex", {
|
|
11077
10981
|
enumerable: true,
|
|
11078
|
-
get: function () { return
|
|
10982
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex; }
|
|
11079
10983
|
});
|
|
11080
10984
|
Object.defineProperty(exports, "deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex", {
|
|
11081
10985
|
enumerable: true,
|
|
11082
|
-
get: function () { return
|
|
10986
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex; }
|
|
11083
10987
|
});
|
|
11084
10988
|
Object.defineProperty(exports, "expandModifiedGenerationIndex", {
|
|
11085
10989
|
enumerable: true,
|
|
11086
|
-
get: function () { return
|
|
10990
|
+
get: function () { return chunk3LS5P32X_cjs.expandModifiedGenerationIndex; }
|
|
11087
10991
|
});
|
|
11088
10992
|
Object.defineProperty(exports, "getAesDecryptor", {
|
|
11089
10993
|
enumerable: true,
|
|
11090
|
-
get: function () { return
|
|
10994
|
+
get: function () { return chunk3LS5P32X_cjs.getAesDecryptor; }
|
|
11091
10995
|
});
|
|
11092
10996
|
Object.defineProperty(exports, "getAesEncryptor", {
|
|
11093
10997
|
enumerable: true,
|
|
11094
|
-
get: function () { return
|
|
10998
|
+
get: function () { return chunk3LS5P32X_cjs.getAesEncryptor; }
|
|
11095
10999
|
});
|
|
11096
11000
|
Object.defineProperty(exports, "getBn254FieldElementFromKeccak512Deriver", {
|
|
11097
11001
|
enumerable: true,
|
|
11098
|
-
get: function () { return
|
|
11002
|
+
get: function () { return chunk3LS5P32X_cjs.getBn254FieldElementFromKeccak512Deriver; }
|
|
11099
11003
|
});
|
|
11100
11004
|
Object.defineProperty(exports, "getChallengePowersFunction", {
|
|
11101
11005
|
enumerable: true,
|
|
11102
|
-
get: function () { return
|
|
11006
|
+
get: function () { return chunk3LS5P32X_cjs.getChallengePowersFunction; }
|
|
11103
11007
|
});
|
|
11104
11008
|
Object.defineProperty(exports, "getDailyViewingKeyDeriver", {
|
|
11105
11009
|
enumerable: true,
|
|
11106
|
-
get: function () { return
|
|
11010
|
+
get: function () { return chunk3LS5P32X_cjs.getDailyViewingKeyDeriver; }
|
|
11107
11011
|
});
|
|
11108
11012
|
Object.defineProperty(exports, "getEphemeralMasterSeedDeriver", {
|
|
11109
11013
|
enumerable: true,
|
|
11110
|
-
get: function () { return
|
|
11014
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralMasterSeedDeriver; }
|
|
11111
11015
|
});
|
|
11112
11016
|
Object.defineProperty(exports, "getEphemeralRescueCommitmentBlindingFactorDeriver", {
|
|
11113
11017
|
enumerable: true,
|
|
11114
|
-
get: function () { return
|
|
11018
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralRescueCommitmentBlindingFactorDeriver; }
|
|
11115
11019
|
});
|
|
11116
11020
|
Object.defineProperty(exports, "getEphemeralUtxoH2RandomSecretDeriver", {
|
|
11117
11021
|
enumerable: true,
|
|
11118
|
-
get: function () { return
|
|
11022
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoH2RandomSecretDeriver; }
|
|
11119
11023
|
});
|
|
11120
11024
|
Object.defineProperty(exports, "getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver", {
|
|
11121
11025
|
enumerable: true,
|
|
11122
|
-
get: function () { return
|
|
11026
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver; }
|
|
11123
11027
|
});
|
|
11124
11028
|
Object.defineProperty(exports, "getEphemeralUtxoMasterViewingKeyDeriver", {
|
|
11125
11029
|
enumerable: true,
|
|
11126
|
-
get: function () { return
|
|
11030
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver; }
|
|
11127
11031
|
});
|
|
11128
11032
|
Object.defineProperty(exports, "getEphemeralUtxoNullifierDeriver", {
|
|
11129
11033
|
enumerable: true,
|
|
11130
|
-
get: function () { return
|
|
11034
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoNullifierDeriver; }
|
|
11131
11035
|
});
|
|
11132
11036
|
Object.defineProperty(exports, "getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver", {
|
|
11133
11037
|
enumerable: true,
|
|
11134
|
-
get: function () { return
|
|
11038
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver; }
|
|
11135
11039
|
});
|
|
11136
11040
|
Object.defineProperty(exports, "getEphemeralUtxoPoseidonPrivateKeyDeriver", {
|
|
11137
11041
|
enumerable: true,
|
|
11138
|
-
get: function () { return
|
|
11042
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver; }
|
|
11139
11043
|
});
|
|
11140
11044
|
Object.defineProperty(exports, "getFiatShamirChallengeGeneratorFunction", {
|
|
11141
11045
|
enumerable: true,
|
|
11142
|
-
get: function () { return
|
|
11046
|
+
get: function () { return chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction; }
|
|
11143
11047
|
});
|
|
11144
11048
|
Object.defineProperty(exports, "getFieldArithmetic", {
|
|
11145
11049
|
enumerable: true,
|
|
11146
|
-
get: function () { return
|
|
11050
|
+
get: function () { return chunk3LS5P32X_cjs.getFieldArithmetic; }
|
|
11147
11051
|
});
|
|
11148
11052
|
Object.defineProperty(exports, "getHourlyViewingKeyDeriver", {
|
|
11149
11053
|
enumerable: true,
|
|
11150
|
-
get: function () { return
|
|
11054
|
+
get: function () { return chunk3LS5P32X_cjs.getHourlyViewingKeyDeriver; }
|
|
11151
11055
|
});
|
|
11152
11056
|
Object.defineProperty(exports, "getKeystreamCommitmentGenerator", {
|
|
11153
11057
|
enumerable: true,
|
|
11154
|
-
get: function () { return
|
|
11058
|
+
get: function () { return chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator; }
|
|
11155
11059
|
});
|
|
11156
11060
|
Object.defineProperty(exports, "getMasterSeedBasedFieldElementDeriver", {
|
|
11157
11061
|
enumerable: true,
|
|
11158
|
-
get: function () { return
|
|
11062
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterSeedBasedFieldElementDeriver; }
|
|
11159
11063
|
});
|
|
11160
11064
|
Object.defineProperty(exports, "getMasterViewingKeyBlindingFactorDeriver", {
|
|
11161
11065
|
enumerable: true,
|
|
11162
|
-
get: function () { return
|
|
11066
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver; }
|
|
11163
11067
|
});
|
|
11164
11068
|
Object.defineProperty(exports, "getMasterViewingKeyDeriver", {
|
|
11165
11069
|
enumerable: true,
|
|
11166
|
-
get: function () { return
|
|
11070
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyDeriver; }
|
|
11167
11071
|
});
|
|
11168
11072
|
Object.defineProperty(exports, "getMasterViewingKeyX25519KeypairDeriver", {
|
|
11169
11073
|
enumerable: true,
|
|
11170
|
-
get: function () { return
|
|
11074
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver; }
|
|
11171
11075
|
});
|
|
11172
11076
|
Object.defineProperty(exports, "getMintViewingKeyDeriver", {
|
|
11173
11077
|
enumerable: true,
|
|
11174
|
-
get: function () { return
|
|
11078
|
+
get: function () { return chunk3LS5P32X_cjs.getMintViewingKeyDeriver; }
|
|
11175
11079
|
});
|
|
11176
11080
|
Object.defineProperty(exports, "getMintX25519KeypairDeriver", {
|
|
11177
11081
|
enumerable: true,
|
|
11178
|
-
get: function () { return
|
|
11082
|
+
get: function () { return chunk3LS5P32X_cjs.getMintX25519KeypairDeriver; }
|
|
11179
11083
|
});
|
|
11180
11084
|
Object.defineProperty(exports, "getMinuteViewingKeyDeriver", {
|
|
11181
11085
|
enumerable: true,
|
|
11182
|
-
get: function () { return
|
|
11086
|
+
get: function () { return chunk3LS5P32X_cjs.getMinuteViewingKeyDeriver; }
|
|
11183
11087
|
});
|
|
11184
11088
|
Object.defineProperty(exports, "getModuloPowCurve25519Function", {
|
|
11185
11089
|
enumerable: true,
|
|
11186
|
-
get: function () { return
|
|
11090
|
+
get: function () { return chunk3LS5P32X_cjs.getModuloPowCurve25519Function; }
|
|
11187
11091
|
});
|
|
11188
11092
|
Object.defineProperty(exports, "getMonthlyViewingKeyDeriver", {
|
|
11189
11093
|
enumerable: true,
|
|
11190
|
-
get: function () { return
|
|
11094
|
+
get: function () { return chunk3LS5P32X_cjs.getMonthlyViewingKeyDeriver; }
|
|
11191
11095
|
});
|
|
11192
11096
|
Object.defineProperty(exports, "getPersonalizationStringBuilder", {
|
|
11193
11097
|
enumerable: true,
|
|
11194
|
-
get: function () { return
|
|
11098
|
+
get: function () { return chunk3LS5P32X_cjs.getPersonalizationStringBuilder; }
|
|
11195
11099
|
});
|
|
11196
11100
|
Object.defineProperty(exports, "getPolynomialCommitmentFactorDeriver", {
|
|
11197
11101
|
enumerable: true,
|
|
11198
|
-
get: function () { return
|
|
11102
|
+
get: function () { return chunk3LS5P32X_cjs.getPolynomialCommitmentFactorDeriver; }
|
|
11199
11103
|
});
|
|
11200
11104
|
Object.defineProperty(exports, "getPolynomialEvaluatorFunction", {
|
|
11201
11105
|
enumerable: true,
|
|
11202
|
-
get: function () { return
|
|
11106
|
+
get: function () { return chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction; }
|
|
11203
11107
|
});
|
|
11204
11108
|
Object.defineProperty(exports, "getPoseidonAggregator", {
|
|
11205
11109
|
enumerable: true,
|
|
11206
|
-
get: function () { return
|
|
11110
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonAggregator; }
|
|
11207
11111
|
});
|
|
11208
11112
|
Object.defineProperty(exports, "getPoseidonBlindingFactorDeriver", {
|
|
11209
11113
|
enumerable: true,
|
|
11210
|
-
get: function () { return
|
|
11114
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver; }
|
|
11211
11115
|
});
|
|
11212
11116
|
Object.defineProperty(exports, "getPoseidonDecryptor", {
|
|
11213
11117
|
enumerable: true,
|
|
11214
|
-
get: function () { return
|
|
11118
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonDecryptor; }
|
|
11215
11119
|
});
|
|
11216
11120
|
Object.defineProperty(exports, "getPoseidonEncryptor", {
|
|
11217
11121
|
enumerable: true,
|
|
11218
|
-
get: function () { return
|
|
11122
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonEncryptor; }
|
|
11219
11123
|
});
|
|
11220
11124
|
Object.defineProperty(exports, "getPoseidonHasher", {
|
|
11221
11125
|
enumerable: true,
|
|
11222
|
-
get: function () { return
|
|
11126
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonHasher; }
|
|
11223
11127
|
});
|
|
11224
11128
|
Object.defineProperty(exports, "getPoseidonKeystreamBlindingFactorDeriver", {
|
|
11225
11129
|
enumerable: true,
|
|
11226
|
-
get: function () { return
|
|
11130
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver; }
|
|
11227
11131
|
});
|
|
11228
11132
|
Object.defineProperty(exports, "getPoseidonKeystreamGenerator", {
|
|
11229
11133
|
enumerable: true,
|
|
11230
|
-
get: function () { return
|
|
11134
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator; }
|
|
11231
11135
|
});
|
|
11232
11136
|
Object.defineProperty(exports, "getPoseidonPrf", {
|
|
11233
11137
|
enumerable: true,
|
|
11234
|
-
get: function () { return
|
|
11138
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonPrf; }
|
|
11235
11139
|
});
|
|
11236
11140
|
Object.defineProperty(exports, "getPoseidonPrivateKeyDeriver", {
|
|
11237
11141
|
enumerable: true,
|
|
11238
|
-
get: function () { return
|
|
11142
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver; }
|
|
11239
11143
|
});
|
|
11240
11144
|
Object.defineProperty(exports, "getPseudorandomU512Deriver", {
|
|
11241
11145
|
enumerable: true,
|
|
11242
|
-
get: function () { return
|
|
11146
|
+
get: function () { return chunk3LS5P32X_cjs.getPseudorandomU512Deriver; }
|
|
11243
11147
|
});
|
|
11244
11148
|
Object.defineProperty(exports, "getRescueCipher", {
|
|
11245
11149
|
enumerable: true,
|
|
11246
|
-
get: function () { return
|
|
11150
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipher; }
|
|
11247
11151
|
});
|
|
11248
11152
|
Object.defineProperty(exports, "getRescueCipherFromKeyPair", {
|
|
11249
11153
|
enumerable: true,
|
|
11250
|
-
get: function () { return
|
|
11154
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipherFromKeyPair; }
|
|
11251
11155
|
});
|
|
11252
11156
|
Object.defineProperty(exports, "getRescueCipherInstance", {
|
|
11253
11157
|
enumerable: true,
|
|
11254
|
-
get: function () { return
|
|
11158
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipherInstance; }
|
|
11255
11159
|
});
|
|
11256
11160
|
Object.defineProperty(exports, "getRescueCommitmentBlindingFactorDeriver", {
|
|
11257
11161
|
enumerable: true,
|
|
11258
|
-
get: function () { return
|
|
11162
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCommitmentBlindingFactorDeriver; }
|
|
11259
11163
|
});
|
|
11260
11164
|
Object.defineProperty(exports, "getRescueCommitmentGenerator", {
|
|
11261
11165
|
enumerable: true,
|
|
11262
|
-
get: function () { return
|
|
11166
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCommitmentGenerator; }
|
|
11263
11167
|
});
|
|
11264
11168
|
Object.defineProperty(exports, "getRescueDecryptorFromPrivateKey", {
|
|
11265
11169
|
enumerable: true,
|
|
11266
|
-
get: function () { return
|
|
11170
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueDecryptorFromPrivateKey; }
|
|
11267
11171
|
});
|
|
11268
11172
|
Object.defineProperty(exports, "getRescueEncryptorFromPrivateKey", {
|
|
11269
11173
|
enumerable: true,
|
|
11270
|
-
get: function () { return
|
|
11174
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey; }
|
|
11271
11175
|
});
|
|
11272
11176
|
Object.defineProperty(exports, "getRescueEncryptorWithNonceFromPrivateKey", {
|
|
11273
11177
|
enumerable: true,
|
|
11274
|
-
get: function () { return
|
|
11178
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueEncryptorWithNonceFromPrivateKey; }
|
|
11275
11179
|
});
|
|
11276
11180
|
Object.defineProperty(exports, "getRescueKeyGeneratorFromPrivateKey", {
|
|
11277
11181
|
enumerable: true,
|
|
11278
|
-
get: function () { return
|
|
11182
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey; }
|
|
11279
11183
|
});
|
|
11280
11184
|
Object.defineProperty(exports, "getRescuePrimeHashFunction", {
|
|
11281
11185
|
enumerable: true,
|
|
11282
|
-
get: function () { return
|
|
11186
|
+
get: function () { return chunk3LS5P32X_cjs.getRescuePrimeHashFunction; }
|
|
11283
11187
|
});
|
|
11284
11188
|
Object.defineProperty(exports, "getSecondViewingKeyDeriver", {
|
|
11285
11189
|
enumerable: true,
|
|
11286
|
-
get: function () { return
|
|
11190
|
+
get: function () { return chunk3LS5P32X_cjs.getSecondViewingKeyDeriver; }
|
|
11287
11191
|
});
|
|
11288
11192
|
Object.defineProperty(exports, "getUserAccountX25519KeypairDeriver", {
|
|
11289
11193
|
enumerable: true,
|
|
11290
|
-
get: function () { return
|
|
11194
|
+
get: function () { return chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver; }
|
|
11291
11195
|
});
|
|
11292
11196
|
Object.defineProperty(exports, "getUserCommitmentGeneratorFunction", {
|
|
11293
11197
|
enumerable: true,
|
|
11294
|
-
get: function () { return
|
|
11198
|
+
get: function () { return chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction; }
|
|
11295
11199
|
});
|
|
11296
11200
|
Object.defineProperty(exports, "getUtxoCommitmentHashGenerator", {
|
|
11297
11201
|
enumerable: true,
|
|
11298
|
-
get: function () { return
|
|
11202
|
+
get: function () { return chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator; }
|
|
11299
11203
|
});
|
|
11300
11204
|
Object.defineProperty(exports, "getYearlyViewingKeyDeriver", {
|
|
11301
11205
|
enumerable: true,
|
|
11302
|
-
get: function () { return
|
|
11206
|
+
get: function () { return chunk3LS5P32X_cjs.getYearlyViewingKeyDeriver; }
|
|
11207
|
+
});
|
|
11208
|
+
Object.defineProperty(exports, "ClaimUtxoError", {
|
|
11209
|
+
enumerable: true,
|
|
11210
|
+
get: function () { return chunkBL6WXLPV_cjs.ClaimUtxoError; }
|
|
11211
|
+
});
|
|
11212
|
+
Object.defineProperty(exports, "ComputationMonitorError", {
|
|
11213
|
+
enumerable: true,
|
|
11214
|
+
get: function () { return chunkBL6WXLPV_cjs.ComputationMonitorError; }
|
|
11215
|
+
});
|
|
11216
|
+
Object.defineProperty(exports, "ConversionError", {
|
|
11217
|
+
enumerable: true,
|
|
11218
|
+
get: function () { return chunkBL6WXLPV_cjs.ConversionError; }
|
|
11219
|
+
});
|
|
11220
|
+
Object.defineProperty(exports, "CreateUtxoError", {
|
|
11221
|
+
enumerable: true,
|
|
11222
|
+
get: function () { return chunkBL6WXLPV_cjs.CreateUtxoError; }
|
|
11223
|
+
});
|
|
11224
|
+
Object.defineProperty(exports, "EncryptedDepositError", {
|
|
11225
|
+
enumerable: true,
|
|
11226
|
+
get: function () { return chunkBL6WXLPV_cjs.EncryptedDepositError; }
|
|
11227
|
+
});
|
|
11228
|
+
Object.defineProperty(exports, "EncryptedWithdrawalError", {
|
|
11229
|
+
enumerable: true,
|
|
11230
|
+
get: function () { return chunkBL6WXLPV_cjs.EncryptedWithdrawalError; }
|
|
11231
|
+
});
|
|
11232
|
+
Object.defineProperty(exports, "FetchUtxosError", {
|
|
11233
|
+
enumerable: true,
|
|
11234
|
+
get: function () { return chunkBL6WXLPV_cjs.FetchUtxosError; }
|
|
11235
|
+
});
|
|
11236
|
+
Object.defineProperty(exports, "QueryError", {
|
|
11237
|
+
enumerable: true,
|
|
11238
|
+
get: function () { return chunkBL6WXLPV_cjs.QueryError; }
|
|
11239
|
+
});
|
|
11240
|
+
Object.defineProperty(exports, "RegistrationError", {
|
|
11241
|
+
enumerable: true,
|
|
11242
|
+
get: function () { return chunkBL6WXLPV_cjs.RegistrationError; }
|
|
11243
|
+
});
|
|
11244
|
+
Object.defineProperty(exports, "isClaimUtxoError", {
|
|
11245
|
+
enumerable: true,
|
|
11246
|
+
get: function () { return chunkBL6WXLPV_cjs.isClaimUtxoError; }
|
|
11247
|
+
});
|
|
11248
|
+
Object.defineProperty(exports, "isComputationMonitorError", {
|
|
11249
|
+
enumerable: true,
|
|
11250
|
+
get: function () { return chunkBL6WXLPV_cjs.isComputationMonitorError; }
|
|
11251
|
+
});
|
|
11252
|
+
Object.defineProperty(exports, "isConversionError", {
|
|
11253
|
+
enumerable: true,
|
|
11254
|
+
get: function () { return chunkBL6WXLPV_cjs.isConversionError; }
|
|
11255
|
+
});
|
|
11256
|
+
Object.defineProperty(exports, "isCreateUtxoError", {
|
|
11257
|
+
enumerable: true,
|
|
11258
|
+
get: function () { return chunkBL6WXLPV_cjs.isCreateUtxoError; }
|
|
11259
|
+
});
|
|
11260
|
+
Object.defineProperty(exports, "isEncryptedDepositError", {
|
|
11261
|
+
enumerable: true,
|
|
11262
|
+
get: function () { return chunkBL6WXLPV_cjs.isEncryptedDepositError; }
|
|
11263
|
+
});
|
|
11264
|
+
Object.defineProperty(exports, "isEncryptedWithdrawalError", {
|
|
11265
|
+
enumerable: true,
|
|
11266
|
+
get: function () { return chunkBL6WXLPV_cjs.isEncryptedWithdrawalError; }
|
|
11267
|
+
});
|
|
11268
|
+
Object.defineProperty(exports, "isFetchUtxosError", {
|
|
11269
|
+
enumerable: true,
|
|
11270
|
+
get: function () { return chunkBL6WXLPV_cjs.isFetchUtxosError; }
|
|
11271
|
+
});
|
|
11272
|
+
Object.defineProperty(exports, "isQueryError", {
|
|
11273
|
+
enumerable: true,
|
|
11274
|
+
get: function () { return chunkBL6WXLPV_cjs.isQueryError; }
|
|
11275
|
+
});
|
|
11276
|
+
Object.defineProperty(exports, "isRegistrationError", {
|
|
11277
|
+
enumerable: true,
|
|
11278
|
+
get: function () { return chunkBL6WXLPV_cjs.isRegistrationError; }
|
|
11279
|
+
});
|
|
11280
|
+
Object.defineProperty(exports, "bn254Add", {
|
|
11281
|
+
enumerable: true,
|
|
11282
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254Add; }
|
|
11283
|
+
});
|
|
11284
|
+
Object.defineProperty(exports, "bn254ModuloPow", {
|
|
11285
|
+
enumerable: true,
|
|
11286
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254ModuloPow; }
|
|
11287
|
+
});
|
|
11288
|
+
Object.defineProperty(exports, "bn254Mul", {
|
|
11289
|
+
enumerable: true,
|
|
11290
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254Mul; }
|
|
11291
|
+
});
|
|
11292
|
+
Object.defineProperty(exports, "bn254Sub", {
|
|
11293
|
+
enumerable: true,
|
|
11294
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254Sub; }
|
|
11295
|
+
});
|
|
11296
|
+
Object.defineProperty(exports, "computeBn254LimbwiseSumInverse", {
|
|
11297
|
+
enumerable: true,
|
|
11298
|
+
get: function () { return chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse; }
|
|
11299
|
+
});
|
|
11300
|
+
Object.defineProperty(exports, "computeBn254ModularInverse", {
|
|
11301
|
+
enumerable: true,
|
|
11302
|
+
get: function () { return chunkYEZBTYCP_cjs.computeBn254ModularInverse; }
|
|
11303
11303
|
});
|
|
11304
11304
|
Object.defineProperty(exports, "bn254FieldElementSampler", {
|
|
11305
11305
|
enumerable: true,
|