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
14
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
110
Alarm Arduino
esdrasedu
0
48
Continuous Delivery in Elixir
esdrasedu
0
160
Other Decks in Programming
See All in Programming
ALL CODE BASE ARE BELONG TO STUDY
uzulla
28
6.9k
他言語経験者が Golangci-lint を最初のコーディングメンターにした話 / How Golangci-lint Became My First Coding Mentor: A Story from a Polyglot Programmer
uma31
0
480
CSC305 Lecture 10
javiergs
PRO
0
320
alien-signals と自作 OSS で実現する フレームワーク非依存な ロジック共通化の探求 / Exploring Framework-Agnostic Logic Sharing with alien-signals and Custom OSS
aoseyuu
3
4.5k
Designing Repeatable Edits: The Architecture of . in Vim
satorunooshie
0
190
NIKKEI Tech Talk#38
cipepser
0
340
CSC305 Lecture 11
javiergs
PRO
0
320
Vueのバリデーション、結局どれを選べばいい? ― 自作バリデーションの限界と、脱却までの道のり ― / Which Vue Validation Library Should We Really Use? The Limits of Self-Made Validation and How I Finally Moved On
neginasu
3
1.7k
AI時代に必須!状況言語化スキル / ai-context-verbalization
minodriven
2
250
SODA - FACT BOOK(JP)
sodainc
1
9k
React Nativeならぬ"Vue Native"が実現するかも?_新世代マルチプラットフォーム開発フレームワークのLynxとLynxのVue.js対応を追ってみよう_Vue Lynx
yut0naga1_fa
2
1.9k
CSC305 Lecture 09
javiergs
PRO
0
330
Featured
See All Featured
Scaling GitHub
holman
463
140k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Into the Great Unknown - MozCon
thekraken
40
2.1k
KATA
mclloyd
PRO
32
15k
A Tale of Four Properties
chriscoyier
161
23k
Navigating Team Friction
lara
190
15k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Embracing the Ebb and Flow
colly
88
4.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
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?