SlideShare a Scribd company logo
BigchainDB
A scalable blockchain database
ALI RAJAB
BigchainDB
-
A big data distributed database has some of blockchain characteristics
:
-
Decentralization : no one owns or controls a network
.
-
Immutability : data once stored can’t be deleted or changed
.
-
Owner-controlled assets : only the owner can create and transfer the asset
ownership to a new owner
.
-
Store any kind of data, but it’s designed to be particularly suitable for storing
assets (car, house, data set)
.
Decentralization
-
Each node has its own local MongoDB database
.
-
All Communication between nodes is done using Tendermint protocol
.
-
Tendermint protocol is used for consensus and transaction replication
.
-
Tendermint is Byzantine Fault Tolerance
.
No single point of failure
Decentralization
Immutability
-
Every node has a full copy of all the data in a standalone MongoDB
database
.
-
Every block has an id equal to the hash of its transactions,
timestamp, voters list and public key of node creator
.
-
All transactions are cryptographically signed
.
-
No APIs to change or erase stored data
.
Owner-controlled assets
-
Users can create as many assets (divisible or indivisible) as they need
.
-
All assets created by the user are cryptographically signed by his private key
.
-
Only the owner of an asset can transfer that asset
.
BigchainDB Use Cases
-
BigchainDB used in almost all the scenarios where there is a need of
immutable and tamper-proof storage of data assets at high throughput with
ability to search and query like
:
-
Supply Chain
-
Digital Twins and IoT
.
-
Identity
.
-
Intellectual Property
Case Study : Supply Chain Management in
Agriculture Using Blockchain and IoT
-
Assets are digitally stored in BigchainDB
.
-
Every asset will have its digital twin with a public key and private key
.
-
All the assets can be tracked using the public key
.
-
The assets can be anything: tomatoes, mangoes, milk products, etc
.
-
All the transactions between the stackholders are recorded in this way any
malpractice or dishonest handling of the asset can be caught
.
-
IoT devices are used to update the real-time quality and transit time of the
product
.
-
Consumers can scan the QR code using the mobile application and then all the
transactions of the asset will be retrieved with perfect data analytics
.
BigchainDB Transactions
-
In BigchainDB transactions are used to register, issue, create or transfer assets
.
-
There are two kinds : CREATE transactions and TRANSFER transactions
.
-
A CREATE transaction : to register any kind of asset(divisible or indivisible)
.
-
A TRANSFER transaction : to transfer the asset ownership to a new owner
.
CREATE Transaction
-
To create a new asset user must do the following
:
1
-
Generate a pair of public/private key
.
2
-
Define the asset
.
3
-
Define metadate contains information about the asset (OPTIONAL)
.
4
-
Construct a transaction payload that includes : an asset - asset metadata
- transaction output
.
5
-
Sign the transaction using the asset owner private key
.
6
-
Send the transaction to a BigchainDB network
.
TRANSFER Transaction
:
-
To transfer the asset ownership to a new owner the asset owner must
construct a TRANSFER transaction and prepare it with the following
:
1
-
Signed Transaction
2
-
Transaction output include a new owner public key
.
3
-
Send the transaction to a BigchainDB network
.
-
User can use a BigchainDB driver(software package) to create valid
transactions, generate key pairs, sign transactions and post the
transaction to the BigchainDB API
.
Example : Create and Transfer an asset
using BigchainDB JavaScript driver
-
Install BigchainDB JavaScript driver package
:
npm install bigchaindb-driver
-
Import BigchainDB driver
:
const driver = require(‘bigchaindb-driver’)
-
Generate a pair of public/private key
:
const alice = new driver.Ed25519Keypair
)(
-
Create a connection with BigchainDB
:
const connection = new driver.Connection('https://test.ipdb.io/api/v1/')
-
Asset creation
:
driver.Transaction.makeCreateTransaction
(
‘ {
painting’ : { ‘name’ : ‘Monaliza’ , ‘year’ : ‘2021’}
,}
‘{
Country’ : ‘Syria
,}’
[
driver.Transaction.makeOutput
(
driver.Transaction.makeEd25519Condition(alice.publicKey)
,])
alice.publicKey
)
-
Sign the transaction with private key of Alice
:
driver.Transaction.signTransaction(alice_transaction,alice.privateKey)
Example : Create and Transfer an asset
using BigchainDB JavaScript driver
-
Send the transaction to a BigchainDB network
:
connection.postTransactionCommit(signed_transaction)
-
Transfer asset ownership to bob
:
driver.Transaction.makeTransferTransaction
(
{[
signed_transaction, output_index:0
,]}
[
driver.Transaction.makeOutput
(
driver.Transaction.makeEd25519Condition(bob.publicKey)
,])
‘{
Country’ : ‘Italy
)}’
Example : Create and Transfer an asset
using BigchainDB JavaScript driver
References
-
Borah, Malaya & Naik, Vadithya & Patgiri, Ripon & Bhargav, Aditya & Phukan, Barneel. (2019).
Supply Chain Management in Agriculture Using Blockchain and IoT. 10.1007/978-981-13-8775-3_11
.
-
BigchainDB. BigchainDB 2.0 – The Blockchain Database, May 2018
.
https://www.bigchaindb.com/whitepaper/
-
MCCONAGHY, Trent, et al. Bigchaindb: a scalable blockchain database. white paper,
BigChainDB, 2016
.
-
BigchainDB. BigchainDB Documentation
.
https://docs.bigchaindb.com/en/latest/
Thank you

More Related Content

Similar to BigchainDB_A_scalable_blockchain_database.pptx (20)

PPTX
The Hive Think Tank: Sidechains by Adam Back, President of Blockstream
The Hive
 
PDF
In-Memory Computing Driving Edge Computing and Blockchain Technologies
dsapps
 
PPTX
Hyperledger
Vinay Aitha
 
PPTX
Block chain technology
Ponthota Viswanath Reddy
 
PPTX
Block chain technology
Ponthota Viswanath Reddy
 
PDF
An introduction to blockchain and hyperledger v ru
LennartF
 
PPTX
The Education Blockchain
Collective Intelligence Inc.
 
PDF
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM France Lab
 
PDF
Block Chain meets Big Data
Vihang Patel
 
PPTX
Defrag X Keynote: Deploying and managing Global Blockchain Network
Duncan Johnston-Watt
 
PPTX
Defrag x blockchain keynote
Morgan Brooke Wright
 
PPTX
emtech blockchain.pptx
recoveraccount1
 
PDF
Distributed dataintelligence
www.ixxo.io
 
PPTX
Coinbase Node
TinaBregovi
 
PPTX
Get Ready for Coinbase Node
TinaBregovi
 
PDF
Introduction to Blockchain and Smart Contracts
Saad Zaher
 
PDF
New Business Models enabled by Blockchain
Slash
 
PDF
Block chain 101 what it is, why it matters
Paul Brody
 
PDF
A short introduction to Canis Major
FIWARE
 
DOCX
Blockchain a deep dive
hypeprofitbiz
 
The Hive Think Tank: Sidechains by Adam Back, President of Blockstream
The Hive
 
In-Memory Computing Driving Edge Computing and Blockchain Technologies
dsapps
 
Hyperledger
Vinay Aitha
 
Block chain technology
Ponthota Viswanath Reddy
 
Block chain technology
Ponthota Viswanath Reddy
 
An introduction to blockchain and hyperledger v ru
LennartF
 
The Education Blockchain
Collective Intelligence Inc.
 
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM France Lab
 
Block Chain meets Big Data
Vihang Patel
 
Defrag X Keynote: Deploying and managing Global Blockchain Network
Duncan Johnston-Watt
 
Defrag x blockchain keynote
Morgan Brooke Wright
 
emtech blockchain.pptx
recoveraccount1
 
Distributed dataintelligence
www.ixxo.io
 
Coinbase Node
TinaBregovi
 
Get Ready for Coinbase Node
TinaBregovi
 
Introduction to Blockchain and Smart Contracts
Saad Zaher
 
New Business Models enabled by Blockchain
Slash
 
Block chain 101 what it is, why it matters
Paul Brody
 
A short introduction to Canis Major
FIWARE
 
Blockchain a deep dive
hypeprofitbiz
 

Recently uploaded (20)

PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
The Future of Artificial Intelligence (AI)
Mukul
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Ad

BigchainDB_A_scalable_blockchain_database.pptx

  • 1. BigchainDB A scalable blockchain database ALI RAJAB
  • 2. BigchainDB - A big data distributed database has some of blockchain characteristics : - Decentralization : no one owns or controls a network . - Immutability : data once stored can’t be deleted or changed . - Owner-controlled assets : only the owner can create and transfer the asset ownership to a new owner . - Store any kind of data, but it’s designed to be particularly suitable for storing assets (car, house, data set) .
  • 3. Decentralization - Each node has its own local MongoDB database . - All Communication between nodes is done using Tendermint protocol . - Tendermint protocol is used for consensus and transaction replication . - Tendermint is Byzantine Fault Tolerance . No single point of failure
  • 5. Immutability - Every node has a full copy of all the data in a standalone MongoDB database . - Every block has an id equal to the hash of its transactions, timestamp, voters list and public key of node creator . - All transactions are cryptographically signed . - No APIs to change or erase stored data .
  • 6. Owner-controlled assets - Users can create as many assets (divisible or indivisible) as they need . - All assets created by the user are cryptographically signed by his private key . - Only the owner of an asset can transfer that asset .
  • 7. BigchainDB Use Cases - BigchainDB used in almost all the scenarios where there is a need of immutable and tamper-proof storage of data assets at high throughput with ability to search and query like : - Supply Chain - Digital Twins and IoT . - Identity . - Intellectual Property
  • 8. Case Study : Supply Chain Management in Agriculture Using Blockchain and IoT - Assets are digitally stored in BigchainDB . - Every asset will have its digital twin with a public key and private key . - All the assets can be tracked using the public key . - The assets can be anything: tomatoes, mangoes, milk products, etc . - All the transactions between the stackholders are recorded in this way any malpractice or dishonest handling of the asset can be caught . - IoT devices are used to update the real-time quality and transit time of the product . - Consumers can scan the QR code using the mobile application and then all the transactions of the asset will be retrieved with perfect data analytics .
  • 9. BigchainDB Transactions - In BigchainDB transactions are used to register, issue, create or transfer assets . - There are two kinds : CREATE transactions and TRANSFER transactions . - A CREATE transaction : to register any kind of asset(divisible or indivisible) . - A TRANSFER transaction : to transfer the asset ownership to a new owner .
  • 10. CREATE Transaction - To create a new asset user must do the following : 1 - Generate a pair of public/private key . 2 - Define the asset . 3 - Define metadate contains information about the asset (OPTIONAL) . 4 - Construct a transaction payload that includes : an asset - asset metadata - transaction output . 5 - Sign the transaction using the asset owner private key . 6 - Send the transaction to a BigchainDB network .
  • 11. TRANSFER Transaction : - To transfer the asset ownership to a new owner the asset owner must construct a TRANSFER transaction and prepare it with the following : 1 - Signed Transaction 2 - Transaction output include a new owner public key . 3 - Send the transaction to a BigchainDB network . - User can use a BigchainDB driver(software package) to create valid transactions, generate key pairs, sign transactions and post the transaction to the BigchainDB API .
  • 12. Example : Create and Transfer an asset using BigchainDB JavaScript driver - Install BigchainDB JavaScript driver package : npm install bigchaindb-driver - Import BigchainDB driver : const driver = require(‘bigchaindb-driver’) - Generate a pair of public/private key : const alice = new driver.Ed25519Keypair )( - Create a connection with BigchainDB : const connection = new driver.Connection('https://test.ipdb.io/api/v1/')
  • 13. - Asset creation : driver.Transaction.makeCreateTransaction ( ‘ { painting’ : { ‘name’ : ‘Monaliza’ , ‘year’ : ‘2021’} ,} ‘{ Country’ : ‘Syria ,}’ [ driver.Transaction.makeOutput ( driver.Transaction.makeEd25519Condition(alice.publicKey) ,]) alice.publicKey ) - Sign the transaction with private key of Alice : driver.Transaction.signTransaction(alice_transaction,alice.privateKey) Example : Create and Transfer an asset using BigchainDB JavaScript driver
  • 14. - Send the transaction to a BigchainDB network : connection.postTransactionCommit(signed_transaction) - Transfer asset ownership to bob : driver.Transaction.makeTransferTransaction ( {[ signed_transaction, output_index:0 ,]} [ driver.Transaction.makeOutput ( driver.Transaction.makeEd25519Condition(bob.publicKey) ,]) ‘{ Country’ : ‘Italy )}’ Example : Create and Transfer an asset using BigchainDB JavaScript driver
  • 15. References - Borah, Malaya & Naik, Vadithya & Patgiri, Ripon & Bhargav, Aditya & Phukan, Barneel. (2019). Supply Chain Management in Agriculture Using Blockchain and IoT. 10.1007/978-981-13-8775-3_11 . - BigchainDB. BigchainDB 2.0 – The Blockchain Database, May 2018 . https://www.bigchaindb.com/whitepaper/ - MCCONAGHY, Trent, et al. Bigchaindb: a scalable blockchain database. white paper, BigChainDB, 2016 . - BigchainDB. BigchainDB Documentation . https://docs.bigchaindb.com/en/latest/