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

Create cross-chain-htlc.md #85

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Create cross-chain-htlc.md #85

merged 2 commits into from
Jun 26, 2024

Conversation

doitian
Copy link
Member

@doitian doitian commented Jun 19, 2024

Specification of Payment Channel Cross-Chain Protocol with HTLC.

Implementation: #46

@doitian doitian requested a review from quake June 19, 2024 00:03

Cross-chain payments involve transferring value across different blockchain networks, which can be difficult due to the absence of direct interoperability. To address this challenge, Hashed Time Lock Contracts (HTLCs) offer a solution by facilitating atomic swaps. These swaps guarantee that transactions are either executed in full or not at all, eliminating the possibility of partial transfers.

To ensure stability in cross-chain payments, the assets utilized in different blockchain networks must maintain a fixed swap ratio. For instance, the Bitcoin payment channel exclusively supports BTC. Meanwhile, CKB can incorporate a wrapped BTC token via the UDT channel, establishing a consistent 1:1 ratio with Bitcoin.
Copy link
Collaborator

@chenyukang chenyukang Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reality, the swap ratio will change with time, how can we keep it up to date?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assume that wrapped BTC is always 1:1 with BTC, or use an external script to get the ratio when proposing the exchange order.

Co-authored-by: Flouse <1297478+Flouse@users.noreply.github.com>
@quake quake merged commit fb1caeb into main Jun 26, 2024
16 checks passed
@quake quake deleted the cross-chain-htlc-spec branch June 28, 2024 07:12
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

Successfully merging this pull request may close these issues.

4 participants