SlideShare a Scribd company logo
1 of 26
BLOCKCHAIN INTERNALS:
FromTheory to Python
NicolaCostantino
92 minutes of Storytelling…
Not really.
Mastering Blockchain
Imran Bashir
Mastering Bitcoin
Andreas M. Antonopulos
“Let’s build a Blockchain”
https://github.com/Haseeb-Qureshi/lets-build-a-
blockchain
“Learn Blockchains by
Building One”
https://hackernoon.com/learn-blockchains-by-building-
one-117428612f46
Studying blockchain as a technology
• To use blockchain as a technology we need to:
• extract it from the original (economic/financial) domain
• analyze its strengths and weaknesses
• adapt it to other compatible domains
• We need to fully understand blockchain as technology for making the most out of it in the
original domain
• Blockchain technology is the core of… every blockchain!We need to study it to be confident
with the use and the development of blockchain-related applications.
Bitcoin & Blockchain
Finance & Computer Science
Source: https://bitcoin.org/bitcoin.pdf
“
”
Blockchain is a data structure; it is basically a linked
list that uses hash pointers instead of normal
pointers. Hash pointers are used to point to the
previous block.
(Mastering Blockchain)
BLOCKCHAIN as DATA STRUCTURE
The Plan
Structure Logic Network
STRUCTURE
Data Structure
Structure - Questions
• How is a blockchain structured internally?
• What could we store inside a blockchain?
• What are blockchain’s strengths and weaknesses?
Structure - Demo
Blockchain as Data Structure – Analysis
Code @ https://github.com/NicolaCostantino/Blockchain-Internals
EXPECTATION
Blockchain as Data Structure
REALITY
Blockchain as Data Structure
NETFLIX
ADAPTATION
Blockchain as Data Structure
“Blockchain is a database…”
No.
Database:
• “A large amount of information stored in
a computer system in such a way that it
can be easily looked at or changed”
Source (Cambridge Dictionary):
https://dictionary.cambridge.org/dictionary/english/database
Blockchain:
• it can NOT be easily looked at or
changed
Blockchain
as data structure is the representation of…
(lack of) TRUST!
Trust me.
I trust you because/if/when I can check at any time if I can trust you
LOGIC
Script and Smart Contract
Ricardian Contract
"A Ricardian contract can be defined as a single document that is
• a contract offered by an issuer to holders
• for a valuable right held by holders, and managed by the
issuer
• easily readable (like a contract on paper)
• readable by programs (parsable like a database)
• digitally signed
• carrying the keys and server information
• allied with a unique and secure identifier.“
SourceWikipedia: https://en.wikipedia.org/wiki/Ricardian_contract
Logic - Demo
Script and Smart Contract
Code @ https://github.com/NicolaCostantino/Blockchain-Internals
NETWORK
Distributed Systems
DLT: Distributed LedgerTechnology
It is impossible for a distributed data store
to simultaneously provide more than two
out of the following three guarantees:
• Consistency: Every read receives the most recent write or
an error
• Availability: Every request receives a (non-error) response –
without the guarantee that it contains the most recent write
• Partition tolerance: The system continues to operate
despite an arbitrary number of messages being dropped (or
delayed) by the network between nodes
C.A.P. (Brewer's) Theorem
Network - Demo
Distributed Systems
DLT: Distributed LedgerTechnology
Code @ https://github.com/NicolaCostantino/Blockchain-Internals
Nicola Costantino
(Genius, Playboy, Billionaire, Philanthropist)
nicolacostantino.com
nicolacostantino.dev
https://github.com/NicolaCostantino
https://www.linkedin.com/in/nicolacostantino/
https://twitter.com/theroadtodark
ThankYou!

More Related Content

What's hot

Agile Network India | Block Chain - New usecases | Abhilash Aravind
Agile Network India | Block Chain - New usecases | Abhilash AravindAgile Network India | Block Chain - New usecases | Abhilash Aravind
Agile Network India | Block Chain - New usecases | Abhilash AravindAgileNetwork
 
Blockchain Explained
Blockchain ExplainedBlockchain Explained
Blockchain ExplainedVikram Khanna
 
Blockchain - Things you need to know
Blockchain - Things you need to knowBlockchain - Things you need to know
Blockchain - Things you need to knowNAAPBOOKS
 
Application of Blockchain in Library and Information Services
Application of Blockchain in Library and Information ServicesApplication of Blockchain in Library and Information Services
Application of Blockchain in Library and Information ServicesDavid Nzoputa Ofili
 
Basics of Blockchain Technology
Basics of Blockchain TechnologyBasics of Blockchain Technology
Basics of Blockchain TechnologyNasir Bhutta
 
Testing in the blockchain
Testing in the blockchainTesting in the blockchain
Testing in the blockchainCraig Risi
 
Understanding Blockchain
Understanding Blockchain Understanding Blockchain
Understanding Blockchain Razi Salih
 
List of best Open Source Blockchain platforms
List of best Open Source Blockchain platformsList of best Open Source Blockchain platforms
List of best Open Source Blockchain platformsBlockchain Council
 
Introduction to Blockchain and Cryptocurrencies
Introduction to Blockchain  and CryptocurrenciesIntroduction to Blockchain  and Cryptocurrencies
Introduction to Blockchain and CryptocurrenciesNikhil D Prince
 
EUIPO DPM knowledge share: Blockchain and IP
EUIPO DPM knowledge share: Blockchain and IPEUIPO DPM knowledge share: Blockchain and IP
EUIPO DPM knowledge share: Blockchain and IPAudrius Ramoska
 
Smart Contracts Nothing but Decentralised Workflows?
Smart Contracts Nothing but Decentralised Workflows?Smart Contracts Nothing but Decentralised Workflows?
Smart Contracts Nothing but Decentralised Workflows?Fabian Hinsenkamp
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architectureTomasz Tomczyk
 
Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?
Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?
Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?Digipolis Antwerpen
 
Mining Opportunities of Block Chain and BitCoin
Mining Opportunities of Block Chain and BitCoinMining Opportunities of Block Chain and BitCoin
Mining Opportunities of Block Chain and BitCoinDeepu S Nath
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionCoin Sciences Ltd
 

What's hot (20)

Hands on with multichain
Hands on with multichainHands on with multichain
Hands on with multichain
 
Blockchain technology | Bitcoins
Blockchain technology | BitcoinsBlockchain technology | Bitcoins
Blockchain technology | Bitcoins
 
Agile Network India | Block Chain - New usecases | Abhilash Aravind
Agile Network India | Block Chain - New usecases | Abhilash AravindAgile Network India | Block Chain - New usecases | Abhilash Aravind
Agile Network India | Block Chain - New usecases | Abhilash Aravind
 
Blockchain Explained
Blockchain ExplainedBlockchain Explained
Blockchain Explained
 
Blockchain - Things you need to know
Blockchain - Things you need to knowBlockchain - Things you need to know
Blockchain - Things you need to know
 
Application of Blockchain in Library and Information Services
Application of Blockchain in Library and Information ServicesApplication of Blockchain in Library and Information Services
Application of Blockchain in Library and Information Services
 
Basics of Blockchain Technology
Basics of Blockchain TechnologyBasics of Blockchain Technology
Basics of Blockchain Technology
 
Testing in the blockchain
Testing in the blockchainTesting in the blockchain
Testing in the blockchain
 
Understanding Blockchain
Understanding Blockchain Understanding Blockchain
Understanding Blockchain
 
List of best Open Source Blockchain platforms
List of best Open Source Blockchain platformsList of best Open Source Blockchain platforms
List of best Open Source Blockchain platforms
 
Introduction to Blockchain and Cryptocurrencies
Introduction to Blockchain  and CryptocurrenciesIntroduction to Blockchain  and Cryptocurrencies
Introduction to Blockchain and Cryptocurrencies
 
Blockchain
BlockchainBlockchain
Blockchain
 
EUIPO DPM knowledge share: Blockchain and IP
EUIPO DPM knowledge share: Blockchain and IPEUIPO DPM knowledge share: Blockchain and IP
EUIPO DPM knowledge share: Blockchain and IP
 
Smart Contracts Nothing but Decentralised Workflows?
Smart Contracts Nothing but Decentralised Workflows?Smart Contracts Nothing but Decentralised Workflows?
Smart Contracts Nothing but Decentralised Workflows?
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?
Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?
Meetup 19/12/2016 - Blockchain-as-a-service voor Antwerpen?
 
BLOCKCHAIN TECHNOLOGY
BLOCKCHAIN TECHNOLOGYBLOCKCHAIN TECHNOLOGY
BLOCKCHAIN TECHNOLOGY
 
Mining Opportunities of Block Chain and BitCoin
Mining Opportunities of Block Chain and BitCoinMining Opportunities of Block Chain and BitCoin
Mining Opportunities of Block Chain and BitCoin
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN Explosion
 

Similar to Blockchain Internals: From Theory to Python

Blockchain Technology and Its Application in Libraries
Blockchain Technology and Its Application in LibrariesBlockchain Technology and Its Application in Libraries
Blockchain Technology and Its Application in LibrariesNabi Hasan
 
Blockchain data structures and fundamental
Blockchain data structures and fundamentalBlockchain data structures and fundamental
Blockchain data structures and fundamentalCodium Club
 
Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...Ingo Weber
 
Blockchain 101 by imran bashir
Blockchain 101  by imran bashirBlockchain 101  by imran bashir
Blockchain 101 by imran bashirImran Bashir
 
Blockchain Primer Part 1
Blockchain Primer Part 1Blockchain Primer Part 1
Blockchain Primer Part 1Sanjay Basu
 
BLOCKCHAIN TECHNOLOGY.ppt
BLOCKCHAIN TECHNOLOGY.pptBLOCKCHAIN TECHNOLOGY.ppt
BLOCKCHAIN TECHNOLOGY.pptjishnub8
 
Distributed systems and blockchain technology
Distributed systems and blockchain technologyDistributed systems and blockchain technology
Distributed systems and blockchain technologyAlket Cecaj
 
Learn Blockchain-Basics - 101Blockchains
Learn Blockchain-Basics - 101BlockchainsLearn Blockchain-Basics - 101Blockchains
Learn Blockchain-Basics - 101BlockchainsJackSmith435850
 
Blockchain; how it works, and why you should care
Blockchain; how it works, and why you should careBlockchain; how it works, and why you should care
Blockchain; how it works, and why you should careVincent Olislagers
 
1% OF EVERYTHING ABOUT BLOCKCHAIN
1% OF EVERYTHING ABOUT BLOCKCHAIN1% OF EVERYTHING ABOUT BLOCKCHAIN
1% OF EVERYTHING ABOUT BLOCKCHAINRavi Choudhary
 
Blockchain
BlockchainBlockchain
BlockchainSai Nath
 

Similar to Blockchain Internals: From Theory to Python (20)

Blockchain Technology and Its Application in Libraries
Blockchain Technology and Its Application in LibrariesBlockchain Technology and Its Application in Libraries
Blockchain Technology and Its Application in Libraries
 
INTRO TO BLOCKCHAINS AND CRYPTOCURRENCY
INTRO TO BLOCKCHAINS AND CRYPTOCURRENCYINTRO TO BLOCKCHAINS AND CRYPTOCURRENCY
INTRO TO BLOCKCHAINS AND CRYPTOCURRENCY
 
The Future Is Blockchain Era
The Future Is Blockchain EraThe Future Is Blockchain Era
The Future Is Blockchain Era
 
Blockchain data structures and fundamental
Blockchain data structures and fundamentalBlockchain data structures and fundamental
Blockchain data structures and fundamental
 
Block chain technology
Block chain technology Block chain technology
Block chain technology
 
Blockchain Breakout Session Tech Coast Conference Jacksonville
Blockchain Breakout Session Tech Coast Conference JacksonvilleBlockchain Breakout Session Tech Coast Conference Jacksonville
Blockchain Breakout Session Tech Coast Conference Jacksonville
 
Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...Blockchain Application Design and Development, and the Case of Programmable M...
Blockchain Application Design and Development, and the Case of Programmable M...
 
Blockchain 101 by imran bashir
Blockchain 101  by imran bashirBlockchain 101  by imran bashir
Blockchain 101 by imran bashir
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
 
Blockchain Primer Part 1
Blockchain Primer Part 1Blockchain Primer Part 1
Blockchain Primer Part 1
 
BLOCKCHAIN TECHNOLOGY.ppt
BLOCKCHAIN TECHNOLOGY.pptBLOCKCHAIN TECHNOLOGY.ppt
BLOCKCHAIN TECHNOLOGY.ppt
 
BLOCK CHAIN
BLOCK CHAINBLOCK CHAIN
BLOCK CHAIN
 
Distributed systems and blockchain technology
Distributed systems and blockchain technologyDistributed systems and blockchain technology
Distributed systems and blockchain technology
 
Blockchain in FinTech
Blockchain in FinTechBlockchain in FinTech
Blockchain in FinTech
 
"Creating a Competitive Edge Using Blockchain Technology"
"Creating a Competitive Edge Using Blockchain Technology""Creating a Competitive Edge Using Blockchain Technology"
"Creating a Competitive Edge Using Blockchain Technology"
 
Learn Blockchain-Basics - 101Blockchains
Learn Blockchain-Basics - 101BlockchainsLearn Blockchain-Basics - 101Blockchains
Learn Blockchain-Basics - 101Blockchains
 
Blockchain; how it works, and why you should care
Blockchain; how it works, and why you should careBlockchain; how it works, and why you should care
Blockchain; how it works, and why you should care
 
1% OF EVERYTHING ABOUT BLOCKCHAIN
1% OF EVERYTHING ABOUT BLOCKCHAIN1% OF EVERYTHING ABOUT BLOCKCHAIN
1% OF EVERYTHING ABOUT BLOCKCHAIN
 
Blockchain
BlockchainBlockchain
Blockchain
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Blockchain Internals: From Theory to Python

  • 1. BLOCKCHAIN INTERNALS: FromTheory to Python NicolaCostantino
  • 2. 92 minutes of Storytelling… Not really.
  • 5. “Let’s build a Blockchain” https://github.com/Haseeb-Qureshi/lets-build-a- blockchain
  • 6. “Learn Blockchains by Building One” https://hackernoon.com/learn-blockchains-by-building- one-117428612f46
  • 7. Studying blockchain as a technology • To use blockchain as a technology we need to: • extract it from the original (economic/financial) domain • analyze its strengths and weaknesses • adapt it to other compatible domains • We need to fully understand blockchain as technology for making the most out of it in the original domain • Blockchain technology is the core of… every blockchain!We need to study it to be confident with the use and the development of blockchain-related applications.
  • 8. Bitcoin & Blockchain Finance & Computer Science Source: https://bitcoin.org/bitcoin.pdf
  • 9. “ ” Blockchain is a data structure; it is basically a linked list that uses hash pointers instead of normal pointers. Hash pointers are used to point to the previous block. (Mastering Blockchain) BLOCKCHAIN as DATA STRUCTURE
  • 12. Structure - Questions • How is a blockchain structured internally? • What could we store inside a blockchain? • What are blockchain’s strengths and weaknesses?
  • 13. Structure - Demo Blockchain as Data Structure – Analysis Code @ https://github.com/NicolaCostantino/Blockchain-Internals
  • 17. “Blockchain is a database…” No.
  • 18. Database: • “A large amount of information stored in a computer system in such a way that it can be easily looked at or changed” Source (Cambridge Dictionary): https://dictionary.cambridge.org/dictionary/english/database Blockchain: • it can NOT be easily looked at or changed
  • 19. Blockchain as data structure is the representation of… (lack of) TRUST! Trust me. I trust you because/if/when I can check at any time if I can trust you
  • 21. Ricardian Contract "A Ricardian contract can be defined as a single document that is • a contract offered by an issuer to holders • for a valuable right held by holders, and managed by the issuer • easily readable (like a contract on paper) • readable by programs (parsable like a database) • digitally signed • carrying the keys and server information • allied with a unique and secure identifier.“ SourceWikipedia: https://en.wikipedia.org/wiki/Ricardian_contract
  • 22. Logic - Demo Script and Smart Contract Code @ https://github.com/NicolaCostantino/Blockchain-Internals
  • 24. It is impossible for a distributed data store to simultaneously provide more than two out of the following three guarantees: • Consistency: Every read receives the most recent write or an error • Availability: Every request receives a (non-error) response – without the guarantee that it contains the most recent write • Partition tolerance: The system continues to operate despite an arbitrary number of messages being dropped (or delayed) by the network between nodes C.A.P. (Brewer's) Theorem
  • 25. Network - Demo Distributed Systems DLT: Distributed LedgerTechnology Code @ https://github.com/NicolaCostantino/Blockchain-Internals
  • 26. Nicola Costantino (Genius, Playboy, Billionaire, Philanthropist) nicolacostantino.com nicolacostantino.dev https://github.com/NicolaCostantino https://www.linkedin.com/in/nicolacostantino/ https://twitter.com/theroadtodark ThankYou!