Blockchain Technology and Smart Contract Development Workshop

Nchinda Nchinda

 

username - @Firescar96

email - nchinda2@gmail.com

number - +1  414 202 8569

https://slides.com/firescar96/ais-2019

blockchain-guide.rtfd.io

Recent Alum - MIT Media Lab

Software Developer - MTonomy/Krux

Bitcoin User

Part 1

Extending Bitcoin to get Ethereum
How to break/improve Ethereum
Healthcare and Rights Management

The Blockchain

The Merkle Tree

What if we put code...

on the blockchain?

Bitcoin vs bitcoin

Ethereum vs Ether vs Gas

But Bitcoin is just a distraction from the blockchain...

Nyet.

Let's Break Ethereum

Blockchain

vs

Tangle

vs

Hashgraph

Proof of Work

vs

Proof of Stake

Merkle Trees

https://hackernoon.com/sharding-centralizes-ethereum-by-selling-you-scaling-in-disguised-as-scaling-out-266c136fc55d

Node Count

Centralization

Real Applications

MedRec and MTonomy

Part 2

Looking at code
Reading some code
Writing some code

Interacting with contracts 

Writing contracts

Types

  • boolean
    • true or false
  • int and uint
    • represent 256 bit signed and unsigned numbers respectively
  • address
    • holds a 20 byte ethereum address
  • bytes1 - bytes32
    • fixed size byte array
  • struct
    • fixed size byte array
  • string
    • variable size byte array

Contract Structure

pragma solidity ^0.4.0;

contract SimpleStorage {
    uint storedData;

  function constructor() {
    // ...
  }

  function bid() payable { // Function
    // ...
    }
  }

}

Special Operations

  • msg.sender
    • the ethereum address that directly called the contract
  • msg.value
    • value of the calling transaction
  • block.number
    • current blocknumber
  • sha256 and sha3
    • hash functions
  • selfdestruct(<address>)
    • kill self and send money to an address
  • wei, finney, szabo, ether
    • currency denominations

Contract walkthrough

put link here

Part 3

Write contracts

Development Time

Tasks:

A) redo the solidity tutorial videos

B) do some of these challenges

More Stuff

Proof of Stake and Authority

Context of Smart Contracts

Race to Empty

 Blockchain Projects

Contact

AIS 2019 EVM Workshop

By Nchinda Nchinda

AIS 2019 EVM Workshop

skips the blockchain primer section and jumps to etherum applications and development

  • 540