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

[SPIKE] Explore limiting connected dapps to certain public keys #1652

Open
piyalbasu opened this issue Nov 12, 2024 · 0 comments
Open

[SPIKE] Explore limiting connected dapps to certain public keys #1652

piyalbasu opened this issue Nov 12, 2024 · 0 comments

Comments

@piyalbasu
Copy link
Contributor

Right now when you connect a dapp to Freighter, the connection is global. This means if I have 3 addresses in Freighter, and I connect dapp.com, dapp.com can request and instantly receive any one of those 3 public keys on any network.

For now, "connection" just means that Freighter will transmit the public key without prompting the user. But in the future, we may want to give a connected dapps more rights and privileges. In that case, we will want to limit what accounts a dapp can connect to by having a Freighter user have to opt each one of their addresses in.

For example: If I connect public key G1 on Testnet to a dapp, the dapp shouldn't be connected to G2 or G1 on Mainnet.

  • We'll need to adjust our schema to silo connection by public key and network
  • We'll need to show users what keys on a network are connected to each dapp in Connected dapps. How will we show this?
  • Will we want to limit signing of tx's to just keypairs that are connected to the originating dapp?
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