-
Notifications
You must be signed in to change notification settings - Fork 129
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
Topics: Add Swap-in Potentiam (SIP) #1538
Open
arshbot
wants to merge
14
commits into
bitcoinops:master
Choose a base branch
from
arshbot:swap-in-potentiam
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+76
−0
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6f0a54c
Topics: Add Swap-in Potentiam (SIP)
arshbot e9cae7a
Update _topics/en/swap-in-potentiam.md
arshbot 5982b31
Update _topics/en/swap-in-potentiam.md
arshbot 25558d8
Update _topics/en/swap-in-potentiam.md
arshbot 9d9e66a
Update _topics/en/swap-in-potentiam.md
arshbot b557295
Update _topics/en/swap-in-potentiam.md
arshbot 1b3e735
Update _topics/en/swap-in-potentiam.md
arshbot 1e448ad
Update _topics/en/swap-in-potentiam.md
arshbot 2e9bc14
Merge branch 'master' into swap-in-potentiam
arshbot 25ecd24
Responded to crits, updated links
arshbot 2eb8662
Update _topics/en/swap-in-potentiam.md
arshbot 2035d65
Update _topics/en/swap-in-potentiam.md
arshbot d0618d4
Update _topics/en/swap-in-potentiam.md
bitschmidty dbc0436
Update _topics/en/swap-in-potentiam.md
bitschmidty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
title: Swap-in Potentiam (SIP) | ||
|
||
## Optional. test Shorter name to use for reference style links e.g., "foo" | ||
## will allow using the link [topic foo][]. Not case sensitive | ||
shortname: swap-in potentiam | ||
|
||
## Optional. An entry will be added to the topics index for each alias | ||
#aliases: | ||
# - Foo | ||
|
||
## Required. At least one category to which this topic belongs. See | ||
## schema for options | ||
topic-categories: | ||
- Contract Protocols | ||
- Lightning Network | ||
|
||
## Required. Use Markdown formatting. Only one paragraph. No links allowed. | ||
## Should be less than 500 characters | ||
excerpt: > | ||
**Swap-in-Potentiam (SIP)** is a protocol that facilitates the immediate transfer of confirmed | ||
on-chain Bitcoin to the Lightning Network. It reduces trust requirements compared to other | ||
instant channel opening methods like 0-conf channels by temporarily committing to co-ownership with a Lightning Service | ||
Provider (LSP) and delaying unilateral access per a timeout. | ||
|
||
## Optional. Produces a Markdown link with either "[title][]" or | ||
## "[title](link)" | ||
primary_sources: | ||
- title: Moving Onchain Funds "Instantly" To Lightning (Jesse Posner, ZmnSCPxj) | ||
link: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-January/003810.html | ||
|
||
- title: LSPS C= Extension, Swap-in-Potentiam | ||
link: https://github.com/ZmnSCPxj-jr/swap-in-potentiam/blob/master/doc/swap-in-potentiam.md | ||
|
||
## Optional. Each entry requires "title", "url", and "date". May also use "feature: | ||
## true" to bold entry | ||
optech_mentions: | ||
- title: "Swap-in Potentiam Announced" | ||
url: /en/newsletters/2023/12/20/#swap-in-potentiam | ||
|
||
- title: Non-interactive LN channel open commitments | ||
url: /en/newsletters/2023/01/11/#non-interactive-ln-channel-open-commitments | ||
arshbot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Optional. Same format as "primary_sources" above | ||
see_also: | ||
- title: Hash Time Locked Contracts from Bitcoin Wiki | ||
link: https://en.bitcoin.it/wiki/Hash_Time_Locked_Contracts | ||
arshbot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- title: Swap-in potentiam for Phoenix | ||
link: https://gist.github.com/t-bast/5fd89979a8088b99d0b95c124902aa56 | ||
- title: Swaproot | ||
link: https://acinq.co/blog/phoenix-swaproot | ||
|
||
- title: Payjoin-in-Potentiam | ||
link: https://delvingbitcoin.org/t/payjoin-in-potentiam-externally-fund-an-lsp-channel-open-with-one-transaction/749 | ||
|
||
--- | ||
Swap-in potentiam (SIP) differs from typical HTLC-based swaps by | ||
allowing for a pre-commital stage. This allows for; reusable swap addresses, | ||
immediate transfers to lightning, and reduced trust requirements compared to | ||
0-conf channels. | ||
|
||
In this scheme, the reusable swap address is a contract between Alice and Bob | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the "reusable" aspect of the address is important, it should perhaps be further elaborated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Elaborated |
||
that allows for two spend paths; Alice and Bob cosign, or Alice | ||
can spend unilaterally after a timeout. | ||
|
||
Once the swap address is funded and confirmed, Alice can choose one of the | ||
following options; swap the funds into a new or existing lightning network | ||
channel with the help of Bob, or send the funds to a new onchain address with | ||
the help of Bob. Alice also has the third option of waiting for the recovery | ||
timeout if Bob is offline or uncooperative. | ||
|
||
SIP is primarily geared towards mobile users who may go offline for extended | ||
periods, and a variation called swaproot has been implemented in Phoenix wallet. | ||
|
||
{% include references.md %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arshbot in going through the content one last time before merge, I saw this is a dead link and it doesn't appear there is an equivalent repo under https://github.com/ZmnSCPxj-jr/
Is there another different link you are aware of? Or should we remove this reference?