@umbra-privacy/sdk 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{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-ZQOIYCGA.cjs → chunk-43JEHY7D.cjs} +513 -3
- package/dist/chunk-43JEHY7D.cjs.map +1 -0
- package/dist/{chunk-INJ73LXQ.js → chunk-FQDYYTPG.js} +513 -3
- package/dist/chunk-FQDYYTPG.js.map +1 -0
- 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 +19 -19
- package/dist/constants/index.d.cts +3 -3
- package/dist/constants/index.d.ts +3 -3
- package/dist/constants/index.js +2 -2
- 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 +608 -606
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +25 -23
- package/dist/index.js.map +1 -1
- 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/chunk-INJ73LXQ.js.map +0 -1
- package/dist/chunk-ZQOIYCGA.cjs.map +0 -1
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');
|
|
5
|
-
var
|
|
4
|
+
var chunk43JEHY7D_cjs = require('./chunk-43JEHY7D.cjs');
|
|
5
|
+
var chunk3LS5P32X_cjs = require('./chunk-3LS5P32X.cjs');
|
|
6
|
+
var chunkZY3TSHMJ_cjs = require('./chunk-ZY3TSHMJ.cjs');
|
|
7
|
+
var chunkUEI7SYH6_cjs = require('./chunk-UEI7SYH6.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');
|
|
@@ -671,12 +671,12 @@ async function getUmbraClient(args, deps) {
|
|
|
671
671
|
offsets: customOffsets,
|
|
672
672
|
deferMasterSeedSignature = false
|
|
673
673
|
} = args;
|
|
674
|
-
const networkConfig =
|
|
674
|
+
const networkConfig = chunk43JEHY7D_cjs.getNetworkConfig(network);
|
|
675
675
|
const versions = {
|
|
676
|
-
protocol: customVersions?.protocol ??
|
|
677
|
-
algorithm: customVersions?.algorithm ??
|
|
678
|
-
scheme: customVersions?.scheme ??
|
|
679
|
-
network:
|
|
676
|
+
protocol: customVersions?.protocol ?? chunk43JEHY7D_cjs.getDefaultProtocolVersion,
|
|
677
|
+
algorithm: customVersions?.algorithm ?? chunk43JEHY7D_cjs.getDefaultAlgorithmVersion,
|
|
678
|
+
scheme: customVersions?.scheme ?? chunk43JEHY7D_cjs.getDefaultSchemeVersion,
|
|
679
|
+
network: chunk43JEHY7D_cjs.getNetworkSpecifier(network)
|
|
680
680
|
};
|
|
681
681
|
const offsets = {
|
|
682
682
|
masterViewingKey: customOffsets?.masterViewingKey ?? 0n,
|
|
@@ -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,
|
|
@@ -5135,9 +5135,9 @@ function getComplianceGrantIssuerFunction(args, deps) {
|
|
|
5135
5135
|
granterX25519: { first: granterX25519 },
|
|
5136
5136
|
receiverX25519: { first: receiverX25519 },
|
|
5137
5137
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES }
|
|
5138
|
-
});
|
|
5138
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5139
5139
|
const latestBlockhash = await getLatestBlockhash();
|
|
5140
|
-
const computeBudgetInstruction =
|
|
5140
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
5141
5141
|
const transactionMessage = kit.pipe(
|
|
5142
5142
|
kit.createTransactionMessage({ version: 0 }),
|
|
5143
5143
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -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,
|
|
@@ -5179,9 +5179,9 @@ function getComplianceGrantRevokerFunction(args, deps) {
|
|
|
5179
5179
|
granterX25519: { first: granterX25519 },
|
|
5180
5180
|
receiverX25519: { first: receiverX25519 },
|
|
5181
5181
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES2 }
|
|
5182
|
-
});
|
|
5182
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5183
5183
|
const latestBlockhash = await getLatestBlockhash();
|
|
5184
|
-
const computeBudgetInstruction =
|
|
5184
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
5185
5185
|
const transactionMessage = kit.pipe(
|
|
5186
5186
|
kit.createTransactionMessage({ version: 0 }),
|
|
5187
5187
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -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,
|
|
@@ -5260,7 +5260,8 @@ function getSharedCiphertextReencryptorForUserGrantFunction(args, deps) {
|
|
|
5260
5260
|
mpcCallbackDataOffset: { first: mpcCallbackDataOffset },
|
|
5261
5261
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5262
5262
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES3 }
|
|
5263
|
-
}
|
|
5263
|
+
},
|
|
5264
|
+
{ programAddress: client.networkConfig.programId }
|
|
5264
5265
|
);
|
|
5265
5266
|
const latestBlockhash = await getLatestBlockhash();
|
|
5266
5267
|
const baseTransactionMessage = kit.pipe(
|
|
@@ -5314,7 +5315,7 @@ function getNetworkCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5314
5315
|
);
|
|
5315
5316
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5316
5317
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5317
|
-
const arciumAccounts = await
|
|
5318
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5318
5319
|
client.networkConfig.programId,
|
|
5319
5320
|
client.networkConfig.arciumProgramAddress,
|
|
5320
5321
|
clusterOffset,
|
|
@@ -5345,7 +5346,8 @@ function getNetworkCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5345
5346
|
mpcCallbackDataOffset: { first: mpcCallbackDataOffset },
|
|
5346
5347
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5347
5348
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES4 }
|
|
5348
|
-
}
|
|
5349
|
+
},
|
|
5350
|
+
{ programAddress: client.networkConfig.programId }
|
|
5349
5351
|
);
|
|
5350
5352
|
const latestBlockhash = await getLatestBlockhash();
|
|
5351
5353
|
const baseTransactionMessage = kit.pipe(
|
|
@@ -5399,7 +5401,7 @@ function getSharedCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5399
5401
|
);
|
|
5400
5402
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5401
5403
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5402
|
-
const arciumAccounts = await
|
|
5404
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5403
5405
|
client.networkConfig.programId,
|
|
5404
5406
|
client.networkConfig.arciumProgramAddress,
|
|
5405
5407
|
clusterOffset,
|
|
@@ -5430,7 +5432,7 @@ function getSharedCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5430
5432
|
mpcCallbackDataOffset: { first: mpcCallbackDataOffset },
|
|
5431
5433
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5432
5434
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES5 }
|
|
5433
|
-
});
|
|
5435
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5434
5436
|
const latestBlockhash = await getLatestBlockhash();
|
|
5435
5437
|
const baseTransactionMessage = kit.pipe(
|
|
5436
5438
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -5463,7 +5465,7 @@ function getUserComplianceGrantQuerierFunction(args, deps) {
|
|
|
5463
5465
|
const umbraProgram = client.networkConfig.programId;
|
|
5464
5466
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function queryUserComplianceGrant(granterX25519, nonce, receiverX25519, options) {
|
|
5465
5467
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5466
|
-
const pda = await
|
|
5468
|
+
const pda = await chunkUEI7SYH6_cjs.findUserComplianceGrantPda(
|
|
5467
5469
|
granterX25519,
|
|
5468
5470
|
nonce,
|
|
5469
5471
|
receiverX25519,
|
|
@@ -5484,7 +5486,7 @@ function getNetworkComplianceGrantQuerierFunction(args, deps) {
|
|
|
5484
5486
|
const umbraProgram = client.networkConfig.programId;
|
|
5485
5487
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function queryNetworkMxeComplianceGrant(nonce, receiverX25519, options) {
|
|
5486
5488
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5487
|
-
const pda = await
|
|
5489
|
+
const pda = await chunkUEI7SYH6_cjs.findNetworkComplianceGrantPda(nonce, receiverX25519, umbraProgram);
|
|
5488
5490
|
const accountMap = await accountInfoProvider([pda], { commitment: accountInfoCommitment });
|
|
5489
5491
|
const maybeAccount = accountMap.get(pda);
|
|
5490
5492
|
if (maybeAccount?.exists !== true) {
|
|
@@ -5500,7 +5502,7 @@ function getSharedComplianceGrantQuerierFunction(args, deps) {
|
|
|
5500
5502
|
const umbraProgram = client.networkConfig.programId;
|
|
5501
5503
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function queryNetworkSharedComplianceGrant(granterX25519, nonce, receiverX25519, options) {
|
|
5502
5504
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5503
|
-
const pda = await
|
|
5505
|
+
const pda = await chunkUEI7SYH6_cjs.findSharedComplianceGrantPda(
|
|
5504
5506
|
granterX25519,
|
|
5505
5507
|
nonce,
|
|
5506
5508
|
receiverX25519,
|
|
@@ -5543,7 +5545,7 @@ function getNetworkEncryptionToSharedEncryptionConverterFunction(args, deps) {
|
|
|
5543
5545
|
const pdaDerivations = await Promise.all(
|
|
5544
5546
|
mints.map(async (mint) => ({
|
|
5545
5547
|
mint,
|
|
5546
|
-
pda: await
|
|
5548
|
+
pda: await chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(
|
|
5547
5549
|
userAddress,
|
|
5548
5550
|
mint,
|
|
5549
5551
|
client.networkConfig.programId
|
|
@@ -5593,7 +5595,7 @@ function getNetworkEncryptionToSharedEncryptionConverterFunction(args, deps) {
|
|
|
5593
5595
|
const transactionPromises = eligibleMints.map(async (mint) => {
|
|
5594
5596
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5595
5597
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5596
|
-
const arciumAccounts = await
|
|
5598
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5597
5599
|
client.networkConfig.programId,
|
|
5598
5600
|
client.networkConfig.arciumProgramAddress,
|
|
5599
5601
|
clusterOffset,
|
|
@@ -5623,7 +5625,7 @@ function getNetworkEncryptionToSharedEncryptionConverterFunction(args, deps) {
|
|
|
5623
5625
|
},
|
|
5624
5626
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5625
5627
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES6 }
|
|
5626
|
-
});
|
|
5628
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5627
5629
|
const baseTransactionMessage = kit.pipe(
|
|
5628
5630
|
kit.createTransactionMessage({ version: 0 }),
|
|
5629
5631
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -5696,7 +5698,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5696
5698
|
const accountInfoProvider = deps?.rpc?.accountInfoProvider ?? client.accountInfoProvider;
|
|
5697
5699
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5698
5700
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5699
|
-
const mintX25519KeypairDeriver = deps?.keys?.mintX25519KeypairDeriver ??
|
|
5701
|
+
const mintX25519KeypairDeriver = deps?.keys?.mintX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMintX25519KeypairDeriver({ client });
|
|
5700
5702
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function rotateMintX25519EncryptionKey(mint, optionalData, callbacks, microLamportsPerAcu, options) {
|
|
5701
5703
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5702
5704
|
const userAddress = signer.address;
|
|
@@ -5704,7 +5706,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5704
5706
|
const x25519ProvingSigner = await kit.createKeyPairSignerFromPrivateKeyBytes(
|
|
5705
5707
|
keypairResult.ed25519Keypair.seed
|
|
5706
5708
|
);
|
|
5707
|
-
const tokenAccountPda = await
|
|
5709
|
+
const tokenAccountPda = await chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(
|
|
5708
5710
|
userAddress,
|
|
5709
5711
|
mint,
|
|
5710
5712
|
client.networkConfig.programId
|
|
@@ -5746,7 +5748,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5746
5748
|
}
|
|
5747
5749
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
5748
5750
|
const mpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
5749
|
-
const arciumAccounts = await
|
|
5751
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
5750
5752
|
client.networkConfig.programId,
|
|
5751
5753
|
client.networkConfig.arciumProgramAddress,
|
|
5752
5754
|
clusterOffset,
|
|
@@ -5778,9 +5780,9 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5778
5780
|
},
|
|
5779
5781
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5780
5782
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES7 }
|
|
5781
|
-
});
|
|
5783
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5782
5784
|
const latestBlockhash = await getLatestBlockhash();
|
|
5783
|
-
const computeBudgetInstruction =
|
|
5785
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
5784
5786
|
const baseTransactionMessage = kit.pipe(
|
|
5785
5787
|
kit.createTransactionMessage({ version: 0 }),
|
|
5786
5788
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -5946,7 +5948,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
5946
5948
|
{
|
|
5947
5949
|
instruction,
|
|
5948
5950
|
preInstructions: [
|
|
5949
|
-
|
|
5951
|
+
chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5),
|
|
5950
5952
|
...preInstructions ?? []
|
|
5951
5953
|
],
|
|
5952
5954
|
altEntry
|
|
@@ -6017,7 +6019,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6017
6019
|
throw new chunkBL6WXLPV_cjs.EncryptedDepositError("mint-fetch", `Mint account not found: ${mint}`);
|
|
6018
6020
|
}
|
|
6019
6021
|
mintOwner = mintAccount.programAddress;
|
|
6020
|
-
if (mintOwner ===
|
|
6022
|
+
if (mintOwner === chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
6021
6023
|
const mintData = new Uint8Array(mintAccount.data);
|
|
6022
6024
|
const feeConfig = chunkZY3TSHMJ_cjs.extractTransferFeeConfig(mintData);
|
|
6023
6025
|
if (feeConfig === null) {
|
|
@@ -6035,12 +6037,12 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6035
6037
|
chunkLTCKPTZC_cjs.assertU64(calculatedDepositAmount);
|
|
6036
6038
|
depositAmount = calculatedDepositAmount;
|
|
6037
6039
|
}
|
|
6038
|
-
} else if (mintOwner ===
|
|
6040
|
+
} else if (mintOwner === chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID) {
|
|
6039
6041
|
depositAmount = transferAmount;
|
|
6040
6042
|
} else {
|
|
6041
6043
|
throw new chunkBL6WXLPV_cjs.EncryptedDepositError(
|
|
6042
6044
|
"mint-fetch",
|
|
6043
|
-
`Unknown token program: ${mintOwner}. Expected SPL Token (${
|
|
6045
|
+
`Unknown token program: ${mintOwner}. Expected SPL Token (${chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID}) or Token-2022 (${chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID})`
|
|
6044
6046
|
);
|
|
6045
6047
|
}
|
|
6046
6048
|
} catch (error) {
|
|
@@ -6057,8 +6059,8 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6057
6059
|
let encryptedUserAccountPda;
|
|
6058
6060
|
try {
|
|
6059
6061
|
[encryptedTokenAccountPda, encryptedUserAccountPda] = await Promise.all([
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
+
chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(destinationAddress, mint, client.networkConfig.programId),
|
|
6063
|
+
chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(destinationAddress, client.networkConfig.programId)
|
|
6062
6064
|
]);
|
|
6063
6065
|
} catch (error) {
|
|
6064
6066
|
throw new chunkBL6WXLPV_cjs.EncryptedDepositError(
|
|
@@ -6127,7 +6129,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6127
6129
|
const resetCompDefName = isSharedMode ? "reset_shared_eta_queue_v9" : "reset_mxe_eta_queue_v9";
|
|
6128
6130
|
const resetComputationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
6129
6131
|
const resetMpcCallbackDataOffset = chunkZY3TSHMJ_cjs.generateRandomU128();
|
|
6130
|
-
const resetArciumAccounts = await
|
|
6132
|
+
const resetArciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
6131
6133
|
client.networkConfig.programId,
|
|
6132
6134
|
client.networkConfig.arciumProgramAddress,
|
|
6133
6135
|
clusterOffset,
|
|
@@ -6196,7 +6198,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6196
6198
|
[DepositInstructionVariant.ExistingSharedBalance]: "deposit_from_public_balance_into_existing_shared_balance_v11"
|
|
6197
6199
|
}[instructionVariant];
|
|
6198
6200
|
const altEntry = chunkAXD7LXYY_cjs.lookupAltEntry(client.networkConfig.addressLookupTables, clusterOffset, compDefInstructionName);
|
|
6199
|
-
const arciumAccounts = await
|
|
6201
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
6200
6202
|
client.networkConfig.programId,
|
|
6201
6203
|
client.networkConfig.arciumProgramAddress,
|
|
6202
6204
|
clusterOffset,
|
|
@@ -6365,32 +6367,32 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6365
6367
|
const factoryCloseProofAccountCallbacks = deps.hooks?.closeProofAccount;
|
|
6366
6368
|
const factoryCreateProofAccountCallbacks = deps.hooks?.createProofAccount;
|
|
6367
6369
|
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 ??
|
|
6370
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
6371
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
6372
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
6373
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
6374
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
6375
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
6376
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
6377
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
6376
6378
|
client
|
|
6377
6379
|
});
|
|
6378
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
6379
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
6380
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
6381
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
6380
6382
|
client
|
|
6381
6383
|
});
|
|
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 ??
|
|
6384
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
6385
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
6386
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
6387
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
6388
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
6389
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
6390
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
6391
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
6392
|
+
const fiatShamirChallengeGenerator = chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
6393
|
+
const challengePowersFunction = chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
6394
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
6395
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
6394
6396
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
6395
6397
|
const generateComputationOffsetFunction = deps.random?.generateComputationOffset ?? chunkZY3TSHMJ_cjs.generateComputationOffset;
|
|
6396
6398
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createSelfClaimableUtxo(args2, options) {
|
|
@@ -6418,12 +6420,12 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6418
6420
|
masterSeed,
|
|
6419
6421
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
6420
6422
|
);
|
|
6421
|
-
const expandedModifiedGenerationIndex =
|
|
6423
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6422
6424
|
let expandedModifiedGenerationIndexU256 = 0n;
|
|
6423
6425
|
for (let index = 0; index < 32; index++) {
|
|
6424
6426
|
expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
6425
6427
|
}
|
|
6426
|
-
const proofAccountOffsetBytes =
|
|
6428
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6427
6429
|
let proofAccountOffset = 0n;
|
|
6428
6430
|
for (let index = 0; index < 16; index++) {
|
|
6429
6431
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
@@ -6489,9 +6491,9 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6489
6491
|
);
|
|
6490
6492
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
6491
6493
|
const ephemeralOffset = expandedModifiedGenerationIndexU256;
|
|
6492
|
-
const randomSecret =
|
|
6494
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6493
6495
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
6494
|
-
const nullifier =
|
|
6496
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6495
6497
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
6496
6498
|
const ephemeralMasterViewingKey = await ephemeralUtxoMvkGenerator(ephemeralOffset);
|
|
6497
6499
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(ephemeralMasterViewingKey);
|
|
@@ -6582,10 +6584,10 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6582
6584
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
6583
6585
|
chunkLTCKPTZC_cjs.assertX25519PrivateKey(clientX25519PrivateKey);
|
|
6584
6586
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
6585
|
-
const rcEncryptor =
|
|
6587
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
6586
6588
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
6587
6589
|
});
|
|
6588
|
-
const randomFactorForPolynomialCommitment =
|
|
6590
|
+
const randomFactorForPolynomialCommitment = chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex(
|
|
6589
6591
|
modifiedGenerationIndex
|
|
6590
6592
|
);
|
|
6591
6593
|
chunkLTCKPTZC_cjs.assertU256(randomFactorForPolynomialCommitment);
|
|
@@ -6621,7 +6623,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6621
6623
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedProtocolFees);
|
|
6622
6624
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorLow);
|
|
6623
6625
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorHigh);
|
|
6624
|
-
const rcKeyGenerator =
|
|
6626
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
6625
6627
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
6626
6628
|
});
|
|
6627
6629
|
const rcEncryptionKeys = await rcKeyGenerator(
|
|
@@ -6674,7 +6676,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6674
6676
|
const rcEncryptionKeyForRandomFactorHighAsLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(
|
|
6675
6677
|
toU256(rcEncryptionKeyForRandomFactorHigh)
|
|
6676
6678
|
);
|
|
6677
|
-
const rescueEncryptionCommitmentBlindingFactor =
|
|
6679
|
+
const rescueEncryptionCommitmentBlindingFactor = chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex(
|
|
6678
6680
|
modifiedGenerationIndex
|
|
6679
6681
|
);
|
|
6680
6682
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(rescueEncryptionCommitmentBlindingFactor);
|
|
@@ -6803,64 +6805,64 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6803
6805
|
toBn254FieldElement(protocolFeeConfig.merkleRoot)
|
|
6804
6806
|
];
|
|
6805
6807
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
6806
|
-
const inverseForSenderMvkBlindingFactor =
|
|
6807
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
6808
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
6809
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6808
6810
|
senderPrivateKeyBlindingFactor
|
|
6809
6811
|
);
|
|
6810
|
-
const inverseForSenderPrivateKey =
|
|
6811
|
-
const inverseForSenderMasterViewingKey =
|
|
6812
|
-
const inverseForAmount =
|
|
6813
|
-
const protocolFeeDivisorInverse =
|
|
6814
|
-
const inverseForTotalAmountLimbs =
|
|
6812
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
6813
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
6814
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement(amount));
|
|
6815
|
+
const protocolFeeDivisorInverse = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement(16384n));
|
|
6816
|
+
const inverseForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6815
6817
|
amountAsLimbs.low,
|
|
6816
6818
|
amountAsLimbs.middle,
|
|
6817
6819
|
amountAsLimbs.high
|
|
6818
6820
|
]);
|
|
6819
|
-
const inverseForKeysForTotalAmountLimbs =
|
|
6821
|
+
const inverseForKeysForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6820
6822
|
rcEncryptionKeyForAmountAsLimbs.low,
|
|
6821
6823
|
rcEncryptionKeyForAmountAsLimbs.middle,
|
|
6822
6824
|
rcEncryptionKeyForAmountAsLimbs.high
|
|
6823
6825
|
]);
|
|
6824
|
-
const inverseForKeysForProtocolFeeLimbs =
|
|
6826
|
+
const inverseForKeysForProtocolFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6825
6827
|
rcEncryptionKeyForProtocolFeesAsLimbs.low,
|
|
6826
6828
|
rcEncryptionKeyForProtocolFeesAsLimbs.middle,
|
|
6827
6829
|
rcEncryptionKeyForProtocolFeesAsLimbs.high
|
|
6828
6830
|
]);
|
|
6829
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
6831
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6830
6832
|
rcEncryptionKeyForRandomFactorLowAsLimbs.low,
|
|
6831
6833
|
rcEncryptionKeyForRandomFactorLowAsLimbs.middle,
|
|
6832
6834
|
rcEncryptionKeyForRandomFactorLowAsLimbs.high
|
|
6833
6835
|
]);
|
|
6834
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
6836
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6835
6837
|
rcEncryptionKeyForRandomFactorHighAsLimbs.low,
|
|
6836
6838
|
rcEncryptionKeyForRandomFactorHighAsLimbs.middle,
|
|
6837
6839
|
rcEncryptionKeyForRandomFactorHighAsLimbs.high
|
|
6838
6840
|
]);
|
|
6839
|
-
const inverseForNullifier =
|
|
6840
|
-
const inverseForH2BlindingFactor =
|
|
6841
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
6841
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
6842
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
6843
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6842
6844
|
firstKeystreamBlindingFactor
|
|
6843
6845
|
);
|
|
6844
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
6846
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6845
6847
|
secondKeystreamBlindingFactor
|
|
6846
6848
|
);
|
|
6847
|
-
const inverseForThirdKeystreamBlindingFactor =
|
|
6849
|
+
const inverseForThirdKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
6848
6850
|
thirdKeystreamBlindingFactor
|
|
6849
6851
|
);
|
|
6850
|
-
const inverseForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
6852
|
+
const inverseForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6851
6853
|
randomFactorLowAsLimbs.low,
|
|
6852
6854
|
randomFactorLowAsLimbs.middle,
|
|
6853
6855
|
randomFactorLowAsLimbs.high
|
|
6854
6856
|
]);
|
|
6855
|
-
const inverseForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
6857
|
+
const inverseForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
6856
6858
|
[randomFactorHighAsLimbs.low, randomFactorHighAsLimbs.middle, randomFactorHighAsLimbs.high]
|
|
6857
6859
|
);
|
|
6858
|
-
const inverseForChallengeLimbs =
|
|
6860
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6859
6861
|
fiatShamirChallengeLimbs.low,
|
|
6860
6862
|
fiatShamirChallengeLimbs.middle,
|
|
6861
6863
|
fiatShamirChallengeLimbs.high
|
|
6862
6864
|
]);
|
|
6863
|
-
const inverseForChallengeSquaredLimbs =
|
|
6865
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
6864
6866
|
fiatShamirChallengeSquaredLimbs.low,
|
|
6865
6867
|
fiatShamirChallengeSquaredLimbs.middle,
|
|
6866
6868
|
fiatShamirChallengeSquaredLimbs.high
|
|
@@ -7004,11 +7006,11 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7004
7006
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
7005
7007
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
7006
7008
|
const stealthPoolIndex = 0n;
|
|
7007
|
-
const stealthPoolAddress = await
|
|
7009
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
7008
7010
|
stealthPoolIndex,
|
|
7009
7011
|
client.networkConfig.programId
|
|
7010
7012
|
);
|
|
7011
|
-
const arciumAccounts = await
|
|
7013
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
7012
7014
|
client.networkConfig.programId,
|
|
7013
7015
|
client.networkConfig.arciumProgramAddress,
|
|
7014
7016
|
clusterOffset,
|
|
@@ -7095,7 +7097,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7095
7097
|
}
|
|
7096
7098
|
chunkPK6SKIKE_cjs.__name(executeTransaction, "executeTransaction");
|
|
7097
7099
|
async function checkAndCloseExistingProofAccount(offset) {
|
|
7098
|
-
const proofAccountPda = await
|
|
7100
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findUtxoInputBufferPda(
|
|
7099
7101
|
client.signer.address,
|
|
7100
7102
|
offset,
|
|
7101
7103
|
client.networkConfig.programId
|
|
@@ -7240,7 +7242,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7240
7242
|
},
|
|
7241
7243
|
{ programAddress: client.networkConfig.programId }
|
|
7242
7244
|
);
|
|
7243
|
-
const computeBudgetInstruction =
|
|
7245
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(6e5);
|
|
7244
7246
|
const resolvedAwaitConfig = factoryAwaitComputationFinalization === false ? false : factoryAwaitComputationFinalization ?? {};
|
|
7245
7247
|
const utxoCallbackOptions = resolvedAwaitConfig === false ? void 0 : {
|
|
7246
7248
|
...resolvedAwaitConfig,
|
|
@@ -7353,24 +7355,24 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7353
7355
|
const factoryCloseProofAccountCallbacks = deps.hooks?.closeProofAccount;
|
|
7354
7356
|
const factoryCreateProofAccountCallbacks = deps.hooks?.createProofAccount;
|
|
7355
7357
|
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 ??
|
|
7358
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
7359
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
7360
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
7361
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
7362
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
7363
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
7364
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
7365
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
7366
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
7367
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
7368
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
7369
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
7370
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
7371
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
7372
|
+
const fiatShamirChallengeGenerator = chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
7373
|
+
const challengePowersFunction = chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
7374
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
7375
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
7374
7376
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
7375
7377
|
const generateComputationOffsetFunction = deps.random?.generateComputationOffset ?? chunkZY3TSHMJ_cjs.generateComputationOffset;
|
|
7376
7378
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createReceiverClaimableUtxo(args2, options) {
|
|
@@ -7394,17 +7396,17 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7394
7396
|
masterSeed,
|
|
7395
7397
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
7396
7398
|
);
|
|
7397
|
-
const expandedModifiedGenerationIndex =
|
|
7399
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7398
7400
|
let _expandedModifiedGenerationIndexU256 = 0n;
|
|
7399
7401
|
for (let index = 0; index < 32; index++) {
|
|
7400
7402
|
_expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
7401
7403
|
}
|
|
7402
|
-
const proofAccountOffsetBytes =
|
|
7404
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7403
7405
|
let proofAccountOffset = 0n;
|
|
7404
7406
|
for (let index = 0; index < 16; index++) {
|
|
7405
7407
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
7406
7408
|
}
|
|
7407
|
-
const receiverUserAccountPda = await
|
|
7409
|
+
const receiverUserAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(
|
|
7408
7410
|
destinationAddress,
|
|
7409
7411
|
client.networkConfig.programId
|
|
7410
7412
|
);
|
|
@@ -7493,9 +7495,9 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7493
7495
|
senderPrivateKeyBlindingFactor
|
|
7494
7496
|
);
|
|
7495
7497
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
7496
|
-
const randomSecret =
|
|
7498
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7497
7499
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
7498
|
-
const nullifier =
|
|
7500
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7499
7501
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
7500
7502
|
const unlockingUserCommitment = receiverUserCommitment;
|
|
7501
7503
|
const h2Hash = await h2Generator.generateH2({
|
|
@@ -7572,10 +7574,10 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7572
7574
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
7573
7575
|
chunkLTCKPTZC_cjs.assertX25519PrivateKey(clientX25519PrivateKey);
|
|
7574
7576
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
7575
|
-
const rcEncryptor =
|
|
7577
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
7576
7578
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
7577
7579
|
});
|
|
7578
|
-
const randomFactorForPolynomialCommitment =
|
|
7580
|
+
const randomFactorForPolynomialCommitment = chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex(
|
|
7579
7581
|
modifiedGenerationIndex
|
|
7580
7582
|
);
|
|
7581
7583
|
chunkLTCKPTZC_cjs.assertU256(randomFactorForPolynomialCommitment);
|
|
@@ -7611,7 +7613,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7611
7613
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedProtocolFees);
|
|
7612
7614
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorLow);
|
|
7613
7615
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorHigh);
|
|
7614
|
-
const rcKeyGenerator =
|
|
7616
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
7615
7617
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
7616
7618
|
});
|
|
7617
7619
|
const rcEncryptionKeys = await rcKeyGenerator(
|
|
@@ -7664,7 +7666,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7664
7666
|
const rcEncryptionKeyForRandomFactorHighAsLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(
|
|
7665
7667
|
toU2562(rcEncryptionKeyForRandomFactorHigh)
|
|
7666
7668
|
);
|
|
7667
|
-
const rescueEncryptionCommitmentBlindingFactor =
|
|
7669
|
+
const rescueEncryptionCommitmentBlindingFactor = chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex(
|
|
7668
7670
|
modifiedGenerationIndex
|
|
7669
7671
|
);
|
|
7670
7672
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(rescueEncryptionCommitmentBlindingFactor);
|
|
@@ -7793,64 +7795,64 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7793
7795
|
toBn254FieldElement2(protocolFeeConfig.merkleRoot)
|
|
7794
7796
|
];
|
|
7795
7797
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
7796
|
-
const inverseForSenderMvkBlindingFactor =
|
|
7797
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
7798
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
7799
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7798
7800
|
senderPrivateKeyBlindingFactor
|
|
7799
7801
|
);
|
|
7800
|
-
const inverseForSenderPrivateKey =
|
|
7801
|
-
const inverseForSenderMasterViewingKey =
|
|
7802
|
-
const inverseForAmount =
|
|
7803
|
-
const protocolFeeDivisorInverse =
|
|
7804
|
-
const inverseForTotalAmountLimbs =
|
|
7802
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
7803
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
7804
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement2(amount));
|
|
7805
|
+
const protocolFeeDivisorInverse = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement2(16384n));
|
|
7806
|
+
const inverseForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7805
7807
|
amountAsLimbs.low,
|
|
7806
7808
|
amountAsLimbs.middle,
|
|
7807
7809
|
amountAsLimbs.high
|
|
7808
7810
|
]);
|
|
7809
|
-
const inverseForKeysForTotalAmountLimbs =
|
|
7811
|
+
const inverseForKeysForTotalAmountLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7810
7812
|
rcEncryptionKeyForAmountAsLimbs.low,
|
|
7811
7813
|
rcEncryptionKeyForAmountAsLimbs.middle,
|
|
7812
7814
|
rcEncryptionKeyForAmountAsLimbs.high
|
|
7813
7815
|
]);
|
|
7814
|
-
const inverseForKeysForProtocolFeeLimbs =
|
|
7816
|
+
const inverseForKeysForProtocolFeeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7815
7817
|
rcEncryptionKeyForProtocolFeesAsLimbs.low,
|
|
7816
7818
|
rcEncryptionKeyForProtocolFeesAsLimbs.middle,
|
|
7817
7819
|
rcEncryptionKeyForProtocolFeesAsLimbs.high
|
|
7818
7820
|
]);
|
|
7819
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
7821
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7820
7822
|
rcEncryptionKeyForRandomFactorLowAsLimbs.low,
|
|
7821
7823
|
rcEncryptionKeyForRandomFactorLowAsLimbs.middle,
|
|
7822
7824
|
rcEncryptionKeyForRandomFactorLowAsLimbs.high
|
|
7823
7825
|
]);
|
|
7824
|
-
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
7826
|
+
const inverseForKeysForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7825
7827
|
rcEncryptionKeyForRandomFactorHighAsLimbs.low,
|
|
7826
7828
|
rcEncryptionKeyForRandomFactorHighAsLimbs.middle,
|
|
7827
7829
|
rcEncryptionKeyForRandomFactorHighAsLimbs.high
|
|
7828
7830
|
]);
|
|
7829
|
-
const inverseForNullifier =
|
|
7830
|
-
const inverseForH2BlindingFactor =
|
|
7831
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
7831
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
7832
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
7833
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7832
7834
|
firstKeystreamBlindingFactor
|
|
7833
7835
|
);
|
|
7834
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
7836
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7835
7837
|
secondKeystreamBlindingFactor
|
|
7836
7838
|
);
|
|
7837
|
-
const inverseForThirdKeystreamBlindingFactor =
|
|
7839
|
+
const inverseForThirdKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
7838
7840
|
thirdKeystreamBlindingFactor
|
|
7839
7841
|
);
|
|
7840
|
-
const inverseForRandomFactorForPolynomialEvaluationLowLimbs =
|
|
7842
|
+
const inverseForRandomFactorForPolynomialEvaluationLowLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7841
7843
|
randomFactorLowAsLimbs.low,
|
|
7842
7844
|
randomFactorLowAsLimbs.middle,
|
|
7843
7845
|
randomFactorLowAsLimbs.high
|
|
7844
7846
|
]);
|
|
7845
|
-
const inverseForRandomFactorForPolynomialEvaluationHighLimbs =
|
|
7847
|
+
const inverseForRandomFactorForPolynomialEvaluationHighLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse(
|
|
7846
7848
|
[randomFactorHighAsLimbs.low, randomFactorHighAsLimbs.middle, randomFactorHighAsLimbs.high]
|
|
7847
7849
|
);
|
|
7848
|
-
const inverseForChallengeLimbs =
|
|
7850
|
+
const inverseForChallengeLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7849
7851
|
fiatShamirChallengeLimbs.low,
|
|
7850
7852
|
fiatShamirChallengeLimbs.middle,
|
|
7851
7853
|
fiatShamirChallengeLimbs.high
|
|
7852
7854
|
]);
|
|
7853
|
-
const inverseForChallengeSquaredLimbs =
|
|
7855
|
+
const inverseForChallengeSquaredLimbs = chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse([
|
|
7854
7856
|
fiatShamirChallengeSquaredLimbs.low,
|
|
7855
7857
|
fiatShamirChallengeSquaredLimbs.middle,
|
|
7856
7858
|
fiatShamirChallengeSquaredLimbs.high
|
|
@@ -7994,11 +7996,11 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7994
7996
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
7995
7997
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
7996
7998
|
const stealthPoolIndex = 0n;
|
|
7997
|
-
const stealthPoolAddress = await
|
|
7999
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
7998
8000
|
stealthPoolIndex,
|
|
7999
8001
|
client.networkConfig.programId
|
|
8000
8002
|
);
|
|
8001
|
-
const arciumAccounts = await
|
|
8003
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
8002
8004
|
client.networkConfig.programId,
|
|
8003
8005
|
client.networkConfig.arciumProgramAddress,
|
|
8004
8006
|
clusterOffset,
|
|
@@ -8085,7 +8087,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8085
8087
|
}
|
|
8086
8088
|
chunkPK6SKIKE_cjs.__name(executeTransaction, "executeTransaction");
|
|
8087
8089
|
async function checkAndCloseExistingProofAccount(offset) {
|
|
8088
|
-
const proofAccountPda = await
|
|
8090
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findUtxoInputBufferPda(
|
|
8089
8091
|
client.signer.address,
|
|
8090
8092
|
offset,
|
|
8091
8093
|
client.networkConfig.programId
|
|
@@ -8230,7 +8232,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8230
8232
|
},
|
|
8231
8233
|
{ programAddress: client.networkConfig.programId }
|
|
8232
8234
|
);
|
|
8233
|
-
const computeBudgetInstruction =
|
|
8235
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(6e5);
|
|
8234
8236
|
const resolvedAwaitConfig = factoryAwaitComputationFinalization === false ? false : factoryAwaitComputationFinalization ?? {};
|
|
8235
8237
|
const utxoCallbackOptions = resolvedAwaitConfig === false ? void 0 : {
|
|
8236
8238
|
...resolvedAwaitConfig,
|
|
@@ -8307,24 +8309,24 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8307
8309
|
const transactionForwarder = deps.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
8308
8310
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
8309
8311
|
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 ??
|
|
8312
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
8313
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8314
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
8315
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
8316
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
8317
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
8318
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
8319
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8320
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
8321
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({ client });
|
|
8322
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
8323
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
8324
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
8325
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
8326
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
8327
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
8328
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
8329
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
8328
8330
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
8329
8331
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createSelfClaimableUtxoFromPublicBalance(args2, options) {
|
|
8330
8332
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
@@ -8347,12 +8349,12 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8347
8349
|
masterSeed,
|
|
8348
8350
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
8349
8351
|
);
|
|
8350
|
-
const proofAccountOffsetBytes =
|
|
8352
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8351
8353
|
let proofAccountOffset = 0n;
|
|
8352
8354
|
for (let index = 0; index < 16; index++) {
|
|
8353
8355
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
8354
8356
|
}
|
|
8355
|
-
const expandedModifiedGenerationIndex =
|
|
8357
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8356
8358
|
let expandedModifiedGenerationIndexU256 = 0n;
|
|
8357
8359
|
for (let index = 0; index < 32; index++) {
|
|
8358
8360
|
expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
@@ -8371,7 +8373,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8371
8373
|
mintAccountMap.get(client.networkConfig.mxeAccountAddress)
|
|
8372
8374
|
);
|
|
8373
8375
|
const mintOwner = mintAccount.programAddress;
|
|
8374
|
-
if (mintOwner ===
|
|
8376
|
+
if (mintOwner === chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
8375
8377
|
const mintData = new Uint8Array(mintAccount.data);
|
|
8376
8378
|
const feeConfig = chunkZY3TSHMJ_cjs.extractTransferFeeConfig(mintData);
|
|
8377
8379
|
if (feeConfig === null) {
|
|
@@ -8386,10 +8388,10 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8386
8388
|
);
|
|
8387
8389
|
}
|
|
8388
8390
|
}
|
|
8389
|
-
mintTokenProgram =
|
|
8390
|
-
} else if (mintOwner ===
|
|
8391
|
+
mintTokenProgram = chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID;
|
|
8392
|
+
} else if (mintOwner === chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID) {
|
|
8391
8393
|
actualReceived = amount;
|
|
8392
|
-
mintTokenProgram =
|
|
8394
|
+
mintTokenProgram = chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID;
|
|
8393
8395
|
} else {
|
|
8394
8396
|
throw new chunkBL6WXLPV_cjs.TransactionError(
|
|
8395
8397
|
`Unknown token program: ${mintOwner}. Expected SPL Token or Token-2022.`
|
|
@@ -8458,9 +8460,9 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8458
8460
|
);
|
|
8459
8461
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
8460
8462
|
const ephemeralOffset = expandedModifiedGenerationIndexU256;
|
|
8461
|
-
const randomSecret =
|
|
8463
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8462
8464
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
8463
|
-
const nullifier =
|
|
8465
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8464
8466
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
8465
8467
|
const ephemeralMasterViewingKey = await ephemeralUtxoMvkGenerator(ephemeralOffset);
|
|
8466
8468
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(ephemeralMasterViewingKey);
|
|
@@ -8575,19 +8577,19 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8575
8577
|
toBn254FieldElement3(protocolFeeConfig.merkleRoot)
|
|
8576
8578
|
];
|
|
8577
8579
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
8578
|
-
const inverseForSenderMvkBlindingFactor =
|
|
8579
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
8580
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
8581
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
8580
8582
|
senderPrivateKeyBlindingFactor
|
|
8581
8583
|
);
|
|
8582
|
-
const inverseForSenderPrivateKey =
|
|
8583
|
-
const inverseForSenderMasterViewingKey =
|
|
8584
|
-
const inverseForAmount =
|
|
8585
|
-
const inverseForNullifier =
|
|
8586
|
-
const inverseForH2BlindingFactor =
|
|
8587
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
8584
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
8585
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
8586
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement3(netDepositAmount));
|
|
8587
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
8588
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
8589
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
8588
8590
|
firstKeystreamBlindingFactor
|
|
8589
8591
|
);
|
|
8590
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
8592
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
8591
8593
|
secondKeystreamBlindingFactor
|
|
8592
8594
|
);
|
|
8593
8595
|
const zkCircuitInputs = {
|
|
@@ -8637,7 +8639,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8637
8639
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
8638
8640
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
8639
8641
|
const stealthPoolIndex = 0n;
|
|
8640
|
-
const stealthPoolAddress = await
|
|
8642
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
8641
8643
|
stealthPoolIndex,
|
|
8642
8644
|
client.networkConfig.programId
|
|
8643
8645
|
);
|
|
@@ -8698,7 +8700,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8698
8700
|
chunkPK6SKIKE_cjs.__name(buildAndSendTransaction, "buildAndSendTransaction");
|
|
8699
8701
|
chunkLTCKPTZC_cjs.assertU128(proofAccountOffset);
|
|
8700
8702
|
let closeProofAccountSignature;
|
|
8701
|
-
const proofAccountPda = await
|
|
8703
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findPublicUtxoInputBufferPda(
|
|
8702
8704
|
client.signer.address,
|
|
8703
8705
|
proofAccountOffset,
|
|
8704
8706
|
client.networkConfig.programId
|
|
@@ -8761,7 +8763,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8761
8763
|
},
|
|
8762
8764
|
{ programAddress: client.networkConfig.programId }
|
|
8763
8765
|
);
|
|
8764
|
-
const computeBudgetInstruction =
|
|
8766
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
8765
8767
|
if (factoryCreateUtxoCallbacks?.pre !== void 0) {
|
|
8766
8768
|
await factoryCreateUtxoCallbacks.pre(proofAccountResult.signedTransaction);
|
|
8767
8769
|
}
|
|
@@ -8835,20 +8837,20 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8835
8837
|
const transactionForwarder = deps.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
8836
8838
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
8837
8839
|
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 ??
|
|
8840
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
8841
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8842
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
8843
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
8844
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
8845
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
8846
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
8847
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
8848
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
8849
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
8850
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
8851
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
8852
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
8853
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
8852
8854
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
8853
8855
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createReceiverClaimableUtxoFromPublicBalance(args2, options) {
|
|
8854
8856
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
@@ -8871,12 +8873,12 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8871
8873
|
masterSeed,
|
|
8872
8874
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
8873
8875
|
);
|
|
8874
|
-
const proofAccountOffsetBytes =
|
|
8876
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8875
8877
|
let proofAccountOffset = 0n;
|
|
8876
8878
|
for (let index = 0; index < 16; index++) {
|
|
8877
8879
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
8878
8880
|
}
|
|
8879
|
-
const receiverUserAccountPda = await
|
|
8881
|
+
const receiverUserAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(
|
|
8880
8882
|
destinationAddress,
|
|
8881
8883
|
client.networkConfig.programId
|
|
8882
8884
|
);
|
|
@@ -8915,7 +8917,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8915
8917
|
throw new chunkBL6WXLPV_cjs.TransactionError(`Mint account not found: ${mint}`);
|
|
8916
8918
|
}
|
|
8917
8919
|
const mintOwner = mintAccount.programAddress;
|
|
8918
|
-
if (mintOwner ===
|
|
8920
|
+
if (mintOwner === chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
8919
8921
|
const mintData = new Uint8Array(mintAccount.data);
|
|
8920
8922
|
const feeConfig = chunkZY3TSHMJ_cjs.extractTransferFeeConfig(mintData);
|
|
8921
8923
|
if (feeConfig === null) {
|
|
@@ -8930,10 +8932,10 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8930
8932
|
);
|
|
8931
8933
|
}
|
|
8932
8934
|
}
|
|
8933
|
-
mintTokenProgram =
|
|
8934
|
-
} else if (mintOwner ===
|
|
8935
|
+
mintTokenProgram = chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID;
|
|
8936
|
+
} else if (mintOwner === chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID) {
|
|
8935
8937
|
actualReceived = amount;
|
|
8936
|
-
mintTokenProgram =
|
|
8938
|
+
mintTokenProgram = chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID;
|
|
8937
8939
|
} else {
|
|
8938
8940
|
throw new chunkBL6WXLPV_cjs.TransactionError(
|
|
8939
8941
|
`Unknown token program: ${mintOwner}. Expected SPL Token or Token-2022.`
|
|
@@ -9001,9 +9003,9 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9001
9003
|
senderPrivateKeyBlindingFactor
|
|
9002
9004
|
);
|
|
9003
9005
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
9004
|
-
const randomSecret =
|
|
9006
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
9005
9007
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
9006
|
-
const nullifier =
|
|
9008
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
9007
9009
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
9008
9010
|
const h2Hash = await h2Generator.generateH2({
|
|
9009
9011
|
amount: toBn254FieldElement4(netDepositAmount),
|
|
@@ -9105,19 +9107,19 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9105
9107
|
toBn254FieldElement4(protocolFeeConfig.merkleRoot)
|
|
9106
9108
|
];
|
|
9107
9109
|
const aggregatedPublicInputHash = await poseidonAggregator(aggregatedHashInputs);
|
|
9108
|
-
const inverseForSenderMvkBlindingFactor =
|
|
9109
|
-
const inverseForSenderPrivateKeyBlindingFactor =
|
|
9110
|
+
const inverseForSenderMvkBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMvkBlindingFactor);
|
|
9111
|
+
const inverseForSenderPrivateKeyBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
9110
9112
|
senderPrivateKeyBlindingFactor
|
|
9111
9113
|
);
|
|
9112
|
-
const inverseForSenderPrivateKey =
|
|
9113
|
-
const inverseForSenderMasterViewingKey =
|
|
9114
|
-
const inverseForAmount =
|
|
9115
|
-
const inverseForNullifier =
|
|
9116
|
-
const inverseForH2BlindingFactor =
|
|
9117
|
-
const inverseForFirstKeystreamBlindingFactor =
|
|
9114
|
+
const inverseForSenderPrivateKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderPrivateKey);
|
|
9115
|
+
const inverseForSenderMasterViewingKey = chunkYEZBTYCP_cjs.computeBn254ModularInverse(senderMasterViewingKey);
|
|
9116
|
+
const inverseForAmount = chunkYEZBTYCP_cjs.computeBn254ModularInverse(toBn254FieldElement4(netDepositAmount));
|
|
9117
|
+
const inverseForNullifier = chunkYEZBTYCP_cjs.computeBn254ModularInverse(nullifier);
|
|
9118
|
+
const inverseForH2BlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(randomSecret);
|
|
9119
|
+
const inverseForFirstKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
9118
9120
|
firstKeystreamBlindingFactor
|
|
9119
9121
|
);
|
|
9120
|
-
const inverseForSecondKeystreamBlindingFactor =
|
|
9122
|
+
const inverseForSecondKeystreamBlindingFactor = chunkYEZBTYCP_cjs.computeBn254ModularInverse(
|
|
9121
9123
|
secondKeystreamBlindingFactor
|
|
9122
9124
|
);
|
|
9123
9125
|
const zkCircuitInputs = {
|
|
@@ -9167,7 +9169,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9167
9169
|
chunkLTCKPTZC_cjs.assertGroth16ProofB(proofB);
|
|
9168
9170
|
chunkLTCKPTZC_cjs.assertGroth16ProofC(proofC);
|
|
9169
9171
|
const stealthPoolIndex = 0n;
|
|
9170
|
-
const stealthPoolAddress = await
|
|
9172
|
+
const stealthPoolAddress = await chunkUEI7SYH6_cjs.findStealthPoolPda(
|
|
9171
9173
|
stealthPoolIndex,
|
|
9172
9174
|
client.networkConfig.programId
|
|
9173
9175
|
);
|
|
@@ -9228,7 +9230,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9228
9230
|
chunkPK6SKIKE_cjs.__name(buildAndSendTransaction, "buildAndSendTransaction");
|
|
9229
9231
|
chunkLTCKPTZC_cjs.assertU128(proofAccountOffset);
|
|
9230
9232
|
let closeProofAccountSignature;
|
|
9231
|
-
const proofAccountPda = await
|
|
9233
|
+
const proofAccountPda = await chunkUEI7SYH6_cjs.findPublicUtxoInputBufferPda(
|
|
9232
9234
|
client.signer.address,
|
|
9233
9235
|
proofAccountOffset,
|
|
9234
9236
|
client.networkConfig.programId
|
|
@@ -9291,7 +9293,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9291
9293
|
},
|
|
9292
9294
|
{ programAddress: client.networkConfig.programId }
|
|
9293
9295
|
);
|
|
9294
|
-
const computeBudgetInstruction =
|
|
9296
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
9295
9297
|
if (factoryCreateUtxoCallbacks?.pre !== void 0) {
|
|
9296
9298
|
await factoryCreateUtxoCallbacks.pre(proofAccountResult.signedTransaction);
|
|
9297
9299
|
}
|
|
@@ -9368,7 +9370,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9368
9370
|
const { client } = args;
|
|
9369
9371
|
const userAddress = client.signer.address;
|
|
9370
9372
|
const accountInfoProvider = deps?.accountInfoProvider ?? client.accountInfoProvider;
|
|
9371
|
-
const tokenX25519KeypairDeriver =
|
|
9373
|
+
const tokenX25519KeypairDeriver = chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({
|
|
9372
9374
|
client
|
|
9373
9375
|
});
|
|
9374
9376
|
let cachedDecryptor = null;
|
|
@@ -9388,7 +9390,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9388
9390
|
);
|
|
9389
9391
|
}
|
|
9390
9392
|
const x25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
9391
|
-
cachedDecryptor =
|
|
9393
|
+
cachedDecryptor = chunk3LS5P32X_cjs.getRescueDecryptorFromPrivateKey(x25519PrivateKey, {
|
|
9392
9394
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9393
9395
|
});
|
|
9394
9396
|
}
|
|
@@ -9406,7 +9408,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9406
9408
|
pdaDerivations = await Promise.all(
|
|
9407
9409
|
mints.map(async (mint) => ({
|
|
9408
9410
|
mint,
|
|
9409
|
-
pda: await
|
|
9411
|
+
pda: await chunkUEI7SYH6_cjs.findEncryptedTokenAccountPda(
|
|
9410
9412
|
userAddress,
|
|
9411
9413
|
mint,
|
|
9412
9414
|
client.networkConfig.programId
|
|
@@ -9534,7 +9536,7 @@ function getUserAccountQuerierFunction(args, deps) {
|
|
|
9534
9536
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
9535
9537
|
let userAccountPda;
|
|
9536
9538
|
try {
|
|
9537
|
-
userAccountPda = await
|
|
9539
|
+
userAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(userAddress, umbraProgram);
|
|
9538
9540
|
} catch (error) {
|
|
9539
9541
|
throw new chunkBL6WXLPV_cjs.QueryError(
|
|
9540
9542
|
"pda-derivation",
|
|
@@ -9592,7 +9594,7 @@ function getStagedSolRecovererFunction(args, deps) {
|
|
|
9592
9594
|
destination,
|
|
9593
9595
|
amount: { first: amount },
|
|
9594
9596
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES8 }
|
|
9595
|
-
});
|
|
9597
|
+
}, { programAddress: client.networkConfig.programId });
|
|
9596
9598
|
const latestBlockhash = await getLatestBlockhash();
|
|
9597
9599
|
const transactionMessage = kit.pipe(
|
|
9598
9600
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -9631,7 +9633,7 @@ function getStagedSplRecovererFunction(args, deps) {
|
|
|
9631
9633
|
destinationAta,
|
|
9632
9634
|
amount: { first: amount },
|
|
9633
9635
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES9 }
|
|
9634
|
-
});
|
|
9636
|
+
}, { programAddress: client.networkConfig.programId });
|
|
9635
9637
|
const latestBlockhash = await getLatestBlockhash();
|
|
9636
9638
|
const transactionMessage = kit.pipe(
|
|
9637
9639
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -9659,28 +9661,28 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9659
9661
|
const accountInfoProvider = deps?.rpc?.accountInfoProvider ?? client.accountInfoProvider;
|
|
9660
9662
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
9661
9663
|
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 ??
|
|
9664
|
+
const userAccountX25519KeypairDeriver = deps?.keys?.userAccountX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
9665
|
+
const masterViewingKeyEncryptingX25519KeypairDeriver = deps?.keys?.masterViewingKeyEncryptingX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
9666
|
+
const masterViewingKeyGenerator = deps?.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
9667
|
+
const masterViewingKeyBlindingFactorGenerator = deps?.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
9668
|
+
const poseidonPrivateKeyGenerator = deps?.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
9669
|
+
const poseidonBlindingFactorGenerator = deps?.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
9670
|
+
const rescueCommitmentBlindingFactorGenerator = deps?.crypto?.rescueCommitmentBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getRescueCommitmentBlindingFactorDeriver({
|
|
9669
9671
|
client
|
|
9670
9672
|
});
|
|
9671
|
-
const randomFactorGenerator = deps?.crypto?.randomFactorGenerator ??
|
|
9672
|
-
const getRcKeyGenerator = deps?.crypto?.getRcKeyGenerator ?? ((pk) =>
|
|
9673
|
+
const randomFactorGenerator = deps?.crypto?.randomFactorGenerator ?? chunk3LS5P32X_cjs.getPolynomialCommitmentFactorDeriver({ client });
|
|
9674
|
+
const getRcKeyGenerator = deps?.crypto?.getRcKeyGenerator ?? ((pk) => chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(pk, {
|
|
9673
9675
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9674
9676
|
}));
|
|
9675
|
-
const getRcEncryptor = deps?.crypto?.getRcEncryptor ?? ((pk) =>
|
|
9677
|
+
const getRcEncryptor = deps?.crypto?.getRcEncryptor ?? ((pk) => chunk3LS5P32X_cjs.getRescueEncryptorWithNonceFromPrivateKey(pk, {
|
|
9676
9678
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9677
9679
|
}));
|
|
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 ??
|
|
9680
|
+
const rescueCommitmentGenerator = deps?.crypto?.rescueCommitmentGenerator ?? chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
9681
|
+
const userCommitmentGenerator = deps?.crypto?.userCommitmentGenerator ?? chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
9682
|
+
const fiatShamirChallengeGenerator = deps?.crypto?.fiatShamirChallengeGenerator ?? chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
9683
|
+
const challengePowersFunction = deps?.crypto?.challengePowersFunction ?? chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
9684
|
+
const polynomialEvaluator = deps?.crypto?.polynomialEvaluator ?? chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
9685
|
+
const poseidonAggregator = deps?.crypto?.poseidonAggregator ?? chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
9684
9686
|
const bn254ModuleInverter = deps?.crypto?.bn254ModInverter ?? chunkY55PYKXH_cjs.getBn254ModularInverter();
|
|
9685
9687
|
const computeLimbwiseSumInverse = deps?.crypto?.computeLimbwiseSumInverse ?? chunkY55PYKXH_cjs.computeBn254LimbwiseSumInverse;
|
|
9686
9688
|
const zkProver = deps?.zkProver;
|
|
@@ -9721,7 +9723,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9721
9723
|
"ZK prover is required for anonymous mode registration. Provide zkProver in the deps argument."
|
|
9722
9724
|
);
|
|
9723
9725
|
}
|
|
9724
|
-
const userAccountPda = await
|
|
9726
|
+
const userAccountPda = await chunkUEI7SYH6_cjs.findEncryptedUserAccountPda(
|
|
9725
9727
|
signer.address,
|
|
9726
9728
|
client.networkConfig.programId
|
|
9727
9729
|
);
|
|
@@ -9816,7 +9818,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9816
9818
|
programAddress: client.networkConfig.programId
|
|
9817
9819
|
}
|
|
9818
9820
|
);
|
|
9819
|
-
const computeBudgetInstruction =
|
|
9821
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
9820
9822
|
const signature = await executeTransactionWithCallbacks(
|
|
9821
9823
|
registerX25519Instruction,
|
|
9822
9824
|
callbacks?.registerX25519PublicKey,
|
|
@@ -10161,7 +10163,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
10161
10163
|
}
|
|
10162
10164
|
const zkProof = await zkProver.prove(zkCircuitInputs);
|
|
10163
10165
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
10164
|
-
const arciumAccounts = await
|
|
10166
|
+
const arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
10165
10167
|
client.networkConfig.programId,
|
|
10166
10168
|
client.networkConfig.arciumProgramAddress,
|
|
10167
10169
|
clusterOffset,
|
|
@@ -10229,7 +10231,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
10229
10231
|
programAddress: client.networkConfig.programId
|
|
10230
10232
|
}
|
|
10231
10233
|
);
|
|
10232
|
-
const computeBudgetInstruction =
|
|
10234
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
10233
10235
|
const registrationAltEntry = chunkAXD7LXYY_cjs.lookupAltEntry(client.networkConfig.addressLookupTables, clusterOffset, "register_user_for_anonymous_usage_v11");
|
|
10234
10236
|
const signature = await executeTransactionWithCallbacks(
|
|
10235
10237
|
registerAnonymousInstruction,
|
|
@@ -10307,7 +10309,7 @@ function getUserEntropySeedRotatorFunction(args, deps) {
|
|
|
10307
10309
|
user: noopSigner,
|
|
10308
10310
|
newSeed: { first: newSeed },
|
|
10309
10311
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES10 }
|
|
10310
|
-
});
|
|
10312
|
+
}, { programAddress: client.networkConfig.programId });
|
|
10311
10313
|
const latestBlockhash = await getLatestBlockhash();
|
|
10312
10314
|
const transactionMessage = kit.pipe(
|
|
10313
10315
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -10348,7 +10350,7 @@ function getTokenEntropySeedRotatorFunction(args, deps) {
|
|
|
10348
10350
|
mint,
|
|
10349
10351
|
newSeed: { first: newSeed },
|
|
10350
10352
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES11 }
|
|
10351
|
-
});
|
|
10353
|
+
}, { programAddress: client.networkConfig.programId });
|
|
10352
10354
|
const latestBlockhash = await getLatestBlockhash();
|
|
10353
10355
|
const transactionMessage = kit.pipe(
|
|
10354
10356
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -10461,7 +10463,7 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10461
10463
|
executorConfig,
|
|
10462
10464
|
{
|
|
10463
10465
|
instruction,
|
|
10464
|
-
preInstructions: [
|
|
10466
|
+
preInstructions: [chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(4e5)],
|
|
10465
10467
|
altEntry
|
|
10466
10468
|
},
|
|
10467
10469
|
awaitCallback
|
|
@@ -10522,10 +10524,10 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10522
10524
|
throw new chunkBL6WXLPV_cjs.EncryptedWithdrawalError("mint-fetch", `Mint account not found: ${mint}`);
|
|
10523
10525
|
}
|
|
10524
10526
|
const mintOwner = mintAccount.programAddress;
|
|
10525
|
-
if (mintOwner !==
|
|
10527
|
+
if (mintOwner !== chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID && mintOwner !== chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
10526
10528
|
throw new chunkBL6WXLPV_cjs.EncryptedWithdrawalError(
|
|
10527
10529
|
"mint-fetch",
|
|
10528
|
-
`Unknown token program: ${mintOwner}. Expected SPL Token (${
|
|
10530
|
+
`Unknown token program: ${mintOwner}. Expected SPL Token (${chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID}) or Token-2022 (${chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID})`
|
|
10529
10531
|
);
|
|
10530
10532
|
}
|
|
10531
10533
|
mintTokenProgram = mintOwner;
|
|
@@ -10545,7 +10547,7 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10545
10547
|
const computationOffset = chunkZY3TSHMJ_cjs.generateRandomU64();
|
|
10546
10548
|
let arciumAccounts;
|
|
10547
10549
|
try {
|
|
10548
|
-
arciumAccounts = await
|
|
10550
|
+
arciumAccounts = await chunkUEI7SYH6_cjs.findArciumInfrastructurePdas(
|
|
10549
10551
|
client.networkConfig.programId,
|
|
10550
10552
|
client.networkConfig.arciumProgramAddress,
|
|
10551
10553
|
clusterOffset,
|
|
@@ -10599,7 +10601,7 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10599
10601
|
},
|
|
10600
10602
|
// Fee slab data and merkle proof
|
|
10601
10603
|
...feeSlabResultToInstructionFields(protocolFeeConfig)
|
|
10602
|
-
});
|
|
10604
|
+
}, { programAddress: client.networkConfig.programId });
|
|
10603
10605
|
} catch (error) {
|
|
10604
10606
|
if (error instanceof chunkBL6WXLPV_cjs.EncryptedWithdrawalError) {
|
|
10605
10607
|
throw error;
|
|
@@ -10629,30 +10631,6 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10629
10631
|
}
|
|
10630
10632
|
chunkPK6SKIKE_cjs.__name(getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction, "getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction");
|
|
10631
10633
|
|
|
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
10634
|
Object.defineProperty(exports, "RelayerError", {
|
|
10657
10635
|
enumerable: true,
|
|
10658
10636
|
get: function () { return chunkNKVMSABR_cjs.RelayerError; }
|
|
@@ -10665,641 +10643,665 @@ Object.defineProperty(exports, "pollClaimUntilTerminal", {
|
|
|
10665
10643
|
enumerable: true,
|
|
10666
10644
|
get: function () { return chunkNKVMSABR_cjs.pollClaimUntilTerminal; }
|
|
10667
10645
|
});
|
|
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
10646
|
Object.defineProperty(exports, "AES_AUTH_TAG_LENGTH", {
|
|
10741
10647
|
enumerable: true,
|
|
10742
|
-
get: function () { return
|
|
10648
|
+
get: function () { return chunk3LS5P32X_cjs.AES_AUTH_TAG_LENGTH; }
|
|
10743
10649
|
});
|
|
10744
10650
|
Object.defineProperty(exports, "AES_IV_LENGTH", {
|
|
10745
10651
|
enumerable: true,
|
|
10746
|
-
get: function () { return
|
|
10652
|
+
get: function () { return chunk3LS5P32X_cjs.AES_IV_LENGTH; }
|
|
10747
10653
|
});
|
|
10748
10654
|
Object.defineProperty(exports, "AES_KEY_LENGTH", {
|
|
10749
10655
|
enumerable: true,
|
|
10750
|
-
get: function () { return
|
|
10656
|
+
get: function () { return chunk3LS5P32X_cjs.AES_KEY_LENGTH; }
|
|
10751
10657
|
});
|
|
10752
10658
|
Object.defineProperty(exports, "AES_METADATA_OVERHEAD", {
|
|
10753
10659
|
enumerable: true,
|
|
10754
|
-
get: function () { return
|
|
10660
|
+
get: function () { return chunk3LS5P32X_cjs.AES_METADATA_OVERHEAD; }
|
|
10755
10661
|
});
|
|
10756
10662
|
Object.defineProperty(exports, "ALPHA", {
|
|
10757
10663
|
enumerable: true,
|
|
10758
|
-
get: function () { return
|
|
10664
|
+
get: function () { return chunk3LS5P32X_cjs.ALPHA; }
|
|
10759
10665
|
});
|
|
10760
10666
|
Object.defineProperty(exports, "ALPHA_INVERSE", {
|
|
10761
10667
|
enumerable: true,
|
|
10762
|
-
get: function () { return
|
|
10668
|
+
get: function () { return chunk3LS5P32X_cjs.ALPHA_INVERSE; }
|
|
10763
10669
|
});
|
|
10764
10670
|
Object.defineProperty(exports, "BASE85_LIMB_MAX", {
|
|
10765
10671
|
enumerable: true,
|
|
10766
|
-
get: function () { return
|
|
10672
|
+
get: function () { return chunk3LS5P32X_cjs.BASE85_LIMB_MAX; }
|
|
10767
10673
|
});
|
|
10768
10674
|
Object.defineProperty(exports, "BLOCK_SIZE", {
|
|
10769
10675
|
enumerable: true,
|
|
10770
|
-
get: function () { return
|
|
10676
|
+
get: function () { return chunk3LS5P32X_cjs.BLOCK_SIZE; }
|
|
10771
10677
|
});
|
|
10772
10678
|
Object.defineProperty(exports, "CIPHER_ROUND_COUNT", {
|
|
10773
10679
|
enumerable: true,
|
|
10774
|
-
get: function () { return
|
|
10680
|
+
get: function () { return chunk3LS5P32X_cjs.CIPHER_ROUND_COUNT; }
|
|
10775
10681
|
});
|
|
10776
10682
|
Object.defineProperty(exports, "FIELD_ELEMENT_BYTE_LENGTH", {
|
|
10777
10683
|
enumerable: true,
|
|
10778
|
-
get: function () { return
|
|
10684
|
+
get: function () { return chunk3LS5P32X_cjs.FIELD_ELEMENT_BYTE_LENGTH; }
|
|
10779
10685
|
});
|
|
10780
10686
|
Object.defineProperty(exports, "FIELD_PRIME", {
|
|
10781
10687
|
enumerable: true,
|
|
10782
|
-
get: function () { return
|
|
10688
|
+
get: function () { return chunk3LS5P32X_cjs.FIELD_PRIME; }
|
|
10783
10689
|
});
|
|
10784
10690
|
Object.defineProperty(exports, "GROTH16_G1_BYTE_LENGTH", {
|
|
10785
10691
|
enumerable: true,
|
|
10786
|
-
get: function () { return
|
|
10692
|
+
get: function () { return chunk3LS5P32X_cjs.GROTH16_G1_BYTE_LENGTH; }
|
|
10787
10693
|
});
|
|
10788
10694
|
Object.defineProperty(exports, "GROTH16_G2_BYTE_LENGTH", {
|
|
10789
10695
|
enumerable: true,
|
|
10790
|
-
get: function () { return
|
|
10696
|
+
get: function () { return chunk3LS5P32X_cjs.GROTH16_G2_BYTE_LENGTH; }
|
|
10791
10697
|
});
|
|
10792
10698
|
Object.defineProperty(exports, "HASH_CAPACITY", {
|
|
10793
10699
|
enumerable: true,
|
|
10794
|
-
get: function () { return
|
|
10700
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_CAPACITY; }
|
|
10795
10701
|
});
|
|
10796
10702
|
Object.defineProperty(exports, "HASH_DIGEST_LENGTH", {
|
|
10797
10703
|
enumerable: true,
|
|
10798
|
-
get: function () { return
|
|
10704
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_DIGEST_LENGTH; }
|
|
10799
10705
|
});
|
|
10800
10706
|
Object.defineProperty(exports, "HASH_RATE", {
|
|
10801
10707
|
enumerable: true,
|
|
10802
|
-
get: function () { return
|
|
10708
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_RATE; }
|
|
10803
10709
|
});
|
|
10804
10710
|
Object.defineProperty(exports, "HASH_ROUND_COUNT", {
|
|
10805
10711
|
enumerable: true,
|
|
10806
|
-
get: function () { return
|
|
10712
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_ROUND_COUNT; }
|
|
10807
10713
|
});
|
|
10808
10714
|
Object.defineProperty(exports, "HASH_STATE_SIZE", {
|
|
10809
10715
|
enumerable: true,
|
|
10810
|
-
get: function () { return
|
|
10716
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_STATE_SIZE; }
|
|
10811
10717
|
});
|
|
10812
10718
|
Object.defineProperty(exports, "MASTER_VIEWING_KEY_MAX", {
|
|
10813
10719
|
enumerable: true,
|
|
10814
|
-
get: function () { return
|
|
10720
|
+
get: function () { return chunk3LS5P32X_cjs.MASTER_VIEWING_KEY_MAX; }
|
|
10815
10721
|
});
|
|
10816
10722
|
Object.defineProperty(exports, "MAX_AGGREGATOR_INPUTS", {
|
|
10817
10723
|
enumerable: true,
|
|
10818
|
-
get: function () { return
|
|
10724
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_AGGREGATOR_INPUTS; }
|
|
10819
10725
|
});
|
|
10820
10726
|
Object.defineProperty(exports, "MAX_POSEIDON_INPUTS", {
|
|
10821
10727
|
enumerable: true,
|
|
10822
|
-
get: function () { return
|
|
10728
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_POSEIDON_INPUTS; }
|
|
10823
10729
|
});
|
|
10824
10730
|
Object.defineProperty(exports, "MAX_PRF_SEEDS", {
|
|
10825
10731
|
enumerable: true,
|
|
10826
|
-
get: function () { return
|
|
10732
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_PRF_SEEDS; }
|
|
10827
10733
|
});
|
|
10828
10734
|
Object.defineProperty(exports, "NONCE_BYTES", {
|
|
10829
10735
|
enumerable: true,
|
|
10830
|
-
get: function () { return
|
|
10736
|
+
get: function () { return chunk3LS5P32X_cjs.NONCE_BYTES; }
|
|
10831
10737
|
});
|
|
10832
10738
|
Object.defineProperty(exports, "OPTIONAL_DATA_BYTE_LENGTH", {
|
|
10833
10739
|
enumerable: true,
|
|
10834
|
-
get: function () { return
|
|
10740
|
+
get: function () { return chunk3LS5P32X_cjs.OPTIONAL_DATA_BYTE_LENGTH; }
|
|
10835
10741
|
});
|
|
10836
10742
|
Object.defineProperty(exports, "PRECOMPUTED_FIELD_INVERSES", {
|
|
10837
10743
|
enumerable: true,
|
|
10838
|
-
get: function () { return
|
|
10744
|
+
get: function () { return chunk3LS5P32X_cjs.PRECOMPUTED_FIELD_INVERSES; }
|
|
10839
10745
|
});
|
|
10840
10746
|
Object.defineProperty(exports, "REDUCTION_CONST", {
|
|
10841
10747
|
enumerable: true,
|
|
10842
|
-
get: function () { return
|
|
10748
|
+
get: function () { return chunk3LS5P32X_cjs.REDUCTION_CONST; }
|
|
10843
10749
|
});
|
|
10844
10750
|
Object.defineProperty(exports, "SAMPLE_BUFFER_BYTE_LENGTH", {
|
|
10845
10751
|
enumerable: true,
|
|
10846
|
-
get: function () { return
|
|
10752
|
+
get: function () { return chunk3LS5P32X_cjs.SAMPLE_BUFFER_BYTE_LENGTH; }
|
|
10847
10753
|
});
|
|
10848
10754
|
Object.defineProperty(exports, "SECRET_BYTES", {
|
|
10849
10755
|
enumerable: true,
|
|
10850
|
-
get: function () { return
|
|
10756
|
+
get: function () { return chunk3LS5P32X_cjs.SECRET_BYTES; }
|
|
10851
10757
|
});
|
|
10852
10758
|
Object.defineProperty(exports, "SHAKE256_CIPHER_SEED", {
|
|
10853
10759
|
enumerable: true,
|
|
10854
|
-
get: function () { return
|
|
10760
|
+
get: function () { return chunk3LS5P32X_cjs.SHAKE256_CIPHER_SEED; }
|
|
10855
10761
|
});
|
|
10856
10762
|
Object.defineProperty(exports, "X25519_BYTE_LENGTH", {
|
|
10857
10763
|
enumerable: true,
|
|
10858
|
-
get: function () { return
|
|
10764
|
+
get: function () { return chunk3LS5P32X_cjs.X25519_BYTE_LENGTH; }
|
|
10859
10765
|
});
|
|
10860
10766
|
Object.defineProperty(exports, "ZK_PROOF_BYTE_LENGTH", {
|
|
10861
10767
|
enumerable: true,
|
|
10862
|
-
get: function () { return
|
|
10768
|
+
get: function () { return chunk3LS5P32X_cjs.ZK_PROOF_BYTE_LENGTH; }
|
|
10863
10769
|
});
|
|
10864
10770
|
Object.defineProperty(exports, "assertAesCiphertextWithMetadata", {
|
|
10865
10771
|
enumerable: true,
|
|
10866
|
-
get: function () { return
|
|
10772
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesCiphertextWithMetadata; }
|
|
10867
10773
|
});
|
|
10868
10774
|
Object.defineProperty(exports, "assertAesKey", {
|
|
10869
10775
|
enumerable: true,
|
|
10870
|
-
get: function () { return
|
|
10776
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesKey; }
|
|
10871
10777
|
});
|
|
10872
10778
|
Object.defineProperty(exports, "assertAesPlaintext", {
|
|
10873
10779
|
enumerable: true,
|
|
10874
|
-
get: function () { return
|
|
10780
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesPlaintext; }
|
|
10875
10781
|
});
|
|
10876
10782
|
Object.defineProperty(exports, "assertBase85Limb", {
|
|
10877
10783
|
enumerable: true,
|
|
10878
|
-
get: function () { return
|
|
10784
|
+
get: function () { return chunk3LS5P32X_cjs.assertBase85Limb; }
|
|
10879
10785
|
});
|
|
10880
10786
|
Object.defineProperty(exports, "assertCurve25519KeypairResult", {
|
|
10881
10787
|
enumerable: true,
|
|
10882
|
-
get: function () { return
|
|
10788
|
+
get: function () { return chunk3LS5P32X_cjs.assertCurve25519KeypairResult; }
|
|
10883
10789
|
});
|
|
10884
10790
|
Object.defineProperty(exports, "assertDailyViewingKey", {
|
|
10885
10791
|
enumerable: true,
|
|
10886
|
-
get: function () { return
|
|
10792
|
+
get: function () { return chunk3LS5P32X_cjs.assertDailyViewingKey; }
|
|
10887
10793
|
});
|
|
10888
10794
|
Object.defineProperty(exports, "assertEd25519Keypair", {
|
|
10889
10795
|
enumerable: true,
|
|
10890
|
-
get: function () { return
|
|
10796
|
+
get: function () { return chunk3LS5P32X_cjs.assertEd25519Keypair; }
|
|
10891
10797
|
});
|
|
10892
10798
|
Object.defineProperty(exports, "assertGenerationSeed", {
|
|
10893
10799
|
enumerable: true,
|
|
10894
|
-
get: function () { return
|
|
10800
|
+
get: function () { return chunk3LS5P32X_cjs.assertGenerationSeed; }
|
|
10895
10801
|
});
|
|
10896
10802
|
Object.defineProperty(exports, "assertGroth16ProofA", {
|
|
10897
10803
|
enumerable: true,
|
|
10898
|
-
get: function () { return
|
|
10804
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofA; }
|
|
10899
10805
|
});
|
|
10900
10806
|
Object.defineProperty(exports, "assertGroth16ProofB", {
|
|
10901
10807
|
enumerable: true,
|
|
10902
|
-
get: function () { return
|
|
10808
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofB; }
|
|
10903
10809
|
});
|
|
10904
10810
|
Object.defineProperty(exports, "assertGroth16ProofC", {
|
|
10905
10811
|
enumerable: true,
|
|
10906
|
-
get: function () { return
|
|
10812
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofC; }
|
|
10907
10813
|
});
|
|
10908
10814
|
Object.defineProperty(exports, "assertHourlyViewingKey", {
|
|
10909
10815
|
enumerable: true,
|
|
10910
|
-
get: function () { return
|
|
10816
|
+
get: function () { return chunk3LS5P32X_cjs.assertHourlyViewingKey; }
|
|
10911
10817
|
});
|
|
10912
10818
|
Object.defineProperty(exports, "assertKeccak256Hash", {
|
|
10913
10819
|
enumerable: true,
|
|
10914
|
-
get: function () { return
|
|
10820
|
+
get: function () { return chunk3LS5P32X_cjs.assertKeccak256Hash; }
|
|
10915
10821
|
});
|
|
10916
10822
|
Object.defineProperty(exports, "assertKeccak512Hash", {
|
|
10917
10823
|
enumerable: true,
|
|
10918
|
-
get: function () { return
|
|
10824
|
+
get: function () { return chunk3LS5P32X_cjs.assertKeccak512Hash; }
|
|
10919
10825
|
});
|
|
10920
10826
|
Object.defineProperty(exports, "assertMasterSeed", {
|
|
10921
10827
|
enumerable: true,
|
|
10922
|
-
get: function () { return
|
|
10828
|
+
get: function () { return chunk3LS5P32X_cjs.assertMasterSeed; }
|
|
10923
10829
|
});
|
|
10924
10830
|
Object.defineProperty(exports, "assertMasterViewingKey", {
|
|
10925
10831
|
enumerable: true,
|
|
10926
|
-
get: function () { return
|
|
10832
|
+
get: function () { return chunk3LS5P32X_cjs.assertMasterViewingKey; }
|
|
10927
10833
|
});
|
|
10928
10834
|
Object.defineProperty(exports, "assertMintViewingKey", {
|
|
10929
10835
|
enumerable: true,
|
|
10930
|
-
get: function () { return
|
|
10836
|
+
get: function () { return chunk3LS5P32X_cjs.assertMintViewingKey; }
|
|
10931
10837
|
});
|
|
10932
10838
|
Object.defineProperty(exports, "assertMinuteViewingKey", {
|
|
10933
10839
|
enumerable: true,
|
|
10934
|
-
get: function () { return
|
|
10840
|
+
get: function () { return chunk3LS5P32X_cjs.assertMinuteViewingKey; }
|
|
10935
10841
|
});
|
|
10936
10842
|
Object.defineProperty(exports, "assertMonthlyViewingKey", {
|
|
10937
10843
|
enumerable: true,
|
|
10938
|
-
get: function () { return
|
|
10844
|
+
get: function () { return chunk3LS5P32X_cjs.assertMonthlyViewingKey; }
|
|
10939
10845
|
});
|
|
10940
10846
|
Object.defineProperty(exports, "assertOptionalData32", {
|
|
10941
10847
|
enumerable: true,
|
|
10942
|
-
get: function () { return
|
|
10848
|
+
get: function () { return chunk3LS5P32X_cjs.assertOptionalData32; }
|
|
10943
10849
|
});
|
|
10944
10850
|
Object.defineProperty(exports, "assertPoseidonCiphertext", {
|
|
10945
10851
|
enumerable: true,
|
|
10946
|
-
get: function () { return
|
|
10852
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonCiphertext; }
|
|
10947
10853
|
});
|
|
10948
10854
|
Object.defineProperty(exports, "assertPoseidonCounter", {
|
|
10949
10855
|
enumerable: true,
|
|
10950
|
-
get: function () { return
|
|
10856
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonCounter; }
|
|
10951
10857
|
});
|
|
10952
10858
|
Object.defineProperty(exports, "assertPoseidonHash", {
|
|
10953
10859
|
enumerable: true,
|
|
10954
|
-
get: function () { return
|
|
10860
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonHash; }
|
|
10955
10861
|
});
|
|
10956
10862
|
Object.defineProperty(exports, "assertPoseidonKey", {
|
|
10957
10863
|
enumerable: true,
|
|
10958
|
-
get: function () { return
|
|
10864
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonKey; }
|
|
10959
10865
|
});
|
|
10960
10866
|
Object.defineProperty(exports, "assertPoseidonKeystream", {
|
|
10961
10867
|
enumerable: true,
|
|
10962
|
-
get: function () { return
|
|
10868
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonKeystream; }
|
|
10963
10869
|
});
|
|
10964
10870
|
Object.defineProperty(exports, "assertPoseidonPlaintext", {
|
|
10965
10871
|
enumerable: true,
|
|
10966
|
-
get: function () { return
|
|
10872
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonPlaintext; }
|
|
10967
10873
|
});
|
|
10968
10874
|
Object.defineProperty(exports, "assertRcCiphertext", {
|
|
10969
10875
|
enumerable: true,
|
|
10970
|
-
get: function () { return
|
|
10876
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcCiphertext; }
|
|
10971
10877
|
});
|
|
10972
10878
|
Object.defineProperty(exports, "assertRcCounter", {
|
|
10973
10879
|
enumerable: true,
|
|
10974
|
-
get: function () { return
|
|
10880
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcCounter; }
|
|
10975
10881
|
});
|
|
10976
10882
|
Object.defineProperty(exports, "assertRcEncryptionNonce", {
|
|
10977
10883
|
enumerable: true,
|
|
10978
|
-
get: function () { return
|
|
10884
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcEncryptionNonce; }
|
|
10979
10885
|
});
|
|
10980
10886
|
Object.defineProperty(exports, "assertRcKey", {
|
|
10981
10887
|
enumerable: true,
|
|
10982
|
-
get: function () { return
|
|
10888
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcKey; }
|
|
10983
10889
|
});
|
|
10984
10890
|
Object.defineProperty(exports, "assertRcPlaintext", {
|
|
10985
10891
|
enumerable: true,
|
|
10986
|
-
get: function () { return
|
|
10892
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcPlaintext; }
|
|
10987
10893
|
});
|
|
10988
10894
|
Object.defineProperty(exports, "assertSecondViewingKey", {
|
|
10989
10895
|
enumerable: true,
|
|
10990
|
-
get: function () { return
|
|
10896
|
+
get: function () { return chunk3LS5P32X_cjs.assertSecondViewingKey; }
|
|
10991
10897
|
});
|
|
10992
10898
|
Object.defineProperty(exports, "assertSharedSecret", {
|
|
10993
10899
|
enumerable: true,
|
|
10994
|
-
get: function () { return
|
|
10900
|
+
get: function () { return chunk3LS5P32X_cjs.assertSharedSecret; }
|
|
10995
10901
|
});
|
|
10996
10902
|
Object.defineProperty(exports, "assertX25519Bytes", {
|
|
10997
10903
|
enumerable: true,
|
|
10998
|
-
get: function () { return
|
|
10904
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519Bytes; }
|
|
10999
10905
|
});
|
|
11000
10906
|
Object.defineProperty(exports, "assertX25519Keypair", {
|
|
11001
10907
|
enumerable: true,
|
|
11002
|
-
get: function () { return
|
|
10908
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519Keypair; }
|
|
11003
10909
|
});
|
|
11004
10910
|
Object.defineProperty(exports, "assertX25519PrivateKey", {
|
|
11005
10911
|
enumerable: true,
|
|
11006
|
-
get: function () { return
|
|
10912
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519PrivateKey; }
|
|
11007
10913
|
});
|
|
11008
10914
|
Object.defineProperty(exports, "assertX25519PublicKey", {
|
|
11009
10915
|
enumerable: true,
|
|
11010
|
-
get: function () { return
|
|
10916
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519PublicKey; }
|
|
11011
10917
|
});
|
|
11012
10918
|
Object.defineProperty(exports, "assertYearlyViewingKey", {
|
|
11013
10919
|
enumerable: true,
|
|
11014
|
-
get: function () { return
|
|
10920
|
+
get: function () { return chunk3LS5P32X_cjs.assertYearlyViewingKey; }
|
|
11015
10921
|
});
|
|
11016
10922
|
Object.defineProperty(exports, "assertZkProofBytes", {
|
|
11017
10923
|
enumerable: true,
|
|
11018
|
-
get: function () { return
|
|
10924
|
+
get: function () { return chunk3LS5P32X_cjs.assertZkProofBytes; }
|
|
11019
10925
|
});
|
|
11020
10926
|
Object.defineProperty(exports, "buildPersonalizationString", {
|
|
11021
10927
|
enumerable: true,
|
|
11022
|
-
get: function () { return
|
|
10928
|
+
get: function () { return chunk3LS5P32X_cjs.buildPersonalizationString; }
|
|
11023
10929
|
});
|
|
11024
10930
|
Object.defineProperty(exports, "defaultAesDecryptor", {
|
|
11025
10931
|
enumerable: true,
|
|
11026
|
-
get: function () { return
|
|
10932
|
+
get: function () { return chunk3LS5P32X_cjs.defaultAesDecryptor; }
|
|
11027
10933
|
});
|
|
11028
10934
|
Object.defineProperty(exports, "defaultAesEncryptor", {
|
|
11029
10935
|
enumerable: true,
|
|
11030
|
-
get: function () { return
|
|
10936
|
+
get: function () { return chunk3LS5P32X_cjs.defaultAesEncryptor; }
|
|
11031
10937
|
});
|
|
11032
10938
|
Object.defineProperty(exports, "deriveBn254FieldElementFromKeccak512", {
|
|
11033
10939
|
enumerable: true,
|
|
11034
|
-
get: function () { return
|
|
10940
|
+
get: function () { return chunk3LS5P32X_cjs.deriveBn254FieldElementFromKeccak512; }
|
|
11035
10941
|
});
|
|
11036
10942
|
Object.defineProperty(exports, "deriveEphemeralMasterViewingKey", {
|
|
11037
10943
|
enumerable: true,
|
|
11038
|
-
get: function () { return
|
|
10944
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralMasterViewingKey; }
|
|
11039
10945
|
});
|
|
11040
10946
|
Object.defineProperty(exports, "deriveEphemeralMasterViewingKeyBlindingFactor", {
|
|
11041
10947
|
enumerable: true,
|
|
11042
|
-
get: function () { return
|
|
10948
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralMasterViewingKeyBlindingFactor; }
|
|
11043
10949
|
});
|
|
11044
10950
|
Object.defineProperty(exports, "deriveEphemeralPoseidonPrivateKey", {
|
|
11045
10951
|
enumerable: true,
|
|
11046
|
-
get: function () { return
|
|
10952
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralPoseidonPrivateKey; }
|
|
11047
10953
|
});
|
|
11048
10954
|
Object.defineProperty(exports, "deriveEphemeralPoseidonPrivateKeyBlindingFactor", {
|
|
11049
10955
|
enumerable: true,
|
|
11050
|
-
get: function () { return
|
|
10956
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralPoseidonPrivateKeyBlindingFactor; }
|
|
11051
10957
|
});
|
|
11052
10958
|
Object.defineProperty(exports, "deriveKeystreamBlindingFactor", {
|
|
11053
10959
|
enumerable: true,
|
|
11054
|
-
get: function () { return
|
|
10960
|
+
get: function () { return chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor; }
|
|
11055
10961
|
});
|
|
11056
10962
|
Object.defineProperty(exports, "deriveModifiedGenerationIndexForReceiverClaim", {
|
|
11057
10963
|
enumerable: true,
|
|
11058
|
-
get: function () { return
|
|
10964
|
+
get: function () { return chunk3LS5P32X_cjs.deriveModifiedGenerationIndexForReceiverClaim; }
|
|
11059
10965
|
});
|
|
11060
10966
|
Object.defineProperty(exports, "deriveModifiedGenerationIndexForSenderClaim", {
|
|
11061
10967
|
enumerable: true,
|
|
11062
|
-
get: function () { return
|
|
10968
|
+
get: function () { return chunk3LS5P32X_cjs.deriveModifiedGenerationIndexForSenderClaim; }
|
|
11063
10969
|
});
|
|
11064
10970
|
Object.defineProperty(exports, "deriveNullifierFromModifiedGenerationIndex", {
|
|
11065
10971
|
enumerable: true,
|
|
11066
|
-
get: function () { return
|
|
10972
|
+
get: function () { return chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex; }
|
|
11067
10973
|
});
|
|
11068
10974
|
Object.defineProperty(exports, "deriveProofAccountOffsetFromModifiedGenerationIndex", {
|
|
11069
10975
|
enumerable: true,
|
|
11070
|
-
get: function () { return
|
|
10976
|
+
get: function () { return chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex; }
|
|
11071
10977
|
});
|
|
11072
10978
|
Object.defineProperty(exports, "deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex", {
|
|
11073
10979
|
enumerable: true,
|
|
11074
|
-
get: function () { return
|
|
10980
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex; }
|
|
11075
10981
|
});
|
|
11076
10982
|
Object.defineProperty(exports, "deriveRandomSecretFromModifiedGenerationIndex", {
|
|
11077
10983
|
enumerable: true,
|
|
11078
|
-
get: function () { return
|
|
10984
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex; }
|
|
11079
10985
|
});
|
|
11080
10986
|
Object.defineProperty(exports, "deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex", {
|
|
11081
10987
|
enumerable: true,
|
|
11082
|
-
get: function () { return
|
|
10988
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex; }
|
|
11083
10989
|
});
|
|
11084
10990
|
Object.defineProperty(exports, "expandModifiedGenerationIndex", {
|
|
11085
10991
|
enumerable: true,
|
|
11086
|
-
get: function () { return
|
|
10992
|
+
get: function () { return chunk3LS5P32X_cjs.expandModifiedGenerationIndex; }
|
|
11087
10993
|
});
|
|
11088
10994
|
Object.defineProperty(exports, "getAesDecryptor", {
|
|
11089
10995
|
enumerable: true,
|
|
11090
|
-
get: function () { return
|
|
10996
|
+
get: function () { return chunk3LS5P32X_cjs.getAesDecryptor; }
|
|
11091
10997
|
});
|
|
11092
10998
|
Object.defineProperty(exports, "getAesEncryptor", {
|
|
11093
10999
|
enumerable: true,
|
|
11094
|
-
get: function () { return
|
|
11000
|
+
get: function () { return chunk3LS5P32X_cjs.getAesEncryptor; }
|
|
11095
11001
|
});
|
|
11096
11002
|
Object.defineProperty(exports, "getBn254FieldElementFromKeccak512Deriver", {
|
|
11097
11003
|
enumerable: true,
|
|
11098
|
-
get: function () { return
|
|
11004
|
+
get: function () { return chunk3LS5P32X_cjs.getBn254FieldElementFromKeccak512Deriver; }
|
|
11099
11005
|
});
|
|
11100
11006
|
Object.defineProperty(exports, "getChallengePowersFunction", {
|
|
11101
11007
|
enumerable: true,
|
|
11102
|
-
get: function () { return
|
|
11008
|
+
get: function () { return chunk3LS5P32X_cjs.getChallengePowersFunction; }
|
|
11103
11009
|
});
|
|
11104
11010
|
Object.defineProperty(exports, "getDailyViewingKeyDeriver", {
|
|
11105
11011
|
enumerable: true,
|
|
11106
|
-
get: function () { return
|
|
11012
|
+
get: function () { return chunk3LS5P32X_cjs.getDailyViewingKeyDeriver; }
|
|
11107
11013
|
});
|
|
11108
11014
|
Object.defineProperty(exports, "getEphemeralMasterSeedDeriver", {
|
|
11109
11015
|
enumerable: true,
|
|
11110
|
-
get: function () { return
|
|
11016
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralMasterSeedDeriver; }
|
|
11111
11017
|
});
|
|
11112
11018
|
Object.defineProperty(exports, "getEphemeralRescueCommitmentBlindingFactorDeriver", {
|
|
11113
11019
|
enumerable: true,
|
|
11114
|
-
get: function () { return
|
|
11020
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralRescueCommitmentBlindingFactorDeriver; }
|
|
11115
11021
|
});
|
|
11116
11022
|
Object.defineProperty(exports, "getEphemeralUtxoH2RandomSecretDeriver", {
|
|
11117
11023
|
enumerable: true,
|
|
11118
|
-
get: function () { return
|
|
11024
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoH2RandomSecretDeriver; }
|
|
11119
11025
|
});
|
|
11120
11026
|
Object.defineProperty(exports, "getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver", {
|
|
11121
11027
|
enumerable: true,
|
|
11122
|
-
get: function () { return
|
|
11028
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver; }
|
|
11123
11029
|
});
|
|
11124
11030
|
Object.defineProperty(exports, "getEphemeralUtxoMasterViewingKeyDeriver", {
|
|
11125
11031
|
enumerable: true,
|
|
11126
|
-
get: function () { return
|
|
11032
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver; }
|
|
11127
11033
|
});
|
|
11128
11034
|
Object.defineProperty(exports, "getEphemeralUtxoNullifierDeriver", {
|
|
11129
11035
|
enumerable: true,
|
|
11130
|
-
get: function () { return
|
|
11036
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoNullifierDeriver; }
|
|
11131
11037
|
});
|
|
11132
11038
|
Object.defineProperty(exports, "getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver", {
|
|
11133
11039
|
enumerable: true,
|
|
11134
|
-
get: function () { return
|
|
11040
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver; }
|
|
11135
11041
|
});
|
|
11136
11042
|
Object.defineProperty(exports, "getEphemeralUtxoPoseidonPrivateKeyDeriver", {
|
|
11137
11043
|
enumerable: true,
|
|
11138
|
-
get: function () { return
|
|
11044
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver; }
|
|
11139
11045
|
});
|
|
11140
11046
|
Object.defineProperty(exports, "getFiatShamirChallengeGeneratorFunction", {
|
|
11141
11047
|
enumerable: true,
|
|
11142
|
-
get: function () { return
|
|
11048
|
+
get: function () { return chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction; }
|
|
11143
11049
|
});
|
|
11144
11050
|
Object.defineProperty(exports, "getFieldArithmetic", {
|
|
11145
11051
|
enumerable: true,
|
|
11146
|
-
get: function () { return
|
|
11052
|
+
get: function () { return chunk3LS5P32X_cjs.getFieldArithmetic; }
|
|
11147
11053
|
});
|
|
11148
11054
|
Object.defineProperty(exports, "getHourlyViewingKeyDeriver", {
|
|
11149
11055
|
enumerable: true,
|
|
11150
|
-
get: function () { return
|
|
11056
|
+
get: function () { return chunk3LS5P32X_cjs.getHourlyViewingKeyDeriver; }
|
|
11151
11057
|
});
|
|
11152
11058
|
Object.defineProperty(exports, "getKeystreamCommitmentGenerator", {
|
|
11153
11059
|
enumerable: true,
|
|
11154
|
-
get: function () { return
|
|
11060
|
+
get: function () { return chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator; }
|
|
11155
11061
|
});
|
|
11156
11062
|
Object.defineProperty(exports, "getMasterSeedBasedFieldElementDeriver", {
|
|
11157
11063
|
enumerable: true,
|
|
11158
|
-
get: function () { return
|
|
11064
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterSeedBasedFieldElementDeriver; }
|
|
11159
11065
|
});
|
|
11160
11066
|
Object.defineProperty(exports, "getMasterViewingKeyBlindingFactorDeriver", {
|
|
11161
11067
|
enumerable: true,
|
|
11162
|
-
get: function () { return
|
|
11068
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver; }
|
|
11163
11069
|
});
|
|
11164
11070
|
Object.defineProperty(exports, "getMasterViewingKeyDeriver", {
|
|
11165
11071
|
enumerable: true,
|
|
11166
|
-
get: function () { return
|
|
11072
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyDeriver; }
|
|
11167
11073
|
});
|
|
11168
11074
|
Object.defineProperty(exports, "getMasterViewingKeyX25519KeypairDeriver", {
|
|
11169
11075
|
enumerable: true,
|
|
11170
|
-
get: function () { return
|
|
11076
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver; }
|
|
11171
11077
|
});
|
|
11172
11078
|
Object.defineProperty(exports, "getMintViewingKeyDeriver", {
|
|
11173
11079
|
enumerable: true,
|
|
11174
|
-
get: function () { return
|
|
11080
|
+
get: function () { return chunk3LS5P32X_cjs.getMintViewingKeyDeriver; }
|
|
11175
11081
|
});
|
|
11176
11082
|
Object.defineProperty(exports, "getMintX25519KeypairDeriver", {
|
|
11177
11083
|
enumerable: true,
|
|
11178
|
-
get: function () { return
|
|
11084
|
+
get: function () { return chunk3LS5P32X_cjs.getMintX25519KeypairDeriver; }
|
|
11179
11085
|
});
|
|
11180
11086
|
Object.defineProperty(exports, "getMinuteViewingKeyDeriver", {
|
|
11181
11087
|
enumerable: true,
|
|
11182
|
-
get: function () { return
|
|
11088
|
+
get: function () { return chunk3LS5P32X_cjs.getMinuteViewingKeyDeriver; }
|
|
11183
11089
|
});
|
|
11184
11090
|
Object.defineProperty(exports, "getModuloPowCurve25519Function", {
|
|
11185
11091
|
enumerable: true,
|
|
11186
|
-
get: function () { return
|
|
11092
|
+
get: function () { return chunk3LS5P32X_cjs.getModuloPowCurve25519Function; }
|
|
11187
11093
|
});
|
|
11188
11094
|
Object.defineProperty(exports, "getMonthlyViewingKeyDeriver", {
|
|
11189
11095
|
enumerable: true,
|
|
11190
|
-
get: function () { return
|
|
11096
|
+
get: function () { return chunk3LS5P32X_cjs.getMonthlyViewingKeyDeriver; }
|
|
11191
11097
|
});
|
|
11192
11098
|
Object.defineProperty(exports, "getPersonalizationStringBuilder", {
|
|
11193
11099
|
enumerable: true,
|
|
11194
|
-
get: function () { return
|
|
11100
|
+
get: function () { return chunk3LS5P32X_cjs.getPersonalizationStringBuilder; }
|
|
11195
11101
|
});
|
|
11196
11102
|
Object.defineProperty(exports, "getPolynomialCommitmentFactorDeriver", {
|
|
11197
11103
|
enumerable: true,
|
|
11198
|
-
get: function () { return
|
|
11104
|
+
get: function () { return chunk3LS5P32X_cjs.getPolynomialCommitmentFactorDeriver; }
|
|
11199
11105
|
});
|
|
11200
11106
|
Object.defineProperty(exports, "getPolynomialEvaluatorFunction", {
|
|
11201
11107
|
enumerable: true,
|
|
11202
|
-
get: function () { return
|
|
11108
|
+
get: function () { return chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction; }
|
|
11203
11109
|
});
|
|
11204
11110
|
Object.defineProperty(exports, "getPoseidonAggregator", {
|
|
11205
11111
|
enumerable: true,
|
|
11206
|
-
get: function () { return
|
|
11112
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonAggregator; }
|
|
11207
11113
|
});
|
|
11208
11114
|
Object.defineProperty(exports, "getPoseidonBlindingFactorDeriver", {
|
|
11209
11115
|
enumerable: true,
|
|
11210
|
-
get: function () { return
|
|
11116
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver; }
|
|
11211
11117
|
});
|
|
11212
11118
|
Object.defineProperty(exports, "getPoseidonDecryptor", {
|
|
11213
11119
|
enumerable: true,
|
|
11214
|
-
get: function () { return
|
|
11120
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonDecryptor; }
|
|
11215
11121
|
});
|
|
11216
11122
|
Object.defineProperty(exports, "getPoseidonEncryptor", {
|
|
11217
11123
|
enumerable: true,
|
|
11218
|
-
get: function () { return
|
|
11124
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonEncryptor; }
|
|
11219
11125
|
});
|
|
11220
11126
|
Object.defineProperty(exports, "getPoseidonHasher", {
|
|
11221
11127
|
enumerable: true,
|
|
11222
|
-
get: function () { return
|
|
11128
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonHasher; }
|
|
11223
11129
|
});
|
|
11224
11130
|
Object.defineProperty(exports, "getPoseidonKeystreamBlindingFactorDeriver", {
|
|
11225
11131
|
enumerable: true,
|
|
11226
|
-
get: function () { return
|
|
11132
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver; }
|
|
11227
11133
|
});
|
|
11228
11134
|
Object.defineProperty(exports, "getPoseidonKeystreamGenerator", {
|
|
11229
11135
|
enumerable: true,
|
|
11230
|
-
get: function () { return
|
|
11136
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator; }
|
|
11231
11137
|
});
|
|
11232
11138
|
Object.defineProperty(exports, "getPoseidonPrf", {
|
|
11233
11139
|
enumerable: true,
|
|
11234
|
-
get: function () { return
|
|
11140
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonPrf; }
|
|
11235
11141
|
});
|
|
11236
11142
|
Object.defineProperty(exports, "getPoseidonPrivateKeyDeriver", {
|
|
11237
11143
|
enumerable: true,
|
|
11238
|
-
get: function () { return
|
|
11144
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver; }
|
|
11239
11145
|
});
|
|
11240
11146
|
Object.defineProperty(exports, "getPseudorandomU512Deriver", {
|
|
11241
11147
|
enumerable: true,
|
|
11242
|
-
get: function () { return
|
|
11148
|
+
get: function () { return chunk3LS5P32X_cjs.getPseudorandomU512Deriver; }
|
|
11243
11149
|
});
|
|
11244
11150
|
Object.defineProperty(exports, "getRescueCipher", {
|
|
11245
11151
|
enumerable: true,
|
|
11246
|
-
get: function () { return
|
|
11152
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipher; }
|
|
11247
11153
|
});
|
|
11248
11154
|
Object.defineProperty(exports, "getRescueCipherFromKeyPair", {
|
|
11249
11155
|
enumerable: true,
|
|
11250
|
-
get: function () { return
|
|
11156
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipherFromKeyPair; }
|
|
11251
11157
|
});
|
|
11252
11158
|
Object.defineProperty(exports, "getRescueCipherInstance", {
|
|
11253
11159
|
enumerable: true,
|
|
11254
|
-
get: function () { return
|
|
11160
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipherInstance; }
|
|
11255
11161
|
});
|
|
11256
11162
|
Object.defineProperty(exports, "getRescueCommitmentBlindingFactorDeriver", {
|
|
11257
11163
|
enumerable: true,
|
|
11258
|
-
get: function () { return
|
|
11164
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCommitmentBlindingFactorDeriver; }
|
|
11259
11165
|
});
|
|
11260
11166
|
Object.defineProperty(exports, "getRescueCommitmentGenerator", {
|
|
11261
11167
|
enumerable: true,
|
|
11262
|
-
get: function () { return
|
|
11168
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCommitmentGenerator; }
|
|
11263
11169
|
});
|
|
11264
11170
|
Object.defineProperty(exports, "getRescueDecryptorFromPrivateKey", {
|
|
11265
11171
|
enumerable: true,
|
|
11266
|
-
get: function () { return
|
|
11172
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueDecryptorFromPrivateKey; }
|
|
11267
11173
|
});
|
|
11268
11174
|
Object.defineProperty(exports, "getRescueEncryptorFromPrivateKey", {
|
|
11269
11175
|
enumerable: true,
|
|
11270
|
-
get: function () { return
|
|
11176
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey; }
|
|
11271
11177
|
});
|
|
11272
11178
|
Object.defineProperty(exports, "getRescueEncryptorWithNonceFromPrivateKey", {
|
|
11273
11179
|
enumerable: true,
|
|
11274
|
-
get: function () { return
|
|
11180
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueEncryptorWithNonceFromPrivateKey; }
|
|
11275
11181
|
});
|
|
11276
11182
|
Object.defineProperty(exports, "getRescueKeyGeneratorFromPrivateKey", {
|
|
11277
11183
|
enumerable: true,
|
|
11278
|
-
get: function () { return
|
|
11184
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey; }
|
|
11279
11185
|
});
|
|
11280
11186
|
Object.defineProperty(exports, "getRescuePrimeHashFunction", {
|
|
11281
11187
|
enumerable: true,
|
|
11282
|
-
get: function () { return
|
|
11188
|
+
get: function () { return chunk3LS5P32X_cjs.getRescuePrimeHashFunction; }
|
|
11283
11189
|
});
|
|
11284
11190
|
Object.defineProperty(exports, "getSecondViewingKeyDeriver", {
|
|
11285
11191
|
enumerable: true,
|
|
11286
|
-
get: function () { return
|
|
11192
|
+
get: function () { return chunk3LS5P32X_cjs.getSecondViewingKeyDeriver; }
|
|
11287
11193
|
});
|
|
11288
11194
|
Object.defineProperty(exports, "getUserAccountX25519KeypairDeriver", {
|
|
11289
11195
|
enumerable: true,
|
|
11290
|
-
get: function () { return
|
|
11196
|
+
get: function () { return chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver; }
|
|
11291
11197
|
});
|
|
11292
11198
|
Object.defineProperty(exports, "getUserCommitmentGeneratorFunction", {
|
|
11293
11199
|
enumerable: true,
|
|
11294
|
-
get: function () { return
|
|
11200
|
+
get: function () { return chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction; }
|
|
11295
11201
|
});
|
|
11296
11202
|
Object.defineProperty(exports, "getUtxoCommitmentHashGenerator", {
|
|
11297
11203
|
enumerable: true,
|
|
11298
|
-
get: function () { return
|
|
11204
|
+
get: function () { return chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator; }
|
|
11299
11205
|
});
|
|
11300
11206
|
Object.defineProperty(exports, "getYearlyViewingKeyDeriver", {
|
|
11301
11207
|
enumerable: true,
|
|
11302
|
-
get: function () { return
|
|
11208
|
+
get: function () { return chunk3LS5P32X_cjs.getYearlyViewingKeyDeriver; }
|
|
11209
|
+
});
|
|
11210
|
+
Object.defineProperty(exports, "ClaimUtxoError", {
|
|
11211
|
+
enumerable: true,
|
|
11212
|
+
get: function () { return chunkBL6WXLPV_cjs.ClaimUtxoError; }
|
|
11213
|
+
});
|
|
11214
|
+
Object.defineProperty(exports, "ComputationMonitorError", {
|
|
11215
|
+
enumerable: true,
|
|
11216
|
+
get: function () { return chunkBL6WXLPV_cjs.ComputationMonitorError; }
|
|
11217
|
+
});
|
|
11218
|
+
Object.defineProperty(exports, "ConversionError", {
|
|
11219
|
+
enumerable: true,
|
|
11220
|
+
get: function () { return chunkBL6WXLPV_cjs.ConversionError; }
|
|
11221
|
+
});
|
|
11222
|
+
Object.defineProperty(exports, "CreateUtxoError", {
|
|
11223
|
+
enumerable: true,
|
|
11224
|
+
get: function () { return chunkBL6WXLPV_cjs.CreateUtxoError; }
|
|
11225
|
+
});
|
|
11226
|
+
Object.defineProperty(exports, "EncryptedDepositError", {
|
|
11227
|
+
enumerable: true,
|
|
11228
|
+
get: function () { return chunkBL6WXLPV_cjs.EncryptedDepositError; }
|
|
11229
|
+
});
|
|
11230
|
+
Object.defineProperty(exports, "EncryptedWithdrawalError", {
|
|
11231
|
+
enumerable: true,
|
|
11232
|
+
get: function () { return chunkBL6WXLPV_cjs.EncryptedWithdrawalError; }
|
|
11233
|
+
});
|
|
11234
|
+
Object.defineProperty(exports, "FetchUtxosError", {
|
|
11235
|
+
enumerable: true,
|
|
11236
|
+
get: function () { return chunkBL6WXLPV_cjs.FetchUtxosError; }
|
|
11237
|
+
});
|
|
11238
|
+
Object.defineProperty(exports, "QueryError", {
|
|
11239
|
+
enumerable: true,
|
|
11240
|
+
get: function () { return chunkBL6WXLPV_cjs.QueryError; }
|
|
11241
|
+
});
|
|
11242
|
+
Object.defineProperty(exports, "RegistrationError", {
|
|
11243
|
+
enumerable: true,
|
|
11244
|
+
get: function () { return chunkBL6WXLPV_cjs.RegistrationError; }
|
|
11245
|
+
});
|
|
11246
|
+
Object.defineProperty(exports, "isClaimUtxoError", {
|
|
11247
|
+
enumerable: true,
|
|
11248
|
+
get: function () { return chunkBL6WXLPV_cjs.isClaimUtxoError; }
|
|
11249
|
+
});
|
|
11250
|
+
Object.defineProperty(exports, "isComputationMonitorError", {
|
|
11251
|
+
enumerable: true,
|
|
11252
|
+
get: function () { return chunkBL6WXLPV_cjs.isComputationMonitorError; }
|
|
11253
|
+
});
|
|
11254
|
+
Object.defineProperty(exports, "isConversionError", {
|
|
11255
|
+
enumerable: true,
|
|
11256
|
+
get: function () { return chunkBL6WXLPV_cjs.isConversionError; }
|
|
11257
|
+
});
|
|
11258
|
+
Object.defineProperty(exports, "isCreateUtxoError", {
|
|
11259
|
+
enumerable: true,
|
|
11260
|
+
get: function () { return chunkBL6WXLPV_cjs.isCreateUtxoError; }
|
|
11261
|
+
});
|
|
11262
|
+
Object.defineProperty(exports, "isEncryptedDepositError", {
|
|
11263
|
+
enumerable: true,
|
|
11264
|
+
get: function () { return chunkBL6WXLPV_cjs.isEncryptedDepositError; }
|
|
11265
|
+
});
|
|
11266
|
+
Object.defineProperty(exports, "isEncryptedWithdrawalError", {
|
|
11267
|
+
enumerable: true,
|
|
11268
|
+
get: function () { return chunkBL6WXLPV_cjs.isEncryptedWithdrawalError; }
|
|
11269
|
+
});
|
|
11270
|
+
Object.defineProperty(exports, "isFetchUtxosError", {
|
|
11271
|
+
enumerable: true,
|
|
11272
|
+
get: function () { return chunkBL6WXLPV_cjs.isFetchUtxosError; }
|
|
11273
|
+
});
|
|
11274
|
+
Object.defineProperty(exports, "isQueryError", {
|
|
11275
|
+
enumerable: true,
|
|
11276
|
+
get: function () { return chunkBL6WXLPV_cjs.isQueryError; }
|
|
11277
|
+
});
|
|
11278
|
+
Object.defineProperty(exports, "isRegistrationError", {
|
|
11279
|
+
enumerable: true,
|
|
11280
|
+
get: function () { return chunkBL6WXLPV_cjs.isRegistrationError; }
|
|
11281
|
+
});
|
|
11282
|
+
Object.defineProperty(exports, "bn254Add", {
|
|
11283
|
+
enumerable: true,
|
|
11284
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254Add; }
|
|
11285
|
+
});
|
|
11286
|
+
Object.defineProperty(exports, "bn254ModuloPow", {
|
|
11287
|
+
enumerable: true,
|
|
11288
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254ModuloPow; }
|
|
11289
|
+
});
|
|
11290
|
+
Object.defineProperty(exports, "bn254Mul", {
|
|
11291
|
+
enumerable: true,
|
|
11292
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254Mul; }
|
|
11293
|
+
});
|
|
11294
|
+
Object.defineProperty(exports, "bn254Sub", {
|
|
11295
|
+
enumerable: true,
|
|
11296
|
+
get: function () { return chunkYEZBTYCP_cjs.bn254Sub; }
|
|
11297
|
+
});
|
|
11298
|
+
Object.defineProperty(exports, "computeBn254LimbwiseSumInverse", {
|
|
11299
|
+
enumerable: true,
|
|
11300
|
+
get: function () { return chunkYEZBTYCP_cjs.computeBn254LimbwiseSumInverse; }
|
|
11301
|
+
});
|
|
11302
|
+
Object.defineProperty(exports, "computeBn254ModularInverse", {
|
|
11303
|
+
enumerable: true,
|
|
11304
|
+
get: function () { return chunkYEZBTYCP_cjs.computeBn254ModularInverse; }
|
|
11303
11305
|
});
|
|
11304
11306
|
Object.defineProperty(exports, "bn254FieldElementSampler", {
|
|
11305
11307
|
enumerable: true,
|