@umbra-privacy/sdk 2.0.0 → 2.0.1
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/{chunk-JPDF7BIT.cjs → chunk-3LS5P32X.cjs} +3 -3
- package/dist/{chunk-JPDF7BIT.cjs.map → chunk-3LS5P32X.cjs.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/constants/index.cjs +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/crypto/index.cjs +143 -143
- package/dist/crypto/index.js +2 -2
- package/dist/index.cjs +342 -333
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -10
- package/dist/index.js.map +1 -1
- package/dist/math/index.cjs +1 -1
- package/dist/math/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkNKVMSABR_cjs = require('./chunk-NKVMSABR.cjs');
|
|
4
4
|
var chunkZQOIYCGA_cjs = require('./chunk-ZQOIYCGA.cjs');
|
|
5
|
-
var
|
|
6
|
-
var chunkBL6WXLPV_cjs = require('./chunk-BL6WXLPV.cjs');
|
|
7
|
-
var chunkYEZBTYCP_cjs = require('./chunk-YEZBTYCP.cjs');
|
|
8
|
-
var chunkY55PYKXH_cjs = require('./chunk-Y55PYKXH.cjs');
|
|
9
|
-
var chunkFSK2ICMB_cjs = require('./chunk-FSK2ICMB.cjs');
|
|
5
|
+
var chunk3LS5P32X_cjs = require('./chunk-3LS5P32X.cjs');
|
|
10
6
|
var chunkZY3TSHMJ_cjs = require('./chunk-ZY3TSHMJ.cjs');
|
|
11
7
|
var chunkCFFLOE7D_cjs = require('./chunk-CFFLOE7D.cjs');
|
|
12
8
|
require('./chunk-TQQZGNOI.cjs');
|
|
9
|
+
var chunkBL6WXLPV_cjs = require('./chunk-BL6WXLPV.cjs');
|
|
10
|
+
var chunkYEZBTYCP_cjs = require('./chunk-YEZBTYCP.cjs');
|
|
11
|
+
var chunkY55PYKXH_cjs = require('./chunk-Y55PYKXH.cjs');
|
|
13
12
|
require('./chunk-DMPMQ74B.cjs');
|
|
14
13
|
var chunk5GUSMQ74_cjs = require('./chunk-5GUSMQ74.cjs');
|
|
14
|
+
var chunkFSK2ICMB_cjs = require('./chunk-FSK2ICMB.cjs');
|
|
15
15
|
require('./chunk-QJAUUYZU.cjs');
|
|
16
16
|
var chunkAXD7LXYY_cjs = require('./chunk-AXD7LXYY.cjs');
|
|
17
17
|
var chunkENVYYEM4_cjs = require('./chunk-ENVYYEM4.cjs');
|
|
@@ -804,11 +804,20 @@ async function getUmbraClient(args, deps) {
|
|
|
804
804
|
chunkPK6SKIKE_cjs.__name(getUmbraClient, "getUmbraClient");
|
|
805
805
|
|
|
806
806
|
// src/umbra/constants.ts
|
|
807
|
-
var UMBRA_MESSAGE_TO_SIGN = `
|
|
808
|
-
|
|
807
|
+
var UMBRA_MESSAGE_TO_SIGN = `Umbra Protocol – User Consent & Acknowledgement
|
|
808
|
+
|
|
809
|
+
Please read carefully before continuing. Umbra is a non-custodial, open-source protocol. Umbra does not hold, control, manage, or access your digital assets, private keys, viewing keys, transactions, or personal data. All interactions with the Umbra protocol occur through autonomous smart contracts and wallet-signed transactions executed directly on the blockchain.
|
|
810
|
+
|
|
811
|
+
By using the Umbra protocol, you acknowledge and agree that:
|
|
812
|
+
|
|
813
|
+
1. You are solely responsible for managing your wallet, private keys, privacy settings, viewing key disclosures, and any transactions or interactions you authorize.
|
|
814
|
+
2. Blockchain transactions are generally irreversible, and smart contracts may contain bugs, vulnerabilities, or unintended behavior.
|
|
815
|
+
3. Errors, misuse, misconfiguration, third-party tools, relayers, or loss of keys may result in permanent and unrecoverable loss of assets or privacy.
|
|
816
|
+
4. Privacy features are designed to enhance confidentiality but do not guarantee absolute or unconditional anonymity.
|
|
817
|
+
5. Transactions may involve independent relayers or third-party infrastructure that Umbra does not operate, control, or supervise.
|
|
818
|
+
6. By clicking "I Agree", you confirm that you have read, understood, and accepted all applicable terms, policies, risk disclosures, notices, and other documentation governing your access to and use of the Umbra protocol, as published or made available by Umbra from time to time.
|
|
809
819
|
|
|
810
|
-
You
|
|
811
|
-
`;
|
|
820
|
+
You acknowledge that such documentation may be updated or modified, and that continued access to or use of the Umbra Protocol constitutes acceptance of the then-current versions. If you do not agree, do not proceed and discontinue use of the Umbra protocol.`;
|
|
812
821
|
var FEE_OFFSETS = {
|
|
813
822
|
/**
|
|
814
823
|
* Offset used in `FeeVault` PDA derivation for the unified protocol fees pool.
|
|
@@ -846,7 +855,7 @@ var BPS_DIVISOR = 16384n;
|
|
|
846
855
|
var TREE_DEPTH = 4;
|
|
847
856
|
var MAX_LEAVES = 1 << TREE_DEPTH;
|
|
848
857
|
async function computeLeafHash(slab) {
|
|
849
|
-
const aggregator =
|
|
858
|
+
const aggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
850
859
|
return await aggregator([
|
|
851
860
|
slab.amountLowerBound,
|
|
852
861
|
slab.amountUpperBound,
|
|
@@ -861,7 +870,7 @@ async function buildFullTree(slabs) {
|
|
|
861
870
|
`Too many fee slabs: ${String(slabs.length)} (max ${String(MAX_LEAVES)})`
|
|
862
871
|
);
|
|
863
872
|
}
|
|
864
|
-
const hasher =
|
|
873
|
+
const hasher = chunk3LS5P32X_cjs.getPoseidonHasher();
|
|
865
874
|
const leafHashes = Array.from({ length: MAX_LEAVES }, () => 0n);
|
|
866
875
|
for (const [index, slab] of slabs.entries()) {
|
|
867
876
|
leafHashes[index] = await computeLeafHash(slab);
|
|
@@ -1135,9 +1144,9 @@ function getClaimableUtxoScannerFunction(args, deps) {
|
|
|
1135
1144
|
);
|
|
1136
1145
|
}
|
|
1137
1146
|
const fetchUtxoData = deps?.fetchUtxoData ?? client.fetchUtxoData;
|
|
1138
|
-
const aesDecryptor = deps?.aesDecryptor ??
|
|
1147
|
+
const aesDecryptor = deps?.aesDecryptor ?? chunk3LS5P32X_cjs.getAesDecryptor();
|
|
1139
1148
|
const x25519GetSharedSecret = deps?.x25519GetSharedSecret ?? ((privateKey, publicKey) => ed25519_js.x25519.getSharedSecret(privateKey, publicKey));
|
|
1140
|
-
const mvkX25519KeypairDeriver =
|
|
1149
|
+
const mvkX25519KeypairDeriver = chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({
|
|
1141
1150
|
client
|
|
1142
1151
|
});
|
|
1143
1152
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function fetchClaimableUtxos(treeIndex, startInsertionIndex, endInsertionIndex) {
|
|
@@ -1483,10 +1492,10 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1483
1492
|
depositModifiedGenerationIndexBytes[index2] = Number(indexValue & 0xffn);
|
|
1484
1493
|
indexValue >>= 8n;
|
|
1485
1494
|
}
|
|
1486
|
-
const nullifier =
|
|
1495
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(
|
|
1487
1496
|
depositModifiedGenerationIndexBytes
|
|
1488
1497
|
);
|
|
1489
|
-
const randomSecret =
|
|
1498
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(
|
|
1490
1499
|
depositModifiedGenerationIndexBytes
|
|
1491
1500
|
);
|
|
1492
1501
|
perLeafNullifiers.push(nullifier);
|
|
@@ -1663,7 +1672,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1663
1672
|
const blindingFactorOffset = chunk5GUSMQ74_cjs.decodeU256BeBytesToU256(
|
|
1664
1673
|
blindingFactorOffsetBytes
|
|
1665
1674
|
);
|
|
1666
|
-
const blindingFactor =
|
|
1675
|
+
const blindingFactor = chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor(blindingFactorOffset);
|
|
1667
1676
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(
|
|
1668
1677
|
blindingFactor,
|
|
1669
1678
|
`linkerKeystreamBlindingFactor[${String(leafIndex)}][${String(keyIndex)}]`
|
|
@@ -1743,7 +1752,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1743
1752
|
}
|
|
1744
1753
|
const nullifierHashesAggregatedHash = await poseidonAggregator(nullifierHashes);
|
|
1745
1754
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifierHashesAggregatedHash, "nullifierHashesAggregatedHash");
|
|
1746
|
-
const rcEncryptor =
|
|
1755
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
1747
1756
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
1748
1757
|
});
|
|
1749
1758
|
const randomFactorBytes = sha3Addons_js.kmac256(
|
|
@@ -1811,7 +1820,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1811
1820
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedMvkHigh, "rcEncryptedMvkHigh");
|
|
1812
1821
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorLow, "rcEncryptedRandomFactorLow");
|
|
1813
1822
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorHigh, "rcEncryptedRandomFactorHigh");
|
|
1814
|
-
const rcKeyGenerator =
|
|
1823
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
1815
1824
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
1816
1825
|
});
|
|
1817
1826
|
const rcCounters = [
|
|
@@ -1878,7 +1887,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1878
1887
|
rescueEncryptionCommitmentBlindingFactorOffsetBytes
|
|
1879
1888
|
);
|
|
1880
1889
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(blindingFactorForRescueCommitment, "blindingFactorForRescueCommitment");
|
|
1881
|
-
const rescueEncryptionCommitmentGenerator =
|
|
1890
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
1882
1891
|
const getRcKey = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((counter) => {
|
|
1883
1892
|
const key = rcKeys.get(counter);
|
|
1884
1893
|
if (key === void 0) {
|
|
@@ -1949,7 +1958,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
1949
1958
|
const fiatShamirChallenge = fiatShamirChallengeGenerator(fiatShamirInputBytes);
|
|
1950
1959
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(fiatShamirChallenge, "fiatShamirChallenge");
|
|
1951
1960
|
const fiatShamirChallengeLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(fiatShamirChallenge);
|
|
1952
|
-
const modulePow =
|
|
1961
|
+
const modulePow = chunk3LS5P32X_cjs.getModuloPowCurve25519Function();
|
|
1953
1962
|
const challengeSquared = modulePow(fiatShamirChallenge, 2n);
|
|
1954
1963
|
const challengeCubed = modulePow(fiatShamirChallenge, 3n);
|
|
1955
1964
|
const challengeToFourth = modulePow(fiatShamirChallenge, 4n);
|
|
@@ -2032,7 +2041,7 @@ async function processUtxoInBatch(args, deps) {
|
|
|
2032
2041
|
inverseForKeysForRandomFactorHighLimbs,
|
|
2033
2042
|
"inverseForKeysForRandomFactorHighLimbs"
|
|
2034
2043
|
);
|
|
2035
|
-
const polynomialEvaluator =
|
|
2044
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
2036
2045
|
const polynomialEvaluationResultScalar = polynomialEvaluator(
|
|
2037
2046
|
[
|
|
2038
2047
|
chunkZY3TSHMJ_cjs.createCurve25519FieldElement(finalAmount),
|
|
@@ -2480,19 +2489,19 @@ function getReceiverClaimableUtxoToEncryptedBalanceClaimerFunction(args, deps) {
|
|
|
2480
2489
|
const pollingIntervalMs = deps.pollingIntervalMs ?? 3e3;
|
|
2481
2490
|
const timeoutMs = deps.timeoutMs ?? 12e4;
|
|
2482
2491
|
const onProgress = deps.onProgress;
|
|
2483
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
2484
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
2485
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
2486
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
2487
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
2488
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
2489
|
-
const poseidonHasher = deps.crypto?.poseidonHasher ??
|
|
2490
|
-
const poseidonAggregator = deps.crypto?.poseidonAggregator ??
|
|
2491
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
2492
|
-
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ??
|
|
2493
|
-
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ??
|
|
2494
|
-
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ??
|
|
2495
|
-
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();
|
|
2496
2505
|
const generateRandomU2562 = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
2497
2506
|
const generateRandomU1282 = deps.random?.generateRandomU128 ?? chunkZY3TSHMJ_cjs.generateRandomU128;
|
|
2498
2507
|
return async (utxos, optionalData, microLamportsPerAcu) => {
|
|
@@ -2796,7 +2805,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
2796
2805
|
depositModifiedGenerationIndexBytes[index] = Number(indexValueForExpansion & 0xffn);
|
|
2797
2806
|
indexValueForExpansion >>= 8n;
|
|
2798
2807
|
}
|
|
2799
|
-
const expandedModifiedGenerationIndex =
|
|
2808
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(
|
|
2800
2809
|
depositModifiedGenerationIndexBytes
|
|
2801
2810
|
);
|
|
2802
2811
|
let ephemeralOffset = 0n;
|
|
@@ -2868,10 +2877,10 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
2868
2877
|
depositModifiedGenerationIndexBytes2[index2] = Number(indexValue & 0xffn);
|
|
2869
2878
|
indexValue >>= 8n;
|
|
2870
2879
|
}
|
|
2871
|
-
const nullifier =
|
|
2880
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(
|
|
2872
2881
|
depositModifiedGenerationIndexBytes2
|
|
2873
2882
|
);
|
|
2874
|
-
const randomSecret =
|
|
2883
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(
|
|
2875
2884
|
depositModifiedGenerationIndexBytes2
|
|
2876
2885
|
);
|
|
2877
2886
|
perLeafNullifiers.push(nullifier);
|
|
@@ -3048,7 +3057,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3048
3057
|
const blindingFactorOffset = chunk5GUSMQ74_cjs.decodeU256BeBytesToU256(
|
|
3049
3058
|
blindingFactorOffsetBytes
|
|
3050
3059
|
);
|
|
3051
|
-
const blindingFactor =
|
|
3060
|
+
const blindingFactor = chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor(blindingFactorOffset);
|
|
3052
3061
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(
|
|
3053
3062
|
blindingFactor,
|
|
3054
3063
|
`linkerKeystreamBlindingFactor[${String(leafIndex)}][${String(keyIndex)}]`
|
|
@@ -3127,7 +3136,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3127
3136
|
}
|
|
3128
3137
|
const nullifierHashesAggregatedHash = await poseidonAggregator(nullifierHashes);
|
|
3129
3138
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifierHashesAggregatedHash, "nullifierHashesAggregatedHash");
|
|
3130
|
-
const rcEncryptor =
|
|
3139
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
3131
3140
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
3132
3141
|
});
|
|
3133
3142
|
const randomFactorBytes = sha3Addons_js.kmac256(
|
|
@@ -3195,7 +3204,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3195
3204
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedMvkHigh, "rcEncryptedMvkHigh");
|
|
3196
3205
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorLow, "rcEncryptedRandomFactorLow");
|
|
3197
3206
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorHigh, "rcEncryptedRandomFactorHigh");
|
|
3198
|
-
const rcKeyGenerator =
|
|
3207
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
3199
3208
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
3200
3209
|
});
|
|
3201
3210
|
const rcCounters = [
|
|
@@ -3262,7 +3271,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3262
3271
|
rescueEncryptionCommitmentBlindingFactorOffsetBytes
|
|
3263
3272
|
);
|
|
3264
3273
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(blindingFactorForRescueCommitment, "blindingFactorForRescueCommitment");
|
|
3265
|
-
const rescueEncryptionCommitmentGenerator =
|
|
3274
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
3266
3275
|
const rcEncryptionCommitment = await rescueEncryptionCommitmentGenerator(
|
|
3267
3276
|
[
|
|
3268
3277
|
rcEncryptedFinalAmount,
|
|
@@ -3322,7 +3331,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3322
3331
|
const fiatShamirChallenge = fiatShamirChallengeGenerator(fiatShamirInputBytes);
|
|
3323
3332
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(fiatShamirChallenge, "fiatShamirChallenge");
|
|
3324
3333
|
const fiatShamirChallengeLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(fiatShamirChallenge);
|
|
3325
|
-
const modulePow =
|
|
3334
|
+
const modulePow = chunk3LS5P32X_cjs.getModuloPowCurve25519Function();
|
|
3326
3335
|
const challengeSquared = modulePow(fiatShamirChallenge, 2n);
|
|
3327
3336
|
const challengeCubed = modulePow(fiatShamirChallenge, 3n);
|
|
3328
3337
|
const challengeToFourth = modulePow(fiatShamirChallenge, 4n);
|
|
@@ -3409,7 +3418,7 @@ async function processUtxoInBatch2(args, deps) {
|
|
|
3409
3418
|
inverseForKeysForRandomFactorHighLimbs,
|
|
3410
3419
|
"inverseForKeysForRandomFactorHighLimbs"
|
|
3411
3420
|
);
|
|
3412
|
-
const polynomialEvaluator =
|
|
3421
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
3413
3422
|
const polynomialEvaluationResultScalar = polynomialEvaluator(
|
|
3414
3423
|
[
|
|
3415
3424
|
chunkZY3TSHMJ_cjs.createCurve25519FieldElement(finalAmount),
|
|
@@ -3831,22 +3840,22 @@ function getSelfClaimableUtxoToEncryptedBalanceClaimerFunction(args, deps) {
|
|
|
3831
3840
|
const pollingIntervalMs = deps.pollingIntervalMs ?? 3e3;
|
|
3832
3841
|
const timeoutMs = deps.timeoutMs ?? 12e4;
|
|
3833
3842
|
const onProgress = deps.onProgress;
|
|
3834
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
3835
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
3843
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
3844
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
3836
3845
|
client
|
|
3837
3846
|
});
|
|
3838
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
3839
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
3847
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
3848
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
3840
3849
|
client
|
|
3841
3850
|
});
|
|
3842
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
3843
|
-
const poseidonHasher = deps.crypto?.poseidonHasher ??
|
|
3844
|
-
const poseidonAggregator = deps.crypto?.poseidonAggregator ??
|
|
3845
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
3846
|
-
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ??
|
|
3847
|
-
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ??
|
|
3848
|
-
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ??
|
|
3849
|
-
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();
|
|
3850
3859
|
const generateRandomU2562 = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
3851
3860
|
const generateRandomU1282 = deps.random?.generateRandomU128 ?? chunkZY3TSHMJ_cjs.generateRandomU128;
|
|
3852
3861
|
return async (utxos, optionalData, microLamportsPerAcu) => {
|
|
@@ -4148,7 +4157,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4148
4157
|
depositModifiedGenerationIndexBytes[index] = Number(indexValueForExpansion & 0xffn);
|
|
4149
4158
|
indexValueForExpansion >>= 8n;
|
|
4150
4159
|
}
|
|
4151
|
-
const expandedModifiedGenerationIndex =
|
|
4160
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(
|
|
4152
4161
|
depositModifiedGenerationIndexBytes
|
|
4153
4162
|
);
|
|
4154
4163
|
let ephemeralOffset = 0n;
|
|
@@ -4220,10 +4229,10 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4220
4229
|
depositModifiedGenerationIndexBytes2[index2] = Number(indexValue & 0xffn);
|
|
4221
4230
|
indexValue >>= 8n;
|
|
4222
4231
|
}
|
|
4223
|
-
const nullifier =
|
|
4232
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(
|
|
4224
4233
|
depositModifiedGenerationIndexBytes2
|
|
4225
4234
|
);
|
|
4226
|
-
const randomSecret =
|
|
4235
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(
|
|
4227
4236
|
depositModifiedGenerationIndexBytes2
|
|
4228
4237
|
);
|
|
4229
4238
|
perLeafNullifiers.push(nullifier);
|
|
@@ -4344,7 +4353,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4344
4353
|
const blindingFactorOffset = chunk5GUSMQ74_cjs.decodeU256BeBytesToU256(
|
|
4345
4354
|
blindingFactorOffsetBytes
|
|
4346
4355
|
);
|
|
4347
|
-
const blindingFactor =
|
|
4356
|
+
const blindingFactor = chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor(blindingFactorOffset);
|
|
4348
4357
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(
|
|
4349
4358
|
blindingFactor,
|
|
4350
4359
|
`linkerKeystreamBlindingFactor[${String(leafIndex)}][${String(keyIndex)}]`
|
|
@@ -4423,7 +4432,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4423
4432
|
}
|
|
4424
4433
|
const nullifierHashesAggregatedHash = await poseidonAggregator(nullifierHashes);
|
|
4425
4434
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifierHashesAggregatedHash, "nullifierHashesAggregatedHash");
|
|
4426
|
-
const rcEncryptor =
|
|
4435
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
4427
4436
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
4428
4437
|
});
|
|
4429
4438
|
const randomFactorBytes = sha3Addons_js.kmac256(
|
|
@@ -4486,7 +4495,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4486
4495
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedMvkHigh, "rcEncryptedMvkHigh");
|
|
4487
4496
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorLow, "rcEncryptedRandomFactorLow");
|
|
4488
4497
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(rcEncryptedRandomFactorHigh, "rcEncryptedRandomFactorHigh");
|
|
4489
|
-
const rcKeyGenerator =
|
|
4498
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
4490
4499
|
umbraX25519PublicKey: networkConfig.mxePubkey
|
|
4491
4500
|
});
|
|
4492
4501
|
const rcCounters = [
|
|
@@ -4534,7 +4543,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4534
4543
|
rescueEncryptionCommitmentBlindingFactorOffsetBytes
|
|
4535
4544
|
);
|
|
4536
4545
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(blindingFactorForRescueCommitment, "blindingFactorForRescueCommitment");
|
|
4537
|
-
const rescueEncryptionCommitmentGenerator =
|
|
4546
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
4538
4547
|
const rcEncryptionCommitment = await rescueEncryptionCommitmentGenerator(
|
|
4539
4548
|
[
|
|
4540
4549
|
rcEncryptedMvkLow,
|
|
@@ -4585,7 +4594,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4585
4594
|
const fiatShamirChallenge = fiatShamirChallengeGenerator(fiatShamirInputBytes);
|
|
4586
4595
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(fiatShamirChallenge, "fiatShamirChallenge");
|
|
4587
4596
|
const fiatShamirChallengeLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(fiatShamirChallenge);
|
|
4588
|
-
const modulePow =
|
|
4597
|
+
const modulePow = chunk3LS5P32X_cjs.getModuloPowCurve25519Function();
|
|
4589
4598
|
const challengeSquared = modulePow(fiatShamirChallenge, 2n);
|
|
4590
4599
|
chunkLTCKPTZC_cjs.assertCurve25519FieldElement(challengeSquared, "challengeSquared");
|
|
4591
4600
|
const challengeSquaredLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(challengeSquared);
|
|
@@ -4635,7 +4644,7 @@ async function processUtxoInBatch3(args, deps) {
|
|
|
4635
4644
|
inverseForKeysForRandomFactorHighLimbs,
|
|
4636
4645
|
"inverseForKeysForRandomFactorHighLimbs"
|
|
4637
4646
|
);
|
|
4638
|
-
const polynomialEvaluator =
|
|
4647
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
4639
4648
|
const polynomialEvaluationResultScalar = polynomialEvaluator(
|
|
4640
4649
|
[ephemeralMvkLow, ephemeralMvkHigh, randomFactorForPolynomialCommitment],
|
|
4641
4650
|
fiatShamirChallenge
|
|
@@ -4976,21 +4985,21 @@ function getSelfClaimableUtxoToPublicBalanceClaimerFunction(args, deps) {
|
|
|
4976
4985
|
const pollingIntervalMs = deps.pollingIntervalMs ?? 3e3;
|
|
4977
4986
|
const timeoutMs = deps.timeoutMs ?? 12e4;
|
|
4978
4987
|
const onProgress = deps.onProgress;
|
|
4979
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
4980
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
4988
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
4989
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
4981
4990
|
client
|
|
4982
4991
|
});
|
|
4983
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
4984
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
4992
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
4993
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
4985
4994
|
client
|
|
4986
4995
|
});
|
|
4987
|
-
const poseidonHasher = deps.crypto?.poseidonHasher ??
|
|
4988
|
-
const poseidonAggregator = deps.crypto?.poseidonAggregator ??
|
|
4989
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
4990
|
-
const poseidonKeystreamGeneratorFunction = deps.crypto?.poseidonKeystreamGenerator ??
|
|
4991
|
-
const userCommitmentGeneratorFunction = deps.crypto?.userCommitmentGenerator ??
|
|
4992
|
-
const keystreamCommitmentGeneratorFunction = deps.crypto?.keystreamCommitmentGenerator ??
|
|
4993
|
-
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();
|
|
4994
5003
|
const generateRandomU2562 = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
4995
5004
|
const generateRandomU1282 = deps.random?.generateRandomU128 ?? chunkZY3TSHMJ_cjs.generateRandomU128;
|
|
4996
5005
|
const protocolFeeProviderFn = deps.fees?.protocolFeeProvider ?? getHardcodedClaimUtxoProtocolFeeProvider();
|
|
@@ -5002,7 +5011,7 @@ function getSelfClaimableUtxoToPublicBalanceClaimerFunction(args, deps) {
|
|
|
5002
5011
|
}
|
|
5003
5012
|
const masterSeedBytes = await client.masterSeed.getMasterSeed();
|
|
5004
5013
|
const generationIndex = providedGenerationIndex ?? generateRandomU2562();
|
|
5005
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
5014
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
5006
5015
|
const keypairResult = await mvkX25519KeypairDeriver();
|
|
5007
5016
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
5008
5017
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
@@ -5109,7 +5118,7 @@ function getComplianceGrantIssuerFunction(args, deps) {
|
|
|
5109
5118
|
const { signer } = client;
|
|
5110
5119
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5111
5120
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5112
|
-
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ??
|
|
5121
|
+
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
5113
5122
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createUserGrantedComplianceGrant(receiver, granterX25519, receiverX25519, nonce, optionalData, callbacks) {
|
|
5114
5123
|
const userAddress = signer.address;
|
|
5115
5124
|
const programId = client.networkConfig.programId;
|
|
@@ -5153,7 +5162,7 @@ function getComplianceGrantRevokerFunction(args, deps) {
|
|
|
5153
5162
|
const { signer } = client;
|
|
5154
5163
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5155
5164
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5156
|
-
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ??
|
|
5165
|
+
const masterViewingKeyX25519KeypairDeriver = deps?.keys?.masterViewingKeyX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
5157
5166
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function deleteUserGrantedComplianceGrant(receiver, granterX25519, receiverX25519, nonce, optionalData, callbacks) {
|
|
5158
5167
|
const userAddress = signer.address;
|
|
5159
5168
|
const programId = client.networkConfig.programId;
|
|
@@ -5687,7 +5696,7 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5687
5696
|
const accountInfoProvider = deps?.rpc?.accountInfoProvider ?? client.accountInfoProvider;
|
|
5688
5697
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
5689
5698
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
5690
|
-
const mintX25519KeypairDeriver = deps?.keys?.mintX25519KeypairDeriver ??
|
|
5699
|
+
const mintX25519KeypairDeriver = deps?.keys?.mintX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMintX25519KeypairDeriver({ client });
|
|
5691
5700
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function rotateMintX25519EncryptionKey(mint, optionalData, callbacks, microLamportsPerAcu, options) {
|
|
5692
5701
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
5693
5702
|
const userAddress = signer.address;
|
|
@@ -6356,32 +6365,32 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6356
6365
|
const factoryCloseProofAccountCallbacks = deps.hooks?.closeProofAccount;
|
|
6357
6366
|
const factoryCreateProofAccountCallbacks = deps.hooks?.createProofAccount;
|
|
6358
6367
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
6359
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
6360
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
6361
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
6362
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
6363
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
6364
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
6365
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
6366
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
6368
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
6369
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
6370
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
6371
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
6372
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
6373
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
6374
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
6375
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({
|
|
6367
6376
|
client
|
|
6368
6377
|
});
|
|
6369
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
6370
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
6378
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
6379
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({
|
|
6371
6380
|
client
|
|
6372
6381
|
});
|
|
6373
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
6374
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
6375
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
6376
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
6377
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
6378
|
-
const userCommitmentGenerator =
|
|
6379
|
-
const rescueEncryptionCommitmentGenerator =
|
|
6380
|
-
const poseidonAggregator =
|
|
6381
|
-
const fiatShamirChallengeGenerator =
|
|
6382
|
-
const challengePowersFunction =
|
|
6383
|
-
const polynomialEvaluator =
|
|
6384
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
6382
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
6383
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
6384
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
6385
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
6386
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
6387
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
6388
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
6389
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
6390
|
+
const fiatShamirChallengeGenerator = chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
6391
|
+
const challengePowersFunction = chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
6392
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
6393
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
6385
6394
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
6386
6395
|
const generateComputationOffsetFunction = deps.random?.generateComputationOffset ?? chunkZY3TSHMJ_cjs.generateComputationOffset;
|
|
6387
6396
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createSelfClaimableUtxo(args2, options) {
|
|
@@ -6409,12 +6418,12 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6409
6418
|
masterSeed,
|
|
6410
6419
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
6411
6420
|
);
|
|
6412
|
-
const expandedModifiedGenerationIndex =
|
|
6421
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6413
6422
|
let expandedModifiedGenerationIndexU256 = 0n;
|
|
6414
6423
|
for (let index = 0; index < 32; index++) {
|
|
6415
6424
|
expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
6416
6425
|
}
|
|
6417
|
-
const proofAccountOffsetBytes =
|
|
6426
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6418
6427
|
let proofAccountOffset = 0n;
|
|
6419
6428
|
for (let index = 0; index < 16; index++) {
|
|
6420
6429
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
@@ -6480,9 +6489,9 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6480
6489
|
);
|
|
6481
6490
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
6482
6491
|
const ephemeralOffset = expandedModifiedGenerationIndexU256;
|
|
6483
|
-
const randomSecret =
|
|
6492
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6484
6493
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
6485
|
-
const nullifier =
|
|
6494
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
6486
6495
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
6487
6496
|
const ephemeralMasterViewingKey = await ephemeralUtxoMvkGenerator(ephemeralOffset);
|
|
6488
6497
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(ephemeralMasterViewingKey);
|
|
@@ -6573,10 +6582,10 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6573
6582
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
6574
6583
|
chunkLTCKPTZC_cjs.assertX25519PrivateKey(clientX25519PrivateKey);
|
|
6575
6584
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
6576
|
-
const rcEncryptor =
|
|
6585
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
6577
6586
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
6578
6587
|
});
|
|
6579
|
-
const randomFactorForPolynomialCommitment =
|
|
6588
|
+
const randomFactorForPolynomialCommitment = chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex(
|
|
6580
6589
|
modifiedGenerationIndex
|
|
6581
6590
|
);
|
|
6582
6591
|
chunkLTCKPTZC_cjs.assertU256(randomFactorForPolynomialCommitment);
|
|
@@ -6612,7 +6621,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6612
6621
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedProtocolFees);
|
|
6613
6622
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorLow);
|
|
6614
6623
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorHigh);
|
|
6615
|
-
const rcKeyGenerator =
|
|
6624
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
6616
6625
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
6617
6626
|
});
|
|
6618
6627
|
const rcEncryptionKeys = await rcKeyGenerator(
|
|
@@ -6665,7 +6674,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
6665
6674
|
const rcEncryptionKeyForRandomFactorHighAsLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(
|
|
6666
6675
|
toU256(rcEncryptionKeyForRandomFactorHigh)
|
|
6667
6676
|
);
|
|
6668
|
-
const rescueEncryptionCommitmentBlindingFactor =
|
|
6677
|
+
const rescueEncryptionCommitmentBlindingFactor = chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex(
|
|
6669
6678
|
modifiedGenerationIndex
|
|
6670
6679
|
);
|
|
6671
6680
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(rescueEncryptionCommitmentBlindingFactor);
|
|
@@ -7344,24 +7353,24 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7344
7353
|
const factoryCloseProofAccountCallbacks = deps.hooks?.closeProofAccount;
|
|
7345
7354
|
const factoryCreateProofAccountCallbacks = deps.hooks?.createProofAccount;
|
|
7346
7355
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
7347
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
7348
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
7349
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
7350
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
7351
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
7352
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
7353
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
7354
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
7355
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
7356
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
7357
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
7358
|
-
const userCommitmentGenerator =
|
|
7359
|
-
const rescueEncryptionCommitmentGenerator =
|
|
7360
|
-
const poseidonAggregator =
|
|
7361
|
-
const fiatShamirChallengeGenerator =
|
|
7362
|
-
const challengePowersFunction =
|
|
7363
|
-
const polynomialEvaluator =
|
|
7364
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
7356
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
7357
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
7358
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
7359
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
7360
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
7361
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
7362
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
7363
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
7364
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
7365
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
7366
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
7367
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
7368
|
+
const rescueEncryptionCommitmentGenerator = chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
7369
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
7370
|
+
const fiatShamirChallengeGenerator = chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
7371
|
+
const challengePowersFunction = chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
7372
|
+
const polynomialEvaluator = chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
7373
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
7365
7374
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
7366
7375
|
const generateComputationOffsetFunction = deps.random?.generateComputationOffset ?? chunkZY3TSHMJ_cjs.generateComputationOffset;
|
|
7367
7376
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createReceiverClaimableUtxo(args2, options) {
|
|
@@ -7385,12 +7394,12 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7385
7394
|
masterSeed,
|
|
7386
7395
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
7387
7396
|
);
|
|
7388
|
-
const expandedModifiedGenerationIndex =
|
|
7397
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7389
7398
|
let _expandedModifiedGenerationIndexU256 = 0n;
|
|
7390
7399
|
for (let index = 0; index < 32; index++) {
|
|
7391
7400
|
_expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
7392
7401
|
}
|
|
7393
|
-
const proofAccountOffsetBytes =
|
|
7402
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7394
7403
|
let proofAccountOffset = 0n;
|
|
7395
7404
|
for (let index = 0; index < 16; index++) {
|
|
7396
7405
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
@@ -7484,9 +7493,9 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7484
7493
|
senderPrivateKeyBlindingFactor
|
|
7485
7494
|
);
|
|
7486
7495
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
7487
|
-
const randomSecret =
|
|
7496
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7488
7497
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
7489
|
-
const nullifier =
|
|
7498
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
7490
7499
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
7491
7500
|
const unlockingUserCommitment = receiverUserCommitment;
|
|
7492
7501
|
const h2Hash = await h2Generator.generateH2({
|
|
@@ -7563,10 +7572,10 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7563
7572
|
const clientX25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
7564
7573
|
chunkLTCKPTZC_cjs.assertX25519PrivateKey(clientX25519PrivateKey);
|
|
7565
7574
|
const clientX25519PublicKey = keypairResult.x25519Keypair.publicKey;
|
|
7566
|
-
const rcEncryptor =
|
|
7575
|
+
const rcEncryptor = chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey(clientX25519PrivateKey, {
|
|
7567
7576
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
7568
7577
|
});
|
|
7569
|
-
const randomFactorForPolynomialCommitment =
|
|
7578
|
+
const randomFactorForPolynomialCommitment = chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex(
|
|
7570
7579
|
modifiedGenerationIndex
|
|
7571
7580
|
);
|
|
7572
7581
|
chunkLTCKPTZC_cjs.assertU256(randomFactorForPolynomialCommitment);
|
|
@@ -7602,7 +7611,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7602
7611
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedProtocolFees);
|
|
7603
7612
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorLow);
|
|
7604
7613
|
chunkLTCKPTZC_cjs.assertRcCiphertext(rcEncryptedRandomFactorHigh);
|
|
7605
|
-
const rcKeyGenerator =
|
|
7614
|
+
const rcKeyGenerator = chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(clientX25519PrivateKey, {
|
|
7606
7615
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
7607
7616
|
});
|
|
7608
7617
|
const rcEncryptionKeys = await rcKeyGenerator(
|
|
@@ -7655,7 +7664,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7655
7664
|
const rcEncryptionKeyForRandomFactorHighAsLimbs = chunkZY3TSHMJ_cjs.convertU256ToBase85Limbs(
|
|
7656
7665
|
toU2562(rcEncryptionKeyForRandomFactorHigh)
|
|
7657
7666
|
);
|
|
7658
|
-
const rescueEncryptionCommitmentBlindingFactor =
|
|
7667
|
+
const rescueEncryptionCommitmentBlindingFactor = chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex(
|
|
7659
7668
|
modifiedGenerationIndex
|
|
7660
7669
|
);
|
|
7661
7670
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(rescueEncryptionCommitmentBlindingFactor);
|
|
@@ -8298,24 +8307,24 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8298
8307
|
const transactionForwarder = deps.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
8299
8308
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
8300
8309
|
const getEpochInfo = deps.rpc?.epochInfo ?? client.epochInfoProvider;
|
|
8301
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
8302
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
8303
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
8304
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
8305
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
8306
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
8307
|
-
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ??
|
|
8308
|
-
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ??
|
|
8309
|
-
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ??
|
|
8310
|
-
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ??
|
|
8311
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
8312
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
8313
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
8314
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
8315
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
8316
|
-
const userCommitmentGenerator =
|
|
8317
|
-
const poseidonAggregator =
|
|
8318
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
8310
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
8311
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8312
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
8313
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
8314
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
8315
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
8316
|
+
const ephemeralUtxoMvkGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver({ client });
|
|
8317
|
+
const ephemeralUtxoMvkBlindingFactorGenerator = deps.keys?.ephemeralUtxoMasterViewingKeyBlindingFactorDeriver ?? chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8318
|
+
const ephemeralUtxoPoseidonKeyGenerator = deps.keys?.ephemeralUtxoPoseidonKeyGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver({ client });
|
|
8319
|
+
const ephemeralUtxoPoseidonKeyBlindingFactorGenerator = deps.keys?.ephemeralUtxoPoseidonKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver({ client });
|
|
8320
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
8321
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
8322
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
8323
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
8324
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
8325
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
8326
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
8327
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
8319
8328
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
8320
8329
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createSelfClaimableUtxoFromPublicBalance(args2, options) {
|
|
8321
8330
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
@@ -8338,12 +8347,12 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8338
8347
|
masterSeed,
|
|
8339
8348
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
8340
8349
|
);
|
|
8341
|
-
const proofAccountOffsetBytes =
|
|
8350
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8342
8351
|
let proofAccountOffset = 0n;
|
|
8343
8352
|
for (let index = 0; index < 16; index++) {
|
|
8344
8353
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
8345
8354
|
}
|
|
8346
|
-
const expandedModifiedGenerationIndex =
|
|
8355
|
+
const expandedModifiedGenerationIndex = chunk3LS5P32X_cjs.expandModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8347
8356
|
let expandedModifiedGenerationIndexU256 = 0n;
|
|
8348
8357
|
for (let index = 0; index < 32; index++) {
|
|
8349
8358
|
expandedModifiedGenerationIndexU256 |= BigInt(expandedModifiedGenerationIndex[index]) << BigInt(index * 8);
|
|
@@ -8449,9 +8458,9 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8449
8458
|
);
|
|
8450
8459
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
8451
8460
|
const ephemeralOffset = expandedModifiedGenerationIndexU256;
|
|
8452
|
-
const randomSecret =
|
|
8461
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8453
8462
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
8454
|
-
const nullifier =
|
|
8463
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8455
8464
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
8456
8465
|
const ephemeralMasterViewingKey = await ephemeralUtxoMvkGenerator(ephemeralOffset);
|
|
8457
8466
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(ephemeralMasterViewingKey);
|
|
@@ -8826,20 +8835,20 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8826
8835
|
const transactionForwarder = deps.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
8827
8836
|
const factoryCreateUtxoCallbacks = deps.hooks?.createUtxo;
|
|
8828
8837
|
const getEpochInfo = deps.rpc?.epochInfo ?? client.epochInfoProvider;
|
|
8829
|
-
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ??
|
|
8830
|
-
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
8831
|
-
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ??
|
|
8832
|
-
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ??
|
|
8833
|
-
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ??
|
|
8834
|
-
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ??
|
|
8835
|
-
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ??
|
|
8836
|
-
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ??
|
|
8837
|
-
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ??
|
|
8838
|
-
const h2Generator = deps.crypto?.h2Generator ??
|
|
8839
|
-
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ??
|
|
8840
|
-
const userCommitmentGenerator =
|
|
8841
|
-
const poseidonAggregator =
|
|
8842
|
-
const aesEncryptor = deps.crypto?.aesEncryptor ??
|
|
8838
|
+
const masterViewingKeyGenerator = deps.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
8839
|
+
const masterViewingKeyBlindingFactorGenerator = deps.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
8840
|
+
const poseidonPrivateKeyGenerator = deps.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
8841
|
+
const poseidonBlindingFactorGenerator = deps.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
8842
|
+
const mvkX25519KeypairDeriver = deps.keys?.mvkX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
8843
|
+
const secondViewingKeyGenerator = deps.keys?.secondViewingKeyGenerator ?? chunk3LS5P32X_cjs.getSecondViewingKeyDeriver({ client });
|
|
8844
|
+
const poseidonKeystreamBlindingFactorGenerator = deps.keys?.poseidonKeystreamBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver({ client });
|
|
8845
|
+
const poseidonEncryptor = deps.crypto?.poseidonEncryptor ?? chunk3LS5P32X_cjs.getPoseidonEncryptor();
|
|
8846
|
+
const poseidonKeystreamGenerator = deps.crypto?.poseidonKeystreamGenerator ?? chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator();
|
|
8847
|
+
const h2Generator = deps.crypto?.h2Generator ?? chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator();
|
|
8848
|
+
const keystreamCommitmentGenerator = deps.crypto?.keystreamCommitmentGenerator ?? chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator();
|
|
8849
|
+
const userCommitmentGenerator = chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
8850
|
+
const poseidonAggregator = chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
8851
|
+
const aesEncryptor = deps.crypto?.aesEncryptor ?? chunk3LS5P32X_cjs.getAesEncryptor();
|
|
8843
8852
|
const generateRandomU256Function = deps.random?.generateRandomU256 ?? chunkZY3TSHMJ_cjs.generateRandomU256;
|
|
8844
8853
|
return /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async function createReceiverClaimableUtxoFromPublicBalance(args2, options) {
|
|
8845
8854
|
const accountInfoCommitment = options?.accountInfoCommitment ?? "confirmed";
|
|
@@ -8862,7 +8871,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8862
8871
|
masterSeed,
|
|
8863
8872
|
{ dkLen: 16, personalization: generationIndexBytes }
|
|
8864
8873
|
);
|
|
8865
|
-
const proofAccountOffsetBytes =
|
|
8874
|
+
const proofAccountOffsetBytes = chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8866
8875
|
let proofAccountOffset = 0n;
|
|
8867
8876
|
for (let index = 0; index < 16; index++) {
|
|
8868
8877
|
proofAccountOffset |= BigInt(proofAccountOffsetBytes[index]) << BigInt(index * 8);
|
|
@@ -8992,9 +9001,9 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8992
9001
|
senderPrivateKeyBlindingFactor
|
|
8993
9002
|
);
|
|
8994
9003
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(senderUserCommitment);
|
|
8995
|
-
const randomSecret =
|
|
9004
|
+
const randomSecret = chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8996
9005
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(randomSecret);
|
|
8997
|
-
const nullifier =
|
|
9006
|
+
const nullifier = chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex(modifiedGenerationIndex);
|
|
8998
9007
|
chunkLTCKPTZC_cjs.assertBn254FieldElement(nullifier);
|
|
8999
9008
|
const h2Hash = await h2Generator.generateH2({
|
|
9000
9009
|
amount: toBn254FieldElement4(netDepositAmount),
|
|
@@ -9359,7 +9368,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9359
9368
|
const { client } = args;
|
|
9360
9369
|
const userAddress = client.signer.address;
|
|
9361
9370
|
const accountInfoProvider = deps?.accountInfoProvider ?? client.accountInfoProvider;
|
|
9362
|
-
const tokenX25519KeypairDeriver =
|
|
9371
|
+
const tokenX25519KeypairDeriver = chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({
|
|
9363
9372
|
client
|
|
9364
9373
|
});
|
|
9365
9374
|
let cachedDecryptor = null;
|
|
@@ -9379,7 +9388,7 @@ function getEncryptedBalanceQuerierFunction(args, deps) {
|
|
|
9379
9388
|
);
|
|
9380
9389
|
}
|
|
9381
9390
|
const x25519PrivateKey = keypairResult.x25519Keypair.privateKey;
|
|
9382
|
-
cachedDecryptor =
|
|
9391
|
+
cachedDecryptor = chunk3LS5P32X_cjs.getRescueDecryptorFromPrivateKey(x25519PrivateKey, {
|
|
9383
9392
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9384
9393
|
});
|
|
9385
9394
|
}
|
|
@@ -9650,28 +9659,28 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9650
9659
|
const accountInfoProvider = deps?.rpc?.accountInfoProvider ?? client.accountInfoProvider;
|
|
9651
9660
|
const getLatestBlockhash = deps?.rpc?.blockhashProvider ?? client.blockhashProvider;
|
|
9652
9661
|
const transactionForwarder = deps?.rpc?.transactionForwarder ?? client.transactionForwarder;
|
|
9653
|
-
const userAccountX25519KeypairDeriver = deps?.keys?.userAccountX25519KeypairDeriver ??
|
|
9654
|
-
const masterViewingKeyEncryptingX25519KeypairDeriver = deps?.keys?.masterViewingKeyEncryptingX25519KeypairDeriver ??
|
|
9655
|
-
const masterViewingKeyGenerator = deps?.keys?.masterViewingKeyGenerator ??
|
|
9656
|
-
const masterViewingKeyBlindingFactorGenerator = deps?.keys?.masterViewingKeyBlindingFactorGenerator ??
|
|
9657
|
-
const poseidonPrivateKeyGenerator = deps?.keys?.poseidonPrivateKeyGenerator ??
|
|
9658
|
-
const poseidonBlindingFactorGenerator = deps?.keys?.poseidonBlindingFactorGenerator ??
|
|
9659
|
-
const rescueCommitmentBlindingFactorGenerator = deps?.crypto?.rescueCommitmentBlindingFactorGenerator ??
|
|
9662
|
+
const userAccountX25519KeypairDeriver = deps?.keys?.userAccountX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver({ client });
|
|
9663
|
+
const masterViewingKeyEncryptingX25519KeypairDeriver = deps?.keys?.masterViewingKeyEncryptingX25519KeypairDeriver ?? chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver({ client });
|
|
9664
|
+
const masterViewingKeyGenerator = deps?.keys?.masterViewingKeyGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyDeriver({ client });
|
|
9665
|
+
const masterViewingKeyBlindingFactorGenerator = deps?.keys?.masterViewingKeyBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver({ client });
|
|
9666
|
+
const poseidonPrivateKeyGenerator = deps?.keys?.poseidonPrivateKeyGenerator ?? chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver({ client });
|
|
9667
|
+
const poseidonBlindingFactorGenerator = deps?.keys?.poseidonBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver({ client });
|
|
9668
|
+
const rescueCommitmentBlindingFactorGenerator = deps?.crypto?.rescueCommitmentBlindingFactorGenerator ?? chunk3LS5P32X_cjs.getRescueCommitmentBlindingFactorDeriver({
|
|
9660
9669
|
client
|
|
9661
9670
|
});
|
|
9662
|
-
const randomFactorGenerator = deps?.crypto?.randomFactorGenerator ??
|
|
9663
|
-
const getRcKeyGenerator = deps?.crypto?.getRcKeyGenerator ?? ((pk) =>
|
|
9671
|
+
const randomFactorGenerator = deps?.crypto?.randomFactorGenerator ?? chunk3LS5P32X_cjs.getPolynomialCommitmentFactorDeriver({ client });
|
|
9672
|
+
const getRcKeyGenerator = deps?.crypto?.getRcKeyGenerator ?? ((pk) => chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey(pk, {
|
|
9664
9673
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9665
9674
|
}));
|
|
9666
|
-
const getRcEncryptor = deps?.crypto?.getRcEncryptor ?? ((pk) =>
|
|
9675
|
+
const getRcEncryptor = deps?.crypto?.getRcEncryptor ?? ((pk) => chunk3LS5P32X_cjs.getRescueEncryptorWithNonceFromPrivateKey(pk, {
|
|
9667
9676
|
umbraX25519PublicKey: client.networkConfig.mxePubkey
|
|
9668
9677
|
}));
|
|
9669
|
-
const rescueCommitmentGenerator = deps?.crypto?.rescueCommitmentGenerator ??
|
|
9670
|
-
const userCommitmentGenerator = deps?.crypto?.userCommitmentGenerator ??
|
|
9671
|
-
const fiatShamirChallengeGenerator = deps?.crypto?.fiatShamirChallengeGenerator ??
|
|
9672
|
-
const challengePowersFunction = deps?.crypto?.challengePowersFunction ??
|
|
9673
|
-
const polynomialEvaluator = deps?.crypto?.polynomialEvaluator ??
|
|
9674
|
-
const poseidonAggregator = deps?.crypto?.poseidonAggregator ??
|
|
9678
|
+
const rescueCommitmentGenerator = deps?.crypto?.rescueCommitmentGenerator ?? chunk3LS5P32X_cjs.getRescueCommitmentGenerator();
|
|
9679
|
+
const userCommitmentGenerator = deps?.crypto?.userCommitmentGenerator ?? chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction();
|
|
9680
|
+
const fiatShamirChallengeGenerator = deps?.crypto?.fiatShamirChallengeGenerator ?? chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction();
|
|
9681
|
+
const challengePowersFunction = deps?.crypto?.challengePowersFunction ?? chunk3LS5P32X_cjs.getChallengePowersFunction();
|
|
9682
|
+
const polynomialEvaluator = deps?.crypto?.polynomialEvaluator ?? chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction();
|
|
9683
|
+
const poseidonAggregator = deps?.crypto?.poseidonAggregator ?? chunk3LS5P32X_cjs.getPoseidonAggregator();
|
|
9675
9684
|
const bn254ModuleInverter = deps?.crypto?.bn254ModInverter ?? chunkY55PYKXH_cjs.getBn254ModularInverter();
|
|
9676
9685
|
const computeLimbwiseSumInverse = deps?.crypto?.computeLimbwiseSumInverse ?? chunkY55PYKXH_cjs.computeBn254LimbwiseSumInverse;
|
|
9677
9686
|
const zkProver = deps?.zkProver;
|
|
@@ -10634,567 +10643,567 @@ Object.defineProperty(exports, "pollClaimUntilTerminal", {
|
|
|
10634
10643
|
});
|
|
10635
10644
|
Object.defineProperty(exports, "AES_AUTH_TAG_LENGTH", {
|
|
10636
10645
|
enumerable: true,
|
|
10637
|
-
get: function () { return
|
|
10646
|
+
get: function () { return chunk3LS5P32X_cjs.AES_AUTH_TAG_LENGTH; }
|
|
10638
10647
|
});
|
|
10639
10648
|
Object.defineProperty(exports, "AES_IV_LENGTH", {
|
|
10640
10649
|
enumerable: true,
|
|
10641
|
-
get: function () { return
|
|
10650
|
+
get: function () { return chunk3LS5P32X_cjs.AES_IV_LENGTH; }
|
|
10642
10651
|
});
|
|
10643
10652
|
Object.defineProperty(exports, "AES_KEY_LENGTH", {
|
|
10644
10653
|
enumerable: true,
|
|
10645
|
-
get: function () { return
|
|
10654
|
+
get: function () { return chunk3LS5P32X_cjs.AES_KEY_LENGTH; }
|
|
10646
10655
|
});
|
|
10647
10656
|
Object.defineProperty(exports, "AES_METADATA_OVERHEAD", {
|
|
10648
10657
|
enumerable: true,
|
|
10649
|
-
get: function () { return
|
|
10658
|
+
get: function () { return chunk3LS5P32X_cjs.AES_METADATA_OVERHEAD; }
|
|
10650
10659
|
});
|
|
10651
10660
|
Object.defineProperty(exports, "ALPHA", {
|
|
10652
10661
|
enumerable: true,
|
|
10653
|
-
get: function () { return
|
|
10662
|
+
get: function () { return chunk3LS5P32X_cjs.ALPHA; }
|
|
10654
10663
|
});
|
|
10655
10664
|
Object.defineProperty(exports, "ALPHA_INVERSE", {
|
|
10656
10665
|
enumerable: true,
|
|
10657
|
-
get: function () { return
|
|
10666
|
+
get: function () { return chunk3LS5P32X_cjs.ALPHA_INVERSE; }
|
|
10658
10667
|
});
|
|
10659
10668
|
Object.defineProperty(exports, "BASE85_LIMB_MAX", {
|
|
10660
10669
|
enumerable: true,
|
|
10661
|
-
get: function () { return
|
|
10670
|
+
get: function () { return chunk3LS5P32X_cjs.BASE85_LIMB_MAX; }
|
|
10662
10671
|
});
|
|
10663
10672
|
Object.defineProperty(exports, "BLOCK_SIZE", {
|
|
10664
10673
|
enumerable: true,
|
|
10665
|
-
get: function () { return
|
|
10674
|
+
get: function () { return chunk3LS5P32X_cjs.BLOCK_SIZE; }
|
|
10666
10675
|
});
|
|
10667
10676
|
Object.defineProperty(exports, "CIPHER_ROUND_COUNT", {
|
|
10668
10677
|
enumerable: true,
|
|
10669
|
-
get: function () { return
|
|
10678
|
+
get: function () { return chunk3LS5P32X_cjs.CIPHER_ROUND_COUNT; }
|
|
10670
10679
|
});
|
|
10671
10680
|
Object.defineProperty(exports, "FIELD_ELEMENT_BYTE_LENGTH", {
|
|
10672
10681
|
enumerable: true,
|
|
10673
|
-
get: function () { return
|
|
10682
|
+
get: function () { return chunk3LS5P32X_cjs.FIELD_ELEMENT_BYTE_LENGTH; }
|
|
10674
10683
|
});
|
|
10675
10684
|
Object.defineProperty(exports, "FIELD_PRIME", {
|
|
10676
10685
|
enumerable: true,
|
|
10677
|
-
get: function () { return
|
|
10686
|
+
get: function () { return chunk3LS5P32X_cjs.FIELD_PRIME; }
|
|
10678
10687
|
});
|
|
10679
10688
|
Object.defineProperty(exports, "GROTH16_G1_BYTE_LENGTH", {
|
|
10680
10689
|
enumerable: true,
|
|
10681
|
-
get: function () { return
|
|
10690
|
+
get: function () { return chunk3LS5P32X_cjs.GROTH16_G1_BYTE_LENGTH; }
|
|
10682
10691
|
});
|
|
10683
10692
|
Object.defineProperty(exports, "GROTH16_G2_BYTE_LENGTH", {
|
|
10684
10693
|
enumerable: true,
|
|
10685
|
-
get: function () { return
|
|
10694
|
+
get: function () { return chunk3LS5P32X_cjs.GROTH16_G2_BYTE_LENGTH; }
|
|
10686
10695
|
});
|
|
10687
10696
|
Object.defineProperty(exports, "HASH_CAPACITY", {
|
|
10688
10697
|
enumerable: true,
|
|
10689
|
-
get: function () { return
|
|
10698
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_CAPACITY; }
|
|
10690
10699
|
});
|
|
10691
10700
|
Object.defineProperty(exports, "HASH_DIGEST_LENGTH", {
|
|
10692
10701
|
enumerable: true,
|
|
10693
|
-
get: function () { return
|
|
10702
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_DIGEST_LENGTH; }
|
|
10694
10703
|
});
|
|
10695
10704
|
Object.defineProperty(exports, "HASH_RATE", {
|
|
10696
10705
|
enumerable: true,
|
|
10697
|
-
get: function () { return
|
|
10706
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_RATE; }
|
|
10698
10707
|
});
|
|
10699
10708
|
Object.defineProperty(exports, "HASH_ROUND_COUNT", {
|
|
10700
10709
|
enumerable: true,
|
|
10701
|
-
get: function () { return
|
|
10710
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_ROUND_COUNT; }
|
|
10702
10711
|
});
|
|
10703
10712
|
Object.defineProperty(exports, "HASH_STATE_SIZE", {
|
|
10704
10713
|
enumerable: true,
|
|
10705
|
-
get: function () { return
|
|
10714
|
+
get: function () { return chunk3LS5P32X_cjs.HASH_STATE_SIZE; }
|
|
10706
10715
|
});
|
|
10707
10716
|
Object.defineProperty(exports, "MASTER_VIEWING_KEY_MAX", {
|
|
10708
10717
|
enumerable: true,
|
|
10709
|
-
get: function () { return
|
|
10718
|
+
get: function () { return chunk3LS5P32X_cjs.MASTER_VIEWING_KEY_MAX; }
|
|
10710
10719
|
});
|
|
10711
10720
|
Object.defineProperty(exports, "MAX_AGGREGATOR_INPUTS", {
|
|
10712
10721
|
enumerable: true,
|
|
10713
|
-
get: function () { return
|
|
10722
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_AGGREGATOR_INPUTS; }
|
|
10714
10723
|
});
|
|
10715
10724
|
Object.defineProperty(exports, "MAX_POSEIDON_INPUTS", {
|
|
10716
10725
|
enumerable: true,
|
|
10717
|
-
get: function () { return
|
|
10726
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_POSEIDON_INPUTS; }
|
|
10718
10727
|
});
|
|
10719
10728
|
Object.defineProperty(exports, "MAX_PRF_SEEDS", {
|
|
10720
10729
|
enumerable: true,
|
|
10721
|
-
get: function () { return
|
|
10730
|
+
get: function () { return chunk3LS5P32X_cjs.MAX_PRF_SEEDS; }
|
|
10722
10731
|
});
|
|
10723
10732
|
Object.defineProperty(exports, "NONCE_BYTES", {
|
|
10724
10733
|
enumerable: true,
|
|
10725
|
-
get: function () { return
|
|
10734
|
+
get: function () { return chunk3LS5P32X_cjs.NONCE_BYTES; }
|
|
10726
10735
|
});
|
|
10727
10736
|
Object.defineProperty(exports, "OPTIONAL_DATA_BYTE_LENGTH", {
|
|
10728
10737
|
enumerable: true,
|
|
10729
|
-
get: function () { return
|
|
10738
|
+
get: function () { return chunk3LS5P32X_cjs.OPTIONAL_DATA_BYTE_LENGTH; }
|
|
10730
10739
|
});
|
|
10731
10740
|
Object.defineProperty(exports, "PRECOMPUTED_FIELD_INVERSES", {
|
|
10732
10741
|
enumerable: true,
|
|
10733
|
-
get: function () { return
|
|
10742
|
+
get: function () { return chunk3LS5P32X_cjs.PRECOMPUTED_FIELD_INVERSES; }
|
|
10734
10743
|
});
|
|
10735
10744
|
Object.defineProperty(exports, "REDUCTION_CONST", {
|
|
10736
10745
|
enumerable: true,
|
|
10737
|
-
get: function () { return
|
|
10746
|
+
get: function () { return chunk3LS5P32X_cjs.REDUCTION_CONST; }
|
|
10738
10747
|
});
|
|
10739
10748
|
Object.defineProperty(exports, "SAMPLE_BUFFER_BYTE_LENGTH", {
|
|
10740
10749
|
enumerable: true,
|
|
10741
|
-
get: function () { return
|
|
10750
|
+
get: function () { return chunk3LS5P32X_cjs.SAMPLE_BUFFER_BYTE_LENGTH; }
|
|
10742
10751
|
});
|
|
10743
10752
|
Object.defineProperty(exports, "SECRET_BYTES", {
|
|
10744
10753
|
enumerable: true,
|
|
10745
|
-
get: function () { return
|
|
10754
|
+
get: function () { return chunk3LS5P32X_cjs.SECRET_BYTES; }
|
|
10746
10755
|
});
|
|
10747
10756
|
Object.defineProperty(exports, "SHAKE256_CIPHER_SEED", {
|
|
10748
10757
|
enumerable: true,
|
|
10749
|
-
get: function () { return
|
|
10758
|
+
get: function () { return chunk3LS5P32X_cjs.SHAKE256_CIPHER_SEED; }
|
|
10750
10759
|
});
|
|
10751
10760
|
Object.defineProperty(exports, "X25519_BYTE_LENGTH", {
|
|
10752
10761
|
enumerable: true,
|
|
10753
|
-
get: function () { return
|
|
10762
|
+
get: function () { return chunk3LS5P32X_cjs.X25519_BYTE_LENGTH; }
|
|
10754
10763
|
});
|
|
10755
10764
|
Object.defineProperty(exports, "ZK_PROOF_BYTE_LENGTH", {
|
|
10756
10765
|
enumerable: true,
|
|
10757
|
-
get: function () { return
|
|
10766
|
+
get: function () { return chunk3LS5P32X_cjs.ZK_PROOF_BYTE_LENGTH; }
|
|
10758
10767
|
});
|
|
10759
10768
|
Object.defineProperty(exports, "assertAesCiphertextWithMetadata", {
|
|
10760
10769
|
enumerable: true,
|
|
10761
|
-
get: function () { return
|
|
10770
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesCiphertextWithMetadata; }
|
|
10762
10771
|
});
|
|
10763
10772
|
Object.defineProperty(exports, "assertAesKey", {
|
|
10764
10773
|
enumerable: true,
|
|
10765
|
-
get: function () { return
|
|
10774
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesKey; }
|
|
10766
10775
|
});
|
|
10767
10776
|
Object.defineProperty(exports, "assertAesPlaintext", {
|
|
10768
10777
|
enumerable: true,
|
|
10769
|
-
get: function () { return
|
|
10778
|
+
get: function () { return chunk3LS5P32X_cjs.assertAesPlaintext; }
|
|
10770
10779
|
});
|
|
10771
10780
|
Object.defineProperty(exports, "assertBase85Limb", {
|
|
10772
10781
|
enumerable: true,
|
|
10773
|
-
get: function () { return
|
|
10782
|
+
get: function () { return chunk3LS5P32X_cjs.assertBase85Limb; }
|
|
10774
10783
|
});
|
|
10775
10784
|
Object.defineProperty(exports, "assertCurve25519KeypairResult", {
|
|
10776
10785
|
enumerable: true,
|
|
10777
|
-
get: function () { return
|
|
10786
|
+
get: function () { return chunk3LS5P32X_cjs.assertCurve25519KeypairResult; }
|
|
10778
10787
|
});
|
|
10779
10788
|
Object.defineProperty(exports, "assertDailyViewingKey", {
|
|
10780
10789
|
enumerable: true,
|
|
10781
|
-
get: function () { return
|
|
10790
|
+
get: function () { return chunk3LS5P32X_cjs.assertDailyViewingKey; }
|
|
10782
10791
|
});
|
|
10783
10792
|
Object.defineProperty(exports, "assertEd25519Keypair", {
|
|
10784
10793
|
enumerable: true,
|
|
10785
|
-
get: function () { return
|
|
10794
|
+
get: function () { return chunk3LS5P32X_cjs.assertEd25519Keypair; }
|
|
10786
10795
|
});
|
|
10787
10796
|
Object.defineProperty(exports, "assertGenerationSeed", {
|
|
10788
10797
|
enumerable: true,
|
|
10789
|
-
get: function () { return
|
|
10798
|
+
get: function () { return chunk3LS5P32X_cjs.assertGenerationSeed; }
|
|
10790
10799
|
});
|
|
10791
10800
|
Object.defineProperty(exports, "assertGroth16ProofA", {
|
|
10792
10801
|
enumerable: true,
|
|
10793
|
-
get: function () { return
|
|
10802
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofA; }
|
|
10794
10803
|
});
|
|
10795
10804
|
Object.defineProperty(exports, "assertGroth16ProofB", {
|
|
10796
10805
|
enumerable: true,
|
|
10797
|
-
get: function () { return
|
|
10806
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofB; }
|
|
10798
10807
|
});
|
|
10799
10808
|
Object.defineProperty(exports, "assertGroth16ProofC", {
|
|
10800
10809
|
enumerable: true,
|
|
10801
|
-
get: function () { return
|
|
10810
|
+
get: function () { return chunk3LS5P32X_cjs.assertGroth16ProofC; }
|
|
10802
10811
|
});
|
|
10803
10812
|
Object.defineProperty(exports, "assertHourlyViewingKey", {
|
|
10804
10813
|
enumerable: true,
|
|
10805
|
-
get: function () { return
|
|
10814
|
+
get: function () { return chunk3LS5P32X_cjs.assertHourlyViewingKey; }
|
|
10806
10815
|
});
|
|
10807
10816
|
Object.defineProperty(exports, "assertKeccak256Hash", {
|
|
10808
10817
|
enumerable: true,
|
|
10809
|
-
get: function () { return
|
|
10818
|
+
get: function () { return chunk3LS5P32X_cjs.assertKeccak256Hash; }
|
|
10810
10819
|
});
|
|
10811
10820
|
Object.defineProperty(exports, "assertKeccak512Hash", {
|
|
10812
10821
|
enumerable: true,
|
|
10813
|
-
get: function () { return
|
|
10822
|
+
get: function () { return chunk3LS5P32X_cjs.assertKeccak512Hash; }
|
|
10814
10823
|
});
|
|
10815
10824
|
Object.defineProperty(exports, "assertMasterSeed", {
|
|
10816
10825
|
enumerable: true,
|
|
10817
|
-
get: function () { return
|
|
10826
|
+
get: function () { return chunk3LS5P32X_cjs.assertMasterSeed; }
|
|
10818
10827
|
});
|
|
10819
10828
|
Object.defineProperty(exports, "assertMasterViewingKey", {
|
|
10820
10829
|
enumerable: true,
|
|
10821
|
-
get: function () { return
|
|
10830
|
+
get: function () { return chunk3LS5P32X_cjs.assertMasterViewingKey; }
|
|
10822
10831
|
});
|
|
10823
10832
|
Object.defineProperty(exports, "assertMintViewingKey", {
|
|
10824
10833
|
enumerable: true,
|
|
10825
|
-
get: function () { return
|
|
10834
|
+
get: function () { return chunk3LS5P32X_cjs.assertMintViewingKey; }
|
|
10826
10835
|
});
|
|
10827
10836
|
Object.defineProperty(exports, "assertMinuteViewingKey", {
|
|
10828
10837
|
enumerable: true,
|
|
10829
|
-
get: function () { return
|
|
10838
|
+
get: function () { return chunk3LS5P32X_cjs.assertMinuteViewingKey; }
|
|
10830
10839
|
});
|
|
10831
10840
|
Object.defineProperty(exports, "assertMonthlyViewingKey", {
|
|
10832
10841
|
enumerable: true,
|
|
10833
|
-
get: function () { return
|
|
10842
|
+
get: function () { return chunk3LS5P32X_cjs.assertMonthlyViewingKey; }
|
|
10834
10843
|
});
|
|
10835
10844
|
Object.defineProperty(exports, "assertOptionalData32", {
|
|
10836
10845
|
enumerable: true,
|
|
10837
|
-
get: function () { return
|
|
10846
|
+
get: function () { return chunk3LS5P32X_cjs.assertOptionalData32; }
|
|
10838
10847
|
});
|
|
10839
10848
|
Object.defineProperty(exports, "assertPoseidonCiphertext", {
|
|
10840
10849
|
enumerable: true,
|
|
10841
|
-
get: function () { return
|
|
10850
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonCiphertext; }
|
|
10842
10851
|
});
|
|
10843
10852
|
Object.defineProperty(exports, "assertPoseidonCounter", {
|
|
10844
10853
|
enumerable: true,
|
|
10845
|
-
get: function () { return
|
|
10854
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonCounter; }
|
|
10846
10855
|
});
|
|
10847
10856
|
Object.defineProperty(exports, "assertPoseidonHash", {
|
|
10848
10857
|
enumerable: true,
|
|
10849
|
-
get: function () { return
|
|
10858
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonHash; }
|
|
10850
10859
|
});
|
|
10851
10860
|
Object.defineProperty(exports, "assertPoseidonKey", {
|
|
10852
10861
|
enumerable: true,
|
|
10853
|
-
get: function () { return
|
|
10862
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonKey; }
|
|
10854
10863
|
});
|
|
10855
10864
|
Object.defineProperty(exports, "assertPoseidonKeystream", {
|
|
10856
10865
|
enumerable: true,
|
|
10857
|
-
get: function () { return
|
|
10866
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonKeystream; }
|
|
10858
10867
|
});
|
|
10859
10868
|
Object.defineProperty(exports, "assertPoseidonPlaintext", {
|
|
10860
10869
|
enumerable: true,
|
|
10861
|
-
get: function () { return
|
|
10870
|
+
get: function () { return chunk3LS5P32X_cjs.assertPoseidonPlaintext; }
|
|
10862
10871
|
});
|
|
10863
10872
|
Object.defineProperty(exports, "assertRcCiphertext", {
|
|
10864
10873
|
enumerable: true,
|
|
10865
|
-
get: function () { return
|
|
10874
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcCiphertext; }
|
|
10866
10875
|
});
|
|
10867
10876
|
Object.defineProperty(exports, "assertRcCounter", {
|
|
10868
10877
|
enumerable: true,
|
|
10869
|
-
get: function () { return
|
|
10878
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcCounter; }
|
|
10870
10879
|
});
|
|
10871
10880
|
Object.defineProperty(exports, "assertRcEncryptionNonce", {
|
|
10872
10881
|
enumerable: true,
|
|
10873
|
-
get: function () { return
|
|
10882
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcEncryptionNonce; }
|
|
10874
10883
|
});
|
|
10875
10884
|
Object.defineProperty(exports, "assertRcKey", {
|
|
10876
10885
|
enumerable: true,
|
|
10877
|
-
get: function () { return
|
|
10886
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcKey; }
|
|
10878
10887
|
});
|
|
10879
10888
|
Object.defineProperty(exports, "assertRcPlaintext", {
|
|
10880
10889
|
enumerable: true,
|
|
10881
|
-
get: function () { return
|
|
10890
|
+
get: function () { return chunk3LS5P32X_cjs.assertRcPlaintext; }
|
|
10882
10891
|
});
|
|
10883
10892
|
Object.defineProperty(exports, "assertSecondViewingKey", {
|
|
10884
10893
|
enumerable: true,
|
|
10885
|
-
get: function () { return
|
|
10894
|
+
get: function () { return chunk3LS5P32X_cjs.assertSecondViewingKey; }
|
|
10886
10895
|
});
|
|
10887
10896
|
Object.defineProperty(exports, "assertSharedSecret", {
|
|
10888
10897
|
enumerable: true,
|
|
10889
|
-
get: function () { return
|
|
10898
|
+
get: function () { return chunk3LS5P32X_cjs.assertSharedSecret; }
|
|
10890
10899
|
});
|
|
10891
10900
|
Object.defineProperty(exports, "assertX25519Bytes", {
|
|
10892
10901
|
enumerable: true,
|
|
10893
|
-
get: function () { return
|
|
10902
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519Bytes; }
|
|
10894
10903
|
});
|
|
10895
10904
|
Object.defineProperty(exports, "assertX25519Keypair", {
|
|
10896
10905
|
enumerable: true,
|
|
10897
|
-
get: function () { return
|
|
10906
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519Keypair; }
|
|
10898
10907
|
});
|
|
10899
10908
|
Object.defineProperty(exports, "assertX25519PrivateKey", {
|
|
10900
10909
|
enumerable: true,
|
|
10901
|
-
get: function () { return
|
|
10910
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519PrivateKey; }
|
|
10902
10911
|
});
|
|
10903
10912
|
Object.defineProperty(exports, "assertX25519PublicKey", {
|
|
10904
10913
|
enumerable: true,
|
|
10905
|
-
get: function () { return
|
|
10914
|
+
get: function () { return chunk3LS5P32X_cjs.assertX25519PublicKey; }
|
|
10906
10915
|
});
|
|
10907
10916
|
Object.defineProperty(exports, "assertYearlyViewingKey", {
|
|
10908
10917
|
enumerable: true,
|
|
10909
|
-
get: function () { return
|
|
10918
|
+
get: function () { return chunk3LS5P32X_cjs.assertYearlyViewingKey; }
|
|
10910
10919
|
});
|
|
10911
10920
|
Object.defineProperty(exports, "assertZkProofBytes", {
|
|
10912
10921
|
enumerable: true,
|
|
10913
|
-
get: function () { return
|
|
10922
|
+
get: function () { return chunk3LS5P32X_cjs.assertZkProofBytes; }
|
|
10914
10923
|
});
|
|
10915
10924
|
Object.defineProperty(exports, "buildPersonalizationString", {
|
|
10916
10925
|
enumerable: true,
|
|
10917
|
-
get: function () { return
|
|
10926
|
+
get: function () { return chunk3LS5P32X_cjs.buildPersonalizationString; }
|
|
10918
10927
|
});
|
|
10919
10928
|
Object.defineProperty(exports, "defaultAesDecryptor", {
|
|
10920
10929
|
enumerable: true,
|
|
10921
|
-
get: function () { return
|
|
10930
|
+
get: function () { return chunk3LS5P32X_cjs.defaultAesDecryptor; }
|
|
10922
10931
|
});
|
|
10923
10932
|
Object.defineProperty(exports, "defaultAesEncryptor", {
|
|
10924
10933
|
enumerable: true,
|
|
10925
|
-
get: function () { return
|
|
10934
|
+
get: function () { return chunk3LS5P32X_cjs.defaultAesEncryptor; }
|
|
10926
10935
|
});
|
|
10927
10936
|
Object.defineProperty(exports, "deriveBn254FieldElementFromKeccak512", {
|
|
10928
10937
|
enumerable: true,
|
|
10929
|
-
get: function () { return
|
|
10938
|
+
get: function () { return chunk3LS5P32X_cjs.deriveBn254FieldElementFromKeccak512; }
|
|
10930
10939
|
});
|
|
10931
10940
|
Object.defineProperty(exports, "deriveEphemeralMasterViewingKey", {
|
|
10932
10941
|
enumerable: true,
|
|
10933
|
-
get: function () { return
|
|
10942
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralMasterViewingKey; }
|
|
10934
10943
|
});
|
|
10935
10944
|
Object.defineProperty(exports, "deriveEphemeralMasterViewingKeyBlindingFactor", {
|
|
10936
10945
|
enumerable: true,
|
|
10937
|
-
get: function () { return
|
|
10946
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralMasterViewingKeyBlindingFactor; }
|
|
10938
10947
|
});
|
|
10939
10948
|
Object.defineProperty(exports, "deriveEphemeralPoseidonPrivateKey", {
|
|
10940
10949
|
enumerable: true,
|
|
10941
|
-
get: function () { return
|
|
10950
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralPoseidonPrivateKey; }
|
|
10942
10951
|
});
|
|
10943
10952
|
Object.defineProperty(exports, "deriveEphemeralPoseidonPrivateKeyBlindingFactor", {
|
|
10944
10953
|
enumerable: true,
|
|
10945
|
-
get: function () { return
|
|
10954
|
+
get: function () { return chunk3LS5P32X_cjs.deriveEphemeralPoseidonPrivateKeyBlindingFactor; }
|
|
10946
10955
|
});
|
|
10947
10956
|
Object.defineProperty(exports, "deriveKeystreamBlindingFactor", {
|
|
10948
10957
|
enumerable: true,
|
|
10949
|
-
get: function () { return
|
|
10958
|
+
get: function () { return chunk3LS5P32X_cjs.deriveKeystreamBlindingFactor; }
|
|
10950
10959
|
});
|
|
10951
10960
|
Object.defineProperty(exports, "deriveModifiedGenerationIndexForReceiverClaim", {
|
|
10952
10961
|
enumerable: true,
|
|
10953
|
-
get: function () { return
|
|
10962
|
+
get: function () { return chunk3LS5P32X_cjs.deriveModifiedGenerationIndexForReceiverClaim; }
|
|
10954
10963
|
});
|
|
10955
10964
|
Object.defineProperty(exports, "deriveModifiedGenerationIndexForSenderClaim", {
|
|
10956
10965
|
enumerable: true,
|
|
10957
|
-
get: function () { return
|
|
10966
|
+
get: function () { return chunk3LS5P32X_cjs.deriveModifiedGenerationIndexForSenderClaim; }
|
|
10958
10967
|
});
|
|
10959
10968
|
Object.defineProperty(exports, "deriveNullifierFromModifiedGenerationIndex", {
|
|
10960
10969
|
enumerable: true,
|
|
10961
|
-
get: function () { return
|
|
10970
|
+
get: function () { return chunk3LS5P32X_cjs.deriveNullifierFromModifiedGenerationIndex; }
|
|
10962
10971
|
});
|
|
10963
10972
|
Object.defineProperty(exports, "deriveProofAccountOffsetFromModifiedGenerationIndex", {
|
|
10964
10973
|
enumerable: true,
|
|
10965
|
-
get: function () { return
|
|
10974
|
+
get: function () { return chunk3LS5P32X_cjs.deriveProofAccountOffsetFromModifiedGenerationIndex; }
|
|
10966
10975
|
});
|
|
10967
10976
|
Object.defineProperty(exports, "deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex", {
|
|
10968
10977
|
enumerable: true,
|
|
10969
|
-
get: function () { return
|
|
10978
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex; }
|
|
10970
10979
|
});
|
|
10971
10980
|
Object.defineProperty(exports, "deriveRandomSecretFromModifiedGenerationIndex", {
|
|
10972
10981
|
enumerable: true,
|
|
10973
|
-
get: function () { return
|
|
10982
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRandomSecretFromModifiedGenerationIndex; }
|
|
10974
10983
|
});
|
|
10975
10984
|
Object.defineProperty(exports, "deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex", {
|
|
10976
10985
|
enumerable: true,
|
|
10977
|
-
get: function () { return
|
|
10986
|
+
get: function () { return chunk3LS5P32X_cjs.deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex; }
|
|
10978
10987
|
});
|
|
10979
10988
|
Object.defineProperty(exports, "expandModifiedGenerationIndex", {
|
|
10980
10989
|
enumerable: true,
|
|
10981
|
-
get: function () { return
|
|
10990
|
+
get: function () { return chunk3LS5P32X_cjs.expandModifiedGenerationIndex; }
|
|
10982
10991
|
});
|
|
10983
10992
|
Object.defineProperty(exports, "getAesDecryptor", {
|
|
10984
10993
|
enumerable: true,
|
|
10985
|
-
get: function () { return
|
|
10994
|
+
get: function () { return chunk3LS5P32X_cjs.getAesDecryptor; }
|
|
10986
10995
|
});
|
|
10987
10996
|
Object.defineProperty(exports, "getAesEncryptor", {
|
|
10988
10997
|
enumerable: true,
|
|
10989
|
-
get: function () { return
|
|
10998
|
+
get: function () { return chunk3LS5P32X_cjs.getAesEncryptor; }
|
|
10990
10999
|
});
|
|
10991
11000
|
Object.defineProperty(exports, "getBn254FieldElementFromKeccak512Deriver", {
|
|
10992
11001
|
enumerable: true,
|
|
10993
|
-
get: function () { return
|
|
11002
|
+
get: function () { return chunk3LS5P32X_cjs.getBn254FieldElementFromKeccak512Deriver; }
|
|
10994
11003
|
});
|
|
10995
11004
|
Object.defineProperty(exports, "getChallengePowersFunction", {
|
|
10996
11005
|
enumerable: true,
|
|
10997
|
-
get: function () { return
|
|
11006
|
+
get: function () { return chunk3LS5P32X_cjs.getChallengePowersFunction; }
|
|
10998
11007
|
});
|
|
10999
11008
|
Object.defineProperty(exports, "getDailyViewingKeyDeriver", {
|
|
11000
11009
|
enumerable: true,
|
|
11001
|
-
get: function () { return
|
|
11010
|
+
get: function () { return chunk3LS5P32X_cjs.getDailyViewingKeyDeriver; }
|
|
11002
11011
|
});
|
|
11003
11012
|
Object.defineProperty(exports, "getEphemeralMasterSeedDeriver", {
|
|
11004
11013
|
enumerable: true,
|
|
11005
|
-
get: function () { return
|
|
11014
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralMasterSeedDeriver; }
|
|
11006
11015
|
});
|
|
11007
11016
|
Object.defineProperty(exports, "getEphemeralRescueCommitmentBlindingFactorDeriver", {
|
|
11008
11017
|
enumerable: true,
|
|
11009
|
-
get: function () { return
|
|
11018
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralRescueCommitmentBlindingFactorDeriver; }
|
|
11010
11019
|
});
|
|
11011
11020
|
Object.defineProperty(exports, "getEphemeralUtxoH2RandomSecretDeriver", {
|
|
11012
11021
|
enumerable: true,
|
|
11013
|
-
get: function () { return
|
|
11022
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoH2RandomSecretDeriver; }
|
|
11014
11023
|
});
|
|
11015
11024
|
Object.defineProperty(exports, "getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver", {
|
|
11016
11025
|
enumerable: true,
|
|
11017
|
-
get: function () { return
|
|
11026
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver; }
|
|
11018
11027
|
});
|
|
11019
11028
|
Object.defineProperty(exports, "getEphemeralUtxoMasterViewingKeyDeriver", {
|
|
11020
11029
|
enumerable: true,
|
|
11021
|
-
get: function () { return
|
|
11030
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoMasterViewingKeyDeriver; }
|
|
11022
11031
|
});
|
|
11023
11032
|
Object.defineProperty(exports, "getEphemeralUtxoNullifierDeriver", {
|
|
11024
11033
|
enumerable: true,
|
|
11025
|
-
get: function () { return
|
|
11034
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoNullifierDeriver; }
|
|
11026
11035
|
});
|
|
11027
11036
|
Object.defineProperty(exports, "getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver", {
|
|
11028
11037
|
enumerable: true,
|
|
11029
|
-
get: function () { return
|
|
11038
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver; }
|
|
11030
11039
|
});
|
|
11031
11040
|
Object.defineProperty(exports, "getEphemeralUtxoPoseidonPrivateKeyDeriver", {
|
|
11032
11041
|
enumerable: true,
|
|
11033
|
-
get: function () { return
|
|
11042
|
+
get: function () { return chunk3LS5P32X_cjs.getEphemeralUtxoPoseidonPrivateKeyDeriver; }
|
|
11034
11043
|
});
|
|
11035
11044
|
Object.defineProperty(exports, "getFiatShamirChallengeGeneratorFunction", {
|
|
11036
11045
|
enumerable: true,
|
|
11037
|
-
get: function () { return
|
|
11046
|
+
get: function () { return chunk3LS5P32X_cjs.getFiatShamirChallengeGeneratorFunction; }
|
|
11038
11047
|
});
|
|
11039
11048
|
Object.defineProperty(exports, "getFieldArithmetic", {
|
|
11040
11049
|
enumerable: true,
|
|
11041
|
-
get: function () { return
|
|
11050
|
+
get: function () { return chunk3LS5P32X_cjs.getFieldArithmetic; }
|
|
11042
11051
|
});
|
|
11043
11052
|
Object.defineProperty(exports, "getHourlyViewingKeyDeriver", {
|
|
11044
11053
|
enumerable: true,
|
|
11045
|
-
get: function () { return
|
|
11054
|
+
get: function () { return chunk3LS5P32X_cjs.getHourlyViewingKeyDeriver; }
|
|
11046
11055
|
});
|
|
11047
11056
|
Object.defineProperty(exports, "getKeystreamCommitmentGenerator", {
|
|
11048
11057
|
enumerable: true,
|
|
11049
|
-
get: function () { return
|
|
11058
|
+
get: function () { return chunk3LS5P32X_cjs.getKeystreamCommitmentGenerator; }
|
|
11050
11059
|
});
|
|
11051
11060
|
Object.defineProperty(exports, "getMasterSeedBasedFieldElementDeriver", {
|
|
11052
11061
|
enumerable: true,
|
|
11053
|
-
get: function () { return
|
|
11062
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterSeedBasedFieldElementDeriver; }
|
|
11054
11063
|
});
|
|
11055
11064
|
Object.defineProperty(exports, "getMasterViewingKeyBlindingFactorDeriver", {
|
|
11056
11065
|
enumerable: true,
|
|
11057
|
-
get: function () { return
|
|
11066
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyBlindingFactorDeriver; }
|
|
11058
11067
|
});
|
|
11059
11068
|
Object.defineProperty(exports, "getMasterViewingKeyDeriver", {
|
|
11060
11069
|
enumerable: true,
|
|
11061
|
-
get: function () { return
|
|
11070
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyDeriver; }
|
|
11062
11071
|
});
|
|
11063
11072
|
Object.defineProperty(exports, "getMasterViewingKeyX25519KeypairDeriver", {
|
|
11064
11073
|
enumerable: true,
|
|
11065
|
-
get: function () { return
|
|
11074
|
+
get: function () { return chunk3LS5P32X_cjs.getMasterViewingKeyX25519KeypairDeriver; }
|
|
11066
11075
|
});
|
|
11067
11076
|
Object.defineProperty(exports, "getMintViewingKeyDeriver", {
|
|
11068
11077
|
enumerable: true,
|
|
11069
|
-
get: function () { return
|
|
11078
|
+
get: function () { return chunk3LS5P32X_cjs.getMintViewingKeyDeriver; }
|
|
11070
11079
|
});
|
|
11071
11080
|
Object.defineProperty(exports, "getMintX25519KeypairDeriver", {
|
|
11072
11081
|
enumerable: true,
|
|
11073
|
-
get: function () { return
|
|
11082
|
+
get: function () { return chunk3LS5P32X_cjs.getMintX25519KeypairDeriver; }
|
|
11074
11083
|
});
|
|
11075
11084
|
Object.defineProperty(exports, "getMinuteViewingKeyDeriver", {
|
|
11076
11085
|
enumerable: true,
|
|
11077
|
-
get: function () { return
|
|
11086
|
+
get: function () { return chunk3LS5P32X_cjs.getMinuteViewingKeyDeriver; }
|
|
11078
11087
|
});
|
|
11079
11088
|
Object.defineProperty(exports, "getModuloPowCurve25519Function", {
|
|
11080
11089
|
enumerable: true,
|
|
11081
|
-
get: function () { return
|
|
11090
|
+
get: function () { return chunk3LS5P32X_cjs.getModuloPowCurve25519Function; }
|
|
11082
11091
|
});
|
|
11083
11092
|
Object.defineProperty(exports, "getMonthlyViewingKeyDeriver", {
|
|
11084
11093
|
enumerable: true,
|
|
11085
|
-
get: function () { return
|
|
11094
|
+
get: function () { return chunk3LS5P32X_cjs.getMonthlyViewingKeyDeriver; }
|
|
11086
11095
|
});
|
|
11087
11096
|
Object.defineProperty(exports, "getPersonalizationStringBuilder", {
|
|
11088
11097
|
enumerable: true,
|
|
11089
|
-
get: function () { return
|
|
11098
|
+
get: function () { return chunk3LS5P32X_cjs.getPersonalizationStringBuilder; }
|
|
11090
11099
|
});
|
|
11091
11100
|
Object.defineProperty(exports, "getPolynomialCommitmentFactorDeriver", {
|
|
11092
11101
|
enumerable: true,
|
|
11093
|
-
get: function () { return
|
|
11102
|
+
get: function () { return chunk3LS5P32X_cjs.getPolynomialCommitmentFactorDeriver; }
|
|
11094
11103
|
});
|
|
11095
11104
|
Object.defineProperty(exports, "getPolynomialEvaluatorFunction", {
|
|
11096
11105
|
enumerable: true,
|
|
11097
|
-
get: function () { return
|
|
11106
|
+
get: function () { return chunk3LS5P32X_cjs.getPolynomialEvaluatorFunction; }
|
|
11098
11107
|
});
|
|
11099
11108
|
Object.defineProperty(exports, "getPoseidonAggregator", {
|
|
11100
11109
|
enumerable: true,
|
|
11101
|
-
get: function () { return
|
|
11110
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonAggregator; }
|
|
11102
11111
|
});
|
|
11103
11112
|
Object.defineProperty(exports, "getPoseidonBlindingFactorDeriver", {
|
|
11104
11113
|
enumerable: true,
|
|
11105
|
-
get: function () { return
|
|
11114
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonBlindingFactorDeriver; }
|
|
11106
11115
|
});
|
|
11107
11116
|
Object.defineProperty(exports, "getPoseidonDecryptor", {
|
|
11108
11117
|
enumerable: true,
|
|
11109
|
-
get: function () { return
|
|
11118
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonDecryptor; }
|
|
11110
11119
|
});
|
|
11111
11120
|
Object.defineProperty(exports, "getPoseidonEncryptor", {
|
|
11112
11121
|
enumerable: true,
|
|
11113
|
-
get: function () { return
|
|
11122
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonEncryptor; }
|
|
11114
11123
|
});
|
|
11115
11124
|
Object.defineProperty(exports, "getPoseidonHasher", {
|
|
11116
11125
|
enumerable: true,
|
|
11117
|
-
get: function () { return
|
|
11126
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonHasher; }
|
|
11118
11127
|
});
|
|
11119
11128
|
Object.defineProperty(exports, "getPoseidonKeystreamBlindingFactorDeriver", {
|
|
11120
11129
|
enumerable: true,
|
|
11121
|
-
get: function () { return
|
|
11130
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonKeystreamBlindingFactorDeriver; }
|
|
11122
11131
|
});
|
|
11123
11132
|
Object.defineProperty(exports, "getPoseidonKeystreamGenerator", {
|
|
11124
11133
|
enumerable: true,
|
|
11125
|
-
get: function () { return
|
|
11134
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonKeystreamGenerator; }
|
|
11126
11135
|
});
|
|
11127
11136
|
Object.defineProperty(exports, "getPoseidonPrf", {
|
|
11128
11137
|
enumerable: true,
|
|
11129
|
-
get: function () { return
|
|
11138
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonPrf; }
|
|
11130
11139
|
});
|
|
11131
11140
|
Object.defineProperty(exports, "getPoseidonPrivateKeyDeriver", {
|
|
11132
11141
|
enumerable: true,
|
|
11133
|
-
get: function () { return
|
|
11142
|
+
get: function () { return chunk3LS5P32X_cjs.getPoseidonPrivateKeyDeriver; }
|
|
11134
11143
|
});
|
|
11135
11144
|
Object.defineProperty(exports, "getPseudorandomU512Deriver", {
|
|
11136
11145
|
enumerable: true,
|
|
11137
|
-
get: function () { return
|
|
11146
|
+
get: function () { return chunk3LS5P32X_cjs.getPseudorandomU512Deriver; }
|
|
11138
11147
|
});
|
|
11139
11148
|
Object.defineProperty(exports, "getRescueCipher", {
|
|
11140
11149
|
enumerable: true,
|
|
11141
|
-
get: function () { return
|
|
11150
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipher; }
|
|
11142
11151
|
});
|
|
11143
11152
|
Object.defineProperty(exports, "getRescueCipherFromKeyPair", {
|
|
11144
11153
|
enumerable: true,
|
|
11145
|
-
get: function () { return
|
|
11154
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipherFromKeyPair; }
|
|
11146
11155
|
});
|
|
11147
11156
|
Object.defineProperty(exports, "getRescueCipherInstance", {
|
|
11148
11157
|
enumerable: true,
|
|
11149
|
-
get: function () { return
|
|
11158
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCipherInstance; }
|
|
11150
11159
|
});
|
|
11151
11160
|
Object.defineProperty(exports, "getRescueCommitmentBlindingFactorDeriver", {
|
|
11152
11161
|
enumerable: true,
|
|
11153
|
-
get: function () { return
|
|
11162
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCommitmentBlindingFactorDeriver; }
|
|
11154
11163
|
});
|
|
11155
11164
|
Object.defineProperty(exports, "getRescueCommitmentGenerator", {
|
|
11156
11165
|
enumerable: true,
|
|
11157
|
-
get: function () { return
|
|
11166
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueCommitmentGenerator; }
|
|
11158
11167
|
});
|
|
11159
11168
|
Object.defineProperty(exports, "getRescueDecryptorFromPrivateKey", {
|
|
11160
11169
|
enumerable: true,
|
|
11161
|
-
get: function () { return
|
|
11170
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueDecryptorFromPrivateKey; }
|
|
11162
11171
|
});
|
|
11163
11172
|
Object.defineProperty(exports, "getRescueEncryptorFromPrivateKey", {
|
|
11164
11173
|
enumerable: true,
|
|
11165
|
-
get: function () { return
|
|
11174
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueEncryptorFromPrivateKey; }
|
|
11166
11175
|
});
|
|
11167
11176
|
Object.defineProperty(exports, "getRescueEncryptorWithNonceFromPrivateKey", {
|
|
11168
11177
|
enumerable: true,
|
|
11169
|
-
get: function () { return
|
|
11178
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueEncryptorWithNonceFromPrivateKey; }
|
|
11170
11179
|
});
|
|
11171
11180
|
Object.defineProperty(exports, "getRescueKeyGeneratorFromPrivateKey", {
|
|
11172
11181
|
enumerable: true,
|
|
11173
|
-
get: function () { return
|
|
11182
|
+
get: function () { return chunk3LS5P32X_cjs.getRescueKeyGeneratorFromPrivateKey; }
|
|
11174
11183
|
});
|
|
11175
11184
|
Object.defineProperty(exports, "getRescuePrimeHashFunction", {
|
|
11176
11185
|
enumerable: true,
|
|
11177
|
-
get: function () { return
|
|
11186
|
+
get: function () { return chunk3LS5P32X_cjs.getRescuePrimeHashFunction; }
|
|
11178
11187
|
});
|
|
11179
11188
|
Object.defineProperty(exports, "getSecondViewingKeyDeriver", {
|
|
11180
11189
|
enumerable: true,
|
|
11181
|
-
get: function () { return
|
|
11190
|
+
get: function () { return chunk3LS5P32X_cjs.getSecondViewingKeyDeriver; }
|
|
11182
11191
|
});
|
|
11183
11192
|
Object.defineProperty(exports, "getUserAccountX25519KeypairDeriver", {
|
|
11184
11193
|
enumerable: true,
|
|
11185
|
-
get: function () { return
|
|
11194
|
+
get: function () { return chunk3LS5P32X_cjs.getUserAccountX25519KeypairDeriver; }
|
|
11186
11195
|
});
|
|
11187
11196
|
Object.defineProperty(exports, "getUserCommitmentGeneratorFunction", {
|
|
11188
11197
|
enumerable: true,
|
|
11189
|
-
get: function () { return
|
|
11198
|
+
get: function () { return chunk3LS5P32X_cjs.getUserCommitmentGeneratorFunction; }
|
|
11190
11199
|
});
|
|
11191
11200
|
Object.defineProperty(exports, "getUtxoCommitmentHashGenerator", {
|
|
11192
11201
|
enumerable: true,
|
|
11193
|
-
get: function () { return
|
|
11202
|
+
get: function () { return chunk3LS5P32X_cjs.getUtxoCommitmentHashGenerator; }
|
|
11194
11203
|
});
|
|
11195
11204
|
Object.defineProperty(exports, "getYearlyViewingKeyDeriver", {
|
|
11196
11205
|
enumerable: true,
|
|
11197
|
-
get: function () { return
|
|
11206
|
+
get: function () { return chunk3LS5P32X_cjs.getYearlyViewingKeyDeriver; }
|
|
11198
11207
|
});
|
|
11199
11208
|
Object.defineProperty(exports, "ClaimUtxoError", {
|
|
11200
11209
|
enumerable: true,
|