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
28
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
More Decks by Blockchain & Criptocurrencies
See All by Blockchain & Criptocurrencies
Blockchain - Introdução
criptoblocks
0
24
Bitcoin: a very introduction
criptoblocks
0
66
Bitcoin Transactions 1
criptoblocks
0
30
Bitcoin Transactions 2
criptoblocks
0
45
Other Decks in Technology
See All in Technology
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
Optunaの最新リリースv5.0について
pfn
PRO
0
120
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
170
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
770
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.3k
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
340
Metadata - Section 1: HTML Basics
mohab1
0
120
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
430
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
110
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
200
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
14
40k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
YesSQL, Process and Tooling at Scale
rocio
174
15k
HDC tutorial
michielstock
2
960
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Designing for humans not robots
tammielis
254
26k
Paper Plane
katiecoart
PRO
5
54k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
Crafting Experiences
bethany
1
380
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Leo the Paperboy
mayatellez
10
2.4k
Transcript
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