AlphaWallet / AlphaWallet/alpha-wallet-android

WalletConnect v2: Signing from a different wallet

Đang mở
#3,185 0 bình luận 0 reaction 1 người được giao Được @seabornlee nhận Xem trên GitHub
Ngôn ngữ chính
Java
Star
646
Fork
579
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

With WallectConnect v2, if you sign from a different wallet the signature comes from the currently selected wallet.

Reproduce:

go to the react app: https://react-app.walletconnect.com/

Connect using your "wallet A".

Now change wallets to your (valid) "wallet B".

Click 'personal_sign' and process the transaction, which fails (because the app is expecting a signature from wallet A, but you provide a sig from Wallet B).

I see that the address is marked with a warning, but there should be one of the following things:

1. Refuse to sign and state why (Not a good solution).
2. Don't sign and offer to change user keys (Not good either).
3. Before popping open the Sign Dialog (after user clicks next), pop up a warning which is similar to the one you use in the 'Token Shortcut' addition - the user can continue to sign with the original key, or they can abort signing. Use the proper wallet in the sign dialog (NB ActionSheetSignDialog has its own ViewModel with its own wallet fetch).

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.