Learn About Smart Contract

1 106
Avatar for Agilaxxx
3 years ago

Lets learn about smart contract and how it work

You all must familiar with apps and app stores right? where you browse something and download the app you want .

behind this apps lovely UX and UI Interfaces these apps are performing a specific set of instruction as laid out by their creator or programmer. it could be a online/offline game, a Calendar or clock, or a way to buy something and services. smart contracts perform a very similar function the only difference is with smart contract there's no middleman or third party.

if you are investor or planning to invest something then you must need this importance piece about smart contract.

What is Smart Contract?

A smart contract is a contract that's design to carry out a set of instructions. a contract that expressed as a piece of code.

In smart contract there's no person or company holding your information only the blockchain verifies and hold a record for you. If we believe as crypto enthusiast that Bitcoin is the Gold on the crypto industry then Smart contracts can be considered to be the oil in crypto industry that runs on.

Another quality of smart contract is it removes the need to trust so many people in the process of buying something.

Smart Contract are ;

  • 🔒 Secure - They use cryptography to stop people altering records.

  • 🔍 Transparent - Everyone can see on the blockchain what the smart contract is and what it’s being used for.

  • 🙏 No more middlemen - Smart contracts don’t need a third party to verify. The blockchain does that for you.

  • 🤖 Autonomous - They work automatically, so you’re not having to wait for someone to push a button.

  • ✅ Accurate - Because smart contracts are written in code, they don’t rely on the grey areas of a language and what words mean.

How Smart contract working

So, you want to buy a car online without a smart contract. In order to do so you need:

  • 📇 A listing site to hold the information on all the cars you’d like to see

  • 📯 A way of communicating with sellers

  • 💰 A payment system to allow you to exchange money once you’ve found your car

  • 💳 Some capacity to get a refund if the car turns out to be a dud

  • 👨‍⚖️ You'll also need to register the exchange of car ownership with the authorities

Each of these points requires you to trust the site or service you’re accessing—and a lot of the time, each part of that process is controlled by a different company or individual.

It wouldn’t take much for a sneaky person or organisation to change any of the above, making the whole process void.

Things you must need to know about Smart contract

The difference with smart contracts is, instead of a bank (or any third party) being the controller of that decision, it falls to the blockchain.

  • 💸If the amount in the digital wallet is larger and has not been spent already, release the funds.

  • 🙅‍♀️ 💵If the amount in the digital wallet is smaller, or has been spent already, do not release the funds.

The exciting bit about smart contracts is it means anyone can enter into an agreement with anyone else with the blockchain keeping a record of the whole thing.

How do dapps use smart contracts?

Dapps, or decentralized apps, can be best thought of as a bunch of smart contracts tied together.

A smart contract on its own can only be used for one type of transaction. A dapp, however, can bundle multiple smart contracts together to do more sophisticated things.

A dapp can also put a friendly interface on top of the contracts—just like apps do today.

Some notable dapps

  • 📉 Augur - A tool that allows anyone to speculate on derivatives

  • 🏦 MakerDAO - A decentralized finance (DeFi) dapp that enables users to lend and borrow of cryptocurrencies without needing a middleman.

  • 🦄 Uniswap - An Ethereum-based exchange that allows anyone to swap ERC20 tokens.

  • 🐱 CryptoKitties - Unique NFT-based crypto-collectibles that can be "bred" using smart contracts.

  • 👛 Argent - an Ethereum wallet that uses smart contracts to abstract away concepts like addresses and private keys.

Who created smart contracts?

Like the blockchain technology used to power most cryptocurrencies, smart contracts were derived from earlier technologies that weren’t quite complete. In the case of smart contracts, they are derived from earlier electronic instruction execution programs that used if/else statements other conditional logic to automatically produce an outcome based on the information it is presented with. 

The term “smart contract” itself was coined in the 1990s in an academic paper created by Nick Szabo, a prominent computer scientist and cryptographer that was also responsible for developing one of the earliest precursors to Bitcoin, known as Bit Gold. Szabo initially described smart contracts for a variety of basic purposes like fraud reduction and enforcing contractual arrangements, but later elaborated on the potential use-cases of the technology to digital cash, smart property, and more in a 1996 paper. 

Ethereum implemented a Turing-complete language on its blockchain, allowing for complex and sophisticated logic in its smart contracts.

Smart contracts aren’t always perfect

Although smart contracts are generally considered to be a “trustless” way of enforcing agreements and logic, they aren’t without their fair share of problems. 

For one thing, smart contracts are immutable on many blockchains. This means that once launched, they cannot be changed or upgraded, which can lead to disastrous consequences if there are underlying issues with the code. This is perhaps best highlighted by the 2016 Ethereum DAO hack, which saw an unknown hacker siphon off millions of ether (ETH) by exploiting a loophole in the DAO’s split function.

Unknown and novel attack vectors can also often be exploited, usually ending with investors losing money. This was seen in September 2020, with the collapse of the test version of Eminence, a project by Yearn Finance's Andre Cronje. It was exploited for $15 million by an unknown hacker after a huge number of investors sank their money into it. 

Likewise, simple bad code can render the smart contract effectively useless. This was seen with the collapse in August 2020 of the DeFi yield farming project known as YAM, which used unaudited smart contracts and was thwarted by a critical bug that rendered its governance feature useless.

The future of smart contracts

Nowadays, most blockchains have smart contract functions, with active communities of developers creating dapps using smart contracts on blockchains such as Cosmos, NEO and Hyperledger. The scope of smart contracts' capabilities can range from very simple on something like Bitcoin or Litecoin, to more advanced on dapp-capable blockchains like Ethereum, Tron, and Polkadot.

They are now used for a huge range of tasks, including digital identities, supply chain management, insurance, data storage, and a whole lot more.

We’re still in the early days of what smart contracts and dapps can be used for. But there are companies and even governments experimenting with their potential already.

  • 🇪🇪 Government - Countries like Estonia have already started using Blockchain to run the state.

  • 🔗 Supply chains - Startups like Provenance are helping manufacturing companies use blockchain to buy and ship goods

  • 📓 Insurance - Startups like Etherisc are helping create insurance platforms for the aviation and farming industry.

Just keep always remember to do a D.Y.O.R before doing investing so your money is in safe hand. also do a lot of security like Google authenticator to protect yourself in hack.

Source :

decrypt.co

m.youtube.com

3
$ 0.83
$ 0.83 from @TheRandomRewarder
Sponsors of Agilaxxx
empty
empty
empty
Avatar for Agilaxxx
3 years ago

Comments

i like it..please back my writing

$ 0.00
3 years ago