Code Monkey home page Code Monkey logo

chaudhary1337 / blockchain-unchained Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 9.0 120 KB

A collection of BlockChain Solidity Smart Contracts: Building, Security & Exploits. Also exploring Cryptography (RSA, ECC) from Scratch.

License: GNU General Public License v3.0

Python 35.30% Jupyter Notebook 6.83% Solidity 57.87%
cryptocurrency cryptography solidity solidity-contracts solidity-security python3 blockchain blockchain-technology solidity-exploits hacks

blockchain-unchained's Introduction

BlockChain-Unchained

BlockChains & Cryptography from Scratch

Solidity

An Exploration into the world of smart contracts. I have a stab at building Smart Contracts, which are under ./Solidity/Build/. Meanwhile also exploring the exploits and vulnerabilities found in Solidity: From Re-Entrancy exploits draining all the ether from a smart contract and Phishing Attacks to get Priviledge Escalation, upto catching other Hackers using HoneyPot retaliation.

Build

I explore the bit by bit building of Solidity Code, along with the best practices.

  • ContractFactory: A contract that generates other contracts; also uses inheritance
  • Error: Require, Assert, Revert
  • FullGasAhead: Usage of Gas in Ethereum
  • FunMod: Using Function Modifiers
  • GetSet: Getter and Setter functions
  • HelloWorld: The classic Hello World
  • Inderitance: Deriving children contracts from parent contracts
  • MapsAndArrays: Usage of maps (dicts) and arrays (lists)
  • Payable: Sending and Receiving Ether
  • PureView: Controlling the views using: Pure, View, Other
  • SigningAndVerification: The heart of BlockChain; signing and verification using ECDSA
  • StructsAndEnums: Self-Explanatory
  • Visibility: Public, Private, Internal, External

Quick Note: view != visibilities

Break

A list of all the Solidity Exploits:

  • Overflow Attack
  • Underflow Attack
  • ReEntrancy Attack
  • Self-Desruction Attack
  • Denial of Service (DoS) Attack
  • Phishing Attack
  • Hiding Malicious Code
  • Honey Pot Retaliation

I have also included the fixes for the attacks: Exploits and Attacks Fixes

Cryptography

A head first dive into the cryptography used in the modern day technologies. I've explored RSA & ECC, both of which are already in use widely and have had substantial impact on the current Scuerity Systems. ECC is more powerful, and has seen numerous applications in blockchain. We explore one of the standards used in Bitcoin; secp256k1.

RSA

decsription to be added

ECC

Elliptic Curve Cryptography is much more efficient, in the number of bits required to effectively encrypt/decrypt, sign/verify information.

blockchain-unchained's People

Contributors

chaudhary1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blockchain-unchained's Issues

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.