bazo-vm

module
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2019 License: MIT

README

Bazo Virtual Machine for Smart Contract

Build Status Go Report Card GoDoc

Bazo VM is a stack-based virtual machine to execute smart contract programs on the Bazo blockchain.

Smart contracts can be written in Lazo (a high-level smart contract language) and then compiled to Bazo bytecode (an intermediate language). Bazo-miner executes the bytecode on Bazo VM and persist changes on the blockchain.

Background

The Bazo Blockchain is a blockchain to test diverse mechanisms and algorithms. In the current version mechanisms to run it on mobile devices and Proof of Stake are integrated. It was only possible to transfer Bazo coins before this thesis. The idea of this work was to enhance the Bazo Blockchain with smart contracts.

Documents

Development

Run ./scripts/set-hooks.sh to setup git hooks.

Dependency Management

Packages are managed by Go Modules.

Set the environment variable GO111MODULE=on and run go mod vendor to install all the dependencies into the local vendor directory.

Run Virtual Machine from Source

TODO

Run Unit Tests
go test ./... 

It will run all tests in the current directory and all of its subdirectories.

To see the test coverage, run ./scripts/test.sh and then open the coverage.html file.

Run Lints
./scripts/lint.sh

It will run golint on all packages except the vendor directory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL