Skip to content

rileym11/Typescript-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Blockchain

This project was a way for me to understand how blockchains work. It originally started in Javascript but I have recently converted it to Typescript for a better understanding.

Step 1: Clone the repository

$ git clone https://github.com/rileym11/Typescript-Blockchain

Step 2 (optional): Set the config in config.ts

export const difficulty = 5; // how hard each block is to create (higher number = harder)
export const miningReward = 10; // how many coins are users rewarded with for successful block creation

Step 3 (optional): Write your own tests in tests.ts

Step 4: Run the Blockchain!

$ yarn && yarn start

About

Testing blockchain technology in Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published