SlideShare a Scribd company logo
Triple Entry Accounting
A BlockChain Use Case for Banks
With R3 Corda
Debajani Mohanty
Senior Technical Architect
NIIT Technologies Ltd
Who Am I?
• Foodie, Traveler, Writer
• Sleep-deprived mom of 2 little gals
• Author of “BlockChain One-Stop Guide:
From Concept to Execution” on Amazon
• Senior Architect with NIIT Technologies Ltd
Single Entry Accounting
• Single entry accounting is there since the
beginning of civilization.
• Someone buys and someone sells and one
keeps own accounting details.
• Any mistake in accounts, nobody would blame.
Double Entry Accounting
• Double-entry accounting introduced some 600 years back today is the
worldwide standard for business accounting.
• A and B are doing some transaction with each other and both are keeping
a transaction of the exchange i.e. every transaction records in at least two
accounts—in one as a debit and in the other as a credit.
• Debits increase expense and asset accounts but decrease income and
liability accounts. Conversely, credits increase income and liability
accounts and decrease expense and asset accounts.
• So the transaction at each level should look equal and opposite total
assets remaining the same.
Issues with Double Entry Accounting
• Time consuming, manual and error prone.
• Fraud: People may manipulate over here to
get opportunity as no third party is involved.
• Auditing difficulty: Double entry accounting
records are difficult to audit and costly.
Triple Entry
Accounting
Triple entry
accounting was a
process introduced by
financial cryptography
expert Ian Grigg in
Dec 2005
http://iang.org/papers/triple_entry.html
Transactions go through a
contract in real-time maintained
by a 3rd party agent or entry
which both parties connect to
and agree.
Why to Use BlockChain For
Accounting?
• Cryptographically secure
• Transactions can only be added, not
altered. Hence no manipulation possible.
• Fraud proof. Forces honesty.
• Data is shared. No data duplication.
• Transaction itself is receipt
• IOT & report integration
Solution Frameworks
Bitcoin and Ethereum were not architected to
meet business needs of Finance domain. The
Enterprise Blockchain frameworks that have the
potential to address these issues (but not limited
to) are
– Hyperledger
– Eris
– Ripple
– MultiChain
– R3 Corda
Why R3 Corda?
• By Architecture it is a triple
entry system.
• R3 Corda’s BlockChain inspired
DLT product is crafted for
Finance industry and automate
payment processes.
• R3 was first adopted by Barcley
bank and now supported by
100+ world leader banks and
financial agencies so far.
• R3 Corda is open source and
soon to be integrated to
Hyperledger umbrella.
• Ian Grigg, the inventor of triple
entry accounting is now part of
R3 CEV
Corda Architecture
• Alice issues the instrument, she signs it.
• Bob receives the instrument, agrees with it and he signs it.
• Bob passes the record to the Notary, who signs and then
stores the instrument.
• Bob, Alice can now query the Notary to ascertain whether
the transaction happened. Bob and Alice can also keep a
copy of the notarised instrument themselves.
• Alice and Bob now always have the same data
• As the Notary is a SRL or Shared Ledger, it’s practically
impossible to delete or update the instrument without
counter-party approval.
Transaction Flow
Corda Is..
• Easier to install, easier to use
• Uses existing technologies: Java/Kotlin JVM
languages, H2 SQL database, message queue
• Has excellent documentation & easier to climb
the learning curve
• It guarantees privacy and scalability
• It’s open source
Network
• A Corda network is made up of nodes running
Corda and CorDapps
• The network is permissioned, with access
controlled by a doorman
• Communication between nodes is point-to-
point, instead of relying on global broadcasts
Ledger with No Central Data
• The ledger is subjective from each peer’s
perspective
• Two peers are always guaranteed to see the exact
same version of any on-ledger facts they share
States
• States represent on-ledger facts
• Each node has a vault where it
stores any relevant states to
itself. Data is stored through
ORM mapping to a H2 Java SQL
database which is super-fast and
open-source
• It tracks all the current and
historic states that it is aware of,
and which it considers to be
relevant to itself
Contracts
• A valid transaction must be accepted by the
contract of each of its input and output states
• Contracts are written in a JVM programming
language (e.g. Java or Kotlin)
• Contract execution is deterministic and its
acceptance of a transaction is based on the
transaction’s contents alone
Contract Validity
• Each state points to
a contract
• A contract takes a transaction
as input, and states whether
the transaction is considered
valid based on the contract’s
rules
• A transaction is only valid if
the contract of every input
state and every output
state considers it to be valid
Transactions
• Transactions are proposals to update the
ledger
• A transaction proposal will only be
committed if:
– It doesn’t contain double-spends
– It is contractually valid
– It is signed by the required parties
Notaries
• Notaries prevent “double-spends”
• Notaries may optionally also validate
transactions
• A network can have several notaries, each
running a different consensus algorithm
Time Windows
• If a transaction includes a time-window, it
can only be committed during that window
• The notary is the time stamping authority,
refusing to commit transactions outside of
that window
• Time-windows can have a start and end
time, or be open at either end
DEMO
• Obligations - IOU CorDapp implemented in Java.
Handles the transfer and settlement of obligations
• Retains participant anonymity using confidential
identities (i.e. anonymous public keys)
Let’s run Corda on 4 nodes
i.e. One Controller (hosts the network map service and
a validating notary service) &
Party A (http://localhost:10007/web/example/)
Party B (http://localhost:10010/web/example/)
Party C (http://localhost:10013/web/example/)
Thank You

More Related Content

What's hot

Top 5 DeFi Applications
Top 5 DeFi ApplicationsTop 5 DeFi Applications
Top 5 DeFi Applications
101 Blockchains
 

What's hot (20)

Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshell
 
Stablecoin
StablecoinStablecoin
Stablecoin
 
Tokenomics
TokenomicsTokenomics
Tokenomics
 
What is tokenization in blockchain?
What is tokenization in blockchain?What is tokenization in blockchain?
What is tokenization in blockchain?
 
Hyperledger
HyperledgerHyperledger
Hyperledger
 
DeFi PPT.pptx
DeFi PPT.pptxDeFi PPT.pptx
DeFi PPT.pptx
 
Hyperledger
HyperledgerHyperledger
Hyperledger
 
Building Blockchain Application with Corda
Building Blockchain Application with CordaBuilding Blockchain Application with Corda
Building Blockchain Application with Corda
 
Smart contracts using web3.js
Smart contracts using web3.jsSmart contracts using web3.js
Smart contracts using web3.js
 
Top 5 DeFi Applications
Top 5 DeFi ApplicationsTop 5 DeFi Applications
Top 5 DeFi Applications
 
Hyperledger Overview - 20181024
Hyperledger Overview - 20181024Hyperledger Overview - 20181024
Hyperledger Overview - 20181024
 
Blockchain HyperLedger Fabric Internals - Clavent
Blockchain HyperLedger Fabric Internals - ClaventBlockchain HyperLedger Fabric Internals - Clavent
Blockchain HyperLedger Fabric Internals - Clavent
 
Basic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgersBasic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgers
 
DeFi - Decentralized Finance - Wallstreet Meets Blockchain
DeFi - Decentralized Finance - Wallstreet Meets BlockchainDeFi - Decentralized Finance - Wallstreet Meets Blockchain
DeFi - Decentralized Finance - Wallstreet Meets Blockchain
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
DeFi 101
DeFi 101DeFi 101
DeFi 101
 
Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
 
Ethereum 2.0
Ethereum 2.0Ethereum 2.0
Ethereum 2.0
 
Blockchain
BlockchainBlockchain
Blockchain
 
Exploring Blockchain Technology, Risks, and Emerging Trends
Exploring Blockchain Technology, Risks, and Emerging TrendsExploring Blockchain Technology, Risks, and Emerging Trends
Exploring Blockchain Technology, Risks, and Emerging Trends
 

Similar to Triple Entry Accounting: A BlockChain Use Case for Banks With R3 Corda

Similar to Triple Entry Accounting: A BlockChain Use Case for Banks With R3 Corda (20)

How to raise $100M for your healthcare startup via ICO: Breaking the myths of...
How to raise $100M for your healthcare startup via ICO: Breaking the myths of...How to raise $100M for your healthcare startup via ICO: Breaking the myths of...
How to raise $100M for your healthcare startup via ICO: Breaking the myths of...
 
Intro To Blockchain For YU Fintech Hackathon 2019
Intro To Blockchain For YU Fintech Hackathon 2019Intro To Blockchain For YU Fintech Hackathon 2019
Intro To Blockchain For YU Fintech Hackathon 2019
 
emtech blockchain.pptx
emtech blockchain.pptxemtech blockchain.pptx
emtech blockchain.pptx
 
An introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ruAn introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ru
 
Blockchain and BPM - Reflections on Four Years of Research and Applications
Blockchain and BPM - Reflections on Four Years of Research and ApplicationsBlockchain and BPM - Reflections on Four Years of Research and Applications
Blockchain and BPM - Reflections on Four Years of Research and Applications
 
Centigo presents Blockchain Explored (public version)
Centigo presents Blockchain Explored (public version)Centigo presents Blockchain Explored (public version)
Centigo presents Blockchain Explored (public version)
 
Blockchain & Islamic Finance
Blockchain & Islamic FinanceBlockchain & Islamic Finance
Blockchain & Islamic Finance
 
Unbundling Of Financial Services: The Blockchain(s) Revolution
Unbundling Of Financial Services: The Blockchain(s) RevolutionUnbundling Of Financial Services: The Blockchain(s) Revolution
Unbundling Of Financial Services: The Blockchain(s) Revolution
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
 
An Introduction to Blockchain for Finance Professionals
An Introduction to Blockchain for Finance ProfessionalsAn Introduction to Blockchain for Finance Professionals
An Introduction to Blockchain for Finance Professionals
 
Public ripple (payment protocol) for blockchain - Anil Nayak
Public ripple (payment protocol) for blockchain - Anil NayakPublic ripple (payment protocol) for blockchain - Anil Nayak
Public ripple (payment protocol) for blockchain - Anil Nayak
 
20180714 workshop - Ethereum decentralized application with truffle framework
20180714 workshop - Ethereum decentralized application with truffle framework20180714 workshop - Ethereum decentralized application with truffle framework
20180714 workshop - Ethereum decentralized application with truffle framework
 
Getting Started with Blockchain Development: The Complete Guide
Getting Started with Blockchain Development: The Complete GuideGetting Started with Blockchain Development: The Complete Guide
Getting Started with Blockchain Development: The Complete Guide
 
Blockchain v 2 (1)
Blockchain v 2 (1)Blockchain v 2 (1)
Blockchain v 2 (1)
 
Aurigraph Distributed Ledger Technology
Aurigraph Distributed Ledger TechnologyAurigraph Distributed Ledger Technology
Aurigraph Distributed Ledger Technology
 
Blockchain explained-v2.09
Blockchain explained-v2.09Blockchain explained-v2.09
Blockchain explained-v2.09
 
Making Blockchain Real for Business Explained - ibm
Making Blockchain Real for Business Explained - ibmMaking Blockchain Real for Business Explained - ibm
Making Blockchain Real for Business Explained - ibm
 
Introduction To Hyperledger Composer
Introduction To Hyperledger ComposerIntroduction To Hyperledger Composer
Introduction To Hyperledger Composer
 
Understanding blockchains
Understanding blockchainsUnderstanding blockchains
Understanding blockchains
 
How Blockchain & Cryptocurrencies Redefining Financial Instruments in Finance
How Blockchain & Cryptocurrencies Redefining Financial Instruments in Finance How Blockchain & Cryptocurrencies Redefining Financial Instruments in Finance
How Blockchain & Cryptocurrencies Redefining Financial Instruments in Finance
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 

Triple Entry Accounting: A BlockChain Use Case for Banks With R3 Corda

  • 1. Triple Entry Accounting A BlockChain Use Case for Banks With R3 Corda Debajani Mohanty Senior Technical Architect NIIT Technologies Ltd
  • 2. Who Am I? • Foodie, Traveler, Writer • Sleep-deprived mom of 2 little gals • Author of “BlockChain One-Stop Guide: From Concept to Execution” on Amazon • Senior Architect with NIIT Technologies Ltd
  • 3. Single Entry Accounting • Single entry accounting is there since the beginning of civilization. • Someone buys and someone sells and one keeps own accounting details. • Any mistake in accounts, nobody would blame.
  • 4. Double Entry Accounting • Double-entry accounting introduced some 600 years back today is the worldwide standard for business accounting. • A and B are doing some transaction with each other and both are keeping a transaction of the exchange i.e. every transaction records in at least two accounts—in one as a debit and in the other as a credit. • Debits increase expense and asset accounts but decrease income and liability accounts. Conversely, credits increase income and liability accounts and decrease expense and asset accounts. • So the transaction at each level should look equal and opposite total assets remaining the same.
  • 5. Issues with Double Entry Accounting • Time consuming, manual and error prone. • Fraud: People may manipulate over here to get opportunity as no third party is involved. • Auditing difficulty: Double entry accounting records are difficult to audit and costly.
  • 6. Triple Entry Accounting Triple entry accounting was a process introduced by financial cryptography expert Ian Grigg in Dec 2005 http://iang.org/papers/triple_entry.html Transactions go through a contract in real-time maintained by a 3rd party agent or entry which both parties connect to and agree.
  • 7. Why to Use BlockChain For Accounting? • Cryptographically secure • Transactions can only be added, not altered. Hence no manipulation possible. • Fraud proof. Forces honesty. • Data is shared. No data duplication. • Transaction itself is receipt • IOT & report integration
  • 8. Solution Frameworks Bitcoin and Ethereum were not architected to meet business needs of Finance domain. The Enterprise Blockchain frameworks that have the potential to address these issues (but not limited to) are – Hyperledger – Eris – Ripple – MultiChain – R3 Corda
  • 9. Why R3 Corda? • By Architecture it is a triple entry system. • R3 Corda’s BlockChain inspired DLT product is crafted for Finance industry and automate payment processes. • R3 was first adopted by Barcley bank and now supported by 100+ world leader banks and financial agencies so far. • R3 Corda is open source and soon to be integrated to Hyperledger umbrella. • Ian Grigg, the inventor of triple entry accounting is now part of R3 CEV
  • 10. Corda Architecture • Alice issues the instrument, she signs it. • Bob receives the instrument, agrees with it and he signs it. • Bob passes the record to the Notary, who signs and then stores the instrument. • Bob, Alice can now query the Notary to ascertain whether the transaction happened. Bob and Alice can also keep a copy of the notarised instrument themselves. • Alice and Bob now always have the same data • As the Notary is a SRL or Shared Ledger, it’s practically impossible to delete or update the instrument without counter-party approval.
  • 12. Corda Is.. • Easier to install, easier to use • Uses existing technologies: Java/Kotlin JVM languages, H2 SQL database, message queue • Has excellent documentation & easier to climb the learning curve • It guarantees privacy and scalability • It’s open source
  • 13. Network • A Corda network is made up of nodes running Corda and CorDapps • The network is permissioned, with access controlled by a doorman • Communication between nodes is point-to- point, instead of relying on global broadcasts
  • 14. Ledger with No Central Data • The ledger is subjective from each peer’s perspective • Two peers are always guaranteed to see the exact same version of any on-ledger facts they share
  • 15. States • States represent on-ledger facts • Each node has a vault where it stores any relevant states to itself. Data is stored through ORM mapping to a H2 Java SQL database which is super-fast and open-source • It tracks all the current and historic states that it is aware of, and which it considers to be relevant to itself
  • 16. Contracts • A valid transaction must be accepted by the contract of each of its input and output states • Contracts are written in a JVM programming language (e.g. Java or Kotlin) • Contract execution is deterministic and its acceptance of a transaction is based on the transaction’s contents alone
  • 17. Contract Validity • Each state points to a contract • A contract takes a transaction as input, and states whether the transaction is considered valid based on the contract’s rules • A transaction is only valid if the contract of every input state and every output state considers it to be valid
  • 18. Transactions • Transactions are proposals to update the ledger • A transaction proposal will only be committed if: – It doesn’t contain double-spends – It is contractually valid – It is signed by the required parties
  • 19. Notaries • Notaries prevent “double-spends” • Notaries may optionally also validate transactions • A network can have several notaries, each running a different consensus algorithm
  • 20. Time Windows • If a transaction includes a time-window, it can only be committed during that window • The notary is the time stamping authority, refusing to commit transactions outside of that window • Time-windows can have a start and end time, or be open at either end
  • 21. DEMO • Obligations - IOU CorDapp implemented in Java. Handles the transfer and settlement of obligations • Retains participant anonymity using confidential identities (i.e. anonymous public keys) Let’s run Corda on 4 nodes i.e. One Controller (hosts the network map service and a validating notary service) & Party A (http://localhost:10007/web/example/) Party B (http://localhost:10010/web/example/) Party C (http://localhost:10013/web/example/)