Skip to content

A simplified, private blockchain created to help understand the data model behind blockchain.

Notifications You must be signed in to change notification settings

brenj/private-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Your Own Private Blockchain

About

From Udacity:

Create your own private blockchain as you learn to architect a blockchain data model. The focus will be on the development of a private chain of blocks which is cryptographically secure and immutable.

Supporting courses:

  • Blockchain Data

Requirements

  • Node
  • Node Package Manager (npm)

Install

  1. npm install

Test

This codebase contains some quick integration tests. To test you will need to populate a test blockchain, uncomment the lines you wish to test in the provided test files, and then run the test files.

  1. node tests/integration/populateTestBlockchain.js
  2. node tests/integration/testBlockchain.js
  3. node tests/integration/testBlockchainData.js

Code Quality

This codebase adheres to the Airbnb JavaScript/React/JSX Style Guide

Code Organization

├── README.md
├── index.js
├── original_files
│   ├── levelSandbox.js
│   └── simpleChain.js
├── package.json
├── src
│   ├── block.js
│   ├── blockchain.js
│   └── blockchainData.js
└── tests
    └── integration
        ├── populateTestBlockchain.js
        ├── testBlockchain.js
        └── testBlockchainData.js

4 directories, 11 files

Grading (by Udacity)

Criteria Highest Grade Possible Grade Recieved
Configure LevelDB to persist dataset Meets Specifications Meets Specifications
Modify simpleChain.js functions Meets Specifications Meets Specifications
Modify validate functions Meets Specifications Meets Specifications
Modify getBlock() function Meets Specifications Meets Specifications
Modify getBlockHeight() function Meets Specifications Meets Specifications

About

A simplified, private blockchain created to help understand the data model behind blockchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published