Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Atomic Swap
Search
Esdras Eduardo
May 27, 2018
Programming
0
9
Atomic Swap
making atomic swap between ethereum and bitcoin
Esdras Eduardo
May 27, 2018
Tweet
Share
More Decks by Esdras Eduardo
See All by Esdras Eduardo
Dapps on Ethereum
esdrasedu
0
92
Alarm Arduino
esdrasedu
0
39
Continuous Delivery in Elixir
esdrasedu
0
150
Other Decks in Programming
See All in Programming
Code Reviews
bkuhlmann
4
900
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
AmperとFleetを使ったAndroidアプリ
yoppie
0
260
新宿ダンジョンを可視化してみた
satoshi7190
3
390
PostmanでAPIの動作確認が楽になった話
h455h1
0
180
GitHub Copilotのススメ
marcy731
1
220
Tailwind CSSを本気でカスタマイズする方法
fsubal
14
5.5k
AppRouter Panel Talk
yosuke_furukawa
PRO
1
460
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
180
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
520
Go製Webアプリケーションのエラーとの向き合い方大全、あるいはやっぱりスタックトレース欲しいやん / Kyoto.go #50
utgwkk
6
1.8k
Java 22 Overview
kishida
1
190
Featured
See All Featured
Designing with Data
zakiwarfel
96
4.8k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
How GitHub (no longer) Works
holman
305
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
The Language of Interfaces
destraynor
151
23k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
A Philosophy of Restraint
colly
197
16k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
The Cult of Friendly URLs
andyhume
74
5.7k
Web Components: a chance to create the future
zenorocha
306
41k
Why Our Code Smells
bkeepers
PRO
331
56k
Transcript
Atomic Swap
@esdrasedu
[email protected]
github.com/esdrasedu
www.314coins.com
www.meetup.com/elug_sp/
www.meetup.com/ethereum_sp
O que é ATOMIC SWAP?
None
Alice Bob
Alice sha256(?) =
Alice
Alice
Bob
Bob
Alice Bob
O que blockchain precisa para o ATOMIC SWAP? • Hash
function • Smart contract (if else) • Timelocked function
None
Ethereum(Solidity)
BITCOIN/DECRED/LITECOINS... P2SH OP_TRUE OP_IF OP_RIPEMD160 {SECRET} OP_EQUALVERIFY OP_DUP OP_HASH160 {HASH}
OP_CHECKLOCKTIMEVERIFY
DEMO
Links https://speakerdeck.com/esdrasedu/atomic_swap https://github.com/esdrasedu/atomic_swap https://bitcointalk.org/index.php?topic=193281 https://en.bitcoin.it/wiki/Atomic_cross-chain_trading https://github.com/decred/atomicswap https://hackernoon.com/so-how-do-i-really-do-an-atomic-swap-f797852c7639
Perguntas?