Git Product home page Git Product logo

blockchain-developer-nanodegree's Introduction

Projects for Blockchain Developer Nanodegree Term1

Learn to identify fundamental transaction types, build a web service and API, and secure digital assets with your blockchain identity. Create a private blockchain, and a notarization web service. Use your blockchain identity to secure digital assets on the Ethereum platform with a smart contract.

By Adrianacmy

Project_2 : Create a private blockchain ledger that persists data and validates the blockchain ledger utilizing block hashes.

Project_3 : Create web service API with Express.js.

Project_4 : Build a Private Blockchain Notary Service.

Project_5 : Decentralized Star Notary.

Digital Assets

  • ASCII(American Standard Code for Information Interchange): ascii converter
  • ascii table
  • hexadecimal: converter
  • Base64:Encoding scheme meant to represent data as numbers in a string format
String to hex: xxd -p <<< "Blockchain Developer"
Hex to string: echo 426c6f636b636861696e20446576656c6f7065720a|xxd -r -p
String to Hex: xxd -p file.txt fileEncoded.txt
Hex to String: xxd -p -r fileEncoded.txt fileDecoded.txt

Image to Hex: xxd -p img.png img.txt
Hex to Image: xxd -p -r img.txt imgDecoded.png

Ethereum

  • Generating Keys in Ethereum
    <!-- Generate Private Key -->
    openssl ecparam -name secp256k1 -genkey -noout

    <!-- Generate a random Private Key & Derive a Public Key -->
    openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > Key

    <!-- Generate the hash, and save to a file 'address' -->
    cat pub | keccak-256sum -x -l | tr -d ' -' | tail -c 41 > address


    npm install -g ganache-cli
    sudo npm install -g ganache-cli truffle

    <!-- Run Ganache CLI -->
    ganache-cli

    <!-- Stop Ganache and modify your Ganache command line statement to include --mnemonic "string of words". -->
    ganache-cli --mnemonic 'trick core barely fold sample icon display hollow smoke task emotion pepper'

    <!-- Compile smart contracts -->
    truffle compile

    <!-- Deploy smart contract -->
    <!-- Make sure to configure your network settings. Modify truffle.js file (or truffle-config.js for windows), example below: -->
    module.exports = {
    // See <http://truffleframework.com/docs/advanced/configuration>
    // to customize your Truffle configuration!
    networks: {
        development: {
        host: "localhost",
        port: 8545,
        network_id: "*" // Match any network id
        }
    }
    };

    <!-- Run the following command to start the migrations scripts and deploy your smart contracts: -->
    truffle migrate

 npm install http-server -g

 http-server [path] [options]
<!-- [path] defaults to ./public if the folder exists, and ./ otherwise. -->

Resources

- https://ethstats.net/
- https://github.com/ethereum/wiki/wiki/Glossary

RPC: Remote precedure calls

Organizations with great pitches

Known Bugs

  • N/A

Technologies Used

  • Javascript
  • Nodejs
  • Solidity
  • LevelDB
  • Crypto-js
  • Experss.js
  • Sails.js
  • Hapi.js

Thanks/Resources

n ls // list all available node versions
nvm install v0.4.12 // install certain version
nvm use v0.4.12 // user certain version


Licence

  • MIT

Surpport Contents

Nodejs:

<!-- start regtest -->
bitcoind -regtest -daemon

<!-- generate 101 blocks -->
bitcoin-cli -regtest generate 101

<!-- get balance -->
bitcoin-cli -regtest getbalance

Solidity

// 固定长度为2的静态数组:
uint[2] fixedArray;
// 固定长度为5的string类型的静态数组:
string[5] stringArray;
// 动态数组,长度不固定,可以动态添加元素:
uint[] dynamicArray;

Person[] people;

blockchain-developer-nanodegree's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.