Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Bitcoin Transactions 3
Search
Blockchain & Criptocurrencies
April 28, 2018
Technology
31
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bitcoin Transactions 3
Class #4 - Scripts
Blockchain & Criptocurrencies
April 28, 2018
Transcript
78 slides
Transações: scripts Bitcoin
2 Previously…
3
4
5 tx1 tx2 tx3
6 input output origem destino
7
3 8 input output Maria Zé input output Zé ø
20 5 input output Chico Maria 5 input output Mané Zé
9 input output vi vo vi vo = vi vo
> vi vo <
10 Com fee e sem troco Com fee e com
troco
11 Outputs
12 3 input output Mané Zé Outputs
13 3 input output Mané Zé Outputs
14 Outputs
15 João Maria Maria João Zé João
16 João Maria Maria João Zé João
17
18 Scripts
19 Scripts
20 input output scriptIn scriptOut
21 input output scriptOut input output scriptIn scriptOut scriptIn tx1
tx2
22 scriptOut scriptIn Contratos https://en.bitcoin.it/wiki/Contract
23 scriptPubKey scriptSig
24 scriptPubKey scriptSig OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
25 Bitcoin Scripting Language https://en.bitcoin.it/wiki/Script
26 scriptPubKey scriptSig OP_CHECKSIG <sig> <pubKey> OP_EQUALVERIFY <pubKeyHash?> OP_HASH160 OP_DUP
27 OP_CHECKSIG <sig> <pubKey> OP_EQUALVERIFY <pubKeyHash?> OP_HASH160 OP_DUP
28 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
29 Stack Based
30 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
31 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
32 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig>
33 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
34 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
<pubKey>
35 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
<pubKey>
36 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
<pubKey> <pubKeyHash>
37 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
<pubKeyHash> <pubKeyHash?>
38 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig> <pubKey>
<pubKeyHash> <pubKeyHash?>
<pubKey> 39 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG <sig>
40 input output scriptOut input output scriptIn
41 Pay-to-PubkeyHash Pague para uma chave pública
42 Pay-to-ScriptHash Pague para um script <code> <code>
43 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy Bitcoin Adresses P2PKH P2SH
44 1BitcoinEaterAddressDontSendf59kuE 1HEiLHiTLERxxxxxxxxxxxxxxxy23HRj8 1MakeAmericaGreatAgainXXXXXVTpfQY
45 Proof-of-Burn
46 scriptPubKey scriptSig OP_RETURN <data> <ble> <bla>
47 OP_RETURN <data> <ble> <bla>
48 OP_RETURN <data> <ble> <bla>
49 OP_RETURN <data> <ble> <bla> <bla>
50 OP_RETURN <data> <ble> <bla> <bla> <ble>
51 OP_RETURN <data> <ble> <bla> <bla> <ble>
52
53
54
55 Pay-to-PubkeyHash pague para uma chave pública
56
57
58
59 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
60 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
61 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
62 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
63 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
64 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
65 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
66 <sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash?> OP_EQUALVERIFY OP_CHECKSIG
67 Pay-to-ScriptHash Pague para um script <code> <code>
68
69 https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki
70 Bitcoin Improvement Process
71
72
73 https://github.com/bitcoin/bips/blob/master/README.mediawiki
74
75 Segregated Witness 24.07.2017
76 Cenas para os próximos capítulos…
Valeu!
[email protected]
78
More Decks by Blockchain & Criptocurrencies
See All by Blockchain & Criptocurrencies
Blockchain - Introdução
criptoblocks
0
26
Bitcoin: a very introduction
criptoblocks
0
70
Bitcoin Transactions 1
criptoblocks
0
34
Bitcoin Transactions 2
criptoblocks
0
48
Other Decks in Technology
See All in Technology
2026-11-16 JAWS-UG コンテナ支部 #31 ゆるLT大会 ECR のライフサイクルポリシーを いい感じに設定したい / ECR Lifecycle policy
masasuzu
3
620
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
260
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
160
【Oracle AI SPOTLIGHT ウェビナー】AI時代、狙われるデータと止められない業務をどう守るか?
oracle4engineer
PRO
1
140
Kansai WordPress Meetup@大阪『ブロックテーマを作る上で知っておくべきこと
torounit
0
310
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
270
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
220
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
5
1.6k
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
470
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Raft: Consensus for Rubyists
vanstee
143
7.9k
Navigating Weather and Climate Data
rabernat
0
600
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410
The Cult of Friendly URLs
andyhume
79
7.1k
Making the Leap to Tech Lead
cromwellryan
135
10k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
360
Building Applications with DynamoDB
mza
96
7.3k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
630
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
630
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k