SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Downloaden Sie, um offline zu lesen
Introduction
             Bitcoin addresses
                  Transactions
                    Block chain




                        Bitcoins
           Mathematical Background


                Akram El-Korashy1

           1 Computer
                    Science and Engineering
               German University in Cairo


CSEN 1033 Seminar in Topics and Applications in
            Cryptography, 2013



            Akram El-Korashy      Bitcoins Math
Introduction
                      Bitcoin addresses
                           Transactions
                             Block chain


Outline


  1   Introduction
         Bitcoins network properties

  2   Bitcoin addresses
         BTC address generation overview
         BTC address cryptography

  3   Transactions

  4   Block chain



                      Akram El-Korashy     Bitcoins Math
Introduction
                      Bitcoin addresses
                                           Bitcoins network properties
                           Transactions
                             Block chain


Outline


  1   Introduction
         Bitcoins network properties

  2   Bitcoin addresses
         BTC address generation overview
         BTC address cryptography

  3   Transactions

  4   Block chain



                      Akram El-Korashy     Bitcoins Math
Introduction
                    Bitcoin addresses
                                         Bitcoins network properties
                         Transactions
                           Block chain


Main features



     Bitcoins can be transferred between arbitrary nodes.
     Transactions can be received at any time.
     Transactions are broadcast within seconds.




                    Akram El-Korashy     Bitcoins Math
Introduction
                     Bitcoin addresses
                                          Bitcoins network properties
                          Transactions
                            Block chain


Main features



     Bitcoins can be transferred between arbitrary nodes.
     Transactions can be received at any time.
     Transactions are broadcast within seconds.


     Transactions are verified within 10 to 60 minutes.
     Transactions are irreversible.
     Double spending is prevented by using a block chain.



                     Akram El-Korashy     Bitcoins Math
Introduction
                      Bitcoin addresses
                                           Bitcoins network properties
                           Transactions
                             Block chain


Main features


  Bitcoin addresses
     Bitcoins can be transferred between arbitrary nodes.
     Transactions can be received at any time.
     Transactions are broadcast within seconds.


     Transactions are verified within 10 to 60 minutes.
     Transactions are irreversible.
     Double spending is prevented by using a block chain.



                      Akram El-Korashy     Bitcoins Math
Introduction
                      Bitcoin addresses
                                           Bitcoins network properties
                           Transactions
                             Block chain


Main features


  Bitcoin addresses
      Bitcoins can be transferred between arbitrary nodes.
      Transactions can be received at any time.
      Transactions are broadcast within seconds.
  Bitcoin blockchains
      Transactions are verified within 10 to 60 minutes.
      Transactions are irreversible.
      Double spending is prevented by using a block chain.



                      Akram El-Korashy     Bitcoins Math
Introduction
                      Bitcoin addresses    BTC address generation overview
                           Transactions    BTC address cryptography
                             Block chain


Outline


  1   Introduction
         Bitcoins network properties

  2   Bitcoin addresses
         BTC address generation overview
         BTC address cryptography

  3   Transactions

  4   Block chain



                      Akram El-Korashy     Bitcoins Math
Introduction
                       Bitcoin addresses    BTC address generation overview
                            Transactions    BTC address cryptography
                              Block chain


Bitcoin Address
Definition




   Definition
   Bicoin address is an identifier of 27-34 alphanumeric
   characters, that represents a possible destination for a Bitcoin
   payment.




                       Akram El-Korashy     Bitcoins Math
Introduction
                       Bitcoin addresses    BTC address generation overview
                            Transactions    BTC address cryptography
                              Block chain


Bitcoin Address
Definition




   Definition
   Bicoin address is an identifier of 27-34 alphanumeric
   characters, that represents a possible destination for a Bitcoin
   payment.

   Address Generation
   A Bitcoin address is a 160-bit hash of the public portion of a
   public/private ECDSA keypair.




                       Akram El-Korashy     Bitcoins Math
Introduction
                       Bitcoin addresses    BTC address generation overview
                            Transactions    BTC address cryptography
                              Block chain


Bitcoin Address
Address Generation

   Choose a random Elliptic-Curve key-pair. The public part is
   converted into a BTC address




                       Akram El-Korashy     Bitcoins Math
Introduction
                     Bitcoin addresses    BTC address generation overview
                          Transactions    BTC address cryptography
                            Block chain


Bitcoin Address
Address Generation

   The 20 bytes Message Digest from RIPEMD-160..




                     Akram El-Korashy     Bitcoins Math
Introduction
                      Bitcoin addresses    BTC address generation overview
                           Transactions    BTC address cryptography
                             Block chain


Outline


  1   Introduction
         Bitcoins network properties

  2   Bitcoin addresses
         BTC address generation overview
         BTC address cryptography

  3   Transactions

  4   Block chain



                      Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses    BTC address generation overview
                                Transactions    BTC address cryptography
                                  Block chain


Bitcoin Address
Definitions and some Math

   Definition
   Base58




                           Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses    BTC address generation overview
                                Transactions    BTC address cryptography
                                  Block chain


Bitcoin Address
Definitions and some Math

   Definition
   Base58 encoding is a binary-to-text encoding, that uses only
   the alphanumeric characters




                           Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses    BTC address generation overview
                                Transactions    BTC address cryptography
                                  Block chain


Bitcoin Address
Definitions and some Math

   Definition
   Base58 encoding is a binary-to-text encoding, that uses only
   the alphanumeric characters (except 0,O,I, and l.)




                           Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses    BTC address generation overview
                                Transactions    BTC address cryptography
                                  Block chain


Bitcoin Address
Definitions and some Math

   Definition
   Base58 encoding is a binary-to-text encoding, that uses only
   the alphanumeric characters (except 0,O,I, and l.)

   Definition
   RIPEMD-160 is a cryptographic hash function that generates a
   160-bit digest of an arbitrary size block of data.

   Example
   RIPEMD-160("The quick brown fox jumps over the lazy
   dog") = 37f332f68db77bd9d7edd4969571ad671cf9dd3b
   RIPEMD-160("The quick brown fox jumps over the lazy
   cog") = 132072df690933835eb8b6ad0b77e7b6f14acad7
                           Akram El-Korashy     Bitcoins Math
Introduction
                            Bitcoin addresses    BTC address generation overview
                                 Transactions    BTC address cryptography
                                   Block chain


Bitcoin Address
Secure Hash Algorithm-256



        Input: arbitrary length data, Output: 256-bit digest
        Merkle-Damgard Construction (one-way compression
        function, block ciphers)




                            Akram El-Korashy     Bitcoins Math
Introduction
                      Bitcoin addresses    BTC address generation overview
                           Transactions    BTC address cryptography
                             Block chain


Definition
Elliptic curve over a field Fp can be defined as the set of points (x,y)
satisfying the equation

                  y 2 mod p = (x 3 + ax + b) mod p




                      Akram El-Korashy     Bitcoins Math
Introduction
                       Bitcoin addresses    BTC address generation overview
                            Transactions    BTC address cryptography
                              Block chain


Definition
Elliptic curve over a field Fp can be defined as the set of points (x,y)
satisfying the equation

                   y 2 mod p = (x 3 + ax + b) mod p

Example




  The set of affine points of the elliptic curve y 2 = x 3 − x over F61 .

                       Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase.




                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size




                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size
      2   FR the basis used - can assume a fixed basis




                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size
      2   FR the basis used - can assume a fixed basis
      3   a, b parameters of the equation




                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size
      2   FR the basis used - can assume a fixed basis
      3   a, b parameters of the equation (field elements)




                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size
      2   FR the basis used - can assume a fixed basis
      3   a, b parameters of the equation (field elements)
      4   G base point, and
      5   n its order - group element order, point addition, point
          doubling



                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size
      2   FR the basis used - can assume a fixed basis
      3   a, b parameters of the equation (field elements)
      4   G base point, and
      5   n its order - group element order, point addition, point
          doubling (can be calculated from G!)



                             Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses    BTC address generation overview
                                  Transactions    BTC address cryptography
                                    Block chain


Bitcoin Address
Elliptic Curve Digital Signature Algorithm


    Any signature algorithm has a Sign phase and a Verify
    phase. Some parameters agreed upon between sender and
    receiver:
      1   q field size
      2   FR the basis used - can assume a fixed basis
      3   a, b parameters of the equation (field elements)
      4   G base point, and
      5   n its order - group element order, point addition, point
          doubling (can be calculated from G!)
      6   h cofactor - order of the curve divided by n


                             Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses
                                Transactions
                                  Block chain


Transactions
Definitions

   Definition
   A transaction is a signed section of data that is broadcast to the
   network and collected into blocks.

         It typically references previous transaction(s) and dedicates a
         certain number of bitcoins from it to one or more new public
         key(s) (Bitcoin address).
         It is not encrypted (nothing in Bitcoin is encrypted).




                           Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses
                                Transactions
                                  Block chain


Transactions
Definitions

   Definition
   A transaction is a signed section of data that is broadcast to the
   network and collected into blocks.

         It typically references previous transaction(s) and dedicates a
         certain number of bitcoins from it to one or more new public
         key(s) (Bitcoin address).
         It is not encrypted (nothing in Bitcoin is encrypted).

         Transactions and Blocks are the main data structures.
         A Block is composed of a header and a group of transactions.
         Transactions are identified by their hash (SHA-256).
         Blocks are identified by a hash of the header.
                           Akram El-Korashy     Bitcoins Math
Introduction
                            Bitcoin addresses
                                 Transactions
                                   Block chain


Transactions
Example

   Example
                        Principle example of a transaction




          Script is a set of instructions for the receiver to follow in order to
          be able to spend the Bitcoins.
          An input is a reference to the output of a different transaction.
          Previous tx is the pointer to (hash value of) the transaction
          from which the bitcoin Value will be transferred.
                            Akram El-Korashy     Bitcoins Math
Introduction
                           Bitcoin addresses
                                Transactions
                                  Block chain


Transactions
Example


          The main script instructions are:

               The hash of the public key should match the bitcoin
               address specified in the transaction.
               The signature on the sent data should be verifiable by the
               public key.

          Instructions are executed from the Output field of the
          referenced transaction Previous tx
          scriptSig is an ECDSA signature on small data (part of the
          transaction). It serves as a proof that the transaction in which it
          exists was created by the real owner of the public address which
          the Previous tx was intended to.


                           Akram El-Korashy     Bitcoins Math
Introduction
                             Bitcoin addresses
                                  Transactions
                                    Block chain


Block Chain
Definition




   Definition
   Block chain is a transaction database shared by all nodes
   participating in a system based on the Bitcoin protocol.


            Every block contains a hash of the previous block
            BitCoin uses the SHA-256 hash algorithm to generate verifiably
            "random" numbers in a way that requires a predictable amount
            of CPU effort.




                            Akram El-Korashy      Bitcoins Math
Introduction
                      Bitcoin addresses
                           Transactions
                             Block chain


Block Chain
Concept


    Block chain: Because a block can only reference one previous
        block, it is impossible for two forked chains to merge.




                       (Tree goes bottom-up)


                      Akram El-Korashy         Bitcoins Math
Appendix




References I


     https://en.bitcoin.it/wiki/Address
     Accessed March, 2013

     Simple Tutorial on Elliptic Curve Cryptography
     Accessed March, 2013

     https://en.bitcoin.it/w/images/en/9/9b/PubKeyToAddr.png
     Accessed March, 2013

     Bitcoin wiki: Technical background of bitcoin addresses
     Accessed March, 2013

     rnks.informatik.tu-cottbus.de - A tutorial on elliptic curve cryptography
     Accessed March, 2013

     https://en.bitcoin.it/wiki/Category:Technical
     Accessed March, 2013




                                    Akram El-Korashy         Bitcoins Math

Weitere ähnliche Inhalte

Was ist angesagt?

Bitcoin : A fierce Decentralized internet currency
Bitcoin : A fierce Decentralized internet currencyBitcoin : A fierce Decentralized internet currency
Bitcoin : A fierce Decentralized internet currencyShivek Khurana
 
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)IT Arena
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchainsubbul
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-BitcoinSatwikaHotwani
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloatboolberry
 
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsEclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsMatthias Zimmermann
 
Intro to smart contract on blockchain en
Intro to smart contract on blockchain enIntro to smart contract on blockchain en
Intro to smart contract on blockchain enNicholas Lin
 
Blockchain: life of a blockchain transaction
Blockchain: life of a blockchain transactionBlockchain: life of a blockchain transaction
Blockchain: life of a blockchain transactionErwan Alliaume
 
Blockchain - Introduction and Authoring Smart Contracts
Blockchain - Introduction and Authoring Smart ContractsBlockchain - Introduction and Authoring Smart Contracts
Blockchain - Introduction and Authoring Smart ContractsVikas Grover
 
Introduction to Lightning Network
Introduction to Lightning NetworkIntroduction to Lightning Network
Introduction to Lightning NetworkAlan Carbery
 
Blockchain intro at framework
Blockchain intro at frameworkBlockchain intro at framework
Blockchain intro at frameworkLon Barfield
 
Best practices to build secure smart contracts
Best practices to build secure smart contractsBest practices to build secure smart contracts
Best practices to build secure smart contractsGautam Anand
 
Bitcoin, Blockchain and Crypto Contracts - Part 3
Bitcoin, Blockchain and Crypto Contracts - Part 3Bitcoin, Blockchain and Crypto Contracts - Part 3
Bitcoin, Blockchain and Crypto Contracts - Part 3Prithwis Mukerjee
 
The Blockchain and JavaScript
The Blockchain and JavaScriptThe Blockchain and JavaScript
The Blockchain and JavaScriptPortia Burton
 
Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Uday Kothari
 

Was ist angesagt? (20)

Bitcoin : A fierce Decentralized internet currency
Bitcoin : A fierce Decentralized internet currencyBitcoin : A fierce Decentralized internet currency
Bitcoin : A fierce Decentralized internet currency
 
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
Cryptocurrencies for Everyone (Dmytro Pershyn Technology Stream)
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-Bitcoin
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloat
 
Bitcoin
Bitcoin Bitcoin
Bitcoin
 
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsEclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
 
Intro to smart contract on blockchain en
Intro to smart contract on blockchain enIntro to smart contract on blockchain en
Intro to smart contract on blockchain en
 
Blockchain Corporate Style
Blockchain Corporate StyleBlockchain Corporate Style
Blockchain Corporate Style
 
Blockchain: life of a blockchain transaction
Blockchain: life of a blockchain transactionBlockchain: life of a blockchain transaction
Blockchain: life of a blockchain transaction
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
 
Blockchain - Introduction and Authoring Smart Contracts
Blockchain - Introduction and Authoring Smart ContractsBlockchain - Introduction and Authoring Smart Contracts
Blockchain - Introduction and Authoring Smart Contracts
 
Introduction to Blockchain Technology
Introduction to Blockchain TechnologyIntroduction to Blockchain Technology
Introduction to Blockchain Technology
 
Introduction to Lightning Network
Introduction to Lightning NetworkIntroduction to Lightning Network
Introduction to Lightning Network
 
Blockchain intro at framework
Blockchain intro at frameworkBlockchain intro at framework
Blockchain intro at framework
 
Best practices to build secure smart contracts
Best practices to build secure smart contractsBest practices to build secure smart contracts
Best practices to build secure smart contracts
 
Bitcoin, Blockchain and Crypto Contracts - Part 3
Bitcoin, Blockchain and Crypto Contracts - Part 3Bitcoin, Blockchain and Crypto Contracts - Part 3
Bitcoin, Blockchain and Crypto Contracts - Part 3
 
The Blockchain and JavaScript
The Blockchain and JavaScriptThe Blockchain and JavaScript
The Blockchain and JavaScript
 
Ethereum Intro
Ethereum IntroEthereum Intro
Ethereum Intro
 
Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune
 

Ähnlich wie Bitcoin Math Explained

Tutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssTutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssHoward Anglin
 
Blockchain for Business Yale School of Management Dr John Maheswaran
Blockchain for Business Yale School of Management Dr John MaheswaranBlockchain for Business Yale School of Management Dr John Maheswaran
Blockchain for Business Yale School of Management Dr John MaheswaranJohn M.
 
Blockchain overview, use cases, implementations and challenges
Blockchain overview, use cases, implementations and challengesBlockchain overview, use cases, implementations and challenges
Blockchain overview, use cases, implementations and challengesSébastien Tandel
 
Intro to Bitcoin
Intro to BitcoinIntro to Bitcoin
Intro to BitcoinRon Gross
 
J.burke HackMiami6
J.burke HackMiami6J.burke HackMiami6
J.burke HackMiami6Jesse Burke
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and BitcoinHugo Rodrigues
 
Bitcoin in general - presentation
Bitcoin in general - presentationBitcoin in general - presentation
Bitcoin in general - presentationMichal Cisárik
 
Bitcoin Technology Fundamentals - Tutorial 1 – Bitcoin Addresses
Bitcoin Technology Fundamentals - Tutorial 1 – Bitcoin AddressesBitcoin Technology Fundamentals - Tutorial 1 – Bitcoin Addresses
Bitcoin Technology Fundamentals - Tutorial 1 – Bitcoin AddressesAmitesh Raikwar
 
RSK (Rootstock) - Smarter Bitcoin
RSK (Rootstock) - Smarter BitcoinRSK (Rootstock) - Smarter Bitcoin
RSK (Rootstock) - Smarter BitcoinBlockchainHub Graz
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBrett Colbert
 
Blockchain presentation.pptx
Blockchain presentation.pptxBlockchain presentation.pptx
Blockchain presentation.pptxSwarnaSLcse
 
Bitcoin Technology
Bitcoin TechnologyBitcoin Technology
Bitcoin TechnologyRavi Verma
 
Bitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesBitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesQuasarVentures
 
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes ZwengBlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes ZwengBlockchainHub Graz
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)Brussels Legal Hackers
 
Introduction to blockchain 2018
Introduction to blockchain 2018Introduction to blockchain 2018
Introduction to blockchain 2018Christian Kameir
 
Block chain by harsh biltu agarwal
Block chain by harsh biltu agarwalBlock chain by harsh biltu agarwal
Block chain by harsh biltu agarwalN V Jagadeesh Kumar
 

Ähnlich wie Bitcoin Math Explained (20)

Study on Bitcoin
Study on Bitcoin Study on Bitcoin
Study on Bitcoin
 
Tutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssTutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ss
 
Blockchain for Business Yale School of Management Dr John Maheswaran
Blockchain for Business Yale School of Management Dr John MaheswaranBlockchain for Business Yale School of Management Dr John Maheswaran
Blockchain for Business Yale School of Management Dr John Maheswaran
 
Blockchain overview, use cases, implementations and challenges
Blockchain overview, use cases, implementations and challengesBlockchain overview, use cases, implementations and challenges
Blockchain overview, use cases, implementations and challenges
 
Intro to Bitcoin
Intro to BitcoinIntro to Bitcoin
Intro to Bitcoin
 
J.burke HackMiami6
J.burke HackMiami6J.burke HackMiami6
J.burke HackMiami6
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 
Bitcoin in general - presentation
Bitcoin in general - presentationBitcoin in general - presentation
Bitcoin in general - presentation
 
Bitcoin Technology Fundamentals - Tutorial 1 – Bitcoin Addresses
Bitcoin Technology Fundamentals - Tutorial 1 – Bitcoin AddressesBitcoin Technology Fundamentals - Tutorial 1 – Bitcoin Addresses
Bitcoin Technology Fundamentals - Tutorial 1 – Bitcoin Addresses
 
RSK (Rootstock) - Smarter Bitcoin
RSK (Rootstock) - Smarter BitcoinRSK (Rootstock) - Smarter Bitcoin
RSK (Rootstock) - Smarter Bitcoin
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Blockchain presentation.pptx
Blockchain presentation.pptxBlockchain presentation.pptx
Blockchain presentation.pptx
 
Bitcoin Technology
Bitcoin TechnologyBitcoin Technology
Bitcoin Technology
 
Bitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesBitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential Opportunities
 
Crypto currency1
Crypto currency1Crypto currency1
Crypto currency1
 
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes ZwengBlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)
 
Introduction to blockchain 2018
Introduction to blockchain 2018Introduction to blockchain 2018
Introduction to blockchain 2018
 
Block chain by harsh biltu agarwal
Block chain by harsh biltu agarwalBlock chain by harsh biltu agarwal
Block chain by harsh biltu agarwal
 
Bitcoin I.pptx
Bitcoin I.pptxBitcoin I.pptx
Bitcoin I.pptx
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 

Kürzlich hochgeladen (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

Bitcoin Math Explained

  • 1. Introduction Bitcoin addresses Transactions Block chain Bitcoins Mathematical Background Akram El-Korashy1 1 Computer Science and Engineering German University in Cairo CSEN 1033 Seminar in Topics and Applications in Cryptography, 2013 Akram El-Korashy Bitcoins Math
  • 2. Introduction Bitcoin addresses Transactions Block chain Outline 1 Introduction Bitcoins network properties 2 Bitcoin addresses BTC address generation overview BTC address cryptography 3 Transactions 4 Block chain Akram El-Korashy Bitcoins Math
  • 3. Introduction Bitcoin addresses Bitcoins network properties Transactions Block chain Outline 1 Introduction Bitcoins network properties 2 Bitcoin addresses BTC address generation overview BTC address cryptography 3 Transactions 4 Block chain Akram El-Korashy Bitcoins Math
  • 4. Introduction Bitcoin addresses Bitcoins network properties Transactions Block chain Main features Bitcoins can be transferred between arbitrary nodes. Transactions can be received at any time. Transactions are broadcast within seconds. Akram El-Korashy Bitcoins Math
  • 5. Introduction Bitcoin addresses Bitcoins network properties Transactions Block chain Main features Bitcoins can be transferred between arbitrary nodes. Transactions can be received at any time. Transactions are broadcast within seconds. Transactions are verified within 10 to 60 minutes. Transactions are irreversible. Double spending is prevented by using a block chain. Akram El-Korashy Bitcoins Math
  • 6. Introduction Bitcoin addresses Bitcoins network properties Transactions Block chain Main features Bitcoin addresses Bitcoins can be transferred between arbitrary nodes. Transactions can be received at any time. Transactions are broadcast within seconds. Transactions are verified within 10 to 60 minutes. Transactions are irreversible. Double spending is prevented by using a block chain. Akram El-Korashy Bitcoins Math
  • 7. Introduction Bitcoin addresses Bitcoins network properties Transactions Block chain Main features Bitcoin addresses Bitcoins can be transferred between arbitrary nodes. Transactions can be received at any time. Transactions are broadcast within seconds. Bitcoin blockchains Transactions are verified within 10 to 60 minutes. Transactions are irreversible. Double spending is prevented by using a block chain. Akram El-Korashy Bitcoins Math
  • 8. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Outline 1 Introduction Bitcoins network properties 2 Bitcoin addresses BTC address generation overview BTC address cryptography 3 Transactions 4 Block chain Akram El-Korashy Bitcoins Math
  • 9. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Definition Definition Bicoin address is an identifier of 27-34 alphanumeric characters, that represents a possible destination for a Bitcoin payment. Akram El-Korashy Bitcoins Math
  • 10. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Definition Definition Bicoin address is an identifier of 27-34 alphanumeric characters, that represents a possible destination for a Bitcoin payment. Address Generation A Bitcoin address is a 160-bit hash of the public portion of a public/private ECDSA keypair. Akram El-Korashy Bitcoins Math
  • 11. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Address Generation Choose a random Elliptic-Curve key-pair. The public part is converted into a BTC address Akram El-Korashy Bitcoins Math
  • 12. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Address Generation The 20 bytes Message Digest from RIPEMD-160.. Akram El-Korashy Bitcoins Math
  • 13. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Outline 1 Introduction Bitcoins network properties 2 Bitcoin addresses BTC address generation overview BTC address cryptography 3 Transactions 4 Block chain Akram El-Korashy Bitcoins Math
  • 14. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Definitions and some Math Definition Base58 Akram El-Korashy Bitcoins Math
  • 15. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Definitions and some Math Definition Base58 encoding is a binary-to-text encoding, that uses only the alphanumeric characters Akram El-Korashy Bitcoins Math
  • 16. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Definitions and some Math Definition Base58 encoding is a binary-to-text encoding, that uses only the alphanumeric characters (except 0,O,I, and l.) Akram El-Korashy Bitcoins Math
  • 17. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Definitions and some Math Definition Base58 encoding is a binary-to-text encoding, that uses only the alphanumeric characters (except 0,O,I, and l.) Definition RIPEMD-160 is a cryptographic hash function that generates a 160-bit digest of an arbitrary size block of data. Example RIPEMD-160("The quick brown fox jumps over the lazy dog") = 37f332f68db77bd9d7edd4969571ad671cf9dd3b RIPEMD-160("The quick brown fox jumps over the lazy cog") = 132072df690933835eb8b6ad0b77e7b6f14acad7 Akram El-Korashy Bitcoins Math
  • 18. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Secure Hash Algorithm-256 Input: arbitrary length data, Output: 256-bit digest Merkle-Damgard Construction (one-way compression function, block ciphers) Akram El-Korashy Bitcoins Math
  • 19. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Definition Elliptic curve over a field Fp can be defined as the set of points (x,y) satisfying the equation y 2 mod p = (x 3 + ax + b) mod p Akram El-Korashy Bitcoins Math
  • 20. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Definition Elliptic curve over a field Fp can be defined as the set of points (x,y) satisfying the equation y 2 mod p = (x 3 + ax + b) mod p Example The set of affine points of the elliptic curve y 2 = x 3 − x over F61 . Akram El-Korashy Bitcoins Math
  • 21. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Akram El-Korashy Bitcoins Math
  • 22. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size Akram El-Korashy Bitcoins Math
  • 23. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size 2 FR the basis used - can assume a fixed basis Akram El-Korashy Bitcoins Math
  • 24. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size 2 FR the basis used - can assume a fixed basis 3 a, b parameters of the equation Akram El-Korashy Bitcoins Math
  • 25. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size 2 FR the basis used - can assume a fixed basis 3 a, b parameters of the equation (field elements) Akram El-Korashy Bitcoins Math
  • 26. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size 2 FR the basis used - can assume a fixed basis 3 a, b parameters of the equation (field elements) 4 G base point, and 5 n its order - group element order, point addition, point doubling Akram El-Korashy Bitcoins Math
  • 27. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size 2 FR the basis used - can assume a fixed basis 3 a, b parameters of the equation (field elements) 4 G base point, and 5 n its order - group element order, point addition, point doubling (can be calculated from G!) Akram El-Korashy Bitcoins Math
  • 28. Introduction Bitcoin addresses BTC address generation overview Transactions BTC address cryptography Block chain Bitcoin Address Elliptic Curve Digital Signature Algorithm Any signature algorithm has a Sign phase and a Verify phase. Some parameters agreed upon between sender and receiver: 1 q field size 2 FR the basis used - can assume a fixed basis 3 a, b parameters of the equation (field elements) 4 G base point, and 5 n its order - group element order, point addition, point doubling (can be calculated from G!) 6 h cofactor - order of the curve divided by n Akram El-Korashy Bitcoins Math
  • 29. Introduction Bitcoin addresses Transactions Block chain Transactions Definitions Definition A transaction is a signed section of data that is broadcast to the network and collected into blocks. It typically references previous transaction(s) and dedicates a certain number of bitcoins from it to one or more new public key(s) (Bitcoin address). It is not encrypted (nothing in Bitcoin is encrypted). Akram El-Korashy Bitcoins Math
  • 30. Introduction Bitcoin addresses Transactions Block chain Transactions Definitions Definition A transaction is a signed section of data that is broadcast to the network and collected into blocks. It typically references previous transaction(s) and dedicates a certain number of bitcoins from it to one or more new public key(s) (Bitcoin address). It is not encrypted (nothing in Bitcoin is encrypted). Transactions and Blocks are the main data structures. A Block is composed of a header and a group of transactions. Transactions are identified by their hash (SHA-256). Blocks are identified by a hash of the header. Akram El-Korashy Bitcoins Math
  • 31. Introduction Bitcoin addresses Transactions Block chain Transactions Example Example Principle example of a transaction Script is a set of instructions for the receiver to follow in order to be able to spend the Bitcoins. An input is a reference to the output of a different transaction. Previous tx is the pointer to (hash value of) the transaction from which the bitcoin Value will be transferred. Akram El-Korashy Bitcoins Math
  • 32. Introduction Bitcoin addresses Transactions Block chain Transactions Example The main script instructions are: The hash of the public key should match the bitcoin address specified in the transaction. The signature on the sent data should be verifiable by the public key. Instructions are executed from the Output field of the referenced transaction Previous tx scriptSig is an ECDSA signature on small data (part of the transaction). It serves as a proof that the transaction in which it exists was created by the real owner of the public address which the Previous tx was intended to. Akram El-Korashy Bitcoins Math
  • 33. Introduction Bitcoin addresses Transactions Block chain Block Chain Definition Definition Block chain is a transaction database shared by all nodes participating in a system based on the Bitcoin protocol. Every block contains a hash of the previous block BitCoin uses the SHA-256 hash algorithm to generate verifiably "random" numbers in a way that requires a predictable amount of CPU effort. Akram El-Korashy Bitcoins Math
  • 34. Introduction Bitcoin addresses Transactions Block chain Block Chain Concept Block chain: Because a block can only reference one previous block, it is impossible for two forked chains to merge. (Tree goes bottom-up) Akram El-Korashy Bitcoins Math
  • 35. Appendix References I https://en.bitcoin.it/wiki/Address Accessed March, 2013 Simple Tutorial on Elliptic Curve Cryptography Accessed March, 2013 https://en.bitcoin.it/w/images/en/9/9b/PubKeyToAddr.png Accessed March, 2013 Bitcoin wiki: Technical background of bitcoin addresses Accessed March, 2013 rnks.informatik.tu-cottbus.de - A tutorial on elliptic curve cryptography Accessed March, 2013 https://en.bitcoin.it/wiki/Category:Technical Accessed March, 2013 Akram El-Korashy Bitcoins Math