Smart contracts - Simply Explained - YouTube

Channel: Simply Explained

[0]
Smart contracts (also called distributed apps) are very popular nowadays.
[2]
But what are they and what problems do they solve?
[6]
The term “smart contract” was first used by Nick Szabo in 1997, long before Bitcoin
[12]
was created.
[13]
He is a computer scientist, law scholar and cryptographer so I’ll spare you his exact
[18]
words.
[19]
But in simple terms: he wanted to use a distributed ledger to store contracts.
[25]
Now, smart contracts are just like contracts in the real world.
[29]
The only difference is that they are completely digital.
[33]
In fact a smart contract is actually a tiny computer program that is stored inside a blockchain.
[39]
Let’s take a look at an example to understand how smart contracts work.
[45]
You probably are familiar with Kickstarter, the large fundraising platform.
[50]
Product teams can go to Kickstarter, create a project, set a funding goal and start collecting
[55]
money from others who believe in the idea.
[58]
Kickstarter is essentially a third party that sits between product teams and supporters.
[64]
This means that both of them need to trust Kickstarter to handle their money correctly.
[70]
If the project gets successfully funded, the project team expects Kickstarter to give them
[75]
the money.
[76]
On the other hand, supporters want their money to go to the project if it was funded or to
[81]
get a refund when it hasn’t reached its goals.
[85]
Both the product team and its supports have to trust Kickstarter.
[88]
But with smart contracts we can build a similar system that doesn’t require a third-party
[94]
like Kickstarter.
[97]
So let’s create a smart contract for this!
[99]
We can program the smart contract so that it holds all the received funds until a certain
[104]
goal is reached.
[106]
The supporters of a project can now transfer their money to the smart contract.
[111]
If the project gets fully funded, the contract automatically passes the money to the creator
[117]
of the project.
[118]
And if the project fails to meet the goal, the money automatically goes back to the supporters.
[124]
Pretty awesome right?
[126]
And because smart contracts are stored on a blockchain, everything is completely distributed.
[132]
With this technique, no one is in control of the money.
[136]
But wait a minute!
[137]
Why should we trust a smart contract?
[139]
Well because smart contracts are stored on a blockchain, they inherit some interesting
[144]
properties.
[145]
They are immutable and they are distributed.
[149]
Being immutable means that once a smart contract is created, it can never be changed again.
[155]
So no one can go behind your back and tamper with the code of your contract.
[160]
And being distributed means that the output of your contract is validated by everyone
[165]
on the network.
[166]
So a single person cannot force the contract to release the funds because other people
[171]
on the network will spot this attempt and mark it as invalid.
[175]
Tampering with smart contracts becomes almost impossible.
[180]
Smart contracts can be applied to many different things, not just on crowdfunding.
[185]
Banks could use it to issue loans or to offer automatic payments.
[190]
Insurance companies could use it to process certain claims.
[193]
Postal companies could use it for payment on delivery, and so on and so on…
[198]
So, now you might wonder where and how you can use smart contracts.
[203]
Right now there are a handful of blockchains who support smart contracts, but the biggest
[208]
one is Ethereum.
[210]
It was was specifically created and designed to support smart contracts.
[216]
They can be programmed in a special programming language called Solidity.
[221]
This language was specifically created for Ethereum and uses a syntax that resembles
[226]
Javascript.
[228]
Its worth noting that Bitcoin also has support for smart contracts although it’s a lot
[233]
more limited compared to Ethereum.
[236]
So now you know what smart contracts are and what problem they solve.
[240]
I hope you enjoyed this video and if you did, hit the like button and get subscribed.
[245]
And as always: thank you very much for watching!
[247]
#youtube/simply-explained