ChainAgnostic / CAIPs

Chain Agnostic Improvement Proposals
https://chainagnostic.org
Creative Commons Zero v1.0 Universal
513 stars 152 forks source link

[CAIP-27] Corner-cases around accounts assumptions #202

Open bumblefudge opened 1 year ago

bumblefudge commented 1 year ago

Some methods implicitly or explicitly assume exactly one account. If multiple accounts have been authorized by CAIP-25, but none "selected"/set-as-default/etc, calling said methods via CAIP-27 might produce unexpected or, worse, insecure behavior. Some mitigations that have been floated so far include:

But maybe what's more needed is a use case (so far no CAIPs have a ## Use Cases section!), or a good, meaty example of a corner case where this happen? Do people know of EIPs that explicitly or implicitly define a method assuming exactly one account?

(Moved out of CAIP-27 Discussion)

pedrouid commented 1 year ago

Can you give exact examples for these?

WalletConnect v2.0 is now in production which is compatible with both CAIP-25 and CAIP-27

We haven’t found any of these corner cases for both EVM and non-EVM chains