SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

Similaire à 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
 

Similaire à 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
 

Dernier

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 

Dernier (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 

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