SlideShare uma empresa Scribd logo
1 de 8
A New Smart Contract Design Pattern:
ETHEREUM + IPFS + JVM = Offline SCs
CONCEPT ONLY
Mano Thanabalan
Head of Development
Otonomos BCC Singapore
2
Agenda
I. Introduction
II. Why a new Design Pattern?
III. The Design Pattern
IV. Key Design Considerations
V. The Build
VI. The Challenges
VII. Q&A
3
I. Introduction
Who am I?
● Head of Development at Otonomos BCC based in Singapore
● Full Stack Developer specializing in Blockchain and Smart Contract Applications
What is Otonomos?
● Otonomos is in the business of converting the specific section of Corporate Law
pertaining to company incorporations into self-enforcing Smart Contracts.
● We have designed and deployed our own Identity/KYC Protocol including Key
Recovery best practices.
● We have also designed a suite of Smart Contracts specifically tackling Corporate
Governance, Asset Management and optimization of real world management practices
by way of Smart Contractification
4
II. Why a new Design Pattern?
● To explore the possibilities of ‘Offline’ Smart Contracts
● To create a Language Agnostic Smart Contract Protocol
● To address Ethereum Smart Contract design challenges
➔ Size and Scale Limitations of Smart Contracts, i.e. gaslimit
➔ Limited feature set of Solidity vs more mature high-level languages
➔ Virtual Machine – EVM versus JVM
● To explore the mechanics of ‘offline’ Smart Contracts and its application in
new use cases and applications
➔ EtherOpt - Offline Crypto Options Order Book
➔ Otonomos - Offline Company Smart Contracts
➔ Blockchain Powered AI
5
III. The Design Pattern
Step 1: Deploy Offline SC Protocol
a. Stakeholders and Voting Mechanism
b. Logic for adding and removing stakeholders.
Step 2: Submit new ‘offline’ Txns
a. New ‘offline’ Smart Contract
b. State Change Txn on existing instance of ‘offline’
Smart Contract
Step 3: Verification Nodes
a. Listen for new Txns
b. Run State Change Function on JVM
c. Local verification of resultant state against state file.
d. If local verification passes, node will invoke verify
function on Offline SC Protocol
Step 4: Set Txn to Final
a. Once consensus is reached (Actual Votes > Required
Votes), Txn is set to final state.
b. No new txns are allowed until pending txn for a given
instance of a contract is set to final.
6
IV. Key Design Considerations
● When a new ‘Offline’ Smart Contract Instance its class file should be
immutable and all future ‘valid’ txns should reference it.
● A new txn should not be allowed if there is an existing pending txn for a given
Smart Contract Instance.
● A pending txn should NOT forever block new txns.
7
V. The Build
● The ‘Offline’ Smart Contract Protocol
● Github
● The Verification Node Application
● Design a ‘main’ application to run the Java Class
● Design a Standard Smart Contract Interface
● Design Authentication and Verification Logic
● Design Spam and Malicious code control logic
● The ‘Offline’ Smart Contract Design Guidelines
● Set of best practices to ensure deployable Smart Contracts.
8
VI. The Challenges
● Ensuring an incorruptible verification model
➔ Nodes must not be able to ‘falsely’ verify a bad transaction
● Preventing malicious ‘offline’ smart contracts
➔ For a start ‘Offline’ Smart Contracts will run within a predefined ‘main’
application that would restrict the scope of the Offline Smart Contract
‱ Scalability of the Protocol
➔ Whilst the ‘Offline’ Smart Contract could theoretically be large, what
happens when a high volume of large state change txns are submitted.

Mais conteĂșdo relacionado

Mais de WithTheBest

Wizdish rovr
Wizdish rovrWizdish rovr
Wizdish rovrWithTheBest
 
Haptics & amp; null space vr
Haptics & amp; null space vrHaptics & amp; null space vr
Haptics & amp; null space vrWithTheBest
 
How we use vr to break the laws of physics
How we use vr to break the laws of physicsHow we use vr to break the laws of physics
How we use vr to break the laws of physicsWithTheBest
 
The Virtual Self
The Virtual Self The Virtual Self
The Virtual Self WithTheBest
 
You dont have to be mad to do VR and AR ... but it helps
You dont have to be mad to do VR and AR ... but it helpsYou dont have to be mad to do VR and AR ... but it helps
You dont have to be mad to do VR and AR ... but it helpsWithTheBest
 
Omnivirt overview
Omnivirt overviewOmnivirt overview
Omnivirt overviewWithTheBest
 
VR Interactions - Jason Jerald
VR Interactions - Jason JeraldVR Interactions - Jason Jerald
VR Interactions - Jason JeraldWithTheBest
 
Japheth Funding your startup - dating the devil
Japheth  Funding your startup - dating the devilJapheth  Funding your startup - dating the devil
Japheth Funding your startup - dating the devilWithTheBest
 
Transported vr the virtual reality platform for real estate
Transported vr the virtual reality platform for real estateTransported vr the virtual reality platform for real estate
Transported vr the virtual reality platform for real estateWithTheBest
 
Measuring Behavior in VR - Rob Merki Cognitive VR
Measuring Behavior in VR - Rob Merki Cognitive VRMeasuring Behavior in VR - Rob Merki Cognitive VR
Measuring Behavior in VR - Rob Merki Cognitive VRWithTheBest
 
Global demand for Mixed Realty (VR/AR) content is about to explode.
Global demand for Mixed Realty (VR/AR) content is about to explode. Global demand for Mixed Realty (VR/AR) content is about to explode.
Global demand for Mixed Realty (VR/AR) content is about to explode. WithTheBest
 
VR, a new technology over 40,000 years old
VR, a new technology over 40,000 years oldVR, a new technology over 40,000 years old
VR, a new technology over 40,000 years oldWithTheBest
 
Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...
Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...
Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...WithTheBest
 
From Coffee to Cloud
From Coffee to CloudFrom Coffee to Cloud
From Coffee to CloudWithTheBest
 
HP Wearables and IoT - Our Story - Christine Hawkins
HP Wearables and IoT - Our Story - Christine HawkinsHP Wearables and IoT - Our Story - Christine Hawkins
HP Wearables and IoT - Our Story - Christine HawkinsWithTheBest
 
IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...
IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...
IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...WithTheBest
 
Deploying IoT to Support Low-Income Seniors at Home - Sombit Mishra
Deploying IoT to Support Low-Income Seniors at Home - Sombit MishraDeploying IoT to Support Low-Income Seniors at Home - Sombit Mishra
Deploying IoT to Support Low-Income Seniors at Home - Sombit MishraWithTheBest
 
Writing Node.js Bindings - General Principles - Gabriel Schulhof
Writing Node.js Bindings - General Principles - Gabriel SchulhofWriting Node.js Bindings - General Principles - Gabriel Schulhof
Writing Node.js Bindings - General Principles - Gabriel SchulhofWithTheBest
 
Ambient Intelligence - Parham Beheshti
Ambient Intelligence - Parham BeheshtiAmbient Intelligence - Parham Beheshti
Ambient Intelligence - Parham BeheshtiWithTheBest
 
Moving Beyond Technology-That-Works to Products-That-Matter
Moving Beyond Technology-That-Works to Products-That-MatterMoving Beyond Technology-That-Works to Products-That-Matter
Moving Beyond Technology-That-Works to Products-That-MatterWithTheBest
 

Mais de WithTheBest (20)

Wizdish rovr
Wizdish rovrWizdish rovr
Wizdish rovr
 
Haptics & amp; null space vr
Haptics & amp; null space vrHaptics & amp; null space vr
Haptics & amp; null space vr
 
How we use vr to break the laws of physics
How we use vr to break the laws of physicsHow we use vr to break the laws of physics
How we use vr to break the laws of physics
 
The Virtual Self
The Virtual Self The Virtual Self
The Virtual Self
 
You dont have to be mad to do VR and AR ... but it helps
You dont have to be mad to do VR and AR ... but it helpsYou dont have to be mad to do VR and AR ... but it helps
You dont have to be mad to do VR and AR ... but it helps
 
Omnivirt overview
Omnivirt overviewOmnivirt overview
Omnivirt overview
 
VR Interactions - Jason Jerald
VR Interactions - Jason JeraldVR Interactions - Jason Jerald
VR Interactions - Jason Jerald
 
Japheth Funding your startup - dating the devil
Japheth  Funding your startup - dating the devilJapheth  Funding your startup - dating the devil
Japheth Funding your startup - dating the devil
 
Transported vr the virtual reality platform for real estate
Transported vr the virtual reality platform for real estateTransported vr the virtual reality platform for real estate
Transported vr the virtual reality platform for real estate
 
Measuring Behavior in VR - Rob Merki Cognitive VR
Measuring Behavior in VR - Rob Merki Cognitive VRMeasuring Behavior in VR - Rob Merki Cognitive VR
Measuring Behavior in VR - Rob Merki Cognitive VR
 
Global demand for Mixed Realty (VR/AR) content is about to explode.
Global demand for Mixed Realty (VR/AR) content is about to explode. Global demand for Mixed Realty (VR/AR) content is about to explode.
Global demand for Mixed Realty (VR/AR) content is about to explode.
 
VR, a new technology over 40,000 years old
VR, a new technology over 40,000 years oldVR, a new technology over 40,000 years old
VR, a new technology over 40,000 years old
 
Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...
Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...
Getting Started with Intelligent IoT Messaging - Ken Herron, Emy Carlan, and ...
 
From Coffee to Cloud
From Coffee to CloudFrom Coffee to Cloud
From Coffee to Cloud
 
HP Wearables and IoT - Our Story - Christine Hawkins
HP Wearables and IoT - Our Story - Christine HawkinsHP Wearables and IoT - Our Story - Christine Hawkins
HP Wearables and IoT - Our Story - Christine Hawkins
 
IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...
IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...
IoT: From Arduino MicroControllers to Tizen Products Using IoTivity - Philipp...
 
Deploying IoT to Support Low-Income Seniors at Home - Sombit Mishra
Deploying IoT to Support Low-Income Seniors at Home - Sombit MishraDeploying IoT to Support Low-Income Seniors at Home - Sombit Mishra
Deploying IoT to Support Low-Income Seniors at Home - Sombit Mishra
 
Writing Node.js Bindings - General Principles - Gabriel Schulhof
Writing Node.js Bindings - General Principles - Gabriel SchulhofWriting Node.js Bindings - General Principles - Gabriel Schulhof
Writing Node.js Bindings - General Principles - Gabriel Schulhof
 
Ambient Intelligence - Parham Beheshti
Ambient Intelligence - Parham BeheshtiAmbient Intelligence - Parham Beheshti
Ambient Intelligence - Parham Beheshti
 
Moving Beyond Technology-That-Works to Products-That-Matter
Moving Beyond Technology-That-Works to Products-That-MatterMoving Beyond Technology-That-Works to Products-That-Matter
Moving Beyond Technology-That-Works to Products-That-Matter
 

Último

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vĂĄzquez
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 

Último (20)

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

A New Smart contract Design Pattern : Concept Proposal for an Ethereum, IPFS and JVM powered dApp - Mano Thanabalan, Otonomos

  • 1. A New Smart Contract Design Pattern: ETHEREUM + IPFS + JVM = Offline SCs CONCEPT ONLY Mano Thanabalan Head of Development Otonomos BCC Singapore
  • 2. 2 Agenda I. Introduction II. Why a new Design Pattern? III. The Design Pattern IV. Key Design Considerations V. The Build VI. The Challenges VII. Q&A
  • 3. 3 I. Introduction Who am I? ● Head of Development at Otonomos BCC based in Singapore ● Full Stack Developer specializing in Blockchain and Smart Contract Applications What is Otonomos? ● Otonomos is in the business of converting the specific section of Corporate Law pertaining to company incorporations into self-enforcing Smart Contracts. ● We have designed and deployed our own Identity/KYC Protocol including Key Recovery best practices. ● We have also designed a suite of Smart Contracts specifically tackling Corporate Governance, Asset Management and optimization of real world management practices by way of Smart Contractification
  • 4. 4 II. Why a new Design Pattern? ● To explore the possibilities of ‘Offline’ Smart Contracts ● To create a Language Agnostic Smart Contract Protocol ● To address Ethereum Smart Contract design challenges ➔ Size and Scale Limitations of Smart Contracts, i.e. gaslimit ➔ Limited feature set of Solidity vs more mature high-level languages ➔ Virtual Machine – EVM versus JVM ● To explore the mechanics of ‘offline’ Smart Contracts and its application in new use cases and applications ➔ EtherOpt - Offline Crypto Options Order Book ➔ Otonomos - Offline Company Smart Contracts ➔ Blockchain Powered AI
  • 5. 5 III. The Design Pattern Step 1: Deploy Offline SC Protocol a. Stakeholders and Voting Mechanism b. Logic for adding and removing stakeholders. Step 2: Submit new ‘offline’ Txns a. New ‘offline’ Smart Contract b. State Change Txn on existing instance of ‘offline’ Smart Contract Step 3: Verification Nodes a. Listen for new Txns b. Run State Change Function on JVM c. Local verification of resultant state against state file. d. If local verification passes, node will invoke verify function on Offline SC Protocol Step 4: Set Txn to Final a. Once consensus is reached (Actual Votes > Required Votes), Txn is set to final state. b. No new txns are allowed until pending txn for a given instance of a contract is set to final.
  • 6. 6 IV. Key Design Considerations ● When a new ‘Offline’ Smart Contract Instance its class file should be immutable and all future ‘valid’ txns should reference it. ● A new txn should not be allowed if there is an existing pending txn for a given Smart Contract Instance. ● A pending txn should NOT forever block new txns.
  • 7. 7 V. The Build ● The ‘Offline’ Smart Contract Protocol ● Github ● The Verification Node Application ● Design a ‘main’ application to run the Java Class ● Design a Standard Smart Contract Interface ● Design Authentication and Verification Logic ● Design Spam and Malicious code control logic ● The ‘Offline’ Smart Contract Design Guidelines ● Set of best practices to ensure deployable Smart Contracts.
  • 8. 8 VI. The Challenges ● Ensuring an incorruptible verification model ➔ Nodes must not be able to ‘falsely’ verify a bad transaction ● Preventing malicious ‘offline’ smart contracts ➔ For a start ‘Offline’ Smart Contracts will run within a predefined ‘main’ application that would restrict the scope of the Offline Smart Contract ‱ Scalability of the Protocol ➔ Whilst the ‘Offline’ Smart Contract could theoretically be large, what happens when a high volume of large state change txns are submitted.