@permissionless-technologies/upp-sdk 0.4.1 → 0.4.2
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-MDF37354.js → chunk-6BHF4HOB.js} +14 -24
- package/dist/chunk-6BHF4HOB.js.map +1 -0
- package/dist/{chunk-BZD5KJL3.cjs → chunk-ZQ5LLJQC.cjs} +14 -24
- package/dist/chunk-ZQ5LLJQC.cjs.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.js +1 -1
- package/dist/react/index.cjs +2 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +2 -3
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BZD5KJL3.cjs.map +0 -1
- package/dist/chunk-MDF37354.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkUTAJSERA_cjs = require('./chunk-UTAJSERA.cjs');
|
|
4
4
|
var chunkQ2E432UK_cjs = require('./chunk-Q2E432UK.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkZQ5LLJQC_cjs = require('./chunk-ZQ5LLJQC.cjs');
|
|
6
6
|
var chunkI5EKGD4P_cjs = require('./chunk-I5EKGD4P.cjs');
|
|
7
7
|
var chunkSWTNJPK5_cjs = require('./chunk-SWTNJPK5.cjs');
|
|
8
8
|
var chunkIIUKM5VE_cjs = require('./chunk-IIUKM5VE.cjs');
|
|
@@ -3179,7 +3179,7 @@ Object.defineProperty(exports, "syncMerkleTree", {
|
|
|
3179
3179
|
});
|
|
3180
3180
|
Object.defineProperty(exports, "makeRpcIndexer", {
|
|
3181
3181
|
enumerable: true,
|
|
3182
|
-
get: function () { return
|
|
3182
|
+
get: function () { return chunkZQ5LLJQC_cjs.makeRpcIndexer; }
|
|
3183
3183
|
});
|
|
3184
3184
|
Object.defineProperty(exports, "addPoints", {
|
|
3185
3185
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from './chunk-CEJN5ZE5.js';
|
|
2
2
|
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-OBBSIPEK.js';
|
|
3
|
-
export { makeRpcIndexer } from './chunk-
|
|
3
|
+
export { makeRpcIndexer } from './chunk-6BHF4HOB.js';
|
|
4
4
|
export { addPoints, computeSharedSecret, deriveDecryptionViewingKey, deriveEncryptionViewingKey, getBasePoint, getSubOrder, isOnCurve, mulPointScalar, packPoint, pointToTuple, privateToPublic, tupleToPoint } from './chunk-EHGH6TAW.js';
|
|
5
5
|
export { STARK_AMOUNT_SCALE, STARK_ASP_TREE_DEPTH, STARK_STATE_TREE_DEPTH, addressToM31, buildStarkTransferWitness, buildStarkWithdrawWitness, computeTransferPublicInputsSeed, computeWithdrawPublicInputsSeed, isStarkAligned, packM31Digest, scaleAmountForStark, splitSecretToM31Limbs, truncateToM31 } from './chunk-7T4CUE6E.js';
|
|
6
6
|
export { MAX_TREE_DEPTH, MerkleTree, buildMerkleTree, getMerkleProof, verifyMerkleProof } from './chunk-GPF72JFR.js';
|
package/dist/indexer/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZQ5LLJQC_cjs = require('../chunk-ZQ5LLJQC.cjs');
|
|
4
4
|
var chunkERQE57IA_cjs = require('../chunk-ERQE57IA.cjs');
|
|
5
5
|
require('../chunk-G7VZBCD6.cjs');
|
|
6
6
|
|
|
@@ -8,23 +8,23 @@ require('../chunk-G7VZBCD6.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "computeSearchTag", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkZQ5LLJQC_cjs.computeSearchTag; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "makeRpcIndexer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkZQ5LLJQC_cjs.makeRpcIndexer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "matchesSearchTag", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkZQ5LLJQC_cjs.matchesSearchTag; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "tryDecryptNote", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkZQ5LLJQC_cjs.tryDecryptNote; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "unpackNoteData", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkZQ5LLJQC_cjs.unpackNoteData; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "createAutoAdapter", {
|
|
30
30
|
enumerable: true,
|
package/dist/indexer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { computeSearchTag, makeRpcIndexer, matchesSearchTag, tryDecryptNote, unpackNoteData } from '../chunk-
|
|
1
|
+
export { computeSearchTag, makeRpcIndexer, matchesSearchTag, tryDecryptNote, unpackNoteData } from '../chunk-6BHF4HOB.js';
|
|
2
2
|
export { createAutoAdapter, createIndexedDBAdapter, createLocalStorageAdapter, createMemoryAdapter, indexedDBAdapter, localStorageAdapter, memoryAdapter } from '../chunk-XV72HNHN.js';
|
|
3
3
|
import '../chunk-Z6ZWNWWR.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.cjs
CHANGED
|
@@ -512,11 +512,10 @@ function UPPAccountProvider({
|
|
|
512
512
|
const tokenRaw = "0x" + Array.from(ptBytes.slice(84, 104)).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
513
513
|
const origin = viem.getAddress(originRaw);
|
|
514
514
|
const token = viem.getAddress(tokenRaw);
|
|
515
|
-
const
|
|
515
|
+
const ownerHash = await sdk.poseidon([spendingSecret]);
|
|
516
516
|
const expectedCommitment = await sdk.poseidon([
|
|
517
517
|
amount,
|
|
518
|
-
|
|
519
|
-
pubkey.y,
|
|
518
|
+
ownerHash,
|
|
520
519
|
blinding,
|
|
521
520
|
BigInt(origin),
|
|
522
521
|
BigInt(token)
|