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

SC: Feature addition, allow merchant to subscribe to incoming client requests #3069

Open
AleksandarFilipov opened this issue Dec 16, 2019 · 1 comment · May be fixed by #3340
Open

SC: Feature addition, allow merchant to subscribe to incoming client requests #3069

AleksandarFilipov opened this issue Dec 16, 2019 · 1 comment · May be fixed by #3340
Labels
area/statechannels Issues or PRs related to state channels kind/feature Issues or PRs related to a new feature

Comments

@AleksandarFilipov
Copy link

AleksandarFilipov commented Dec 16, 2019

Feature request.

In order to make state channels more approachable we should allow the merchant subscribe to incoming client requests.
A coffee shop should be able to provide a service where the client start their app which should establish/re-establish a connection with the merchant where the merchant should enable automatically start the corresponding peer (channel client).

This would allow the following suggested end to end user flow.

  1. Customer (bob) downloads app.
  2. bob starts app, app targets predefined node where his fsm is hosted. Once app is started a channel open/reestablish is triggered
  3. bobs action triggers an event at merchant (alice). Upon this action merchant opens the corresponding fsm using open/reestablish.
  4. Bob and Alice now have an connection.

In the initial embodiment bob could provide contracts (if needed) and the alice app (web app) could be fairly simple.

Prerequisites for this to work is that there is a hosting node which can be reached by both parties. ref: aeternity/terraform-aws-testnet-api#23

@AleksandarFilipov AleksandarFilipov added kind/feature Issues or PRs related to a new feature area/statechannels Issues or PRs related to state channels labels Dec 16, 2019
@AleksandarFilipov AleksandarFilipov changed the title SC: Feature, addition allow merchant to subscribe to incoming client requests SC: Feature addition, allow merchant to subscribe to incoming client requests Dec 16, 2019
@uwiger uwiger added this to To do in State Channels Jan 21, 2020
@uwiger
Copy link
Member

uwiger commented Jun 18, 2020

Currently, a merchant can create one or more responder instance(s) on a given port, waiting for 'any' initiator. This should allow a user to connect, and the merchant will be notified via standard FSM reporting.

Is this sufficient, @AleksandarFilipov ?

@velzevur velzevur linked a pull request Aug 29, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/statechannels Issues or PRs related to state channels kind/feature Issues or PRs related to a new feature
Projects
State Channels
  
To do
Development

Successfully merging a pull request may close this issue.

2 participants