xmtp / xmtp-js

XMTP client SDKs for JavaScript applications.

Home Page:https://xmtp.org/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Invalid signature

elisealix22 opened this issue · comments

Describe the bug

Reported in Discord:

when I try to use XMTP as a user (no matter on which app), I will always get an "Invalid Signature" error in the console. Can anyone help me understand why this is happening? Or is there anyway to reset my xmtp identity?

  1. the address: 0xbDcb6419CcB21cEe2412cCed0ac4984b6A290bF0
  1. I created this address to transfer the lens profile to a rainbow wallet. But shortly after the transfer the DMs stopped working. I was able to use DMs 2-3 times though before it stopped working.
  1. I am basically experiencing this on any app that uses XMTP, These are the apps I tried: Orb, Butterfly and Converse (the messaging app)

We believe we found the root cause of the invalid signature being created in our Flutter SDK, however we should make the JS SDK more friendly to use those signatures so people can continue to use XMTP.

Related PR: xmtp/xmtp-flutter#67

Expected behavior

Allow v1 contact bundles to use either ecdsaCompact or walletEcdsaCompact signatures. The bug is that we have v1 contact bundles using walletEcdsaSignatures on the network and we only accept ecdsaCompact currently.

Steps to reproduce the bug

  1. Create a contact with a v1 bundle that has a walletEcdsaCompact signature (previously not allowed).
  2. Ensure that contact's address can create a Client and use the xmtp-js library as expected.

@elisealix22 is this user on Twitter running into the same issue?

Image

@yash-luna yes, I can confirm they are in the same state in our xmtp-debug tool. Working on a fix right now & this is my highest priority.

Screenshot 2023-05-05 at 10 37 36 AM