Skip to content

wakqasahmed/dlt_implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DLT Implementation and Internals Step-by-Step

Pre-requisites

Node v12.16.3 or greater

Node >= 15.12.0 recommended

Setup

git clone https://github.com/wakqasahmed/dlt_implementation.git

cd dlt_implementation

Lesson 01 - Worst Blockchain Ever - Broadcasting

Time taken: about 2.5 hrs

Specifications

Open separate terminal for each of the given below:

  • node ./lesson_01/01.js 8001 or node ./lesson_01/02.js 8001
  • node ./lesson_01/01.js 8002 or node ./lesson_01/02.js 8002
  • node ./lesson_01/01.js 8003 or node ./lesson_01/02.js 8003

Lesson 02 - Worst Blockchain Ever - State Management

Time taken: about 24 hrs

Specifications

Open separate terminal for each of the given below:

  • node -r esm index.mjs 8001 wa
  • node -r esm index.mjs 8002 ok
  • node -r esm index.mjs 8003 je

Commands

  • balance - To check the node balance
  • ledger - To check the list of all transactions executed so far
  • send <userIntitials> e.g. send wa - To send 1 WBE token to another user

Lesson 03 - Worst Blockchain Ever - Execution Engine

Time taken: about 2.5 hrs

Specifications

Open separate terminal for each of the given below:

  • node -r esm index.mjs 8001 wa
  • node -r esm index.mjs 8002 ok
  • node -r esm index.mjs 8003 je

Commands

  • balance - To check the node balance
  • ledger - To check the list of all transactions executed so far
  • send <userIntitials> e.g. send wa - To send 1 WBE token to another user
  • pending - To check the list of all pending transactions, waiting for recipient to approve
  • approve <txnNumber> e.g. approve 20 To approve transaction requiring recipient approval

About

DLT Implementation and Internals Step-by-Step

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published