Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] The signature obtained from Coinbase smartWalletOnly fails to parse. #2300

Open
1 task done
SeascapeDongxu opened this issue Jan 23, 2025 · 1 comment
Open
1 task done

Comments

@SeascapeDongxu
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

RainbowKit Version

2.1.7

wagmi Version

2.12.16

Current Behavior

When signing with MetaMask, the signature obtained is: 0x3b52c537a63938cb90cb84f3751c904a01aa503eef289fae193836fbfa40712b22e0c2699cb3708ca2dfcad2a96ca8d8e2e7ffea8b06d0143a5da815f7b8d0xxx

When signing with Coinbase smartWalletOnly, the signature obtained is: 0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001d9894880f36b776d400b542362da6ce984c5919795d6c6edc2aee48819b751f20906ae49ce32856ec1ee3c6d22d1a7145b43197260a35115c9a33e84886cf8fc0000000000000000000000000000000000000000000000000000000000000025f198086b2db17256731bc456673b96bcef23f51d1fbacdd7c4379ef65465572f1d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f77b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a223864387730513962597a38463579584263716e7476736b6b486954476c6c6952446c4a4d367a6a77324659222c226f726967696e223a2268747470733a2f2f6b6579732e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73652c226f746865725f6b6579735f63616e5f62655f61646465645f68657265223a22646f206e6f7420636f6d7061726520636c69656e74446174614a534f4e20616761696e737420612074656d706c6174652e205365652068747470733a2f2f676f6f2e676c2f79616250657xxxxd000000000000000000

Why are the formats and lengths of the two signatures inconsistent? This inconsistency causes parsing errors on our side. Should I implement custom parsing logic specifically for Coinbase signatures? Ideally, shouldn’t users receive signatures in a consistent format regardless of the wallet used?

Expected Behavior

No response

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

@SeascapeDongxu SeascapeDongxu changed the title [bug] <title> The signature strings obtained after signing with MetaMask and Coinbase smartWalletOnly during custom authentication have inconsistent formats and lengths. [bug] The signature obtained from Coinbase smartWalletOnly fails to parse. Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant