Decentralised Software Engineering - Security Deep Dive - Part 1

Decentralised Software Engineering - Security Deep Dive - Part 1

Value is either created or transfered, but never destroyed.

The blockchains like Ethereum introduced smart contracts whose true value is in facilitating universal execution of code, and as all things have dual side, the attack on DAO gave way for the other side and a new subject line to the world - "Security in Smart Contracts." and exposed its the negative externalities for the first time. The kind of bug that affected DAO can affect Lisk and IBM blockchain as its not the code but the concept that is being challenged in here.  

So what do we need to take care while developing a Dapps. To elaborate on it following are points -

  • Governance structure is the core.

Governance structure of the smart contracts needs to be defined , with crystal clear understanding of all components and, it should be tightly knit with the objective / purpose. 

  • Know thy ground. 

It is very important to know the ground level details of each and every function. And know it is functioning is as per intended definition. This includes extensive documentation and testing within closed releases. 

  • Understand that simple normal users.

This is one of the most common assumption and a fatal mistake, that developers make. They assume that access control is inherently defined in smart contracts but actual case is access control needs to be defined on a function basis. Moreover, variables definition is very crucial. (i.e. Weather variable is private / public).   

  • Understand cross contract validation.

Its very important to know all places where external contracts and libraries are being called upon. The DAO attack has its roots in 

  • Keep it simple. 

Its pointless to add useless complication to contracts as it would keep on increasing complexity and cost. Hence try to simplify and minimize operation where ever feasible. 

Happy hacking and use the knowledge wisely ... :) 

To view or add a comment, sign in

More articles by Harsh P.

  • Thermodynamics of Demonetisation

    Things fall apart when entropy Increases. Premise Considering economy as a system and merging it with thermodyamics we…

    3 Comments
  • Identity - Peering thru the looking glass - Part 1

    Identity cant be found, but it emerges from within. Identity systems of current day, all seems to offer one thing, they…

  • On Self-Sovereignty & Blockchains

    Trust is a commodity and privacy is a privilege Property - "Property is that which belongs to or with something…

    5 Comments
  • On controlling the negative externalities of Blockchains.

    On 26th January, In India we celebrated republic day, which denoted that India as a country adopted one of the basic /…

    2 Comments
  • Regulatory Economics and Blockchains

    “Innovation means cutting out the unnecessary and bringing in the required one” Regulation by virtue is a set of rules…

    10 Comments
  • Decentralised Software Engineering - Evolution in Software development.

    Blockchain introduced the Idea of Decentralisation of processing power, trust etc. And the advancements in blockchain…

    1 Comment
  • Blockchain - Out of sync

    Blockchain is a amazing technology used to store transaction over time while facilitating uniformed trust, integrity…

  • Blockchain-ware: Next stage of malware evolution.

    Blockchain is amazing piece of technology from payment perspective where by offering users a decentralized system of…

    13 Comments

Others also viewed

Explore content categories