Portal Profile picture
Jun 27 โ€ข 8 tweets โ€ข 2 min read โ€ข Read on X
Another day, another thread! The second in a week-long daily series designed to ELI5 Portal's most important tech concepts and vision:

๐—–๐—ฎ๐—ป ๐˜†๐—ผ๐˜‚ ๐˜๐—ฟ๐—ฎ๐—ฑ๐—ฒ ๐—•๐—ง๐—– ๐—ณ๐—ผ๐—ฟ ๐—˜๐—ง๐—› ๐˜„๐—ถ๐˜๐—ต๐—ผ๐˜‚๐˜ ๐—ฎ ๐—ฏ๐—ฟ๐—ถ๐—ฑ๐—ด๐—ฒ ๐—ผ๐—ฟ ๐˜„๐—ฟ๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ฑ ๐˜๐—ผ๐—ธ๐—ฒ๐—ป๐˜€?

Yes, and itโ€™s not sci-fi! Itโ€™s called an HTLC.

Hereโ€™s how atomic swaps work ๐Ÿงตโคต๏ธImage
First: HTLC stands for ๐—›๐—ฎ๐˜€๐—ต๐—ฒ๐—ฑ ๐—ง๐—ถ๐—บ๐—ฒ-๐—Ÿ๐—ผ๐—ฐ๐—ธ๐—ฒ๐—ฑ ๐—–๐—ผ๐—ป๐˜๐—ฟ๐—ฎ๐—ฐ๐˜.

It sounds intimidating, but itโ€™s based on two simple ingredients:

๐Ÿ” A secret (hash)
โณ A countdown (timelock)

And together, they make trustless trades possible.
Imagine you want to trade BTC for ETH.

Hereโ€™s what happens:

1๏ธโƒฃ You lock your BTC with a secret (hash)
2๏ธโƒฃ The counterparty sees that and locks ETH using the same secret
3๏ธโƒฃ When you claim the ETH, the secret is revealed
4๏ธโƒฃ The counterparty then uses that secret to claim your BTC

Boom ๐Ÿ’ฅ Atomic swap complete ๐Ÿ”„โ˜‘๏ธ
But what if someone bails?

Thatโ€™s where HTLCs have your back. If either side doesnโ€™t complete their part within the set time limit, the funds are automatically refunded.

Nobody can get scammed or stuck waiting!
Portal uses HTLCs to create native cross-chain swaps:

BTC โ†”๏ธ ETH
BTC โ†”๏ธ USDT/C
ETH โ†”๏ธ SOL

All directly, all natively, all without giving up control of your assets. So, away with all the wrapping, bridges, and โ€œtrusted partiesโ€ ๐Ÿซณ๐Ÿ—‘๏ธ
HTLCs are the reason why Portal doesnโ€™t rely on validators to enforce swaps.

Portal validators help coordinate, but they ๐—ป๐—ฒ๐˜ƒ๐—ฒ๐—ฟ ๐—ต๐—ผ๐—น๐—ฑ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ณ๐˜‚๐—ป๐—ฑ๐˜€ or decide outcomes.

The swap is ๐—ฒ๐—ป๐—ณ๐—ผ๐—ฟ๐—ฐ๐—ฒ๐—ฑ ๐—ฏ๐˜† ๐—บ๐—ฎ๐˜๐—ต, ๐—ป๐—ผ๐˜ ๐—ฏ๐˜† ๐˜๐—ฟ๐˜‚๐˜€๐˜. Self-Custody is king, and you retain full control at all times. Remember that one guys!
TLDR - Bookmark this for later!

โ˜‘๏ธ No middlemen
โ˜‘๏ธ No wrapped assets
โ˜‘๏ธ No risk of loss
โ˜‘๏ธ Fully non-custodial

HTLCs make atomic swaps work, and Portal makes them real across chains.
Smash the like & repost so we can kick the algo and get more eyes on this much needed DeFi innovation.

And start yapping about Portal & HTLCs too!

Weโ€™re not stopping here though, thereโ€™s too much happening, so up tomorrow:
โ€œ๐—›๐—ผ๐˜„ ๐—ฃ๐—ผ๐—ฟ๐˜๐—ฎ๐—น ๐—น๐—ฒ๐˜๐˜€ ๐˜†๐—ผ๐˜‚ ๐˜‚๐˜€๐—ฒ ๐—ฟ๐—ฒ๐—ฎ๐—น ๐—•๐—ง๐—– ๐—ถ๐—ป ๐——๐—ฒ๐—™๐—ถ ๐˜„๐—ถ๐˜๐—ต๐—ผ๐˜‚๐˜ ๐˜„๐—ฟ๐—ฎ๐—ฝ๐—ฝ๐—ถ๐—ป๐—ด ๐—ถ๐˜.โ€

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Portal

Portal Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(