Blockchain for Python
Developers
Juarez Junior
Azure Developer Engagement Lead
Microsoft
juarez.junior@microsoft.com Twitter/Medium: @juarezjunior linkedin.com/in/jujunior
Blockchain technology
What is blockchain?
Common scenarios
The ledger can only be updated by
network consensus, and information can’t
be altered or deleted without the
knowledge of the whole network
Everyone in the network has an individual,
identical copy
Data is stored in a ledger—
a record of every transaction
Blockchain streamlines these processes by establishing
a secure, shared source of truth
Blockchain Networks
Consortium
Woodgrove
Financial
Contoso
Bank
Northwind
Traders
Bank b
Insurance c
Investment
consortium
c
Bank A
Blockchain
Location 1
Location 2
Location 3
Location 4
Department
A
Department
B
Public
blockchain
Person a
Woodgrove
Financial
Person B
Northwind
Traders
Bank 6
Bank 1
Consortium
6
Public
(permissionless)
Consortium
(permissioned)
Private
• Many, unknown participants
• Writes by all participants
• Reads by all participants
• Consensus by Proof of Work
• Known participants from one org
• Write permissions centralized
• Reads may be public or restricted
• Multiple algorithms for consensus
• Known participants from multiple orgs
• Writes require consensus of n participants
• Reads may be public or restricted
• Multiple algorithms for consensus
Corda
Chain
Enterprise
Ethereum Quorum
Permissionless and Permissioned
Transactions, Hashes and Blocks
GENESIS BLOCK
(must be the root for all on the same chain)
Transaction 0
Transaction 1
Transaction 2
Transaction 3
Transaction 4
New Hash
+
Block0 Hash
First Hash
New Hash
+
Block1 Hash
New Hash
+
Block2 Hash
0 seconds ~12 seconds ~24 seconds ~36 seconds
Blockchain has broad applications across industries
Loyalty tracking
Product provenance
Logistics management
Digital rewards
P2P selling
Ticket purchases
Asset tracking
Real-time auction for
supplier contracts
Supply chain
transparency
Dynamic commodities
pricing
Claims management
MBS/Property payments
Fraud detection
Automated underwriting
Risk visualizations
Licensing and ID
Benefits distribution
Aid tracking
Military security
Copyrights
Audit compliance
Bond issuance
Trade finance
Loan syndication
Post trade settlement
Global payments
Derivatives trading
KYC/AML
Personalized medicine
Records sharing
Compliance
Agricultural
authentication
Pharmaceutical purity
Manufacturing Retail Insurance Government
Banking and
Capital Markets
Health
Hyperledger Fabric Blockchain
• Permissioned, Enterprise
• Hyperledger Fabric – open-source protocol for distributed ledger solutions
– Provides a permissioned blockchain model with membership services
– Offers a modular architecture allowing components, such as consensus and membership
services
– Enables pluggable data store, consensus protocols, and multiple providers of membership
services
– Programmable – leverages containers to host smart contracts
– Focuses on a permissioned implementation with confidentiality/privacy provisions
– No crypto required
• Hosted by The Linux Foundation
– Same governance model
– Other projects as part of Hyperledger Foundation ecosystem (Indy, Iroha, Sawtooth)
HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
Hyperledger Fabric Blockchain
HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
Hyperledger Fabric – Transaction Flow
HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
Client Application
Fabric SDK
Keys
Membership Service
Peers
Endorser
Simulates TX
World
State
Committer
Effect changes
Ordering Service
Certificate
Authority
Federated
Identity
4.0 - Deliver TX Batch
Validate Signatures
and Authorization
Membership
Services container
Peer container
Orderer container
Orders TXs into
batches
according to
consensus
Container
Legend
Dev Code
3.0 - Submit Endorsed TX
Includes RWset and endorser
signatures
Ledger
5.0 – Writes ledger block
5.1 - Updates State
6.0 – Commit Notification
Fabric Code
Smart contract container
Smart Contract
(Chaincode)
Fabric-SDK-Py
https://github.com/hyperledger/fabric-sdk-py
https://fabric-sdk-
py.readthedocs.io/en/latest/tutorial.html
GitHub
HYPERLEDGER FABRIC PYTHON SDK
Hyperledger Blockchain
Smart Contracts
Python Clients
HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
Hyperledger on Azure with Azure
Kubernetes Service
https://medium.com/@juarezjunior/how-to-deploy-
your-first-hyperledger-fabric-components-with-
azure-kubernetes-service-aks-760563d9d543
Marketplace
GitHub
HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
Quorum Blockchain
CONSENSYS QUORUM
Quorum Blockchain on Azure
Create a Blockchain consortium member
Deploy a smart contract with VS Code
Interact with your smart contract
Quorum via a full 7 node
network on a single VM
Examples
CONSENSYS QUORUM
Corda – Languages and Tools
CORDA BY R3
Corda on Azure + Code Samples
Corda on Azure — How to deploy and run a demo
Corda network
Corda on Azure — Deploying a Corda Testnet node
Java
Kotlin
CORDA BY R3
 In the spirit of community, we will inspire our developers to build
on Azure and increase their skills across Azure services
 To achieve this we created something both unique and scarce with
badge designs that have been tokenised into a fixed supply
digital asset
What is Azure Heroes?
Transform your business with blockchain on Azure
Create smarter and more efficient processes with Azure blockchain offerings
Azure Blockchain
Service
Azure Blockchain
Workbench
Azure Blockchain
Developer Kit
Build, govern, and
expand consortium
blockchain
networks
Easily prototype
blockchain apps in
the cloud
Connect and integrate to
existing apps and move
to production
Azure Blockchain Development Kit
AZURE BLOCKCHAIN DEVELOPER EXPERIENCE
End-to-end Github examples that help connect and
integrate blockchain with existing apps
AZURE BLOCKCHAIN DEVELOPER EXPERIENCE
Azure is the best cloud for Blockchain
Ahead of the
competition
An open, app-focused
approach validated by
Gartner, Forrester and
many other third-party
analysts
Thoughtful product
portfolio
The most open and
comprehensive blockchain
portfolio to simplify
development of this new
class of applications
Trusted by customers
and partners
Businesses have built
thousands of blockchain
apps on Azure working
with our rich ecosystem of
blockchain partners ​
Azure Blockchain
AZURE BLOCKCHAIN
Streamline Blockchain app development
AZURE BLOCKCHAIN
Xamarin
IoT Hub
Gateway Service
API
Transaction Builder +
Signer
Azure Key Vault
Azure SQL database
Storage (Azure
Ethereum Router
Quorum Router Azure
Blockchain
Service
DLT
Watcher
Event
Grid
iOS App
Android App
Ethereum
Simple Blockchain governance / management
AZURE BLOCKCHAIN SERVICE
© Copyright Microsoft Corporation. All rights reserved.
Thank You and Q&A!
Blockchain for Python Developers
Scan this QR-code to access free educational
resources, step-by-step learning guides as well as
get practical experience in Blockchain!
https://aka.ms/MicrosoftAzureAtPyjamasConf2020
Don’t forget to add Microsoft Azure as a skill to your
LinkedIn account to stay connected with our developer
community!
+ Microsoft Azure
We post the latest announcements about free events for
developers on our official Twitter account!
twitter.com/MSDevIRL

Blockchain for Python Developers - Pyjamas Conf 2020

  • 1.
    Blockchain for Python Developers JuarezJunior Azure Developer Engagement Lead Microsoft juarez.junior@microsoft.com Twitter/Medium: @juarezjunior linkedin.com/in/jujunior
  • 3.
    Blockchain technology What isblockchain? Common scenarios
  • 4.
    The ledger canonly be updated by network consensus, and information can’t be altered or deleted without the knowledge of the whole network Everyone in the network has an individual, identical copy Data is stored in a ledger— a record of every transaction Blockchain streamlines these processes by establishing a secure, shared source of truth
  • 5.
    Blockchain Networks Consortium Woodgrove Financial Contoso Bank Northwind Traders Bank b Insurancec Investment consortium c Bank A Blockchain Location 1 Location 2 Location 3 Location 4 Department A Department B Public blockchain Person a Woodgrove Financial Person B Northwind Traders Bank 6 Bank 1 Consortium 6 Public (permissionless) Consortium (permissioned) Private • Many, unknown participants • Writes by all participants • Reads by all participants • Consensus by Proof of Work • Known participants from one org • Write permissions centralized • Reads may be public or restricted • Multiple algorithms for consensus • Known participants from multiple orgs • Writes require consensus of n participants • Reads may be public or restricted • Multiple algorithms for consensus
  • 6.
  • 7.
    Transactions, Hashes andBlocks GENESIS BLOCK (must be the root for all on the same chain) Transaction 0 Transaction 1 Transaction 2 Transaction 3 Transaction 4 New Hash + Block0 Hash First Hash New Hash + Block1 Hash New Hash + Block2 Hash 0 seconds ~12 seconds ~24 seconds ~36 seconds
  • 9.
    Blockchain has broadapplications across industries Loyalty tracking Product provenance Logistics management Digital rewards P2P selling Ticket purchases Asset tracking Real-time auction for supplier contracts Supply chain transparency Dynamic commodities pricing Claims management MBS/Property payments Fraud detection Automated underwriting Risk visualizations Licensing and ID Benefits distribution Aid tracking Military security Copyrights Audit compliance Bond issuance Trade finance Loan syndication Post trade settlement Global payments Derivatives trading KYC/AML Personalized medicine Records sharing Compliance Agricultural authentication Pharmaceutical purity Manufacturing Retail Insurance Government Banking and Capital Markets Health
  • 11.
    Hyperledger Fabric Blockchain •Permissioned, Enterprise • Hyperledger Fabric – open-source protocol for distributed ledger solutions – Provides a permissioned blockchain model with membership services – Offers a modular architecture allowing components, such as consensus and membership services – Enables pluggable data store, consensus protocols, and multiple providers of membership services – Programmable – leverages containers to host smart contracts – Focuses on a permissioned implementation with confidentiality/privacy provisions – No crypto required • Hosted by The Linux Foundation – Same governance model – Other projects as part of Hyperledger Foundation ecosystem (Indy, Iroha, Sawtooth) HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
  • 12.
    Hyperledger Fabric Blockchain HYPERLEDGERFABRIC BY HYPERLEDGER FOUNDATION
  • 14.
    Hyperledger Fabric –Transaction Flow HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION Client Application Fabric SDK Keys Membership Service Peers Endorser Simulates TX World State Committer Effect changes Ordering Service Certificate Authority Federated Identity 4.0 - Deliver TX Batch Validate Signatures and Authorization Membership Services container Peer container Orderer container Orders TXs into batches according to consensus Container Legend Dev Code 3.0 - Submit Endorsed TX Includes RWset and endorser signatures Ledger 5.0 – Writes ledger block 5.1 - Updates State 6.0 – Commit Notification Fabric Code Smart contract container Smart Contract (Chaincode)
  • 16.
  • 19.
    Hyperledger Blockchain Smart Contracts PythonClients HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
  • 20.
    Hyperledger on Azurewith Azure Kubernetes Service https://medium.com/@juarezjunior/how-to-deploy- your-first-hyperledger-fabric-components-with- azure-kubernetes-service-aks-760563d9d543 Marketplace GitHub HYPERLEDGER FABRIC BY HYPERLEDGER FOUNDATION
  • 21.
  • 22.
    Quorum Blockchain onAzure Create a Blockchain consortium member Deploy a smart contract with VS Code Interact with your smart contract Quorum via a full 7 node network on a single VM Examples CONSENSYS QUORUM
  • 23.
    Corda – Languagesand Tools CORDA BY R3
  • 24.
    Corda on Azure+ Code Samples Corda on Azure — How to deploy and run a demo Corda network Corda on Azure — Deploying a Corda Testnet node Java Kotlin CORDA BY R3
  • 25.
     In thespirit of community, we will inspire our developers to build on Azure and increase their skills across Azure services  To achieve this we created something both unique and scarce with badge designs that have been tokenised into a fixed supply digital asset What is Azure Heroes?
  • 27.
    Transform your businesswith blockchain on Azure Create smarter and more efficient processes with Azure blockchain offerings Azure Blockchain Service Azure Blockchain Workbench Azure Blockchain Developer Kit Build, govern, and expand consortium blockchain networks Easily prototype blockchain apps in the cloud Connect and integrate to existing apps and move to production
  • 28.
    Azure Blockchain DevelopmentKit AZURE BLOCKCHAIN DEVELOPER EXPERIENCE
  • 29.
    End-to-end Github examplesthat help connect and integrate blockchain with existing apps AZURE BLOCKCHAIN DEVELOPER EXPERIENCE
  • 31.
    Azure is thebest cloud for Blockchain Ahead of the competition An open, app-focused approach validated by Gartner, Forrester and many other third-party analysts Thoughtful product portfolio The most open and comprehensive blockchain portfolio to simplify development of this new class of applications Trusted by customers and partners Businesses have built thousands of blockchain apps on Azure working with our rich ecosystem of blockchain partners ​
  • 32.
  • 33.
    Streamline Blockchain appdevelopment AZURE BLOCKCHAIN Xamarin IoT Hub Gateway Service API Transaction Builder + Signer Azure Key Vault Azure SQL database Storage (Azure Ethereum Router Quorum Router Azure Blockchain Service DLT Watcher Event Grid iOS App Android App Ethereum
  • 34.
    Simple Blockchain governance/ management AZURE BLOCKCHAIN SERVICE
  • 35.
    © Copyright MicrosoftCorporation. All rights reserved. Thank You and Q&A!
  • 36.
    Blockchain for PythonDevelopers Scan this QR-code to access free educational resources, step-by-step learning guides as well as get practical experience in Blockchain! https://aka.ms/MicrosoftAzureAtPyjamasConf2020 Don’t forget to add Microsoft Azure as a skill to your LinkedIn account to stay connected with our developer community! + Microsoft Azure We post the latest announcements about free events for developers on our official Twitter account! twitter.com/MSDevIRL

Editor's Notes

  • #2 Hello, my name is Juarez Junior and today I want to talk with you about how you can capitalize on the value of blockchain with Microsoft Azure Blockchain.   Let’s get started.