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

Implement POST /lsp/jitchannel from LSP spec #71

Closed
JssDWt opened this issue Mar 20, 2023 · 1 comment
Closed

Implement POST /lsp/jitchannel from LSP spec #71

JssDWt opened this issue Mar 20, 2023 · 1 comment
Assignees

Comments

@JssDWt
Copy link
Collaborator

JssDWt commented Mar 20, 2023

The proposed JIT channel spec exposes an endpoint GET /lsp/jitchannel, which reserves a SCID for the client, which it can use in a routing hint to have a JIT channel opened by the LSP.

  • if version is not 1: error
  • if the promise is not valid: error
  • if valid_until expired: error
  • if payment_size falls out of range: error
  • if channel_size falls out of range: error
  • if channel size * 99% > payment size: error
  • reserve a unique SCID for this client until the expiration period

Note that the SCID has to be persisted along with the client request parameters.

Depends on promise generation defined in #70
Depends on SCID generation defined in #72

@JssDWt JssDWt self-assigned this Mar 20, 2023
@JssDWt
Copy link
Collaborator Author

JssDWt commented Aug 7, 2023

Closing in favor of #108

@JssDWt JssDWt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 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