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

Walletconnect login for Gnosis Safe #417

Open
pcowgill opened this issue Nov 18, 2019 · 9 comments
Open

Walletconnect login for Gnosis Safe #417

pcowgill opened this issue Nov 18, 2019 · 9 comments

Comments

@pcowgill
Copy link

Describe the bug
After clicking WalletConnect as the login option, after scanning the QR code with the Gnosis Safe, it still prompts me to connect with MetaMask.

To Reproduce
Steps to reproduce the behavior:

  1. Click Sign in on Chrome or Firefox
  2. Click WalletConnect
  3. Scan the QR code with the Gnosis Safe personal edition app on iOS
  4. Appears to have succeeded in Gnosis Safe app, but not the Clovers web dapp.

Expected behavior
Web3 provider is initialized properly using WalletConnect and another wallet without prompting me to connect to MetaMask.

Screenshots
Not needed

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome and Firefox
  • Version for Chrome: 78.0.3904.97; Version for Firefox: 70.0.1 (64-bit)

Additional context
n/a

@okwme
Copy link
Member

okwme commented Nov 19, 2019

Hi @pcowgill thank you for opening an issue!
While wallet connect works with private key wallets like Rainbow, it unfortunately does not with contract based wallets like Gnosis Safe. I've discussed with their team what it would take to successfully integrate contract based wallets to do sign in requests and it's unfortunately not a priority on their roadmap. It might be possible to do ourselves and make a PR but currently also not our priority. I apologize for the inconvenience of not being able to use the Gnosis Safe at this point and hope you understand the current reasons : \

@okwme okwme closed this as completed Nov 19, 2019
@pcowgill
Copy link
Author

pcowgill commented Dec 6, 2019

@okwme Thanks for getting back to me!

This isn't a priority on WalletConnect's roadmap or Gnosis Safe's roadmap? This is surprising since Gnosis has WalletConnect integration microgrants

@pcowgill
Copy link
Author

pcowgill commented Dec 6, 2019

I do see on the microgrant page though that one of the criteria is that the dapp should not use message signing or it needs to use a workaround like DAOStack Alchemy's. But then again they do say that contract signature integration was supposed to be live back in August.

@pcowgill
Copy link
Author

pcowgill commented Dec 8, 2019

In the Argent WalletConnect integration they support EIP-1271, so if the dapp supports it I think it should work.

@okwme
Copy link
Member

okwme commented Dec 8, 2019 via email

@okwme
Copy link
Member

okwme commented Dec 9, 2019

it's actually kind of crazy and i don't understand how it's happening. I just opened a support ticket with them to ask how they do it. I just confirmed that the wallet address (where the ENS is pointed) is a proxy contract. However via walletconnect I was able to sign the login message and my server was able to recover the contract address!

That would mean there's a pk for the contract right?!

@okwme okwme reopened this Dec 9, 2019
@pcowgill
Copy link
Author

pcowgill commented Dec 9, 2019

Oh, cool!!

I haven’t done a deep dive into EIP-1271 just yet, but I would assume the answer to how it all works is in the spec.

@pcowgill
Copy link
Author

pcowgill commented Dec 9, 2019

I suppose we should rename this issue to be specifically about the Gnosis Safe, then.

@okwme
Copy link
Member

okwme commented Dec 9, 2019

ja good idea,
just for reference i'm using https://github.com/MetaMask/eth-sig-util to verify signatures created at https://github.com/clovers-network/clovers-dapp/blob/master/src/store/actions.js#L541 and verified at https://github.com/clovers-network/clovers-api/blob/master/src/middleware/auth.js#L32

@okwme okwme changed the title WalletConnect not working on desktop after scanning QR code Walletconnect login for Gnosis Safe Dec 9, 2019
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

2 participants