@permissionless-technologies/upp-sdk 0.4.8 → 0.4.10
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/react/index.cjs
CHANGED
|
@@ -487,6 +487,7 @@ function UPPAccountProvider({
|
|
|
487
487
|
const noteOwnerHash = BigInt("0x" + raw.slice(16, 80));
|
|
488
488
|
const encryptedPayload = raw.slice(80);
|
|
489
489
|
if (noteOwnerHash !== masterKeys.ownerHash) {
|
|
490
|
+
console.log(`[syncNotes] ownerHash mismatch: note=${noteOwnerHash.toString(16).slice(0, 16)}\u2026 ours=${masterKeys.ownerHash.toString(16).slice(0, 16)}\u2026`);
|
|
490
491
|
skippedOwner++;
|
|
491
492
|
continue;
|
|
492
493
|
}
|
|
@@ -522,7 +523,7 @@ function UPPAccountProvider({
|
|
|
522
523
|
]);
|
|
523
524
|
const expectedHex = viem.toHex(expectedCommitment, { size: 32 });
|
|
524
525
|
if (expectedHex.toLowerCase() !== candidate.commitment.toLowerCase()) {
|
|
525
|
-
console.warn(
|
|
526
|
+
console.warn(`[syncNotes] Commitment mismatch: expected=${expectedHex.slice(0, 16)}\u2026 got=${candidate.commitment.slice(0, 16)}\u2026`);
|
|
526
527
|
continue;
|
|
527
528
|
}
|
|
528
529
|
const newNote = {
|
|
@@ -604,7 +605,7 @@ function UPPAccountProvider({
|
|
|
604
605
|
const ownerSecret = BigInt(note.ownerSecret);
|
|
605
606
|
const commitment = BigInt(note.commitment);
|
|
606
607
|
const nullifier = await sdk2.poseidon([
|
|
607
|
-
ownerSecret
|
|
608
|
+
ownerSecret,
|
|
608
609
|
BigInt(correctLeaf),
|
|
609
610
|
commitment
|
|
610
611
|
]);
|
|
@@ -637,7 +638,7 @@ function UPPAccountProvider({
|
|
|
637
638
|
const ownerSecret = BigInt(note.ownerSecret);
|
|
638
639
|
const commitment = BigInt(note.commitment);
|
|
639
640
|
const nullifier = await sdk2.poseidon([
|
|
640
|
-
ownerSecret
|
|
641
|
+
ownerSecret,
|
|
641
642
|
BigInt(correctLeaf),
|
|
642
643
|
commitment
|
|
643
644
|
]);
|