GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rgreschner/my-blockchain: 💰 Sample blockchain using the LotionJS Framework & Tendermint consensus

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
doc/img
doc/img
 
 
packages
packages
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
lerna.json
lerna.json
 
 
package.json
package.json
 
 

Repository files navigation

My Blockchain - Sample blockchain using LotionJS

This is an example of writing a simple Tendermint consensus powered blockchain using the LotionJS Framework in TypeScript/ES5.

Done as part of an assignment for School of AI's Decentralized Apps Course by @llSourcell / Siraj Raval.

Getting Started

Instructions for getting started with this repository's two subprojects, test client & actual blockchain, are detailed here.

Prerequisites

To build and run these project the following prerequisites must be met:

  • Node.js in at least v8.10.0
  • Operating System capable of running all imported NPM modules, only tested on Ubuntu Linux so far
  • TypeScript compiler in v3.1.6 (npm i -g [email protected])

Build Instructions

The build instructions for both projects are the same.

After navigating to the corresponding project directory in packages, install NPM dependencies and execute npm run build on the command-line in this directory to build the subproject. The compiled JavaScript files are contained in the subfolder ./dist.

E.g. to build the blockchain sample use

> cd packages/my-blockchain
> npm i
> npm run build
> ls ./dist

Sample Blockchain

The project for the actual sample blockchain resides in packages/my-blockchain.

After building it as detailed above, execute npm start in the blockchain project directory to start the blockchain process. This will output some startup information like used ports and most importantly the GCI (Global Chain Identifier) which you will need for testing the blockchain.

Test Client

The project for a test client implementation using the sample blockchain resides in packages/test-client.

After building it as detailed above, execute npm start <GCI> in the blockchain project directory to start the blockchain process. The GCI must be the Global Chain Identifier printed by the my-blockchain proces on startup.

Once started the test client will perform a simple blockchain transaction every 5 seconds which will increment a nonce counter and update a block timestamp.

License

This project is licensed under the terms of the MIT license, see LICENSE to check out the full license.

About

💰 Sample blockchain using the LotionJS Framework & Tendermint consensus

Topics

blockchainlotionlotionjstendermint-consensustypescript

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.