blockchain-based traceability in agri-food supply chain...
TRANSCRIPT
![Page 1: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/1.jpg)
Blockchain-based Traceability in Agri-Food Supply
Chain Management: A practical Implementation
Miguel Pincheira Caro , Muhammand Salek Ali, Massimo Vecchio and Raffaele Giaffreda
![Page 2: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/2.jpg)
Agenda
• What is a Blockchain? • How does it work? • Benefits of Blockchains to the Internet of Things • Use case: from-farm-to-fork • The proposed architecture • Implementations • Performance analysis • Conclusions
2
![Page 3: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/3.jpg)
What is a Blockchain?
3
![Page 4: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/4.jpg)
What is a Blockchain?
• the technology behind the Bitcoin cryptocurrency.
3
![Page 5: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/5.jpg)
What is a Blockchain?
• the technology behind the Bitcoin cryptocurrency.• immutable, time-stamped “chain of blocks”.
3
![Page 6: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/6.jpg)
What is a Blockchain?
• the technology behind the Bitcoin cryptocurrency.• immutable, time-stamped “chain of blocks”.• smart contracts provide scripting capabilities.
3
![Page 7: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/7.jpg)
What is a Blockchain?
• the technology behind the Bitcoin cryptocurrency.• immutable, time-stamped “chain of blocks”.• smart contracts provide scripting capabilities.• several implementations and variations are available.
3
![Page 8: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/8.jpg)
What is a Blockchain?
• the technology behind the Bitcoin cryptocurrency.• immutable, time-stamped “chain of blocks”.• smart contracts provide scripting capabilities.• several implementations and variations are available.
3
![Page 9: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/9.jpg)
What is a Blockchain?
• the technology behind the Bitcoin cryptocurrency.• immutable, time-stamped “chain of blocks”.• smart contracts provide scripting capabilities.• several implementations and variations are available.
3
Is a peer to peer network, maintaining a distributed record of cryptographically signed transactions.
![Page 10: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/10.jpg)
How does it work?
4
![Page 11: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/11.jpg)
How does it work?
• A user signs a transaction and sends it to the network.
4
![Page 12: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/12.jpg)
How does it work?
• A user signs a transaction and sends it to the network.• The nodes perform basic validations (signatures, timestamp, etc.)
4
![Page 13: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/13.jpg)
How does it work?
• A user signs a transaction and sends it to the network.• The nodes perform basic validations (signatures, timestamp, etc.)• Smart contracts perform programmed logic (validations, calculations)
4
![Page 14: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/14.jpg)
How does it work?
• A user signs a transaction and sends it to the network.• The nodes perform basic validations (signatures, timestamp, etc.)• Smart contracts perform programmed logic (validations, calculations)• A miner work to create a valid block for new transactions (consensus algorithm)
4
![Page 15: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/15.jpg)
How does it work?
• A user signs a transaction and sends it to the network.• The nodes perform basic validations (signatures, timestamp, etc.)• Smart contracts perform programmed logic (validations, calculations)• A miner work to create a valid block for new transactions (consensus algorithm)• The new block is appended to the blockchain
4
![Page 16: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/16.jpg)
What is a Blockchain?
Blockchain technology is NOT
only for Fintech!!!
![Page 17: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/17.jpg)
Benefits of Blockchains to the Internet of Things
?
6
![Page 18: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/18.jpg)
Benefits of Blockchains to the Internet of Things
• Decentralization. • Peer to Peer Network.
• Transparency. • Immutable distributed records.
• Authenticity. • Cryptographically signed transactions.
• Autonomous transactions • Smart contracts
?
6
![Page 19: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/19.jpg)
Use Case: “from-farm-to-fork”
![Page 20: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/20.jpg)
Use Case: “from-farm-to-fork”
• Actors benefit from a decentralized and trusted information repository.
![Page 21: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/21.jpg)
Use Case: “from-farm-to-fork”
• Actors benefit from a decentralized and trusted information repository.• IoT devices take advantage of a decentralized infrastructure and provide
cryptographically signed representation of physical assets.
![Page 22: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/22.jpg)
Use Case: “from-farm-to-fork”
• Actors benefit from a decentralized and trusted information repository.• IoT devices take advantage of a decentralized infrastructure and provide
cryptographically signed representation of physical assets. • Smart contracts enable autonomous transactions (eg. certifications for
organic products, alarms in case of cold chain anomalies, etc.)
![Page 23: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/23.jpg)
Use Case: “from-farm-to-fork”
• Actors benefit from a decentralized and trusted information repository.• IoT devices take advantage of a decentralized infrastructure and provide
cryptographically signed representation of physical assets. • Smart contracts enable autonomous transactions (eg. certifications for
organic products, alarms in case of cold chain anomalies, etc.)• Consumers benefit from an immutable, transparent history of the product.
![Page 24: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/24.jpg)
AgriBlockIoT - 3 Layer Architecture
![Page 25: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/25.jpg)
AgriBlockIoT - 3 Layer Architecture
API: Provides a high level interface for devices and users
![Page 26: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/26.jpg)
AgriBlockIoT - 3 Layer Architecture
API: Provides a high level interface for devices and users
Blockchain: smart contracts implementing the business logic for autonomous events
![Page 27: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/27.jpg)
AgriBlockIoT - 3 Layer Architecture
API: Provides a high level interface for devices and users
Blockchain: smart contracts implementing the business logic for autonomous events
Controller: Transform all the high level calls to blockchain transactions
![Page 28: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/28.jpg)
AgriBlockIoT - 3 Layer Architecture
API: Provides a high level interface for devices and users
Blockchain: smart contracts implementing the business logic for autonomous events
Controller: Transform all the high level calls to blockchain transactions
Edge devices may be also nodes on the peer to peer network and not just clients
![Page 29: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/29.jpg)
Implementations
• “Traditional” blockchain
• Focused on improving Bitcoin’s smart contract capabilities
• Available since 2013
• Maintained by Ethereum Foundation
• The transaction is a fixed structure
• Storage on LevelDB
9
![Page 30: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/30.jpg)
Implementations
• “Modular” Blockchain
• Focused on “Enterprise Level” blockchain.
• Version 1.0 avail. 01/2018
• Maintained by Linux Foundation, created by Intel
• Transactions can be forged by users
• Storage using LMDB
• “Traditional” blockchain
• Focused on improving Bitcoin’s smart contract capabilities
• Available since 2013
• Maintained by Ethereum Foundation
• The transaction is a fixed structure
• Storage on LevelDB
9
![Page 31: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/31.jpg)
Performance analysis: metrics
10
A digital sensor updates its state
on the blockchain
through a smart-contract
![Page 32: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/32.jpg)
Performance analysis: metrics
•Tested 100 times for each implementation (ETH and HL)
•Measured metrics:
• Latency (Time to update the value on the network)
• Network Traffic (transmitted and received)
• CPU Load/Usage
10
A digital sensor updates its state
on the blockchain
through a smart-contract
![Page 33: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/33.jpg)
Preliminary results: comparison
![Page 34: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/34.jpg)
Preliminary results: comparison
• More mature platform
• Blocks are made even without transactions
• Better consistency
• Focused on a public, permisionless blockchain
• Existing public network with cryptocurrency
![Page 35: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/35.jpg)
Preliminary results: comparison
• More mature platform
• Blocks are made even without transactions
• Better consistency
• Focused on a public, permisionless blockchain
• Existing public network with cryptocurrency
• More modular platform • Blocks are made only when
transactions arrive • Faster response • Adaptable to any type of
blockchain (i.e. permissioned) • User most deploy network
with customs transactions
![Page 36: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/36.jpg)
Preliminary results: comparison
• More mature platform
• Blocks are made even without transactions
• Better consistency
• Focused on a public, permisionless blockchain
• Existing public network with cryptocurrency
• More modular platform • Blocks are made only when
transactions arrive • Faster response • Adaptable to any type of
blockchain (i.e. permissioned) • User most deploy network
with customs transactions
![Page 37: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/37.jpg)
Preliminary results: comparison
• More mature platform
• Blocks are made even without transactions
• Better consistency
• Focused on a public, permisionless blockchain
• Existing public network with cryptocurrency
• More modular platform • Blocks are made only when
transactions arrive • Faster response • Adaptable to any type of
blockchain (i.e. permissioned) • User most deploy network
with customs transactions
![Page 38: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/38.jpg)
Conclusions
12
![Page 39: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/39.jpg)
Conclusions
• Our architecture enables seamless integration of IoT devices into publicly available Blockchain implementations.
12
![Page 40: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/40.jpg)
Conclusions
• Our architecture enables seamless integration of IoT devices into publicly available Blockchain implementations.
• Devices can be full fledged users of the blockchain, while smart contracts provides autonomous transaction executions.
12
![Page 41: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/41.jpg)
Conclusions
• Our architecture enables seamless integration of IoT devices into publicly available Blockchain implementations.
• Devices can be full fledged users of the blockchain, while smart contracts provides autonomous transaction executions.
• Different Blockchain implementations provides different functional and non functional features.• Faster response time vs Better consistency • Existing cryptocurrency vs User defined transactions• Cost of use vs Cost of deployment
12
![Page 42: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/42.jpg)
Conclusions
• Our architecture enables seamless integration of IoT devices into publicly available Blockchain implementations.
• Devices can be full fledged users of the blockchain, while smart contracts provides autonomous transaction executions.
• Different Blockchain implementations provides different functional and non functional features.• Faster response time vs Better consistency • Existing cryptocurrency vs User defined transactions• Cost of use vs Cost of deployment
12
![Page 43: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/43.jpg)
Conclusions
• Our architecture enables seamless integration of IoT devices into publicly available Blockchain implementations.
• Devices can be full fledged users of the blockchain, while smart contracts provides autonomous transaction executions.
• Different Blockchain implementations provides different functional and non functional features.• Faster response time vs Better consistency • Existing cryptocurrency vs User defined transactions• Cost of use vs Cost of deployment
We plan to extend the performance analysis to more constrained hardware architectures and also to include other blockchain
implementations into our reference architecture
12
![Page 44: Blockchain-based Traceability in Agri-Food Supply Chain ...tuscany2018.iot.ieee.org/files/2018/05/IEEE-IoT... · Traceability in Agri-Food Supply ... • Our architecture enables](https://reader034.vdocuments.site/reader034/viewer/2022042309/5ed627c990931f4793161166/html5/thumbnails/44.jpg)
thank you.
Miguel Pincheira Caro [email protected]
PhD Candidate
OpenIoT Research Unit FBK CREATE-NET
University of Trento