SlideShare a Scribd company logo
Transactions 101
@blockstrap
#StartingBlock2015
Introduction & Primer
First, some context
These slides are from the #StartingBlock2015 tour by @blockstrap.
6 European countries in 8 days – (Istanbul, Amsterdam, Barcelona, Prague, Berlin
& London). We met lots of great people, answered lots of great questions and had
a great time. We look forward to meeting many of them again in the near future.
These slides might only make perfect sense if you were at the talks and can
remember all the additional points we made whilst discussing the tech.
This deck is 3rd
of 6.
Questions? Comments? @MrAdamGiles adam@neuroware.io
Transactions 101
Refresher
Transactions are what it’s all about
Transactions transfer value between the sender and recipient
Refresh on public/private keys:
βž” Two keys, one private one public
βž” Encryption by one, decryption by the other and vice versa
βž” If you can encrypt a known value, which is then decrypted by the
public key, you must have the private key
Transactions 101
Frame Your Understanding
βž” Nobody actually β€˜has’ bitcoins - you can’t download them, or store them
on your computer
βž” Remember that the blockchain is a ledger - it records the transfer of
bitcoin between people
βž” The records stay on the blockchain - what gets transferred is the
β€˜control’ of the bitcoin
βž” β€˜Alice gives Bob 2btc’ becomes β€˜Alice transfers control of 2 of her
bitcoins to Bob’
βž” Control through cryptography
Transactions 101
Control via Cryptography
βž” When someone sends you coins they publicly place them under the
control of your public key (in the form of an Address)
βž” If you can prove that you have the matching public key, and the
matching private key, the network lets you control the coins
βž” This gets super technical, super quick. Don’t panic if you don’t get all of
this in your first pass
Transactions 101
Control via Cryptography
βž” Because blockchain transactions are anonymous, there needs to be a
way to enforcing controls on the coins
βž” Transactions are programmable
βž” Each transaction contains a program that specifies conditions that must
be met in order to spend the coins
Transactions 101
Think of it this way...
βž” You don't have the amount of money you claim to have
βž” You only have the money that you can convince the network that you
control
βž” You convince the network by proving you have both the public key and
the private key that controls those coins
βž” If you can't convince the network, you don't have that money any more
Transactions 101
Protect your Private Keys
βž” Your private keys control your money. Most bitcoin β€˜hacks’ or β€˜thefts’ are
in reality, crackers getting a copy of your private key. They then use this
to move your coins to an address they control
βž” If you lose your private key, you lose your money
βž” Keep the offline (on paper!) or a specialised hardware device
βž” If they must be online, encrypt them when not in use, only use for small
amounts of money, use cold/warm/hot wallets to manage risk
Transactions 101
No recoverability
Transactions 101
Offline storage
Transactions 101
Offline storage
Transactions 101
Offline storage
CBGTBT - Part 3 - Transactions 101
Transactions 101
Addresses Private key
Public key
Hash
Encode
Address
Transactions 101
Addresses
βž” Hides your public key (because of the hashing), but you still have both
the public and private key
βž” This is your bitcoin β€˜Address’ - you tell people who need to send you
coins this address
βž” You will have many Addresses
βž” Your wallet software keeps track of all payments made β€˜to’ your Address
Transactions 101
Transactions Control Ownership
βž” Transaction transfer control from it’s inputs to it’s outputs
βž” Someone controls some bitcoin and they put them into the transaction,
the recipient receives the outputs from the transaction
βž” The outputs from an earlier transaction form the inputs of the latter one
βž” When we say β€˜Bob has 2 bitcoin’ what we mean is β€˜Bob has control of
one or more unspent transaction outputs that total 2 bitcoin
CBGTBT - Part 3 - Transactions 101
Transactions 101
How to spend an input
βž” When you create a transaction, you transfer control to a hashed public key
βž” β€œWhomever has the private key that matches the public key that matches
the hash+enc of the public key (i.e. the Address) can spend these coins”
βž” These instructions are embedded in the transaction in a field called
scriptPubKey
βž” looks a bit like this:
76A9149260C8E4924720B040F20B00D7F78C0F0FDBA3C288AC
Transactions 101
Spending an input uses it up
βž” Once a Transaction’s outputs are used as inputs in a new transaction,
they are considered β€˜spent’. If the owner tries to use them again, it’s
known as a β€˜double spend’
βž” A Txn’s inputs just reference the UTXO they are taken from
βž” Using a UTXO destroys it - you must fully spend all of the value
βž” If you don’t want to spend that much, you send the β€˜spare’ value back to
yourself to a β€˜change address’
Any Questions?

More Related Content

ODP
CBGTBT - Part 2 - Blockchains 101
ODP
CBGTBT - Part 6 - Transactions 102
ODP
CBGTBT - Part 5 - Blockchains 102
ODP
CBGTBT - Part 4 - Mining
PPTX
Intro into blockchain
PPTX
Build your own block chain
ODP
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
PDF
Metadata in the Blockchain: The OP_RETURN Explosion
CBGTBT - Part 2 - Blockchains 101
CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 5 - Blockchains 102
CBGTBT - Part 4 - Mining
Intro into blockchain
Build your own block chain
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Metadata in the Blockchain: The OP_RETURN Explosion

What's hot (20)

PDF
Information security in private blockchains
PDF
Bitcoin, Banking and the Blockchain
PDF
Blockchain overview, use cases, implementations and challenges
PDF
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
PDF
create your own cryptocurrency
PPTX
Altcoins
PDF
gething started - ethereum & using the geth golang client
PDF
Pi network
PPTX
Blockchains 101
PDF
Blockchain bootcamp for boards
PDF
PPTX
δ»₯ζ―”η‰ΉεΉ£η‚ΊδΎ‹ηš„ε€ε‘ŠιˆζŠ€θ‘“δ»‹η΄Ή ( Intro to Blockchain using Bitcoin as an example)
PDF
Blockchain
PPTX
BLOCKCHAIN TECHNOLOGY
PDF
02 hello smart contracts
PPTX
Blockchain 101
PDF
Sidechains Presentation
PDF
Introduction to blockchain and cryptocurrency technologies
PDF
Sidechain talk
Β 
PPTX
Encode x Tezos: Intro to Blockchain
Information security in private blockchains
Bitcoin, Banking and the Blockchain
Blockchain overview, use cases, implementations and challenges
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
create your own cryptocurrency
Altcoins
gething started - ethereum & using the geth golang client
Pi network
Blockchains 101
Blockchain bootcamp for boards
δ»₯ζ―”η‰ΉεΉ£η‚ΊδΎ‹ηš„ε€ε‘ŠιˆζŠ€θ‘“δ»‹η΄Ή ( Intro to Blockchain using Bitcoin as an example)
Blockchain
BLOCKCHAIN TECHNOLOGY
02 hello smart contracts
Blockchain 101
Sidechains Presentation
Introduction to blockchain and cryptocurrency technologies
Sidechain talk
Β 
Encode x Tezos: Intro to Blockchain
Ad

Viewers also liked (19)

ODP
CBGTBT - Part 1 - Workshop introduction & primer
PDF
Stem Cell Case Study By Dr. Bennett
PDF
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
PPTX
Bitcoin
PPTX
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
PPTX
Ppt 2007 tutorial complete
PPTX
Functions and formulas of ms excel
PPTX
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
PDF
How does a blockchain work?
PPTX
MS EXCEL PPT PRESENTATION
PDF
Blockchain demystification
PDF
Blockchain: the technologies behind Bitcoin, Ethereum, ICO, and more
PPTX
ISTA 2017 - Blockchain, beyond Bitcoin
PDF
Block chain 101 what it is, why it matters
PPTX
Blockchain: The Information Technology of the Future
PPTX
Bitcoin and Blockchain Technology Explained: Not just Cryptocurrencies, Econo...
CBGTBT - Part 1 - Workshop introduction & primer
Stem Cell Case Study By Dr. Bennett
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
Bitcoin
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
Ppt 2007 tutorial complete
Functions and formulas of ms excel
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
How does a blockchain work?
MS EXCEL PPT PRESENTATION
Blockchain demystification
Blockchain: the technologies behind Bitcoin, Ethereum, ICO, and more
ISTA 2017 - Blockchain, beyond Bitcoin
Block chain 101 what it is, why it matters
Blockchain: The Information Technology of the Future
Bitcoin and Blockchain Technology Explained: Not just Cryptocurrencies, Econo...
Ad

Similar to CBGTBT - Part 3 - Transactions 101 (20)

PPTX
Crypto Mining Project Proposal by Slidesgo.pptx
PPTX
Intro to Crypto Knowledge by Abid Hussain.pptx
PDF
C-Suite Snacks Webinar Series: How Companies are Making Money in Bitcoin and ...
PPTX
Blockchain and Bitcoin.pptx
PPTX
bitcoin
PPTX
15-Bitcoin.pptx
PPT
Blockchain
PDF
CRYPTO CURRENCY-2022OD205.pdf
PPTX
bitcoin_presentation
PPTX
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
PPTX
Blockchain and Bitcoin
PDF
Bitcoin story of programable currency
PPTX
Cryptocurrency Seminar for Information Technology
PDF
Blockchain meetup
PPTX
A Quick Start To Blockchain by Seval Capraz
PPTX
Investment Club Presentation 1 2021
PDF
Bitcoin Breakthrough Training Guide.
PDF
Trading-CryptoCurrency-Advanced-Trading-Strategies.pdf
PDF
Trading-CryptoCurrency-Advanced-Trading-Strategies.pdf
Crypto Mining Project Proposal by Slidesgo.pptx
Intro to Crypto Knowledge by Abid Hussain.pptx
C-Suite Snacks Webinar Series: How Companies are Making Money in Bitcoin and ...
Blockchain and Bitcoin.pptx
bitcoin
15-Bitcoin.pptx
Blockchain
CRYPTO CURRENCY-2022OD205.pdf
bitcoin_presentation
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
Blockchain and Bitcoin
Bitcoin story of programable currency
Cryptocurrency Seminar for Information Technology
Blockchain meetup
A Quick Start To Blockchain by Seval Capraz
Investment Club Presentation 1 2021
Bitcoin Breakthrough Training Guide.
Trading-CryptoCurrency-Advanced-Trading-Strategies.pdf
Trading-CryptoCurrency-Advanced-Trading-Strategies.pdf

Recently uploaded (20)

PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Testing WebRTC applications at scale.pdf
PPTX
Internet___Basics___Styled_ presentation
PPTX
QR Codes Qr codecodecodecodecocodedecodecode
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
DOCX
Unit-3 cyber security network security of internet system
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
The Internet -By the Numbers, Sri Lanka Edition
Β 
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
artificial intelligence overview of it and more
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
522797556-Unit-2-Temperature-measurement-1-1.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Job_Card_System_Styled_lorem_ipsum_.pptx
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Tenda Login Guide: Access Your Router in 5 Easy Steps
Testing WebRTC applications at scale.pdf
Internet___Basics___Styled_ presentation
QR Codes Qr codecodecodecodecocodedecodecode
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
Paper PDF World Game (s) Great Redesign.pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Unit-3 cyber security network security of internet system
Design_with_Watersergyerge45hrbgre4top (1).ppt
The Internet -By the Numbers, Sri Lanka Edition
Β 
Sims 4 Historia para lo sims 4 para jugar
Introuction about ICD -10 and ICD-11 PPT.pptx
presentation_pfe-universite-molay-seltan.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION
artificial intelligence overview of it and more

CBGTBT - Part 3 - Transactions 101

  • 2. Introduction & Primer First, some context These slides are from the #StartingBlock2015 tour by @blockstrap. 6 European countries in 8 days – (Istanbul, Amsterdam, Barcelona, Prague, Berlin & London). We met lots of great people, answered lots of great questions and had a great time. We look forward to meeting many of them again in the near future. These slides might only make perfect sense if you were at the talks and can remember all the additional points we made whilst discussing the tech. This deck is 3rd of 6. Questions? Comments? @MrAdamGiles adam@neuroware.io
  • 3. Transactions 101 Refresher Transactions are what it’s all about Transactions transfer value between the sender and recipient Refresh on public/private keys: βž” Two keys, one private one public βž” Encryption by one, decryption by the other and vice versa βž” If you can encrypt a known value, which is then decrypted by the public key, you must have the private key
  • 4. Transactions 101 Frame Your Understanding βž” Nobody actually β€˜has’ bitcoins - you can’t download them, or store them on your computer βž” Remember that the blockchain is a ledger - it records the transfer of bitcoin between people βž” The records stay on the blockchain - what gets transferred is the β€˜control’ of the bitcoin βž” β€˜Alice gives Bob 2btc’ becomes β€˜Alice transfers control of 2 of her bitcoins to Bob’ βž” Control through cryptography
  • 5. Transactions 101 Control via Cryptography βž” When someone sends you coins they publicly place them under the control of your public key (in the form of an Address) βž” If you can prove that you have the matching public key, and the matching private key, the network lets you control the coins βž” This gets super technical, super quick. Don’t panic if you don’t get all of this in your first pass
  • 6. Transactions 101 Control via Cryptography βž” Because blockchain transactions are anonymous, there needs to be a way to enforcing controls on the coins βž” Transactions are programmable βž” Each transaction contains a program that specifies conditions that must be met in order to spend the coins
  • 7. Transactions 101 Think of it this way... βž” You don't have the amount of money you claim to have βž” You only have the money that you can convince the network that you control βž” You convince the network by proving you have both the public key and the private key that controls those coins βž” If you can't convince the network, you don't have that money any more
  • 8. Transactions 101 Protect your Private Keys βž” Your private keys control your money. Most bitcoin β€˜hacks’ or β€˜thefts’ are in reality, crackers getting a copy of your private key. They then use this to move your coins to an address they control βž” If you lose your private key, you lose your money βž” Keep the offline (on paper!) or a specialised hardware device βž” If they must be online, encrypt them when not in use, only use for small amounts of money, use cold/warm/hot wallets to manage risk
  • 14. Transactions 101 Addresses Private key Public key Hash Encode Address
  • 15. Transactions 101 Addresses βž” Hides your public key (because of the hashing), but you still have both the public and private key βž” This is your bitcoin β€˜Address’ - you tell people who need to send you coins this address βž” You will have many Addresses βž” Your wallet software keeps track of all payments made β€˜to’ your Address
  • 16. Transactions 101 Transactions Control Ownership βž” Transaction transfer control from it’s inputs to it’s outputs βž” Someone controls some bitcoin and they put them into the transaction, the recipient receives the outputs from the transaction βž” The outputs from an earlier transaction form the inputs of the latter one βž” When we say β€˜Bob has 2 bitcoin’ what we mean is β€˜Bob has control of one or more unspent transaction outputs that total 2 bitcoin
  • 18. Transactions 101 How to spend an input βž” When you create a transaction, you transfer control to a hashed public key βž” β€œWhomever has the private key that matches the public key that matches the hash+enc of the public key (i.e. the Address) can spend these coins” βž” These instructions are embedded in the transaction in a field called scriptPubKey βž” looks a bit like this: 76A9149260C8E4924720B040F20B00D7F78C0F0FDBA3C288AC
  • 19. Transactions 101 Spending an input uses it up βž” Once a Transaction’s outputs are used as inputs in a new transaction, they are considered β€˜spent’. If the owner tries to use them again, it’s known as a β€˜double spend’ βž” A Txn’s inputs just reference the UTXO they are taken from βž” Using a UTXO destroys it - you must fully spend all of the value βž” If you don’t want to spend that much, you send the β€˜spare’ value back to yourself to a β€˜change address’

Editor's Notes

  • #3: Assume familiar with software, just not blockchains Bitcoin can be polizing, quickly decends into conversations/arguments about politics, But as software is eating the workd, that's what we'll be focusing on Simplified first , then circle back round and dive deeper Simplifications can be missleading Tell meif too fast/slow