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

Covenants: Trustless & Offline LNURL payments #466

Open
kilrau opened this issue Jan 26, 2024 · 0 comments
Open

Covenants: Trustless & Offline LNURL payments #466

kilrau opened this issue Jan 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kilrau
Copy link
Member

kilrau commented Jan 26, 2024

Background

Inspired by the Breez idea of signing payments within mobile notification device compute time and Aqua's desire to enable "Receive to user@aquawallet.io" Lightning Addresses, we are exploring the idea to implement Liquid Reverse Swaps to LNURL/LN addresses trustlessly - using covenants.

Goal

  • trustless LNURL/Lightning Addresses
  • receiver can receive payments offline

How it works

Boltz adds a script path that allows coins to be claimed to the wallet address of the user (and only to this address) by just providing the preimage. No signature required. This way we can have a 3rd party with access to swap preimages broadcast claim transactions without the possibility to steal because it can only go to the user's address. The user will see received funds next time coming online.

Useful OPCODEs:
OP_INSPECTINPUTVALUE
OP_INSPECTOUTPUTVALUE
OP_INSPECTOUTPUTSCRIPTPUBKEY

TBD

  • Blinding as we are using CT on Liquid only

More

A mobile wallet might even use a primitive like Android's doze windows to claim instead of relying on a third party if there is a chance the 3rd party could collude with Boltz and leak preimages.

@kilrau kilrau added the enhancement New feature or request label Jan 26, 2024
@kilrau kilrau changed the title Covenants: Trustless LNURL/Lightning Addresses Covenants: Trustless LNURL/Lightning Addresses for Liquid Reverse Swaps Jan 26, 2024
@kilrau kilrau changed the title Covenants: Trustless LNURL/Lightning Addresses for Liquid Reverse Swaps Covenants: Trustless & Offline LNURL payments Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant