Smart contracts

Smart contracts

SMART CONTRACTS IN BLOCKCHAIN

What are smart contracts? ????

????????Smart contracts are line of codes which you run on Ethereum network which follows ‘if… then ‘conditions. These are basically conditions written in blockchain.

Currently, there are six smart contracts blockchain platforms, these are Ethereum, Polkadot, Solana, Hyperledger, Tezos, and Stellar. Recently, Cardano also launched this functionality for their testnet.?

?How do smart contracts work?

No alt text provided for this image

????????Let’s take an example of e-commerce website A. we buy a product in an e-commerce website called A and since A does not have a delivery service, B is responsible to deliver the product to the customer. What if B is doing some fraud. We will be paying money to A and A would also give some commission to B to deliver the package, but we won’t receive the product. So, there is a trust issue between three different parties, from our side to A and from A to B.

To solve these types of trust issues we can use smart contracts here. What if the entire payment system will be automated. Let’s take the above example, we will buy some thing from A and the amount will be prepaid but A will not receive the money. They will receive the money only when I receive the product. It’s just like ‘if… then’. Similarly, B receive money only when the product is successfully delivered.

This can be many sectors like gaming, healthcare, real estate.

Types of smart contract

1.?Smart legal contracts

?These contracts can be legally enforceable by law. If either party violates this contract, they will be legal action as a consequence.

???????It consists of three components.

·?????Text

·?????Data

·?????Logic

?2.?Decentralized Autonomous Organization (DAO)

It is about fully functional, automated??organization without hierarchical management. A DAO to function on its own, a functioning DAO is created which has two phases.?????

·?????Launch phase - Define and activate

·?????Funding phase- Internal property and currency

When both the functions are done a DAO can function on itself and its functions are carried by its stakeholders through voting.

??3.???Application Logic Contracts (ALC)

It is an application-based code that is fed data from ?????other smart contracts. It ensures better automation, cheaper transactions, and higher security. It enables communication with different devices and helps to merge technologies with blockchain technology.

?Advantages of using smart contracts

1.??Fast and efficient

2.??Transparency

3.??Security

4.??Saving

?

Some of the use cases of smart contracts

1.??It can be used in legal cases so that the trust issues will be reduced.

2.??It can be also used in economic sector like banking etc.

Limitations of smart contracts

1.??Scalability issues

2.??Adaptability

3.??security

要查看或添加评论,请登录

Dinesh Ravishankar的更多文章

  • Understanding the Importance of Layer 3 Blockchain

    Understanding the Importance of Layer 3 Blockchain

    Cryptocurrency has transformed the way we perceive and interact with digital assets. With the advent of Bitcoin, the…

    1 条评论
  • Unlocking the Secret World of Zero-Knowledge Proofs used in Blockchain,web3 and hyperledger

    Unlocking the Secret World of Zero-Knowledge Proofs used in Blockchain,web3 and hyperledger

    Secretly Share Sensitive Data Without Risk! Zero Knowledge: A Secure Approach to Data Security Zero knowledge is a…

    1 条评论
  • Gas Optimization Strategies: 8 Proven ways to reduce Ethereum transaction costs

    Gas Optimization Strategies: 8 Proven ways to reduce Ethereum transaction costs

    Introduction The Ethereum network, like any vehicle, requires gasoline to function properly. We call it a gas.

    1 条评论
  • Consensus Algorithm

    Consensus Algorithm

    What is Consensus We know that blockchain is a distributed ledger, so let’s say we have 4 mining nodes here. So, all…

  • ERC And Its Types

    ERC And Its Types

    ERC- Ethereum Request for Comment It is a set of rules and regulations that creates a blueprint for Ethereum based…

  • The Web 5 Is Here

    The Web 5 Is Here

    Currently we are working on web2 and we are excited about web3 and Jack Dorsey says, hey we are coming up with web 5…

  • Created a crypto Wallet

    Created a crypto Wallet

    This wallet can do all the functionality which other wallets can do, also additionally it can add allowance and it can…

  • The Fractional NFTs

    The Fractional NFTs

    NFT Market Limitations Everyone would be aware of NFTs and these NFTs are booming in the market. There is a number of…

  • Hyperledger And Its Frameworks

    Hyperledger And Its Frameworks

    #blockchain #hyperledger #web3 #hyperledgerfabric Hyperledger Fabric What is Hyperledger Before understanding about…

    1 条评论
  • How to perform events in solidity

    How to perform events in solidity

    EVENTS A contract's inheritable component, known as an event, records the parameters supplied when issued in the…

社区洞察

其他会员也浏览了