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

Write prototype to share keys / accounts between forc-wallet and other local clients #143

Open
cr-fuel opened this issue Nov 6, 2023 · 0 comments
Assignees

Comments

@cr-fuel
Copy link

cr-fuel commented Nov 6, 2023

The main idea of this prototype is to create a local webserver (http for now, https later if the prototype is accepted). This webserver will expose the private key of the wallet, previous authorization from the user (in the CLI).

The workflow is quite simple, from the clients' point of view.

  1. Clients will make a request to localhost:999/forc-wallet. This will fail or timeout unless forc-wallet is listening for requests (most likely it will be opt-in, maybe we can create a service).
  2. If localhost:9999/forc-wallet comes back successfully the client will request for the private keys.
  3. The forc-wallet will prompt the user X client from Browser Y is requesting access to your account. Would you grant it? If the user has a single account and accepts it, it will be shared, otherwise, the user will be prompted to which account they'd like to share.
  4. Clients will more likely be browser extension and VSCode, but any forc client that speaks HTTPs and is running locally can benefit from this feature.
@cr-fuel cr-fuel self-assigned this Nov 6, 2023
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