Integrating Smart Contracts into the Bazo Blockchain

Meier, Ennio and Steiner, Marco (2018) Integrating Smart Contracts into the Bazo Blockchain. Bachelor thesis, HSR Hochschule für Technik Rapperswil.

[thumbnail of FS 2018-BA-EP-Steiner-Meier-Integrating Smart Contracts into the Bazo Blockchain.pdf]
Preview
Text
FS 2018-BA-EP-Steiner-Meier-Integrating Smart Contracts into the Bazo Blockchain.pdf - Supplemental Material

Download (2MB) | Preview

Abstract

This thesis focuses on the integration of smart contracts into the Bazo Blockchain with the goal of creating a platform for decentralized applications. Smart contracts are programs that are stored on a blockchain and can be triggered by transactions. Smart contracts offer opportunities in automation and bring along advantages provided by blockchains such as immutability, public visibility of transactions and decentralization. As blockchains are trust-less protocols, it is guar- anteed that smart contracts are executed as intended. The integration of smart contracts was solved by implementing a virtual machine that executes the instructions sent by a transaction. This stack based virtual machine uses byte arrays as base type, which enables the virtual machine to deal with numbers of arbitrary length. Working with elements of arbitrary size requires taking the length of the elements into account, when calculating the gas cost, in addition to the base cost of the instruction type. Furthermore, the virtual machine was embedded within the mining application, which required to alter the blockchain protocol and the mining application. As a result, smart contracts can be deployed and transactions that call functions of smart contracts can be executed. Calling a smart contract function leads to the execution of the contract in the virtual machine and persisting the result in the blockchain. The Bazo Blockchain contin- ues to be a research project, this means it’s not ready for production use due to complex setup and handling. Follow-up theses could simplify the development of smart contracts for the Bazo Blockchain by creating a high-level programming language that can be compiled to Bazo virtual machine instructions.

Item Type: Thesis (Bachelor)
Subjects: Topics > Internet Technologies and Applications > Distributed Computing
Technologies > Virtualization
Technologies > Network
Divisions: Bachelor of Science FHO in Informatik > Bachelor Thesis
Depositing User: OST Deposit User
Contributors:
Contribution
Name
Email
Thesis advisor
Bocek, Thomas
UNSPECIFIED
Date Deposited: 31 Jan 2019 11:47
Last Modified: 31 Jan 2019 11:47
URI: https://eprints.ost.ch/id/eprint/682

Actions (login required)

View Item
View Item