SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
Blockchain Hackathon Moscow
Alexander Chepurnoy
On Private Blockchains, Technically
My Background
● Java then Scala development
● Distributed / P2P systems development
● Nxt Core Developer
● SmartContract.com / Secureae.com cofounder/dev
● Consensus Research member
● Scorex project
Fields of Interest
● Distributed & P2P systems
● Blockchain Tech
● Functional Programming (Haskell / Scala)
● Formal Methods (model checking / Coq)
● Finite State Machines and some other topics in CS
The Design of a Cryptocurrency
● P2P Network
● Persistent distributed fully-replicate database (aka
Blockchain)
● Transactions operating with tokens grouped within blocks,
a block is a database version
● Consensus algorithm
● Optional: additional layers on top of transactional
layer(mesages, colored coins, code)
A Blockchain Structure
Consensus About Blockchain
● Proof-of-Work
● Proof-of-Stake
● Hybrid: Proof-of-Work+Proof-of-Activity, Proof-of-
Stake+Proof-of-Activity
BlockTree
Blockchain As A Database
● Persistent(versioned) database
● Genesis state – initial verion of the database
● Block as state modifier: State(h) * Block → State(h+1)
● Very weak consistency!
PoW-based Trustless Database
If adversarial hashing power is less than 50% :
● replicated log and state
● a probability of transaction exclusion from a blockchain is
going down exponentially with time
● a probability of valid trransaction non-inclusion into a
blockchain is going down exponentially with time
● node's state divergence from a canonical one(majority has)
is going down exponentially with time(if exists)
● dependless on who mined a concrete block
Private Blockchains
● want to get maximum from the trustless db model
● have non-monetary purposes, usually
● limited number of participants(or just miners)
Private Blockchains
are proposed for:
● art objects ownership history
● real estate ownership history (chain of title)
● Inter-banks procedures(clearing etc)
● etc
Implementation
● consensus protocol
● transactional model
● incentives model
Consensus – PoW
● Not fair(richer parties will take control over a network soon)
● Attacks via outsourcing work to Bitcoin miners
● Why art gallery or real estate agency needs for a lot of
expensive special hardware in addition to the database
software?
Consensus - PoS
● Generation rights
● Predefined distribution of generation rights
● Works in practice for few years
● Some security investigations are done...
but more needed! As well as formalizations.
Trusted Random Beacon
● Bitcoin / Nxt / other public blockchain could be used as a
trusted source of randomness, to chose next block
generator
● Blocks frequency is the same in both chains
● (SPV) client is needed to be inbuilt in a node
Byzantine Agreement Scheme
● A lot of well-known formalized solutions to the distributed
commit problem
● Up to ~5000 participants
● Verification could be costly
Transactional Model
● Should be suitable for max performance
● Min transaction size
● Prunable state
● Bitcoin's transactions with multiple inputs & outputs and
scripts attached to both sides probably isn't the most
suitable model for many non-monetary cases
Incentives Model
Long-term security
● Why to participate in a network?
● Why to run a fullnode?
● Why to generate a block?
● Why to include transactions in a block?
Better Quality of Blockchain Impls
● Modular approach
● Safer languages(Scala/Ocaml, Haskell, Idris/Coq)
● Formal methods usage
● Prototypes before products
SCOREX
● The cryptocurrency engine in less than 4K lines of
Scala code
● To make proof-of-concepts FAST!
● Compact code
● Not production-ready
● CC0 license
Lagonaki Release
● 100% Proof-of-stake
● Simplified account-based transaction model
● Simple payments only
● Curve25519 for signing
● JSON API
● Command-line client
Under The Hood:
● Scala
● Akka
● MapDB
● Spray
● Play Json
● Scalatest
● Logback
Questions?
● Articles:
● „On Private Blockchains, Technically“
http://chepurnoy.org/blog/2015/11/on-private-blockchains-technically/
● „On the Way to a Modular Cryptocurrency, Part 1: Generic Block
Structure“
http://chepurnoy.org/blog/2015/10/on-the-way-to-a-modular-cryptocurrency
-part-1-generic-block-structure/
● „A Cryptocurrency Architecture“
http://chepurnoy.org/blog/2015/08/a-cryptocurrency-architecture/
Mail: kushti@protonmail.ch

Contenu connexe

Tendances

Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
Дмитрий Плахов
 

Tendances (20)

Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain Technology - The Next Superpower By Priyank Vaghela
Blockchain Technology - The Next Superpower By Priyank VaghelaBlockchain Technology - The Next Superpower By Priyank Vaghela
Blockchain Technology - The Next Superpower By Priyank Vaghela
 
Ethereum overview
Ethereum overviewEthereum overview
Ethereum overview
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
A quick introduction to Consensus Models
A quick introduction to Consensus ModelsA quick introduction to Consensus Models
A quick introduction to Consensus Models
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
The Bitcoin Lightning Network
The Bitcoin Lightning NetworkThe Bitcoin Lightning Network
The Bitcoin Lightning Network
 
BLOCKCHAIN TECHNOLOGY
BLOCKCHAIN TECHNOLOGYBLOCKCHAIN TECHNOLOGY
BLOCKCHAIN 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
 
How does the Bitcoin network work?
How does the Bitcoin network work?How does the Bitcoin network work?
How does the Bitcoin network work?
 
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?Intro to Blockchain - And, by the way, what the heck is proof-of-work?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
 
Bitcoin Wallet &amp Keys
Bitcoin Wallet &amp KeysBitcoin Wallet &amp Keys
Bitcoin Wallet &amp Keys
 
An introduction to blockchain
An introduction to blockchainAn introduction to blockchain
An introduction to blockchain
 
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
Доклад Владимира Бичева на третьем митапе сообщества блокчейн-разработчиков С...
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
Programming Decentralized Application
Programming Decentralized ApplicationProgramming Decentralized Application
Programming Decentralized Application
 
Blockchain – The future of Internet by Moinur Rahman
Blockchain – The future of Internet by Moinur RahmanBlockchain – The future of Internet by Moinur Rahman
Blockchain – The future of Internet by Moinur Rahman
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
Vilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensusVilnius blockchain club 20170413 consensus
Vilnius blockchain club 20170413 consensus
 
Распределенный blockchain процессинг / Алексей Трошичев (QiWi, Rakuten)
Распределенный blockchain процессинг / Алексей Трошичев (QiWi, Rakuten)Распределенный blockchain процессинг / Алексей Трошичев (QiWi, Rakuten)
Распределенный blockchain процессинг / Алексей Трошичев (QiWi, Rakuten)
 

Similaire à On Private Blockchains, Technically

C13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptxC13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptx
haifaazka
 

Similaire à On Private Blockchains, Technically (20)

Scorex meetup-aug-2015
Scorex meetup-aug-2015Scorex meetup-aug-2015
Scorex meetup-aug-2015
 
Distributed, immutable, secure...
Distributed, immutable, secure...Distributed, immutable, secure...
Distributed, immutable, secure...
 
Bitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodBitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the Hood
 
Fredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesFredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slides
 
Blockchain architected
Blockchain architectedBlockchain architected
Blockchain architected
 
2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview
 
Blockchain
BlockchainBlockchain
Blockchain
 
blockchain-introduction-public.pptx
blockchain-introduction-public.pptxblockchain-introduction-public.pptx
blockchain-introduction-public.pptx
 
C13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptxC13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptx
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
 
Blockchain with scala
Blockchain with scalaBlockchain with scala
Blockchain with scala
 
dfgsdjghkjsdhfg.pptx
dfgsdjghkjsdhfg.pptxdfgsdjghkjsdhfg.pptx
dfgsdjghkjsdhfg.pptx
 
Ergo platform's approach
Ergo platform's approachErgo platform's approach
Ergo platform's approach
 
IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0
 
Distributed systems and blockchain technology
Distributed systems and blockchain technologyDistributed systems and blockchain technology
Distributed systems and blockchain technology
 
Enterprise Blockchain
Enterprise BlockchainEnterprise Blockchain
Enterprise Blockchain
 
Intro to Blockchain Slides
Intro to Blockchain SlidesIntro to Blockchain Slides
Intro to Blockchain Slides
 
A living programming environment for blockchain
A living programming environment for blockchainA living programming environment for blockchain
A living programming environment for blockchain
 
A living programming environment for a living blockchain
A living programming environment for a living blockchainA living programming environment for a living blockchain
A living programming environment for a living blockchain
 

Plus de Alex Chepurnoy

Plus de Alex Chepurnoy (7)

Ergo Presentation - Tokyo
Ergo Presentation - TokyoErgo Presentation - Tokyo
Ergo Presentation - Tokyo
 
Berlin sigma-2017
Berlin sigma-2017Berlin sigma-2017
Berlin sigma-2017
 
Ethereum and Its Challenges
Ethereum and Its ChallengesEthereum and Its Challenges
Ethereum and Its Challenges
 
Improving Authenticated Dynamic Dictionaries, with Applications to Cryptocurr...
Improving Authenticated Dynamic Dictionaries, with Applications to Cryptocurr...Improving Authenticated Dynamic Dictionaries, with Applications to Cryptocurr...
Improving Authenticated Dynamic Dictionaries, with Applications to Cryptocurr...
 
Масштабируемость блокчейн-систем: проблемы и решения
Масштабируемость блокчейн-систем: проблемы и решенияМасштабируемость блокчейн-систем: проблемы и решения
Масштабируемость блокчейн-систем: проблемы и решения
 
Sigma Protocols and Zero Knowledge
Sigma Protocols and Zero KnowledgeSigma Protocols and Zero Knowledge
Sigma Protocols and Zero Knowledge
 
A New Business World Within A Blockchain
A New Business World Within A BlockchainA New Business World Within A Blockchain
A New Business World Within A Blockchain
 

Dernier

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Dernier (20)

Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 

On Private Blockchains, Technically

  • 1. Blockchain Hackathon Moscow Alexander Chepurnoy On Private Blockchains, Technically
  • 2. My Background ● Java then Scala development ● Distributed / P2P systems development ● Nxt Core Developer ● SmartContract.com / Secureae.com cofounder/dev ● Consensus Research member ● Scorex project
  • 3. Fields of Interest ● Distributed & P2P systems ● Blockchain Tech ● Functional Programming (Haskell / Scala) ● Formal Methods (model checking / Coq) ● Finite State Machines and some other topics in CS
  • 4. The Design of a Cryptocurrency ● P2P Network ● Persistent distributed fully-replicate database (aka Blockchain) ● Transactions operating with tokens grouped within blocks, a block is a database version ● Consensus algorithm ● Optional: additional layers on top of transactional layer(mesages, colored coins, code)
  • 6. Consensus About Blockchain ● Proof-of-Work ● Proof-of-Stake ● Hybrid: Proof-of-Work+Proof-of-Activity, Proof-of- Stake+Proof-of-Activity
  • 8. Blockchain As A Database ● Persistent(versioned) database ● Genesis state – initial verion of the database ● Block as state modifier: State(h) * Block → State(h+1) ● Very weak consistency!
  • 9. PoW-based Trustless Database If adversarial hashing power is less than 50% : ● replicated log and state ● a probability of transaction exclusion from a blockchain is going down exponentially with time ● a probability of valid trransaction non-inclusion into a blockchain is going down exponentially with time ● node's state divergence from a canonical one(majority has) is going down exponentially with time(if exists) ● dependless on who mined a concrete block
  • 10. Private Blockchains ● want to get maximum from the trustless db model ● have non-monetary purposes, usually ● limited number of participants(or just miners)
  • 11. Private Blockchains are proposed for: ● art objects ownership history ● real estate ownership history (chain of title) ● Inter-banks procedures(clearing etc) ● etc
  • 12. Implementation ● consensus protocol ● transactional model ● incentives model
  • 13. Consensus – PoW ● Not fair(richer parties will take control over a network soon) ● Attacks via outsourcing work to Bitcoin miners ● Why art gallery or real estate agency needs for a lot of expensive special hardware in addition to the database software?
  • 14. Consensus - PoS ● Generation rights ● Predefined distribution of generation rights ● Works in practice for few years ● Some security investigations are done... but more needed! As well as formalizations.
  • 15. Trusted Random Beacon ● Bitcoin / Nxt / other public blockchain could be used as a trusted source of randomness, to chose next block generator ● Blocks frequency is the same in both chains ● (SPV) client is needed to be inbuilt in a node
  • 16. Byzantine Agreement Scheme ● A lot of well-known formalized solutions to the distributed commit problem ● Up to ~5000 participants ● Verification could be costly
  • 17. Transactional Model ● Should be suitable for max performance ● Min transaction size ● Prunable state ● Bitcoin's transactions with multiple inputs & outputs and scripts attached to both sides probably isn't the most suitable model for many non-monetary cases
  • 18. Incentives Model Long-term security ● Why to participate in a network? ● Why to run a fullnode? ● Why to generate a block? ● Why to include transactions in a block?
  • 19. Better Quality of Blockchain Impls ● Modular approach ● Safer languages(Scala/Ocaml, Haskell, Idris/Coq) ● Formal methods usage ● Prototypes before products
  • 20. SCOREX ● The cryptocurrency engine in less than 4K lines of Scala code ● To make proof-of-concepts FAST! ● Compact code ● Not production-ready ● CC0 license
  • 21. Lagonaki Release ● 100% Proof-of-stake ● Simplified account-based transaction model ● Simple payments only ● Curve25519 for signing ● JSON API ● Command-line client
  • 22. Under The Hood: ● Scala ● Akka ● MapDB ● Spray ● Play Json ● Scalatest ● Logback
  • 23. Questions? ● Articles: ● „On Private Blockchains, Technically“ http://chepurnoy.org/blog/2015/11/on-private-blockchains-technically/ ● „On the Way to a Modular Cryptocurrency, Part 1: Generic Block Structure“ http://chepurnoy.org/blog/2015/10/on-the-way-to-a-modular-cryptocurrency -part-1-generic-block-structure/ ● „A Cryptocurrency Architecture“ http://chepurnoy.org/blog/2015/08/a-cryptocurrency-architecture/ Mail: kushti@protonmail.ch