@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.
@@ -511,11 +511,10 @@ function UPPAccountProvider({
511
511
  const tokenRaw = "0x" + Array.from(ptBytes.slice(84, 104)).map((b) => b.toString(16).padStart(2, "0")).join("");
512
512
  const origin = getAddress(originRaw);
513
513
  const token = getAddress(tokenRaw);
514
- const pubkey = await sdk.privateToPublic(spendingSecret);
514
+ const ownerHash = await sdk.poseidon([spendingSecret]);
515
515
  const expectedCommitment = await sdk.poseidon([
516
516
  amount,
517
- pubkey.x,
518
- pubkey.y,
517
+ ownerHash,
519
518
  blinding,
520
519
  BigInt(origin),
521
520
  BigInt(token)