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

Add a model-skeleton for the HALight protocol #1954

Open
thomaseizinger opened this issue Jan 29, 2020 · 1 comment
Open

Add a model-skeleton for the HALight protocol #1954

thomaseizinger opened this issue Jan 29, 2020 · 1 comment

Comments

@thomaseizinger
Copy link
Member

@thomaseizinger thomaseizinger commented Jan 29, 2020

Problem

In order to execute Lightning swaps, our software needs to model the protocol that is described in the according spike: https://github.com/comit-network/spikes/blob/lnd-plan-of-attack/0022-lnd-plan-of-attack.adoc

Goal

Define a skeleton around the core concepts of the protocol:

  • Ledger states
  • Events
  • Lightning ledger

Recommendation

Inspire yourself from the existing protocols: HAN and HErc20.
This is only about implementing a skeleton, hence having unimplemented!() in several places is totally fine!

Implementing the event traits (analogous to HtlcDeployed for HErc20 for example) of HALight, will uncover, what the API of a future LN connector is.
It is within the scope of this ticket to define a stubbed LndConnector that already has the API needed for our event traits.

@github-actions

This comment has been minimized.

Copy link

@github-actions github-actions bot commented Mar 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.