TRANSCRIPTEnglish

Blockchain Full Course | Full Blockchian Tutorial | Code Eater - Blockchain | English

6h 7m 51s68,469 words9,636 segmentsEnglish

FULL TRANSCRIPT

0:02

hi welcome to co-readers blockchain

0:06

channel my name is srivastav and I will

0:09

be your instructor for this blockchain

0:12

course in this blockchain course we are

0:14

going to talk about a lot of different

0:16

things I have divided this full course

0:19

this full blockchain course into three

0:21

modules that is module a which will be

0:24

all about blockchain how blockchain work

0:26

why do we need to study blockchain each

0:28

and everything we are going to cover in

0:30

module a then we will have module B

0:33

which will be all about cryptocurrencies

0:36

what are cryptocurrencies what is the

0:38

difference between a token and a coin

0:40

and a protocol all those things if these

0:43

things are sounds unfamiliar to you so

0:46

don't worry we are going to follow each

0:48

and everything in depth and then we are

0:50

going to talk about smart contracts what

0:52

is a smart contract where we where do we

0:55

deploy our smart contract each and

0:57

everything about smart contract we are

0:59

going to talk about in modern you see is

1:02

there any prerequisite to take this

1:04

course there is no prerequisite to take

1:06

this course anyone having no knowledge

1:09

of blockchain having no knowledge of any

1:11

technical Co-op topic can take this

1:14

course okay and now let us talk about

1:16

what are the contents that we are going

1:18

to see in each module because we are

1:21

definitely I have divided this course

1:22

into three modules but what are the

1:24

contents that we are going to see in

1:26

different modules let's see that so in

1:28

module a we are going to talk about what

1:30

is blockchain

1:32

then what is a hashing algorithm because

1:34

this is one of the important concept

1:36

that you must know when you are starting

1:37

with blockchain then what is immutable

1:40

Ledger then distributed P2P Network

1:42

because our whole blockchain network is

1:44

actually working on distributed P2P

1:46

Network so we will see that then we will

1:48

talk about what is mining and then

1:51

consensus protocol okay then in module B

1:55

we will start with Bitcoin what is

1:57

bitcoin Bitcoin monetary policy Mining

2:02

nons and let me tell you we are going in

2:05

depth of money because I know mining is

2:07

one of the most uh I will say most

2:10

demanding topic or people wants to know

2:13

about what is mining so we will look in

2:15

mining a great detail and nonce is

2:17

related to mining so we will talk about

2:19

that we will see the different

2:21

technologies that we use in order to do

2:24

mining like CPUs gpus A6 and all those

2:27

things then we will talk about mempool

2:29

very important thing if you do not

2:31

understand what is memory and all those

2:32

things don't worry you will understand

2:34

at the end of this course

2:37

then we will talk about the different

2:39

transaction different type of

2:40

transactions and all those things then

2:42

wallets and how wallets Works what are

2:46

utxos each and everything

2:49

and at the end of this module we are

2:51

going to see what is a public key what

2:53

is a private key what are digitals in

2:55

Natures what are the what is the

2:57

importance of cryptography in blockchain

2:59

we are going to see that

3:02

then in module C we are going to talk

3:05

about what is ethereum then smart

3:07

contracts because smart contracts are

3:09

programs that are written on ethereum so

3:11

we will see that then we are going to

3:13

talk about decentralized applications

3:15

evm and gas now this is something might

3:18

might be a new term for you but don't

3:20

worry you will understand at the end of

3:22

this module then what are Dows these

3:24

centralized autonomous organizations we

3:26

will see that

3:28

what is hard for what is a soft Fork we

3:30

will see that

3:32

what is Dao attack there was an attack

3:34

on Dao on ethereum we will study about

3:37

that so that we do not end up in the

3:39

same place

3:41

and then we are going to talk about icos

3:43

that is just like IPOs we have IPOs in

3:46

you know in our traditional World in

3:48

blockchain world we have initial coin

3:50

offering so we will talk about icos

3:53

and at the end we will talk about

3:55

alternate coins or all coins means coins

3:59

other than Bitcoin so you can clearly

4:02

see that all these modules if you will

4:04

see it is a pretty big course we are

4:07

going to see each and everything in this

4:09

course

4:10

so it will be a lot of fun you will

4:13

learn a lot that I can guarantee so I

4:16

hope I will meet you soon in the next

4:18

video I hope you are excited for the

4:20

next video

4:21

and I think this is one of the most

4:23

fundamental question that everyone must

4:26

ask whenever he or she is starting with

4:29

a new course right so let's start with

4:31

why study blockchain what is the reason

4:33

for studying blockchain let's see that

4:35

and we will understand this with the

4:37

help of story of Internet okay let's see

4:41

how internet came into existence and

4:43

where internet is actually lacking and

4:46

what Gap can be fulfilled by blockchain

4:50

so if we talk about our communication uh

4:52

if we talk about early times so this is

4:55

how we used to communicate using pigeons

4:57

if you have watched I will say Harry

4:59

Potter in that case you might have seen

5:01

that owls were being used in order to

5:03

communicate in order to send messages

5:05

right in order to send a message from

5:07

one place to another so these were the

5:09

times when we have this mode of

5:11

communication where pigeons were used as

5:13

a transporter transported transporter

5:18

for our letters right then we have post

5:22

office right mailboxes that we started

5:25

with writing letters and to our friends

5:27

who are relatives

5:29

but it was also a time taking process

5:31

right it took around months or sometimes

5:33

even more than a month uh when we have

5:35

to do uh when we have to use these post

5:38

offices right

5:39

and today if we talk about in the era of

5:42

Internet

5:43

everything is so easy right

5:44

communication has become so smooth now

5:48

we can talk to so many people at once we

5:51

can talk to to our relatives or to our

5:54

friends who may be in a different part

5:57

of the world and still we may be able to

5:59

communicate with them just with the help

6:01

of emails right and then we have another

6:04

great invention that is Facebook or I

6:07

will say social media through which we

6:09

can communicate with thousands of people

6:11

in just a click right

6:14

now currently I am able to communicate

6:15

with you definitely it is a one-way

6:17

communication but still I'm able to

6:19

communicate with so many people at once

6:21

and this is all because of Internet so

6:24

one this one thing is for sure here that

6:26

internet has bring a revolution when it

6:30

comes to communication right internet

6:33

has made our communication part so easy

6:35

that we cannot even like live without

6:39

internet right today if we have to live

6:41

without internet it will be a disastrous

6:43

day right for us

6:45

but there is something where internet is

6:49

lacking definitely communication part

6:50

has so easy now but there is one point

6:53

where communication where actually our

6:55

internet is lacking and that point is

6:58

Trust

6:59

we cannot trust the internet and let me

7:02

explain you this with the help of an

7:04

exam now let us understand this with the

7:07

help of an exam let's say this is an NGO

7:09

where you want to donate some money okay

7:12

and for denoting our money for donating

7:14

money what you did you did a internet

7:16

transaction okay so now

7:19

you have donated some money to this NGO

7:21

via internet transaction

7:24

but the problem is you do not know

7:27

whether this NGO is going to use this

7:30

money that you have transferred to this

7:32

NGO via internet whether this NGO is

7:34

going to use this money for a good cause

7:36

or not whether this NGO is going to use

7:38

this money for women education child

7:41

education or some good welfare work or

7:44

this NGO is going to do some money

7:46

laundering or let's say you know funding

7:48

some terrorist attacks so you do not

7:50

know right and this is one of the reason

7:52

that many of the times we do not donate

7:54

to different organizations because we

7:57

have a fear in mind that what uh what

7:59

happened if they are using our money for

8:01

some you know bad practices so that's

8:03

why we do not donate so the thing is in

8:06

this whole picture you can clearly see

8:07

that we cannot trust this NGO and why we

8:12

cannot trust this NGO because we cannot

8:13

trust our internet because we do not

8:16

know the internet transaction that we

8:18

are doing where this money is actually

8:19

going so one thing is for sure internet

8:22

cannot provide trust to us so the only

8:25

technology that can provide trust to us

8:28

is blockchain with the help of

8:31

blockchain we can bring Trust on the

8:33

table and how this how this like

8:36

blockchain works you will understand

8:37

because I'm not going into depth of

8:39

blockchain currently but one thing is

8:41

for sure you can trust this blockchain

8:44

technology and trust is the thing that

8:46

internet cannot provide you once we will

8:48

move on to blockchain application you

8:50

will understand how blockchain is

8:51

actually bringing trust to the table

8:53

okay so if we talk about blockchain

8:55

blockchain is a disruptive technology

8:59

just like internet internet made our

9:02

communication part very easy one of the

9:04

most important human element right human

9:06

thing that we need to talk to people we

9:09

need to communicate to people

9:10

if we talk about blockchain blockchain

9:13

is bringing trust to the uh to this

9:16

communication now we are not just

9:19

communicating we are doing communication

9:21

when like while trusting someone and how

9:24

this is so we will talk about it but

9:26

this is the reason why blockchain is

9:28

getting so much popular and this is the

9:30

reason if you will see in these two

9:32

pictures blockchain is just acting like

9:35

internet acting in the sense like

9:37

internet brought a revolution to the

9:40

communication part blockchain is

9:42

bringing Revolution to this trust part

9:44

and that's why blockchain is getting

9:46

famous day by day and it will be famous

9:49

just like internet or more famous just

9:52

like internet so there will be huge

9:54

opportunities when it comes to

9:56

blockchain in the near future currently

9:58

there are also lot of opportunities but

10:00

in the near future you will see

10:02

exponential exponential growth

10:05

opportunities in the blockchain domain

10:07

and that's why we need to study

10:09

blockchain now in this video we are

10:12

going to talk about what is blockchain

10:15

this presentation will be a very I will

10:17

say interesting presentation you will

10:19

enjoy a lot let's start this

10:21

presentation so before talking about

10:23

blockchain it is very necessary that we

10:25

should know who are actually inventors

10:27

of blockchain now if I will ask you what

10:30

do you think who is inventor of

10:32

longshare and who are inventors or

10:33

blockchain please let me know in the

10:35

comment below I want to see what is your

10:37

answer

10:38

I hope you have commented your answer

10:40

but I know most of you like what have

10:43

actually commented there most of you

10:46

might have thought that inventors of

10:48

blockchain or inventor or blockchain is

10:50

Satoshi Nakamoto but let me correct you

10:53

here Satoshi Nakamoto is inventor of

10:55

Bitcoin but not blockchain inventors of

10:58

blockchain are Stuart Herbert

11:02

and W squats tornado so these are the

11:06

two people who are actually inventors of

11:09

blockchain they have written a paper on

11:11

it I think it was the paper was of

11:13

around related to digital signatures or

11:15

something I will share the link in the

11:17

description so that you can also read it

11:18

uh it was around 1990 they have

11:21

published this paper

11:23

so remember inventors of blockchain are

11:26

Stuart Harbor and W score store Neta and

11:29

not sadoshi Nakamoto okay many of the

11:31

times you will see this false

11:33

information on the internet but I want

11:34

to correct you here only so that you do

11:37

not get you know uh get this that

11:39

correct incorrect information now let's

11:41

talk about what is blockchain so as you

11:44

can see on your screen that we have this

11:46

blocks right connected with each other

11:48

and hence we have something like a

11:52

blockchain right means chain of blocks

11:54

but definitely you cannot Define

11:55

blockchain like this right so let us see

11:58

our definition of blockchain let me tell

12:00

you there is no fixed definition of

12:02

blockchain but this is one of the

12:04

definition which I think uh you know

12:06

identify the blockchain the most good

12:09

way so that's why we will take this

12:11

definition

12:12

so blockchain is a distributed immutable

12:15

Ledger which is completely transparent

12:18

okay let me repeat it for you blockchain

12:21

is a distributed imitable Ledger which

12:23

is completely transparent now let us

12:26

understand the meaning of this

12:28

definition let us understand the meaning

12:30

of each keywords that I am using in this

12:32

in this definition that is ledger

12:35

immutable distributed transparent

12:37

everything okay so I will start from

12:39

Ledger then we will go to immutable then

12:40

distribute it and then we will talk

12:42

about transparent okay so let's talk

12:44

about what is a ledger so a ledger looks

12:48

something like this so Ledger is

12:50

actually a place where you write all

12:53

your debit as well as credit entry so

12:56

let's say you might have seen that

12:58

whenever you go to a shop let's say or

13:00

if you have let's say you went to

13:02

McDonald's or something so what they are

13:04

doing is they are actually writing each

13:06

and every transaction like if you talk

13:08

about a normal shop keyboard okay so in

13:10

that case what they're doing is they are

13:12

writing each and every transaction in

13:14

their notebook that what amount they owe

13:16

you or what amount you owe to them each

13:19

and every transaction is actually being

13:20

written in this Ledger book okay so this

13:23

is the traditional approach which people

13:25

use before computer sometimes you might

13:27

see this but now in most of the error

13:30

like in at this point of time what you

13:31

will see that people are using computer

13:34

in order to write down all the

13:36

transactions so you might have seen that

13:37

whenever you go to McDonald's and you

13:40

buy something they are writing each and

13:41

everything in their calculator type of

13:43

thing right and that's why that's how

13:44

they are providing you receipt and

13:46

everything so what they are doing is

13:47

actually they are recording the

13:50

transactions like how much you are

13:52

paying how much the change they have

13:54

given you each and every transaction is

13:56

being recorded in that ledger okay so

13:58

Ledger is a place where transactions are

14:00

recorded

14:01

now this is how real world operates okay

14:04

this is the real world Ledger if we talk

14:07

about blockchain in blockchain the

14:09

blocks of the blockchain act as Ledger

14:13

so we have seen right that our

14:15

blockchain is formed by various block

14:17

connected with each other via chain

14:20

and this block in the blockchain

14:22

works as a ledger for the blockchain

14:25

where each and every transaction are

14:27

being recorded so let's say you are

14:29

paying some Bitcoin to your friend let's

14:30

say ace and five Bitcoin to B now this

14:33

transaction will be recorded on this

14:35

block of the blockchain and then like

14:38

this only if C is sending some

14:39

transaction to D some Bitcoin to D in

14:41

that case that transaction will be

14:42

recorded on this block of the blockchain

14:44

so this is the meaning of our first

14:46

keyword second keyword is immutable now

14:49

the problem with this Ledger is that

14:51

this Ledger is mutable or if we talk

14:53

about databases right the centralized

14:55

databases all those type of ledgers are

14:58

actually mutable mutable means you can

15:00

erase the data you can manipulate with

15:03

the data like for example I can just

15:04

remove this one of the pages from this

15:06

notebook right I can completely erase

15:08

one of the written handwritings over

15:11

this notebook if you talk about a

15:13

database so the person who is in charge

15:15

of that database can completely erase

15:17

one of the transactions from the

15:19

database so the thing with these Ledger

15:22

is that they are mutable you can mute

15:25

them means you can change them but when

15:27

it comes to this block of the blockchain

15:30

these are totally immutable means once a

15:34

transaction is recorded on this block of

15:36

the blockchain you cannot change that

15:38

transaction nobody can change the

15:40

transaction that transaction is like

15:43

permanent on this blockchain

15:45

and how this is done we will talk about

15:47

it so don't worry about it but now I

15:49

just want to tell you like how what is

15:51

the meaning of these keywords and why

15:52

blockchain is so special okay so now we

15:55

have understood the meaning of two

15:56

keywords Ledger as well as immutable now

15:58

let's look at the third keyword

16:01

so if we talk about a blockchain network

16:04

this is how a blockchain network looks

16:06

like okay so we have different computers

16:08

here these computers are connected via

16:10

P2P Network which we will talk in our

16:12

upcoming videos for now just imagine

16:14

that these computers are connected with

16:16

each other okay and each of these

16:18

computers as you can see the that they

16:21

are actually holding blockchain so a is

16:23

holding a blockchain and exactly like

16:25

whatever a is holding like the exact

16:27

copy is hold by B Means A and B are

16:30

carrying the same blockchain c e and f

16:32

are also carrying the same blockchain

16:34

means all of these people are having the

16:36

exact copy of the blockchain okay so all

16:39

of these people are having the exact

16:41

copy of the blockchain

16:42

let's say a new block is created now how

16:45

this is created we will talk in our

16:46

upcoming videos just for now let's say

16:49

that a creates a new block okay now he

16:52

will add this block to his blockchain

16:55

now what will happen a will start

16:58

communicating this information to b c e

17:02

and f okay saying that okay now I have

17:04

created a block please see this blog

17:07

please verify and validate this block

17:08

whether this block is right or not so

17:11

what bcef will do they will start

17:13

verifying and validating this block

17:15

whether this block is a malicious block

17:16

or not or whether this block is a

17:18

suspicious block or not if this block is

17:20

a correct block what they will do is

17:22

they will simply add this block to their

17:24

blockchain if you will see right all of

17:27

these people have added this block

17:28

created by a to their blockchain and

17:31

this is how blockchain is distributed in

17:34

nature you can clearly see the block is

17:36

getting distributed all across the

17:39

network

17:40

and that's why we called blockchain uh

17:43

distributed immutable Ledger

17:47

so this is like a is holding a ledger a

17:51

notebook and a is Distributing this

17:53

notebook to all the people who are

17:55

connected with him okay

17:57

now what is transparent here so The

18:00

Ledger as you can see that ledger is

18:02

totally available with everyone right

18:04

whosoever is the part of this blockchain

18:06

network so The Ledger the transaction

18:09

that these Ledger will contain is

18:11

totally transparent to the public anyone

18:13

can see that transaction but there is a

18:15

catch here these transactions are in

18:17

encoded format so definitely people can

18:20

see the transaction that okay some one

18:22

has done some payment to someone but

18:25

nobody will know who that someone is

18:27

each and every data is included on the

18:30

blockchain so that nobody can read it

18:32

okay but the data is transparent in

18:34

nature everything is totally public

18:36

everyone can see everything but nobody

18:39

will able to decode everything okay and

18:42

that's why we call blockchain as a

18:44

distributed immutable Ledger which is

18:47

completely transparent hi now in this

18:50

video we are going to talk about the

18:52

different applications of blockchain

18:54

let's start so there are a lot of

18:57

applications of blockchain first

18:59

application of blockchain is product

19:00

tracking another application of

19:02

blockchain is smart contracts third

19:05

application of blockchain is Healthcare

19:06

System system fourth application of

19:08

blockchain is international wire

19:11

transfer and we are going to have a

19:13

closed lookup at all these applications

19:16

like how blockchain is actually being

19:18

used in all these different domains so

19:21

let's start with product tracking so

19:24

let's say you want to buy a coffee okay

19:26

so you went to the shop and you buy

19:28

bought this coffee

19:30

now according to this copy like

19:32

according to the packaging of this

19:34

coffee it claims that this coffee is uh

19:37

let's say hinted person pure coffee and

19:39

let's say this coffee is let's say for

19:42

example brought from Brazil okay just an

19:44

example

19:45

and you trusted this coffee package but

19:48

after some time you realize that okay no

19:50

this is not that coffee uh it is not the

19:53

Brazilian coffee like this coffee that I

19:56

have in my hand is a fake coffee means

19:59

this is completely you know false

20:01

advertising I will say

20:03

now how we can prevent from these type

20:05

of situation where we are buying

20:07

something

20:08

and how to know whether the product that

20:11

we are buying is actually a legitimate

20:12

legitimate product or not so for that

20:15

what we can do is we can use blockchain

20:19

now with the help of blockchain what we

20:21

can do is we can simply

20:24

track this product so this product let's

20:27

say this product has been tracked using

20:29

blockchain so this product will have a

20:31

barcode so you might have seen right

20:33

barcode in various shops now once you

20:36

will scan this product this product will

20:38

tell you each and every

20:41

thing this barcode actually tells you

20:43

each and everything about this copy copy

20:45

where it started like like you can

20:48

clearly see if you can see some of the

20:49

details are mentioned here like what is

20:51

the name of this coffee from which

20:52

country it is originated like what are

20:54

the different mode of transportation

20:56

like was done in order to bring this

20:59

coffee let's say from Brazil to India or

21:01

Brazil to USA so each and everything

21:03

will be mentioned in this

21:06

you know in this application now you

21:07

must be thinking like how it is

21:09

different from Amazon like Amazon also

21:10

does the same thing when we buy

21:12

something we have all the details but if

21:14

you will see Amazon so Amazon does not

21:16

provide you the details of a particular

21:18

product Amazon only provides you the

21:20

tracking ID like where your product is

21:22

where your product will be and all those

21:25

things right so your product is already

21:26

ready in the shelf and from that shelf

21:29

each and every movement of that product

21:31

is being tracked but what we are talking

21:33

here is we are talking about Complete

21:35

product tracking and how it is different

21:38

when it comes with blockchain because as

21:40

we talked about blockchain right

21:42

blockchain is a distributed immutable

21:43

ledger so once a transaction is recorded

21:46

on the blockchain no one can erase that

21:48

transaction so in the case of product

21:50

tracking once we have noted that okay

21:53

this project

21:54

was at this location on the blockchain

21:57

no one can erase that data from the

21:59

blockchain now this is the beauty of

22:01

blockchain and that's how it is used in

22:04

product tracking and you can also see

22:07

here that each and every information

22:09

about the product is being mentioned in

22:11

this application

22:12

now let's talk about another application

22:14

of blockchain and that is smart

22:16

contracts now this is one of the most

22:18

beautiful I will say applications of

22:20

blockchain so please be aware just be

22:23

alert here I will say so how smart

22:25

contracts are being used in blockchain

22:27

so first of all let me tell you one

22:29

thing that smart contracts are simply

22:31

programs that you write on blockchain so

22:34

like you have written program in C C

22:36

plus plus Java python or if you have

22:38

written in that case so just like these

22:41

programs right we have Smart contracts a

22:44

program written on blockchain simple as

22:46

that okay and if you still do not

22:47

understand what a smartphone net just

22:49

don't worry we you will understand it

22:50

after this example so let's say uh let's

22:54

take an example let's say there is a

22:55

person a he has a he has this food

22:58

delivery truck

23:00

and he delivers fruits okay so he's a

23:03

fruit supplier we can think of it AF

23:05

food supplier

23:06

and he does this food delivery to this

23:10

shopkeeper B okay so this is our

23:12

shopkeeper B who has a shop XYZ and once

23:16

he received these fruits from a b sell

23:19

these fruits to his customers now once

23:21

the delivery is done B pays some money

23:24

to a right this is how a business

23:26

transaction is done

23:28

but after some time B realizes that the

23:31

Apple sent by a are actually rotten so

23:34

now B is in loss he cannot use those

23:37

apple to sell his customer right because

23:39

if he will sell these apples to his

23:41

customers then their customers will be

23:43

highly disappointed in B because now the

23:45

fruits are rotten right

23:47

now what B can do in this type of

23:49

situation

23:50

now in this type of business transaction

23:52

for example what we can do is we can

23:55

install a smart contract okay we can

24:00

install a smart contract

24:02

and we are assuming that the temperature

24:04

to keep the fruits fresh is less than 30

24:07

degree celsius so this delivery truck

24:09

you can think of this delivery truck as

24:11

a refrigerated truck okay this track

24:13

this uh this container that you are

24:16

seeing right where delivery is written

24:17

it is actually a fridge okay we are just

24:19

assuming that this is a refrigerated

24:21

truck and the temperature in order to

24:23

keep these apples fruits apples fruits

24:26

apple fresh actually is less than 30

24:28

degrees Celsius okay so this is our

24:30

assumption

24:31

now let's write some logic to our smart

24:34

contract with our smart contracts are

24:36

nothing but programs right so we will

24:37

draw a flow chart here that if iot

24:41

directed a temperature greater than 30

24:43

degree celsius now what is this iot iot

24:45

is for now you can think of as

24:47

temperature detecting device so they

24:49

detect the temperature so we are

24:51

assuming that this iot is installed to

24:52

that container of the truck and if iot

24:55

is detecting a temperature of

24:57

degree less greater than 30 degree

25:00

celsius and this is not good for our

25:02

Foods right now if this happens in that

25:06

case we will definitely cancel the

25:08

delivery and we will not pay to a right

25:11

B will not pay to a in this scenario and

25:14

this is good if this is false if this

25:17

condition is false in that case

25:20

delivery will be done and B will be have

25:24

to pay to a means we cannot then deny

25:26

that I can I will not pay it away

25:27

because now I have received the fruits

25:29

and I do not want to pay today this is

25:31

not how this will be done when it will

25:33

come to Smart contracts

25:35

so this is how the logic of our smart

25:37

contracts will work and I think this is

25:40

a very good logic also now some of you

25:43

Ma some of you might be thinking that

25:44

how it is different from any other

25:46

program because you know we write

25:48

programs in C C plus plus Java how it is

25:51

different from any other program what is

25:53

so special about smart contracts

25:55

the special thing about smart contracts

25:57

is that smart contracts are actually

25:59

immutable in nature just like blockchain

26:02

you cannot erase the data from

26:04

blockchain right so this is smart

26:05

contract will be deployed to the

26:07

blockchain and you cannot change

26:09

anything from the smart contract once it

26:11

is deployed to the blockchain now this

26:13

is one of the beauty of smart contracts

26:15

means once this logic is written no one

26:18

can erase this logic first thing second

26:21

thing with the smart contract is that

26:23

you do not require any human

26:25

intervention means when I am saying that

26:27

if the temperature is greater is greater

26:29

than 30 degree celsius the if this

26:31

condition is let's say false then we are

26:33

transferring money to a right so in this

26:36

case money will be actually

26:37

cryptocurrency so these cryptocurrencies

26:39

will be transferred from Smart contract

26:42

balance to A's account now this is

26:45

something very I think a little bit

26:47

complicated to explain currently because

26:49

currently we are just progressing

26:51

towards our blockchain course for now

26:53

just assume that smart contract as

26:56

acting as a bank where some

26:57

cryptocurrency is deposited if this

27:00

condition will be false in that case

27:03

cryptocurrencies from a smart contract

27:05

account will be deducted and will be

27:07

transferred to a and who has transferred

27:09

this cryptocurrencies to Smart contract

27:11

account and that that is actually being

27:13

done by D okay and we will see this in

27:16

more detail in our smart contract module

27:18

but for now I think this makes sense to

27:21

you also right

27:22

so this is also one of the applications

27:24

of blockchain now let's see the third

27:27

application of blockchain that is in

27:29

international wire transfer so let's say

27:31

you want to send some money to one of

27:34

your friend okay so you went to your

27:35

bank sender bank and you want to

27:38

transfer some money to your friend

27:41

but in order to transfer this money to

27:43

your friend which let's say lives in USA

27:45

let's say you are living in India and

27:47

you want to transfer this money to USA

27:50

this transfer of money cannot be

27:52

directly done to USA means if this is a

27:54

Bank of India you cannot transfer this

27:56

money directly to USA so let's say if

27:59

this is our bank in USA this is our

28:01

receiver bank because your friend is in

28:03

USA you cannot transfer this money

28:04

directly to this Bank there will be so

28:07

many banks in the middle of this change

28:10

between the sender bank and between the

28:12

receiver Bank

28:13

now the problem with this approach is

28:15

you have to pay a huge amount of

28:17

commission to these banks in order to do

28:20

a international transaction so let's say

28:22

and this International transaction uh

28:25

fees can be around 10 to 25 percent just

28:28

it can be 10 to 25 percent so let's say

28:30

if you are sending one thousand dollars

28:32

to your friend for example one thousand

28:34

dollar to your friend in that case if

28:36

the uh percentage is let's say 10

28:38

percent then hundred dollars will be

28:40

deducted and your friend will only

28:42

receive nine hundred dollars and the

28:45

reason is because there are so many

28:46

banks involved here so they charge some

28:49

commission now this is a very heavy

28:51

commission right now if you are going to

28:53

use blockchain in this case yeah and one

28:55

more thing yes one more thing that this

28:57

process can be a slow process it can

28:59

take two or three days definitely it can

29:01

be less than that but it can take up to

29:03

seven days also seven to ten days also

29:05

because let's say there are banks that

29:07

are involved Within These two blanks

29:09

they are slow they are working very

29:11

slowly in that case definitely your

29:12

transaction will take a huge amount of

29:14

time and then your friend let's say

29:17

might receive the money after 10 days of

29:19

the transactions

29:21

you know this is a very slow process

29:22

right so what you can do is instead of

29:25

this instead of going like this what you

29:28

can do is you can do transaction on

29:31

blockchain now transactions on

29:32

blockchain are very fast it took around

29:36

let's say you are doing some

29:37

International transaction it will take

29:39

around some minutes and your

29:41

transactions will be done and top of

29:43

that that transaction fees will be very

29:46

less so that's also one of the beauty of

29:48

blockchain so we have cryptocurrencies

29:51

which we will discuss in much more

29:52

detail in our cryptocurrency module so

29:54

cryptocurrencies these cryptocurrencies

29:56

you can transfer from one place to

29:58

another in so much time like in less

30:01

time and in so much less amount of

30:04

transaction fees now let us look at

30:06

fourth application of blockchain that is

30:08

in healthcare system

30:10

so normally uh let's say if there are

30:12

two hospitals in City a and CTB okay and

30:16

let's say uh you are born in City a so

30:18

all of your medical history is actually

30:21

stored in the database of City a right

30:24

so since you are born in City a so all

30:26

your medical history documents each and

30:28

everything is actually stored in the

30:30

database of your CTA Hospital right it

30:33

can happen

30:34

now the problem in this approach is that

30:39

let's say you went to City B for some

30:42

work okay and you met with an accident

30:46

now in that case what will happen in

30:48

that case City B does not have your

30:52

medical history now in order to fetch

30:54

your medical history they need to call

30:56

your parents or let's say they have to

30:58

talk to different hospitals because they

31:00

do not know you might definitely they

31:01

will not call to hospitals until they

31:03

will call to your family right so your

31:04

family will then go to the hospital of

31:06

City a and then they will fetch your

31:08

records medical history and then they

31:10

will provide to City B right because you

31:12

can have different type of diseases

31:13

let's say you might have some sugar or

31:15

some diabetes or let's say you have some

31:17

like you know life-threatening type of

31:19

disease now in that case City B needs to

31:22

check your medical history before before

31:24

doing any type of procedure or it might

31:27

be too late for you to survive from that

31:30

accident right

31:32

so this is a problematic thing right

31:35

so with the help of blockchain what we

31:37

can do is we can share this data

31:39

definitely do not think that blockchain

31:41

is a centralized database here this is

31:42

just for representation

31:44

what you can do is you can share your

31:47

information your medical history on the

31:48

blockchain and you can provide access to

31:52

anyone who wants to have a look on that

31:56

data so let's say you have a key and you

31:59

have locked that key on the blockchain

32:00

and the beauty of blockchain is that

32:02

once your data is there it is there so

32:04

it will not be erased or manipulated it

32:06

will always be there and let's say in

32:08

the case of prices you can transfer your

32:11

keys to uh let's say in this case City B

32:14

and CTB then can go and unlock your

32:16

medical history documents and can see

32:18

your data and can provide you a good I

32:21

will say good treatment right so that

32:23

you can recover fast

32:25

so this is also one of the applications

32:27

of blockchain and this is also getting

32:29

so much I will say popular and I think

32:32

in near future we are going to see this

32:34

a lot okay so we discussed four

32:37

applications of blockchain right in the

32:39

international wire system

32:41

Health Care System smart contracts and

32:44

product tracking right

32:46

but definitely there are various other

32:48

applications of blockchain and now this

32:50

is your homework okay you have to

32:52

comment below and you have to tell me

32:54

what are other applications of

32:56

blockchain okay you have to tell me like

32:58

what other places blockchain can be used

33:00

and let's other also know that what are

33:02

the other applications of blocks in and

33:04

I will be waiting for your homework so

33:06

please do not forget to do that okay now

33:09

let's talk about hashing algorithm

33:11

because this is the term you are going

33:13

to see a lot you will hear a lot when it

33:16

comes to blockchain so let's talk about

33:18

this

33:19

what is a hashing algorithm

33:22

so if I will show you a block of the

33:25

blockchain this is how a block of the

33:26

blockchain of a blockchain looks like so

33:28

we can see that these are the different

33:30

blocks connected with each other and

33:31

this single block looks something like

33:33

this definitely there are various other

33:35

fields also but for demo purposes I am

33:37

considering four fields for now that is

33:40

block number like at which number this

33:42

block is present so if you will see that

33:44

in this case this is block number one

33:46

block number two block number three then

33:48

we have data data means transaction so

33:50

let's say if a is doing some transaction

33:52

to B that transaction will be noted here

33:54

if C is doing some transaction to D that

33:57

transaction will be rotate here so each

33:59

and every data is present in this data

34:00

field then we have this previous hash

34:02

which we will talk in our upcoming

34:04

slides and then we have this hash okay

34:08

now this is very important what is this

34:10

hash all about uh right zero zero zero

34:13

some alpha numeric characters you can

34:15

see on your screen but what is the

34:16

meaning of this alphanumeric characters

34:18

so this hash that you are seeing here is

34:21

actually

34:22

a unique identifier

34:24

to this block of the blockchain okay so

34:28

this is a unique identifier to this

34:29

block of the blockchain what do I mean

34:31

by that so every human being has a

34:34

fingerprint right and this fingerprint

34:36

is a unique fingerprint so no two human

34:39

beings can have a same type of

34:42

fingerprint okay I know this is

34:43

according to science okay so just don't

34:46

believe if you do not believe me just

34:47

search on it and you will see a lot of

34:49

scientific researches on this that no

34:51

human being can have identical uh thumb

34:55

Impressions or you know impressions of

34:57

your of your fingers and all

35:00

and the same thing happens in case of a

35:04

block of the blockchain so this hash act

35:07

as a unique identifier to this block of

35:09

the block shape so let's say

35:11

it is like giving a name to a block okay

35:14

so this is like a name given to this

35:16

block and with the help of this name I

35:17

can identify this block now why do we

35:19

need this identifier you will understand

35:20

it just uh in just up in our upcoming

35:23

slides and upcoming videos so just don't

35:25

worry about it

35:26

so this hash is acting as a fingerprint

35:29

to this block okay so this hash is

35:32

acting as a fingerprint to this block

35:34

and how this hash is actually being

35:37

generated like how do we how do we get

35:39

this hash so for hashing what we use is

35:43

a hashing algorithm so this sha-256 is a

35:47

hashing algorithm we have other hashing

35:48

algorithms also like we have kcat 256 we

35:51

have sha 512 nd5 there are various

35:54

hashing algorithms but in case of

35:57

blockchain most of the time we use

35:58

sha-256 algorithm okay now when we give

36:03

some input to this sha 256 algorithm

36:05

that input can be in document Audio

36:07

Video in any form this chart roof this

36:10

is algorithm convert this document audio

36:13

video Etc anything in a 64 digit

36:18

hexadecimal characters okay so if you

36:20

will calculate there are 64 characters

36:22

here okay and you have to trust me on

36:25

this or you can read this also it's up

36:27

to you

36:28

and why it is called sha 256 because

36:31

there are 64 hexadecimal characters one

36:35

hexadecimal character is of 4 bits and

36:38

that's how we have this 256 bits okay so

36:42

one character one hexadecimal character

36:43

is of four bits and each character is of

36:46

since there are 64 characters so 64 into

36:49

4 we have 256 bits okay what are

36:53

hexadecimal characters just searched on

36:54

Google you will easily find hexadecimal

36:56

characters just like an angular system

36:58

like that like we have a decimal number

36:59

system from 0 to 9 in the same way we

37:02

have hexadecimal number from 0 to F okay

37:04

that's why you are seeing these letters

37:05

coming up here okay

37:07

now in case of a blockchain what are the

37:11

inputs because as we have seen right

37:13

these These are the inputs to this chart

37:15

of D6 algorithm and that's how this is

37:17

actually being you know

37:19

generated now in case of blockchain what

37:22

are the inputs so in case of blockchain

37:24

these different fields that you are

37:27

seeing on the screen act as a input and

37:29

these inputs are giving to this chart

37:31

with Basics algorithm and this chart of

37:33

this x algorithm then produces this hash

37:36

and remember one thing this is a very

37:38

important point chart of physics

37:40

algorithm always and always produce a

37:43

unique identifier unique hash okay there

37:47

will be never a time where for two

37:49

different input you will have a same

37:51

hash okay remember this thing now let me

37:54

demonstrate you this chart with this

37:56

algorithm because I know many of you

37:58

might still be confused let me

37:59

demonstrate this in real life so here we

38:02

are on this side

38:04

just uh just type shot 256 generator and

38:07

you will be on this side and in this

38:10

side you can clearly see that we have an

38:12

input and this is our output let's say I

38:14

have written something let's say I have

38:15

written H so as you can see that as I

38:18

have written this H you can see that we

38:20

have a hash of 64 hexadecimal characters

38:23

and one important point that you should

38:25

notice here is a small change in the

38:27

hash not in this hash actually in a

38:29

small change in the input will

38:31

completely create like completely change

38:33

this hash there will be a totally random

38:36

hash which has nothing to do with this

38:38

Edge like let me show you let if I let's

38:40

say I have written a here now you can

38:41

see that this hash generated in the

38:44

previous case these two hashes are

38:46

completely different from each other now

38:48

this is one of the beauty of sharp

38:49

dresses algorithm because this is very

38:51

important characteristics of a good

38:53

hashing algorithm like for each and

38:56

every input we should have a entirely

38:58

different hash okay so let's say if I

39:01

have written anything I am writing

39:02

anything here you can see that never

39:04

ever never ever it is producing more

39:07

than 64 hexadecimal characters

39:08

whatsoever I'm putting here okay so this

39:12

is how short of this x algorithm works

39:14

and in case of blockchain as I said we

39:17

have the different input fields and we

39:19

use these input reports as an input to

39:21

this chart with physics helicopter

39:24

now definitely you might be thinking

39:26

like why I'm using the like why I'm

39:28

using nine characters here this is just

39:29

for demonstration purpose because I if I

39:31

am going to write the 64 hexadecimal

39:33

character it will be a large digit right

39:35

so for demonstration purpose I'm going

39:37

to use nine characters only but in

39:39

actuality remember sha256 produces 64

39:42

hexadecimal characters

39:44

now let's talk about some

39:46

characteristics of this hashing

39:48

algorithm because I know this is also

39:50

one of the important questions like not

39:52

question doubts like uh how like what

39:55

are you know what how what make this

39:58

chart of physics algorithm a good

40:00

algorithm why we are using chart of

40:02

disease algorithm why we are not using

40:03

any other algorithm so let's talk about

40:05

some of the good characteristics of us

40:08

hashing algorithm

40:10

so the final requirements that every

40:12

hashing algorithm must fulfill first is

40:15

that it should always be one way means

40:18

let's say you are giving a data to this

40:21

start to Basics algorithm and this data

40:23

is now converted into a encrypted data

40:25

because the hash that you are seeing on

40:27

your screen is actually working as an

40:29

encrypt editor right I'm writing H A or

40:32

something here and it is producing some

40:34

encrypted data of that

40:36

now the good hashing algorithm will

40:40

never

40:41

give back the data means you can produce

40:44

you can go from this data point to

40:47

encrypted data point means you can go

40:49

from this to this but you cannot go back

40:52

from encrypted to this means you can

40:55

generate let's say a hash from a given

40:58

input but from a given hash you cannot

41:00

generate the same input back so this is

41:03

one of the key requirement of a hashing

41:05

algorithm another thing is it is

41:07

deterministic deterministic means that

41:10

it always for every single input it is

41:13

going to give you the exact hashing hash

41:16

means let's say for one two three it is

41:18

producing producing some hash def so it

41:22

will always and always produce this def

41:25

whatsoever be the case if the inputs are

41:28

fixed means for

41:30

uh for you you will never see a

41:33

situation that for a single input you

41:35

are having two different hashes okay you

41:37

will always have the same hash when you

41:39

are giving when you are going to give

41:40

the same input so this is also one of

41:42

the beauty of this hashing algorithms so

41:44

ABC so let's say yeah I have given

41:47

example also ABC produces the hash of

41:49

845 so always and always ABC will

41:51

produce the same hash it will never

41:53

produce 849 or 948 okay third thing is

41:57

it should be fast definitely it should

41:58

be fast otherwise it will take if it is

42:01

taking a lot of time just for producing

42:03

these hashes then it will be a time

42:04

taking process right

42:06

now what do I mean by with the sand

42:08

Collision means uh it should be very

42:11

difficult it should be very difficult I

42:13

think I will say exponentially difficult

42:15

to have the same in to have the same

42:18

hash for the two input means it should

42:20

never happen the probability of

42:22

happening that we have two inputs two

42:25

different input and these two inputs are

42:27

producing the same hash it should be

42:29

very very very less it should never

42:31

happen that two inputs are actually

42:33

producing the same hash okay so it

42:35

should withstand collisions and last

42:38

that there should be a Avalanche effect

42:41

if launch effect what do I mean by that

42:42

as we have seen in our uh chart 236

42:45

generator right calculator you you might

42:47

have seen that even I am changing a

42:49

small alphabet there there is a complete

42:52

new hash for H we were having a

42:54

different hash for H A we were having a

42:56

complete new hash right now that is what

42:59

we call Avalanche effect so that each

43:01

and every time you are even if you are

43:03

making a single change in the input you

43:05

will get a complete pretty different

43:07

hash okay hi now in this video we are

43:11

going to see how actually blockchain is

43:13

formed using hashing algorithm so in the

43:16

previous video we talked about hashing

43:18

algorithm right sha-256 hashing

43:20

algorithm where we discuss that for each

43:23

block we have a unique hash right now

43:27

let us understand how a chain is formed

43:30

between two block of the blockchain so

43:33

let's say we have two blocks here

43:35

this block in green and this block in

43:38

blue so this is block number one and

43:40

this is block number two right and this

43:42

block has this hash of this like zero

43:45

zero zero d8c42 and this block is having

43:48

a hash of zero zero zero three four five

43:50

uh three a four five nine right so this

43:52

is the identity of this block and this

43:54

is the identity of this block

43:56

now how these two blocks will be linked

43:59

together so that they can form a

44:01

blockchain right because as we discussed

44:03

in our blockchain video that blockchain

44:05

is nothing but it is a chain of blocks

44:07

so now we have two blocks let's see how

44:09

they are connected with each other so

44:11

now let us see how these two blocks are

44:13

linked together

44:15

so here you can also see that we have

44:16

one more field that is a previous hash

44:18

in block number one as well as in block

44:20

number two for block number one previous

44:23

hash is zero zero okay why because this

44:25

is for the Genesis block since this is

44:27

the first block of our blockchain so we

44:29

call this block as a Genesis block and

44:31

in this previous hashes nothing okay but

44:34

in this case in block number two this

44:37

block number two also have this previous

44:38

hash feed now this previous hash of this

44:42

block number two will consist of the

44:45

hash of this block number one so if you

44:47

will see it is zero zero zero zero d8c42

44:51

and this is also zero zero zero d8c42 so

44:55

with the help of this hash of block

44:57

number one this block number two is able

45:00

to identify block number one by having

45:03

the hash of block number one in its

45:06

previous hash okay and I think this

45:09

makes sense because this is a unique

45:10

attitude to this block so this is like

45:12

this block number two is calling this

45:14

block and that's that's why we have this

45:16

link now let's see if a block number

45:18

three is created in that case this block

45:20

number three will have a previous hash

45:22

equal to the hash of block number two

45:24

and with the help of which block number

45:26

three will be able to identify block

45:29

number two and there will be a link

45:30

between these two blocks and this is how

45:33

a blockchain is formed in in a

45:36

blockchain system I will say and this is

45:38

our Genesis block as I said

45:40

hi now in this video we are going to

45:42

talk about why blockchain is immutable

45:45

definitely when we discussed about the

45:47

definition of blockchain we discussed

45:49

that blockchain is a distributed

45:50

immutable Ledger right now let us see

45:53

why blockchain is immutable with the

45:55

help of an example so let's say this is

45:57

you okay who wants to buy a house okay

46:01

now in order to buy this house

46:03

definitely you require money as well as

46:06

you need to sign a contract with the

46:08

party with the with whom you are buying

46:10

this house right so let's say this is

46:11

this house is belonging to party B and

46:14

now you want to buy this house from this

46:16

party B so you need to sign a contract

46:18

right and now you will take this sales

46:21

deed contract and present it to the

46:23

government so you will go to the

46:25

government officials saying that okay

46:27

this is a contract that I have signed

46:28

with party B and now this house this

46:31

house title belongs to me title means

46:34

for now you can think of it as the name

46:37

of this house for now just take uh just

46:39

assume that title is the name of the

46:40

house and you are saying that okay now

46:42

this house belongs to me since I have

46:43

given party B this money and now I have

46:46

all the documentations and everything so

46:48

now this house belongs to me so you will

46:51

present this these facts to the uh these

46:53

contract on facts actually you will

46:55

present this contract to the government

46:56

institution now after receiving this

46:59

information institution the government

47:01

institution will record all the

47:03

important information over a file over a

47:06

register or they can also use a

47:09

centralized database means they can also

47:10

use computer in order to so in order to

47:12

store all the information related to

47:14

your uh related to your contract related

47:17

to your title of the house

47:19

now the problem with this approach is

47:21

that anyone can change record of this

47:25

register right because this resistor is

47:27

nothing but uh government institution

47:29

has just written some uh data on a paper

47:32

so now anybody can change the record in

47:35

this register if we talk about

47:37

centralized database definitely in

47:39

centralized database since database is

47:41

centralized in nature anybody any hacker

47:44

can also make changes to this

47:46

centralized database or

47:49

the government of

47:51

or if the government is corrupted in

47:53

that case they can also make changes to

47:55

this centralized database and once this

47:57

is done you will be in trouble right

47:59

because this file this file is actually

48:02

stating that this house belongs to you

48:04

but if someone is changing the fact

48:06

someone is changing the information in

48:08

this file in that case this house will

48:11

not belong to you and there are so many

48:13

cases that has happened before and and

48:16

still these type of things occur where

48:18

the person who has bought this house has

48:21

no authority over the house just because

48:23

there was some mistakes given or there

48:26

was some changes in the government

48:28

documentation so you do not want to lead

48:31

up in such type of trouble right because

48:33

if you will if you will be in such type

48:35

of situation then your situation will be

48:37

like this right because you have

48:39

invested so much money in your house

48:41

so in order to prevent from this

48:43

situation what we can do is we can use

48:45

blockchain which is an immutable Ledger

48:49

so let's say uh this transaction this

48:53

data that you are buying this house is

48:55

stored on blockchain so this data is

48:57

stored on let's say Block C okay

48:59

and now someone hacked this Block C

49:02

because we are assuming that okay

49:04

blockchain can also we have someone is

49:06

trying to manipulate the data means

49:08

manipulate the data that this house

49:09

belongs to you in this Block C so this

49:12

hacker is trying to manipulate this

49:13

Block C since this Block C is containing

49:16

the data that the house belongs to you

49:19

now if the hacker will try to hack this

49:22

block trying to change this block data

49:24

the blocks that are after C will also

49:28

get affected why it's very simple if you

49:31

have watched my previous video where

49:33

where I discussed that the new block

49:36

consists of

49:38

the hash of the previous block right so

49:42

this D will consist of the hash of Block

49:45

C in its previous hash field similarly

49:47

for E and F right so once this block

49:51

will get corrupted the data in D E F

49:54

will also get corrupted right and if you

49:56

do not remember let me show you the

49:58

presentation from our previous slide so

50:01

here you can see that that this is our

50:03

block number let's let's assume that

50:04

this is our block number D this is not

50:06

this is a block number c someone is

50:07

trying to change the data in block

50:09

number c and if let's say someone is

50:11

trying to change the data in block

50:12

number c then the hash of this block

50:13

will change why because these different

50:16

fields are being used in order to get

50:18

this hash right and this also we have

50:19

discussed in the short V6 algorithm

50:21

video so this hash will get changed and

50:24

since this hash will get changed the

50:26

this this block number two that is our d

50:28

block is also having the hash of this

50:31

block right so if this will change then

50:33

this will change and since this will

50:34

change the hash of this will change and

50:36

since the hash here will change then

50:38

definitely again you can see the uh

50:41

domino effect here right now the

50:43

previous hash of this will change and

50:45

the hash will change so in this way the

50:47

all the blocks that are coming after C

50:49

will get changed and by this the network

50:53

the distributed network of blockchain

50:55

will know that there is some issue with

50:57

the blockchain as we discussed also this

51:00

right that our blockchain is our

51:02

distributed immutable ledger so if we

51:04

are assuming that this is our blockchain

51:05

okay this is our P2P network of

51:07

blockchain we will discuss about PTP

51:09

Network in our upcoming video but for

51:10

now this is our P2P Network right

51:13

and here you can see that this block is

51:16

getting affected now once this block

51:17

will get affected the people this this

51:19

block will also get affected and the

51:21

people who has the correct copy of the

51:23

blockchain will get to know that there

51:25

are some issue with the blockchain of a

51:28

and what they will do is they will

51:30

correct these changes because they have

51:32

the correct copy of the blockchain okay

51:34

and this is why blockchain is immutable

51:38

in nature right so this is why

51:40

blockchain is immutable in nature

51:42

because if you are going to change any

51:44

block this change in one block will

51:47

affect the rest of the blocks now some

51:49

of you might be thinking that what will

51:51

happen if someone tries to change the

51:53

first block right and we will talk about

51:55

this case also in our upcoming videos so

51:57

don't worry about it and yeah this first

52:00

and last block calls right so don't

52:01

worry about it we are going to talk

52:02

about this in our upcoming video because

52:04

this is a concept which is not not which

52:06

is not the part of this video but now

52:08

for now you have must have understood if

52:10

someone tries to change the data of

52:12

middle of the block or the blocks that

52:15

are coming in between some blocks in

52:17

that case how immutability will take

52:20

place in blockchain hi now in this video

52:22

we are going to talk about P2P Network

52:25

now this is a term that I am using a lot

52:27

so let us understand P2P Network and in

52:29

order to understand P2P Network let us

52:31

first understand what is a centralized

52:33

Network and how it works okay so in a

52:36

centralized Network we have two parties

52:37

one is server and another one are

52:40

clients so as the name suggests by the

52:43

server server is a one who serves the

52:46

client okay and this server is actually

52:48

holding all the data so you can

52:51

understand this with the help of an

52:52

example uh that YouTube is a company

52:55

that has its own server which on This

52:59

Server all the videos are stored okay

53:01

and when someone wants that video when

53:04

someone wants that data they request

53:06

from YouTube server and then YouTube

53:08

server provide them with that data now

53:11

in the case of this like if you will see

53:14

this diagram this picture that is

53:16

appearing on your screen now in case of

53:18

this you as you can see that this server

53:20

is holding some data right and let's say

53:22

this client wants this data from the

53:25

server okay so what this client will do

53:27

they this client will actually request

53:29

from this server that okay I need this

53:31

data that you are having and then server

53:34

will responds to this client with that

53:37

data now this is how a centralized

53:40

network works okay let's say if this

53:43

client wants some data it will request

53:45

from the server and then the server will

53:47

respond with the data that the client

53:50

has requested and in the same way other

53:52

clients also can do that now the problem

53:54

with this approach is that if someone

53:56

hacks the server

53:58

then this data

54:00

will get manipulated right because the

54:03

someone is hacking the server and let's

54:04

say uh the hacker made some changes to

54:07

the data now in this case if a client

54:10

requests data from the server in that

54:12

case the client will have this

54:15

manipulated data right so the data will

54:17

not be a right data so the client will

54:19

be getting some manipulated data so this

54:22

type of situation we do not want right

54:24

some of the let's say it's some it is

54:26

something very important to us it is a

54:28

very important file and now we are

54:29

getting some corrupted data just because

54:31

a hacker has a hacked this particular

54:34

server so what we can do is we can use a

54:38

P2P Network now what is a P2P Network so

54:41

in a P2P Network we have peers okay PE

54:44

stands for peers so this is a p

54:46

peer-to-peer Network now in a

54:49

peer-to-peer Network there is no server

54:51

there is no client okay everyone is at

54:53

equal position so anyone in this whole

54:57

network can share data and anyone from

55:00

this Network can request for a data okay

55:03

so each and every one is at same level

55:06

there is no server there is no client

55:07

each of them are or you can think like

55:09

this also that each of them are server

55:11

and each of them are clients also okay

55:13

so let's say and now a wants that data

55:16

from B so a can request that data from p

55:19

and in let's say another case that e

55:23

wants the data from a so e can also

55:25

request the data from a right so in this

55:28

way P2P network works right it's a very

55:32

simple process anyone from this uh P2P

55:35

Network can request data anyone anyone

55:38

from this network can produce data so

55:40

there is no client server there is

55:42

nothing like that okay each and everyone

55:43

are e at equal level okay so this is

55:47

what P2P Network looks like and this is

55:50

how blockchain network is formed where

55:52

each and everyone is having the exact

55:54

copy of the blockchain and each of these

55:56

people can talk to each other via P2P

55:59

Network now let us also see that how P2P

56:02

Network distributed P2P network works in

56:04

blockchain also okay so this is our P2P

56:07

Network in our blockchain and let's say

56:09

a block is added at is end okay so a has

56:13

created a block how it is created we

56:15

will talk about in our upcoming videos

56:16

but let's say a has created this block

56:18

okay now once a has created this block a

56:22

will send this information to its

56:25

peers okay which are b e and f in this

56:29

case so a will transfer this information

56:31

to b e and f saying that okay I have

56:34

created this block

56:35

now once this is done b e and f will add

56:39

this block after verifying and

56:40

validating whether the block is correct

56:42

or not if the block is correct then they

56:43

will add this block to their blockchain

56:45

now after this b e and f will transfer

56:49

the same information to C saying that

56:52

okay we have a block that is created by

56:55

a can you check whether it is right or

56:57

not so c will take this block he will

57:00

also verify and validate this block and

57:01

if this block is correct then C will

57:03

also add this block to its blockchain

57:05

and this is how P2P network works in a

57:09

blockchain right because each and every

57:10

one can talk to each other each and

57:12

every one are at equal level so each

57:15

people can talk to each other in our P2P

57:18

Network

57:19

now you must be thinking why do we India

57:21

why do we need a distributed P2P Network

57:23

in blockchain so as we have discussed in

57:26

our immutable Ledger video right if

57:28

someone tries to manipulate a data so

57:30

all the data will get corrupted right

57:32

all the blogs that are coming after that

57:35

particular block will get corrupted so

57:37

we have discussed about this right and

57:39

to convey this information what we need

57:41

is a P2P Network okay I have this text

57:43

here right so I have removed that so now

57:45

let's say if a block is get corrupted in

57:48

one of the blockchain okay so let's say

57:50

a hacker has hacked a system and now he

57:53

has manipulated the this block of the

57:55

blockchain now this information will be

57:58

transferred via P2P Network only okay

58:01

and you can also see that once this

58:03

block is get corrupted all the remaining

58:04

blocks or the blocks that are coming

58:06

after this block also get corrupted

58:08

because of the hashing thing right

58:10

now this information will be transferred

58:12

to b e and f d e and f will check okay

58:15

now the block that is the block that a

58:18

is having and the blocks that we are

58:20

having are different blocks so what they

58:23

will do is instead of adding this block

58:25

to their blockchain they will correct

58:28

the block of a saying that a you are

58:31

having a wrong block let me correct this

58:33

block okay so this is how P2P network is

58:36

very essential in order to maintain this

58:39

immutability in our blockchain Network

58:41

okay so I hope now in this video we are

58:45

going to talk about a very interesting

58:47

topic that is blockchain mining

58:50

now this is one of the most interesting

58:52

topic of mine also let us see this and

58:55

in this video we are going to just see

58:56

an overview in our upcoming videos we

58:58

are going to see a detailed uh video

59:01

about blockchain mining like how

59:03

actually it is done but for now let us

59:04

see an overview and trust me you will

59:06

love it okay so let's say uh someone is

59:10

doing or let's say you are doing some

59:11

Bitcoin transaction okay so you are

59:14

doing some Bitcoin transaction

59:16

now this Bitcoin transaction will go to

59:19

a pool of miners okay we have pool of

59:22

miners here pool when I'm saying pool

59:24

means there are so many miners uh

59:27

present in our blockchain Network okay

59:29

so once they will see the okay the

59:31

transaction is done they will take this

59:34

transaction

59:35

and they will try to add this

59:37

transaction

59:38

on a block of the blockchain okay and

59:40

the block can have multiple transactions

59:42

or thousands of transaction or depends

59:44

upon the depends upon blockchain to

59:46

blockchain but let's say for Simplicity

59:49

that in this blockchain a block can have

59:51

only one transaction but a block of a

59:53

blockchain can have multiple in for the

59:55

Simplicity of this uh video I'm going to

59:57

say that uh block can consist of only

59:59

one transaction so once the miner will

60:02

see that okay a transaction is done so

60:04

they will see this transaction and they

60:06

will start solving a mathematical

60:08

problem why they will solve this

60:10

mathematical problem they will solve

60:12

they will start solving this

60:13

mathematical problem so that they can

60:15

add this transaction on the blockchain

60:18

okay so that's why they will start

60:20

solving the mathematical problem

60:22

now The Miner who will solve this

60:26

mathematical problem first okay because

60:28

there are so many minors and let's say

60:30

one of these minor let's say this minor

60:32

has solved this mathematical problem

60:34

first

60:35

now once he will solve this mathematical

60:37

problem first he will be able to create

60:40

a block having this transaction okay and

60:44

after this process means after this

60:46

block is created

60:48

this block will be verified and

60:51

validated by other set of miners mean

60:54

others that means that the my this Miner

60:56

will not be a part of this verification

60:58

and validation but all the other miners

61:00

will start verifying and validating this

61:02

block whether the block created by this

61:04

Miner is a correct block or not okay

61:07

whether this blog is not this block is

61:10

not a many is this block is a malicious

61:12

block or not okay

61:14

if this block is a malicious block then

61:16

they will reject this block and they

61:18

will not add this block to their

61:19

blockchain and hence again the process

61:22

of mathematical problem will start means

61:25

again the miners will start solving the

61:27

mathematical problem so that they can

61:28

add this transaction but if this block

61:31

is correct if this block has no issues

61:33

in that case what they will do they will

61:36

add this block to the blockchain to

61:38

their blockchain we have seen this also

61:39

in our distributed video right where we

61:42

talked about blockchain they will add

61:44

this block to their blockchain and the

61:46

miner who has solved this mathematical

61:47

problem first will be rewarded with some

61:50

cryptocurrencies okay and this block

61:53

will be added to the blockchain and this

61:55

is how the whole mining process works

61:58

now you must be having questions right

62:00

like who can be the miner anybody can be

62:02

the miner okay you just need to solve

62:04

you just need to install a software

62:06

let's see if we talk about blockchain

62:08

Bitcoin client once you will install

62:10

this software you you will have an

62:12

option in order to like you will have an

62:14

option to be a minor thing okay and uh

62:17

let me tell you one thing more that

62:19

verification and validation is not just

62:20

done by the miners verification and

62:22

validation is also done by all the nodes

62:24

okay there are other systems also apart

62:27

from Miner who are just doing

62:29

transactions who are just part of that

62:31

blockchain Network they will also they

62:33

can also verify and validate your

62:34

transactions so only miners are not

62:36

verifying and validating other nodes set

62:39

up that are connected to this blockchain

62:41

network also verify and validate this

62:43

transaction okay

62:45

this blog what do I mean by that okay so

62:48

this is how blockchain network is this

62:51

is how actually blockchain mining is

62:52

that not blockchain network but this is

62:54

how blockchain mining is done now what

62:56

is this mathematical problem you this

62:58

can also be one of your question and

63:00

don't worry we are going to talk about

63:01

this in our upcoming videos where we are

63:03

I'm going to talk about nonce which is a

63:06

very important topic uh which is a topic

63:08

that you will face a lot in your

63:10

interviews also so we will discuss about

63:12

that in our nonce video but for now I

63:15

hope this is very much Clear what is

63:17

blockchain mining and how it is done hi

63:20

now let us talk about a very important

63:23

problem in our distributed Network that

63:26

is byzantines General problem

63:29

now in a Byzantine journalist problem

63:31

let us understand this with the help of

63:33

a story okay this is very important

63:35

problem you must understand this problem

63:37

so this is our Byzantine Kingdom okay

63:40

our beautiful Byzantine Kingdom

63:42

and there are four Army generals of some

63:46

different Kingdom okay and these are

63:49

like these four Army generals belong to

63:51

the same Kingdom and they want to attack

63:53

on this Byzantine okay they want to

63:56

attack on this Byzantine they want to

63:57

take over this Kingdom

63:59

now in order to attack on this Byzantine

64:01

and in order to win this Kingdom because

64:04

Byzantine definitely will also have its

64:06

Army right so in order to win from

64:08

Byzantine

64:10

they need to be attacking at the same

64:13

time means majority of these generals

64:16

need to attack at the same time in order

64:19

to win over Byzantine okay

64:23

and we are we are assuming that we are

64:25

assuming that all these Army generals

64:27

are at different locations so let's say

64:29

this Army journal with its Army is at

64:32

North this is at South West and East

64:34

okay so all these Army generals with

64:36

their army are at different location

64:39

now definitely since they have to attack

64:43

at the same time they need to

64:44

communicate with each other right then

64:46

only they can attack at the same time

64:47

when they have the information that okay

64:49

this Army General is going to attack now

64:50

we can also planning let's plan to

64:52

attack right so they need to communicate

64:54

with each other but the problem is that

64:56

they are at different places

64:59

so what they will do so they will send

65:02

their messenger saying that whether to

65:04

attack at this point of time and or

65:06

whether not to attack at this point of

65:07

time so let's say this Army General okay

65:10

send this information to the other rest

65:12

of the army General that okay this is

65:14

the best time to attack on Byzantine I

65:17

think this is the best time let us

65:18

attack on Byzantine now the same thing

65:21

will be done by the rest of the army

65:24

generals they will also send their

65:25

Messengers they allow this Army General

65:27

has sent this information okay this is

65:29

the best time let us track on Byzantine

65:31

uh present time uh Byzantine Kingdom

65:34

okay other kingdoms will also like other

65:37

kingdoms not other Kingdom other Army

65:39

journals will also send this information

65:40

and this Army General will also send

65:42

this information via their messenger

65:44

that okay let us attack on Byzantine and

65:47

this is an ideal situation and if this

65:49

will happen then definitely they will

65:51

win Byzantine Kingdom because now they

65:54

are attacking at the same time majority

65:56

of them are attacking at the same time

65:57

so definitely they are going to win in

66:00

Byzantine Kingdom right

66:02

but what will happen if one of these if

66:07

one of these Army generals is a traitor

66:09

right this can also happen that this is

66:12

a traitor now this will be a problematic

66:15

situation why because the stateral

66:17

trader will give wrong information right

66:21

so let's say that all these Army

66:25

generals are saying that to attack is

66:27

the best like this is the best time to

66:29

attack on Byzantine because they will

66:31

win over byzant time if they will attack

66:33

at the same time at this particular time

66:36

but this since this Army General is a

66:38

traitor he is sending false information

66:41

to the rest of the generals that okay no

66:43

this is not the best time to attack

66:44

let's not attack at this point of time

66:47

because he's a traitor even though this

66:50

is the best time to attack he will say

66:51

that do not lets do not attack or at

66:53

this point of time

66:54

so what will happen in this case now in

66:57

this case

66:58

these Army generals will go for the

67:01

majority of the votes okay so this Army

67:04

General will see that okay what is in

67:06

majority to attack or not to attack and

67:09

he will see that okay this Army General

67:10

is saying to attack this Army General is

67:12

same to attack so and this is the only

67:14

Army General who's saying that this is

67:16

not the best time to attack so

67:17

definitely he will go with these two

67:20

Army Generals in the same way he will

67:22

also see that okay this is saying to

67:24

attack this is saying to attack but this

67:25

is saying not to attack so let's go with

67:28

these two people since these two people

67:29

are in majority in the same way he will

67:31

see that these two people are a majority

67:33

and they will attack and they will win

67:35

over Byzantine once again now why I am

67:38

telling you this story because this

67:40

story is if you will relate it to our

67:44

distributed Network where distributed

67:46

Network are present at different

67:47

location and they need to verify a

67:49

particular set of information now in

67:52

order to verify a particular set of

67:54

information these distributed system

67:56

depends on the material Authority

67:59

and same goes for our blockchain network

68:01

blockchain network is also a distributed

68:03

P2P Network right we have also seen in

68:05

our we have seen in our previous video

68:07

right so in a distributed P2P Network

68:10

definitely there can be some Traders

68:12

there can be some hackers who will send

68:15

you some wrong information so in that

68:17

case our distributed P2P Network totally

68:21

depends upon the maturity

68:24

if the majority of the people are seeing

68:27

something we are going to assume that

68:29

that is correct if majority are saying

68:31

something that that like majority are

68:33

saying that okay this is not a correct

68:34

information we are going to assume that

68:36

this is the correct means we are going

68:38

to assume that the majority is correct

68:40

in this regard also so this is how

68:42

distributed P2P network works but now

68:45

definitely there is one problem now you

68:47

must be having this question in your

68:49

mind what if if majority of the people

68:52

are hackers what will happen in that

68:54

case like in this case definitely if you

68:57

will see

68:59

three-fourth of the people that is 75

69:02

percent of the people are correct right

69:04

50 75 percent of the people are the

69:07

right people

69:08

but only one-fourth means this traitor

69:10

is the person who was sending some wrong

69:12

information so India's in this case this

69:15

is correct but what will happen if 50

69:17

are seeing something and 50 are seeing

69:20

something what will happen in that case

69:21

in that case your distributed system

69:24

will fail yes this is the truth your

69:27

distributed system will fail but the

69:29

probability of happening that is very

69:31

low the probability of happening that is

69:33

very low because just uh just use your

69:36

common sense right here that how there

69:38

can be 50 hackers right how let's say if

69:42

there are lacks of people connected in a

69:43

blockchain network how there can be 50

69:46

000 hackers this is not a possibility

69:48

right only I think 10 000 of the people

69:51

will be hackers or let's say one

69:52

thousand people will be hackers right we

69:54

cannot see we cannot say that 50 000

69:56

people can be hackers because the

69:57

probability of having is low definitely

69:59

they it can happen in future but the

70:01

probabilities of happening is is very

70:04

low right so now I hope you understand

70:06

what is Byzantine General's problem

70:07

right and correspondence to our

70:10

distributed computing where distributed

70:11

computers distributed computers are all

70:13

over the network so in order to verify

70:16

and evaluate a particular information

70:17

they need to depend upon the majority

70:21

okay and this is the only solution to

70:23

our Byzantine General's problem now in

70:25

this video we are going to talk about

70:27

consensus protocol so let's start before

70:30

talking about consensus protocol let us

70:32

understand the concepts that we have

70:34

learned so far so we have talked about

70:36

hashing algorithm and its importance in

70:39

order to create a blockchain immutable

70:40

Ledger which protects our blockchain

70:42

from hackers miners who actually verify

70:45

validate create R blocks in the

70:48

blockchain and then distributed PTP

70:50

network with the help of which we

70:52

distribute our block all over the

70:54

network right

70:56

now what is the importance of consensus

70:58

protocol let us understand this

71:00

consensus protocol helps us in two ways

71:03

first in order to prevent attacks like

71:06

if some some hacker is trying to attack

71:08

our blockchain in that case it helps us

71:10

and then in competing chain problem

71:12

which we will see in the next video in

71:14

this video we are going to talk about

71:16

how it prevents attacks

71:18

so there are various type of consensus

71:20

protocol you might have heard these name

71:22

proof of work proof of stake and there

71:24

are others also like proof of concept

71:26

proof of history there are so many other

71:28

consensus protocol but in this video we

71:30

are going to mainly talk about our proof

71:33

of work consensus protocol okay

71:36

so let us understand this

71:37

so as we have discussed in our immutable

71:41

Ledger video If a hacker tries to

71:44

manipulate any Central block or any

71:47

middle block of a blockchain then all

71:50

the blocks after that block will get

71:52

affected right and by this these other

71:55

nodes that are part of this blockchain

71:57

network will be able to identify that

71:59

there is some mistake with this is

72:01

blockchain and they will correct it but

72:03

what will happen if

72:06

a is a hacker who is trying to add a

72:10

malicious block at the end of our

72:12

blockchain now in this case what will

72:15

happen because now there are no other

72:16

blocks right after this there are no

72:18

other blocks with the help of which we

72:20

can say that okay this block is not a

72:22

right one or is this block is not a

72:23

correct one because b c e and f you can

72:26

clearly see that they have only four

72:27

blocks while a has added this corrupted

72:29

block but bcef do not know whether this

72:32

block is a correct correct block or not

72:34

now how we can prevent from this type of

72:37

situation now in order to prevent from

72:39

this type of situation what we have is a

72:42

consensus protocol so before adding this

72:45

block this malicious block to their

72:48

blockchain like bcef in their blockchain

72:51

a consensus protocol is run this

72:54

consensus protocol makes sure that the

72:57

block that is being created by a is

72:59

correct or not so there is an algorithm

73:01

so you can see that this is this is some

73:03

part of the algorithm there are

73:05

definitely it is a three to four

73:06

documents long algorithm but I'm just

73:09

showing you some part of it so this is a

73:11

consensus protocol that runs whenever a

73:13

new block is added to the blockchain in

73:15

this consensual protocol the person who

73:18

is adding a block he has to present a

73:21

proof he has to present a proof that the

73:24

block that I am adding is a correct log

73:26

and that's why this algorithm is also

73:30

known as proof of all calcium in case of

73:32

Bitcoin because the person who is adding

73:35

this block he has to present a proof by

73:39

stating that okay I have worked on this

73:42

uh this block I have involved on this

73:44

blog in order to add it and to what is

73:48

what is that proof like let me tell you

73:49

that proof is uh like the amount of

73:52

energy this a is consuming in order to

73:55

create this block because in a proof of

73:57

work algorithm a lot of energy is

74:00

required a lot of power is required and

74:02

why this is so we will see in our

74:04

upcoming videos but a lot of energy is

74:06

required in order to create this block

74:08

so a will present a proof that okay I

74:11

have consumed this amount of energy I

74:13

have consumed this amount of you know

74:14

power in order to create this flow and

74:18

definitely there are other checks also

74:20

which will also run in order to verify

74:22

that the block that is being created by

74:24

a is a credit block or not now once this

74:27

is done then and then only this block

74:30

will be added to other nodes of the

74:32

blockchain

74:33

and then only a will be rewarded with a

74:36

cryptocurrency if this consensus

74:39

protocol this proof of work protocol

74:40

finds out that this block added by a is

74:42

not a current Block in that case it will

74:45

not be rewarded with any cryptocurrency

74:46

and a will be at loss because a has to

74:50

consume huge amount of energy let's say

74:52

he has a consumed use amount of energy

74:53

in order to create this malicious block

74:55

then he has to pay a huge amount of

74:57

electricity bill so a will be at loss so

75:01

this is how our consensus protocol Works

75:03

in order to have correct non-malicious

75:06

block okay so if a block is added at the

75:09

end of the blockchain also then also we

75:11

have mechanism to prevent from a block

75:15

which is malicious in nature now there

75:17

can be a question that verification and

75:19

validation like since this adding of

75:21

blockchain this is adding off a block in

75:23

a blockchain takes a lot of time okay it

75:25

takes around an average of 10 minutes

75:27

but does verification and validation

75:30

also take that amount of time because e

75:33

b c e f will also verify and validate

75:35

this blog right definitely consensual

75:36

protocol will run but also BCF will also

75:39

take measures in order to verify and

75:40

validate this block so is this

75:43

verification and validation is is this a

75:45

time taking process so no this is not a

75:47

Time tracking process creation of a

75:49

block is a time taking process but

75:51

verification and validation is a very

75:52

easy process it's like you are giving a

75:55

ux who like you have like I have given

75:57

you a problem you have to solve this

75:59

Rubik's Cube and anyone right anyone

76:02

from the network can identify that

76:03

whether this Rubik's Cube has been

76:05

solved in a correct way or not right you

76:06

can just look at this Rubik's Cube you

76:08

can turn around and you can see that

76:09

okay this Rubik's Cube is has been

76:11

solved in a correct way but to solve

76:13

this Rubik's Cube is our actually time

76:15

taking process and solving this Rubik's

76:17

Cube is like creating a block and to

76:19

identify whether this Rubik's Cube is a

76:21

correct one or not whether the Rubik's

76:23

Cube has been solved or not is

76:25

verification and validation which is a

76:27

very easy process as solving a Rubik's

76:30

Cube hi welcome to the second video of

76:32

consensus protocol in this consensus

76:34

protocol video we are going to talk

76:36

about the other use of consensus

76:38

protocol so in the previous video we

76:40

talked about prevent attacks how can

76:42

this is a protocol help us in preventing

76:44

attacks from the hackers now we are

76:46

going to talk about competing chain

76:48

problem let us understand this with the

76:49

help of an example so this is our

76:51

blockchain Network right and let us say

76:54

a

76:55

as well as C created a block at the same

76:59

time this type of thing can happen a can

77:01

pick a transaction okay so to become a

77:04

transaction there is a place called

77:06

mempool which we are going to talk about

77:07

in our upcoming videos but for now

77:09

mempool is an area from where a has

77:11

picked a transaction C has also picked

77:13

the transactions from the from this

77:15

mempool and they started solving a

77:17

mathematical problem and now they have

77:19

solved this mathematical problem at the

77:21

same time this type of thing can happen

77:22

because all these people are at

77:24

different part of the world and they are

77:25

competing with each other right so it

77:28

may happen that a has solved a

77:30

mathematical problem at the same time

77:32

when C has solved the mathematical

77:34

problem so now a is having a different

77:36

block and C is also having a different

77:38

block right now what will happen after

77:40

this after this evil and c will transfer

77:44

this information to its nearest nodes

77:47

right we can we we say the system at

77:50

nodes in blockchain terminology we call

77:52

these systems as nodes or you can say

77:53

system also but we call them as nodes in

77:56

a blockchain network so c will transfer

77:58

this information to B that okay I have

78:00

created a block a will transfer this

78:01

information to F and E that okay I have

78:04

created this orange block okay now like

78:07

why I am assuming that c is transferring

78:09

this information to B and not to E and F

78:11

we are assuming here we are assuming

78:13

here that uh for c b is the close B is

78:17

the closest node and for a f and E are

78:20

the closest node okay so that's why a is

78:23

able to transfer this information first

78:25

to F and E and C is able to transfer

78:27

this information first to B since C is

78:30

close to B okay so this is a assumption

78:32

we are taking here

78:34

now once this transfer of information

78:35

will be done then what will happen F and

78:38

E will create a block at their own end

78:41

means they will verify and will date

78:42

this block and they will see that okay

78:44

this block is good so they will add this

78:45

block to their blockchain in the same

78:47

way B will also verify and validate the

78:48

block of c and it will say okay it is

78:50

good so he will also add this block to

78:54

its blockchain okay so this is how our

78:56

blockchain network will look like

78:59

now the problem will arise is when b and

79:02

c will transfer this information that

79:04

they have a block purple color block and

79:07

a e and f should add this block to their

79:09

blockchain and AEF will also do the same

79:12

they will also this transfer this

79:14

information that they have created a

79:15

block they have added this Block Orange

79:17

block and they will want that B and C

79:20

should add this block to their

79:22

blockchain so information will it will

79:25

look something like this where B is

79:27

transferring this information to A and C

79:30

is transferring this information to E

79:31

and F where E and F are transferring the

79:33

same information to C B and all this is

79:37

how the transfer of information will

79:39

take place and this is not good because

79:40

now there is a conflict right so now

79:44

which blockchain block should be added

79:47

whether B will add the block of a e and

79:50

f that is orange block or whether a e

79:53

and f will add this purple block now the

79:55

question arises right now according to

79:57

our consensus protocol which so ever

80:00

network will have the longest blockchain

80:03

remember which so ever network will have

80:06

the longest blockchain that blockchain

80:08

will be adopted and the blockchain that

80:12

is having the short blockchain that

80:14

blockchain block will be discarded and

80:16

you will understand this with the help

80:17

of an example so just don't worry in

80:20

this case if you will see a enf are part

80:22

of a network right since they are close

80:24

to each other and they have the same

80:25

block so let's say that a e and f are

80:27

the part of our Network and B and C are

80:30

part of a different network

80:32

and we are assuming that each of these

80:34

systems that are present in our

80:36

blockchain Network have the same power

80:38

to solve the mathematical problem right

80:39

as we discussed in our mining video

80:41

right that all these people solve a

80:43

mathematical problem since they are

80:44

minors so we are assuming that each of

80:46

these systems that that is present here

80:48

that are present here are having the

80:50

same same power to solve the

80:53

mathematical problem okay

80:55

now since a e and f are a network and

80:58

they are in majority so they will have a

81:01

computational power of solving a

81:03

mathematical problem of three right

81:05

because one of this one of we are

81:07

assuming that uh this having a problem

81:09

this has the capability of you know

81:11

solving the mathematical problem of one

81:13

this is also having the mathematical

81:14

solving the mathematical problem

81:15

capability of one this is also having

81:17

one this is also having one this is also

81:19

having one so the whole network have the

81:21

capability like a e and f have the

81:23

capability to solve the mathematical

81:25

problem of three right in the same way b

81:28

and c will have uh the computational

81:30

problem to solve that mathematical

81:32

problem of two okay so definitely a e

81:35

and f are more powerful in in this case

81:38

right

81:39

so what AEF will do they will add

81:43

another block to their blockchain so in

81:45

this case we are assuming that e has

81:48

added e has created a block and E has

81:50

added this block to its blockchain now e

81:52

will transfer this information to a and

81:54

F and they will also add this block to

81:56

their blockchain now in this case if you

81:59

will see in this case if you will see

82:01

which of these which of these Network

82:03

have the longest chain so you can

82:07

clearly see that a e and f have the

82:10

longest chain right they have one two

82:12

three four five six blockchains means

82:13

six blocks in the blockchain while B and

82:16

C has have only five blocks in the

82:19

blockchain right

82:21

so as we discussed according to our

82:23

consensus protocol we will only respect

82:26

we will only consider the longest

82:29

blockchain and we will discard the

82:31

blocks of our small blockchain now in

82:34

this case since AEF has have the longest

82:38

blockchain so B and C blocks will be

82:42

discarded so the purple block that B and

82:45

C has created will be discarded so the

82:47

transaction that were present in BNC

82:50

blocks right in the purple blocks they

82:52

will be again transferred back to the

82:54

mempool okay mempool is an area where

82:55

all the transactions are kept so this

82:57

these transactions that are like these

82:59

blocks the transactions that are

83:01

discarded for now these blocks that are

83:03

discarded for now all the transactions

83:05

of these discarded block will be again

83:07

added back to the mempool so that again

83:09

mining can be done on them so that again

83:11

those transaction can be you know can be

83:14

processed in a block okay

83:17

so these blocks that you are seeing on

83:19

your screen these blocks are actually

83:20

called orphan block these are called

83:23

orphan block or you can say them as

83:25

discarded block now once these blocks

83:28

will be discarded BC will add the blocks

83:32

these orange blocks that are being at

83:34

that that are a part of this a e and f

83:36

Network so b and c will add these blocks

83:40

to their blockchain so that a

83:42

consistency among all the people of

83:45

these blockchain network of this

83:46

blockchain network can be maintained and

83:49

these blocks again as I said these

83:51

blocks will be called as orphan block

83:52

and these blocks will be discarded all

83:55

the transactions that were present in

83:56

these discarded block will be again

83:57

added to the mempool so that again those

84:00

transaction can be processed by the

84:01

miners in the next mining process okay

84:04

and this is how our

84:07

blockchain network will look like so

84:09

just remember always and always the

84:12

longest chain will win always the

84:15

longest chain will and the shortest

84:17

chain the block that the blockchain that

84:19

is having the short chain right in that

84:21

case the blocks will be discarded like

84:23

as we have seen in this case okay if you

84:26

are finding it a little bit complicated

84:27

just rewind back this video you will

84:30

understand it I guarantee you okay

84:32

so this is how our network will look

84:34

like a beautiful blockchain Network now

84:37

let us see some of the important points

84:39

related to our consensus protocol so the

84:42

consensus protocol of blockchain is much

84:45

better alternative to our Byzantine

84:46

fault tolerance what is a Byzantine

84:48

fault tolerance as we discussed in our

84:50

Byzantine a generous problem right in

84:52

our Byzantine General problem for that

84:54

General problem our solution was

84:57

proposed and that solution was this

84:59

Byzantine fault tolerance and for our

85:01

Byzantine fault tolerance the majority

85:03

of votes that we require is of 66

85:06

percent okay while in case of our

85:08

consensus protocol we only need majority

85:11

of 51 percent so our consensus protocol

85:14

is a much better alternative to our

85:16

Byzantine fault tolerance because fault

85:18

tolerance requires a majority of 66

85:21

percent vote while our consensus

85:23

protocol only requires 51 percent second

85:26

all the transaction in the open block

85:28

will be dropped as we have seen also

85:30

these transactions will again go back to

85:32

the member pool so that the miners can

85:33

again solve for it and the miner that

85:35

had mined the block right uh if you will

85:38

remember that c has created that purple

85:40

block right so that purple block was

85:42

discarded from the blockchain network so

85:45

for that she will not be getting any

85:46

type of reward because that block got

85:48

discarded from the blockchain network by

85:51

the consensus protocol so remember this

85:52

point also and third point is

85:56

for this type of situation if you might

85:58

have heard this thing that for for

86:00

whenever you do a Bitcoin transaction

86:02

you must wait for six block confirmation

86:04

and the reason for this is this only

86:06

that there can be conflicts in the

86:09

blockchain network so you do not want to

86:11

be the part of that conflict right let's

86:13

say a has transferred you some Bitcoin

86:15

okay now you are thinking that a has

86:17

done this transaction and now you will

86:19

be receiving the Bitcoin but after some

86:21

time the block that was having that

86:23

transaction got discarded from the

86:25

blockchain network because that block

86:26

was the orphan block right that block

86:28

was not a part of the longest thing so

86:30

it was discarded from the network in

86:32

that case you will not be getting any

86:33

like Bitcoin from a right so you must

86:36

wait for six block confirmation and then

86:39

and then only you should be you know

86:41

happy that okay now you have received

86:42

the transaction but we will talk about

86:44

like this six block confirmation more in

86:46

our upcoming videos this is just to give

86:48

you an you know overview of this that

86:50

why you should wait for six block

86:52

confirmation whenever you are doing any

86:54

Bitcoin transaction hi not only in this

86:57

video we are going to start with what is

86:58

bitcoin and why do we need it but let me

87:01

remind you that this is the starting of

87:04

our second module and that is

87:06

cryptocurrency so in the starting only I

87:09

told you right that we are going to

87:10

divide our course into three modules and

87:12

this is the starting of our second

87:14

module which we are going to start with

87:16

what is bitcoin and why do we need it so

87:19

let's start

87:20

so we are going to understand the

87:22

history of Bitcoin we are going to

87:24

understand why why do we need Bitcoin

87:27

what is the problem with our current

87:29

Financial system okay so let's start

87:32

with this

87:33

so all these things started in year 2008

87:37

when U.S economy was very bad nearly 9

87:42

million people lost their job and nearly

87:45

1.8 million small businesses got closed

87:48

and not only this Wall Street of USA

87:51

stock market of USA you can think of it

87:54

like that was on its knees

87:57

and the greatest Bank the biggest bank

88:00

of USA Lehman Brothers Bank are well a

88:03

billion dollar valuation bank got closed

88:06

during this period of time in USA and

88:10

you can understand the impact of that

88:12

situation by this picture where people

88:15

were revolting against the government

88:17

people were revolting against the banks

88:19

because they have lost all their savings

88:22

because they the people who are just

88:24

going to retire they have lost all their

88:26

retirement money people who were who

88:29

wants one who want who were saving for

88:31

their child education has lost all their

88:34

money child education money people who

88:36

are going to buy home they do not have

88:38

any money left in order to buy home so

88:42

situation was very very painful at that

88:46

point of time

88:47

now you must be thinking why all these

88:50

things were happening and the reason for

88:52

this is Banks the banks of USA because

88:56

of the foolishness of banks U.S economy

88:59

was in such a bad situation and not only

89:03

this

89:04

the U.S government was supporting this

89:07

foolishness of banks right U.S

89:10

government was supporting these

89:12

foolishness of Banks and now let us

89:14

understand what these Banks were

89:16

actually doing as you all know Banks

89:19

make profit by lending you money right

89:21

so when they lend you money they charge

89:23

interest on it and that's how they make

89:25

profit now in year 2008 or a year before

89:29

that

89:30

Banks started lending money to people

89:33

who were not capable enough to return

89:36

back the money

89:38

now you must think why they will do that

89:40

like what was the reason for doing that

89:42

and the reason was simple greed

89:45

according to banks at that point of time

89:48

they thought that if we are lending

89:50

money to someone they will repay back

89:52

who will not who is not going to repay

89:54

back the money so they were lending

89:57

money to people or anyone who was just

90:00

coming to the bank and asking for loans

90:02

and these type of loans are called

90:04

subprime loans means when you are

90:06

lending money to someone who is not

90:08

capable capable enough to return back to

90:11

return you back the money so since they

90:15

lended money to people who are not

90:17

capable enough to return back the money

90:19

so after some point of time bank started

90:23

going into loss and that simple right

90:25

because they have lended money to people

90:27

who will not who are not capable enough

90:29

to return back the money so they start

90:31

having losses

90:32

now to prevent situation like these the

90:36

U.S government start sending money to

90:39

these Banks just imagine because of the

90:41

foolishness of Bank all these things

90:43

started

90:44

and U.S government were not was not

90:47

punishing them but rewarding them with

90:49

money they were lending them money they

90:51

were giving them money so that the banks

90:53

can operate in a proper way now you must

90:56

be thinking what kind of just is that

90:57

because of the banks we were we the USA

91:00

was in that situation and U.S government

91:01

is supporting that and yes that's true

91:03

this is the true story and after this

91:05

incident a question was raised question

91:10

that can we trust stock Banks can we

91:13

trust our government when it comes to

91:15

money matters and the answer was clearly

91:18

no and do not think that this was the

91:20

first mistake or do not think that this

91:22

this was just a mistake which has which

91:25

just happened for the first time no this

91:26

this is not something which has happened

91:28

for the first time if you will look back

91:30

to the history you will see that a lot

91:32

of time these type of things has

91:33

happened in the history also where Banks

91:36

and government were doing something both

91:39

of them got greedy or something and they

91:41

start manipulate they started

91:42

manipulating the money situation of that

91:45

particular country of that particular

91:47

area and at that time only and at that

91:50

time only when situation was so worse

91:53

when everything was getting destroyed at

91:56

that time only Bitcoin was born and who

92:00

is the inventor of Bitcoin Satoshi

92:02

Nakamoto now nobody knows who Satoshi

92:05

Nakamoto is whether he's a person with

92:08

whether it is a team of person whether

92:11

he is a male or a female nobody knows

92:15

anything about sadoshi Nakamoto but he

92:18

is the inventor of Bitcoin

92:21

now what is bitcoin right we have

92:23

understood like like why like what is

92:27

the problem with our current Financial

92:28

system it is

92:30

it is under the control of our

92:31

centralized authorities like Banks or or

92:34

governments now let us understand what

92:36

is bitcoin how it is different from

92:38

these banks these garments because these

92:42

are the people who are actually

92:43

controlling the money the they they

92:44

control the supply of money they control

92:47

everything related to money let us

92:49

understand how Bitcoin is different from

92:51

these uh money right these currencies

92:54

actually Fiat currencies actually

92:57

Bitcoin is a decentralized digital

93:00

currency without a central bank or

93:03

single administrator that can be sent

93:05

from user to user on the peer-to-peer

93:09

Bitcoin Network without the need for

93:11

intermediaries

93:12

so if you will look at this Bitcoin it

93:16

is decentralized

93:18

cryptocurrency decentralized what do I

93:21

mean by decentralization it means that

93:23

nobody is controlling the Bitcoin there

93:26

is no single person who has a control

93:28

over Bitcoin it is a digital currency

93:30

okay so currently the currency that we

93:33

have is a fiat currency which is

93:35

controlled by the government it is a

93:37

digital currency it does not require any

93:39

Central Bank or any single administrator

93:41

and it can be sent over a P2P Network we

93:45

have talked about a P2P Network right so

93:47

it can be sent from one user to another

93:49

using a P2P Network and it does not

93:53

require any intermittarius

93:55

and it uses a technology called

93:58

blockchain and we will see the

94:00

difference between Bitcoin and

94:01

blockchain in an upcoming video so don't

94:03

worry about it but for now blockchain is

94:05

a technology that is being used by this

94:08

Bitcoin

94:09

this Bitcoin uh cryptocurrency okay

94:13

so this is how

94:14

for a Bitcoin like this is how a Bitcoin

94:16

Network looks like where people are

94:18

connected with each other uh it is a P2P

94:20

Network right where you can see that

94:22

people are connected with each other and

94:24

people can transact cryptocurrency with

94:26

each other it is a decentralized

94:28

distributed Network so know anybody who

94:31

wants to send money and who anybody who

94:33

wants to actually send Bitcoin receive

94:35

Bitcoin can can happen over this network

94:38

now the question next question that you

94:40

might have in your mind that if we talk

94:42

about our fiat currency fiat currency

94:45

trust is based on our government if the

94:47

government of a country is well then the

94:49

fiat currency is also good right if the

94:51

government is is in an unstable position

94:54

then the Fiat this VR currency will be

94:56

worthless okay and we will see the

94:58

example of this also in our upcoming

94:59

videos but for now just remember that

95:02

the trust of rpr currency is actually

95:04

based on our government

95:05

but when we talk about our Bitcoin

95:08

when we talk about our Bitcoin the trust

95:11

is on these algorithms these

95:15

mathematical problems with the help of

95:17

which this Bitcoin is actually built

95:20

and don't worry you do not need to learn

95:22

all those mathematical things there is

95:24

no mathematical problem to solve I know

95:25

many of you must be thinking oh no it

95:27

doesn't contain maths no it does not

95:29

contain maths just don't worry about it

95:30

I'm just trying to tell you here is that

95:33

Bitcoin uses mathematics okay

95:36

and yes if you want to learn more about

95:38

this financial situation of us in 2008

95:41

how Banks how this type of situation

95:44

arise in USA because of the foolishness

95:47

of banks I will recommend you this movie

95:48

this is a great movie all these actors

95:51

are great actors so you must watch this

95:54

movie if you want to learn more about

95:55

and there might be this question also

95:58

can this mathematical uh equation can be

96:00

wrong or algorithm can be wrong so let

96:02

me tell you like 2 plus 2 is equal to 4

96:05

right it does not matter whether you are

96:06

doing two plus two equal two plus two at

96:09

in USA in India or in Brazil whatever

96:13

place you choose it is always be going

96:15

to 4 right in the same way this

96:17

mathematical equation these algorithms

96:20

that are used in order to build this

96:21

Bitcoin Works 100 percent all time okay

96:25

so you are not trusting this no any

96:28

single person or something you are

96:30

actually trusting this equation this

96:32

algorithm and this equation the beauty

96:34

of this equation is that it is totally

96:36

available open source you can read about

96:39

it so it is not something which is

96:41

hidden from you you can go and just type

96:43

Bitcoin GitHub repository and you can

96:46

see all the source code available there

96:48

okay and it is not that it has just

96:50

started it is since 2008 a lot of people

96:53

has have already seen this open source

96:56

code but if you are thinking look I

96:58

cannot trust this so just go and type

97:00

Bitcoin GitHub repository and you will

97:03

you can find all the documentations all

97:05

the mathematical codes that are being

97:07

used in order to build this Bitcoin okay

97:10

and this is how Bitcoin ecosystem looks

97:12

like we have a miner who solves the

97:14

mathematical problem in order to create

97:16

a block we have nodes nodes means though

97:19

these are the people who are actually

97:20

transaction transacting means these are

97:22

the people who are sending Bitcoin from

97:24

one person to another so this is these

97:26

are called nodes okay so the system that

97:29

you see are actually nodes okay I'm just

97:31

representing it with these person but

97:33

definitely these are actually computers

97:34

only your computers or your lab laptops

97:37

are actually working as nodes are those

97:39

laptops can also work as miners also

97:41

it's all it all depends upon the like

97:43

what do you want to be so you have to

97:45

install a software Bitcoin client

97:46

software and then you can choose either

97:48

to be a miner or you can choose either

97:50

to be a node if you have become a node

97:51

you will be doing regular transaction

97:53

very fine and validation validation of

97:55

the blocks if you will become a miner

97:57

then you have to solve the mathematical

97:58

problem then we have large mines right

98:01

and we will talk about these large mines

98:03

which are actually using the whole like

98:06

a group of miners are there who is

98:08

solving the these mathematical problem

98:10

in order to create the plot and this is

98:12

the mining pool means where group of

98:14

miners are you know these group of

98:16

miners are working together in order to

98:18

solve so these large manners are

98:20

actually these mining pools only so they

98:22

form a mining pool in order to uh do

98:24

this

98:25

in order to solve this mathematical

98:27

problem in order to create a block so

98:30

when we talk about blockchain right

98:31

blockchain is actually a technology

98:35

as we have discussed in the definition

98:37

of blockchain network right not

98:38

blockchain Network in the definition of

98:40

blockchain where we talked about that

98:42

blockchain is a distributed immutable

98:44

Ledger right so this is the definition

98:46

of blockchain if it is a technology

98:48

well we when we talk about Bitcoin right

98:51

Bitcoin is actually a protocol slash

98:54

coin not only Bitcoin we have other

98:57

protocols also like waves we have

98:59

ethereum and definitely other Protocols

99:02

are also there and all these Protocols

99:04

are actually using blockchain as a

99:07

technology okay now what are these

99:10

protocols Protocols are basically rules

99:13

like if we talk about in our web 2 world

99:16

in our internet world we have different

99:18

set of protocols we have HTTP protocol

99:21

we have TCP protocol we have UDP

99:23

protocol so they are different protocols

99:26

which defines like how we are going to

99:29

communicate over the Internet how the

99:31

file transfer over the internet will

99:33

take place so each and every things is

99:35

actually being done on the internet

99:36

using these protocols in the same way

99:39

for our web 3 world for our blockchain

99:42

world we have these different set of

99:44

protocols which defines how people who

99:47

are connected to the blockchain network

99:49

are going to communicate with each other

99:51

how many cryptocurrencies they will be

99:53

like you know how like how minor will be

99:55

ordered with the cryptocurrencies how

99:57

mine are going to solve a mathematical

99:59

problem all these things are actually

100:01

rules which are implemented in this

100:03

protocols okay

100:05

so for example you can understand in

100:08

this in this way also that technology

100:10

when we say blockchain blockchain is

100:13

just like YouTube okay YouTube is a

100:15

platform right YouTube is a technology

100:16

on which we can have different set of

100:19

videos so these protocols that you are

100:22

seeing right these are like your videos

100:23

so you can have different varieties of

100:26

videos different set of protocols uh

100:28

like different varieties of videos over

100:30

the blocks over the YouTube in the same

100:32

way you can have different protocols on

100:34

this blockchain technology

100:36

now let us see this more with the help

100:38

of an example so we are on the site of

100:41

blockchain.com Explorer so here you can

100:43

see that we have different blocks of our

100:45

Bitcoin blockchain so this is using our

100:48

blockchain technology so let me click on

100:51

one of the blockchain so let me show you

100:53

this okay let me open this in new tab

100:56

let us see this okay so this is how our

100:58

block of our blockchain looks like we

101:00

are going to talk about in great detail

101:01

about this in our upcoming videos but

101:03

for now just have a look at it so this

101:05

is block number seven five two two three

101:08

five three okay and this is the hash as

101:11

we discussed our blog consists of a hash

101:13

this is the height this is the miner

101:15

which is unknown currently this is the

101:17

fee reward the amount the miners has

101:19

received after mining this block so you

101:21

can see that they are different set of

101:22

fields right and these are all the

101:24

transactions that are present in our

101:25

blog so as I said right a block can have

101:28

multiple transaction so all these things

101:30

are done via blockchain technology by

101:33

using blockchain technology now let us

101:35

have a look at Bitcoin protocol so this

101:38

is our Bitcoin protocol okay so this is

101:40

the GitHub repository and in this just

101:43

search for Bitcoin

101:45

uh Bitcoin GitHub just type Bitcoin

101:47

GitHub and you will have this repository

101:49

and inside this you will see the rules

101:52

and regulations are written about the

101:54

Bitcoin protocol for ethereum it is

101:55

ethereum uh protocol and for that there

101:58

can be different set of rules for

102:00

Bitcoin there are different set of rules

102:01

okay so you can see this a lot of files

102:04

are there right like chain dot CPP where

102:07

each and everything about how

102:09

transactions will be done on bitcoin how

102:11

people are going to communicate over

102:13

Bitcoin each and everything is present

102:15

in this Bitcoin protocol okay so this is

102:18

what uh Protocols are all about I hope

102:21

you understand about these protocols hi

102:24

let's talk about bitcoin's monetary

102:27

policy now before understanding what is

102:29

bitcoin's community policy let us

102:30

understand what is a monetary policy so

102:33

monetary policy is actually something

102:35

which is controlled by the government of

102:37

our country okay so let's say if we talk

102:40

about a government it is in government

102:42

control that how much supply of money

102:45

they want in the

102:47

country so government has a machine with

102:51

the help of which they can print money

102:52

right we all know that and how much

102:55

supply of money is needed in a country

102:57

is actually decided by the government of

102:59

our country so the total supply of money

103:01

is in the hand of our government right

103:04

so they can they can increase the supply

103:06

of money they can decrease the supply of

103:08

money it is all under the control of our

103:10

government and this is something not

103:12

very good and we will see that why it is

103:14

but for now I hope you understand what

103:16

is a monetary policy let us understand

103:18

bitcoin's monetary policy so Bitcoin

103:20

monetary policy has two things first the

103:23

halving and another thing is block

103:25

frequency let us understand these one by

103:28

one so what is hopping so according to

103:30

bitcoin monetary policy the Bitcoin

103:33

reward that is given to the miners will

103:36

get half after every four years so if

103:39

you will see in 2009 the reward was 50

103:43

new Bitcoin in 2012 it is 25 new Bitcoin

103:46

in 2016 is is 12.5 Bitcoin so for every

103:50

four years the reward is getting half of

103:54

the previous year right so 50 divided by

103:57

225 25 divided by 2 12.5 and 12.2 root 5

104:00

divided by 2 is 6.25 and not only this

104:03

the block number are also responsible so

104:05

for every 200 and I think two two lakh

104:09

now 2 lakh 10 000 block 2 lakh ten

104:12

thousand block you will see that uh the

104:15

Bitcoin reward system the rewarding

104:18

system that is given to the miners will

104:20

get half right so it is 2 lakh ten

104:23

thousand then it is 4 lakh ten thousand

104:25

so this is like this okay and after a

104:29

particular time that is after Bitcoin

104:33

has hit 21 million in total Supply at

104:37

that point of time Bitcoin will get

104:39

exhausted means the total supply of our

104:42

Bitcoin is only 21 million and it is

104:46

estimated that by 2140 we will reach

104:49

both at the at this number when we will

104:51

have 21 million Bitcoin in our supply in

104:54

our like in our Market okay and after

104:56

this point of time there will be no no

104:59

printing of Bitcoin you can think of or

105:00

no rewarding of Bitcoin to the miners

105:02

now you must be thinking if there will

105:04

be no reward for the miners right

105:06

because after 21 million there will be

105:07

no reward for the miners because no no

105:09

new Bitcoin will be rewarded so how

105:12

Miner will earn money

105:14

then Miner will earn money from our

105:16

transaction fee so whenever you do a

105:18

Bitcoin transaction apart from these

105:20

reports miners also get a transaction

105:22

fee commission okay so you provide them

105:24

a transaction fee so by that uh it is

105:27

estimated that by that point of time

105:29

there will be various people like there

105:32

will be many people who will be doing

105:34

these Bitcoin transaction and from that

105:36

transaction fee only bit the miners will

105:39

make profit okay now there must be this

105:42

question also that why there is a supply

105:43

of Supply cap of 21 million right why

105:47

not infinite number of Bitcoins and the

105:49

reason for it like the reason that I can

105:51

think of is that by limiting the supply

105:54

of Bitcoin

105:55

we are actually making the value of

105:57

Bitcoin more like gold silver these are

106:01

our precious metals and these are very

106:03

rare right these are very rare you

106:05

cannot print gold in your home you

106:07

cannot create a silver in your home in

106:09

the same way in the same way

106:12

the supply cap of Bitcoin is maintaining

106:15

this that this Rarity thing so that if

106:17

the supply of something just remember

106:18

this the simple economic principle that

106:20

if the supply of something is less than

106:22

the demand then the demand if the supply

106:24

of something is less than the demand

106:26

then the value of that thing increases

106:28

right

106:29

and in the case of Bitcoin I think

106:32

Satoshi was thinking that why not make

106:34

Bitcoin just like gold just like our

106:37

silver means let Bitcoin be rare in on

106:40

Earth means do not have infinite Bitcoin

106:43

just have rare amount of Bitcoin on on

106:45

our you know on our Earth okay

106:48

and if we do not have a supply then

106:50

situation like these this can also

106:52

happen so this is a 100 trillion dollars

106:55

note which is actually being used in

106:57

Zimbabwe just to buy some loaf of bread

106:59

yes this is true so what actually

107:02

happens you can read about this in much

107:05

more detail on Wikipedia that Zimbabwe

107:08

started printing money

107:10

at a much faster rate means the

107:13

president of Zimbabwe thought why not to

107:15

just equally distribute money to all the

107:16

people so that there is no gap between

107:18

rich and poor so he started printing

107:20

money so as he started printing money

107:22

the supply of money got increased but

107:25

the demand was not increasing at that

107:28

rate as Supply so due to which since

107:30

Supply was more and demand was not that

107:34

much the value of our currency the value

107:36

of Zimbabwe currency got decreased and

107:39

due to which we the due to which

107:41

Zimbabwe needed this 100 trillion

107:43

dollars note in order to just buy some

107:46

loaf operate and I think this is also

107:48

one of the reason that Bitcoin has a

107:51

limit of 21 million cap so that this

107:54

type of situation does not happen in the

107:55

future and second monetary policy of bro

107:58

of what Bitcoin is that on an average it

108:01

will take

108:02

10 minute to create a new blog okay so

108:06

if you are thinking that you can create

108:07

a block you know in just one second or

108:09

two seconds

108:11

it is not going to happen it will take

108:13

around an average of 10 minute in order

108:17

to create a new block so this is also

108:19

one of the monetary policy of Bitcoin

108:22

given in the Bitcoin algorithm and now

108:25

like who is deciding all these things

108:27

right who is deciding the block

108:28

frequency who is deciding this uh

108:30

halfing period each and everything is

108:32

actually being controlled by the Bitcoin

108:34

algorithm there is no Central Authority

108:36

who is controlling these like this thing

108:38

uh this is all done this is all done by

108:41

the Bitcoin algorithm and this is the

108:42

beauty of Bitcoin right there is no

108:44

Central Authority who is controlling all

108:46

these this is totally dependent upon how

108:48

the miners are uh mining Bitcoin or how

108:52

the people are actually using bit why

108:53

now in this video we are going to talk

108:55

about mining in much more detail so in

108:59

our previous videos we have talked about

109:01

mining right we have seen a very quick

109:04

overview of mining let me give you a

109:06

summary of that so people who haven't

109:08

watched that so they can get a overview

109:10

of that so in mining when we do a simple

109:14

transaction that transaction go to the

109:16

spool of Miners and these miners start

109:18

solving a mathematical problem The Miner

109:21

who solved this mathematical problem

109:22

first gets the ability to create a block

109:25

okay and after this block is created

109:27

this block goes to the these these set

109:31

of minus the ones again so that they can

109:33

verify and validate this block whether

109:35

this block is a malicious block or not

109:36

and once they find that okay this block

109:38

is not a malicious block they add the

109:41

add this block to their blockchain and

109:43

this Miner who has solved this

109:45

mathematical problem first get rewarded

109:47

and the block is added to the blockchain

109:49

so this was this was just quick overview

109:51

of blockchain mining I hope you have

109:54

watched the previous video of blockchain

109:55

mining where I have discussed about this

109:57

in much more detail now let us

110:00

understand this mathematical problem

110:02

what is this mathematical problem what

110:04

miners are actually solving for like

110:06

whether this mathematical problem is

110:07

algebraic mathematical problem calculus

110:09

mathematical problem or integration

110:11

mathematical problem just joking how all

110:13

these things are not there but yes let

110:15

us understand what type of mathematical

110:17

problem are these minors are actually

110:19

solving for

110:21

now to understand this we have to

110:22

understand a new field that is called

110:25

nonce so till now we have talked about

110:28

block number data previous hash and hash

110:30

right but there is also a new field that

110:33

is called nonce now

110:36

if you will see these different fields

110:38

right this block number uh we will talk

110:40

about this hidden field this data

110:43

previous hash so these were the fields

110:45

that we give to our chart of physics

110:47

algorithm and this chart if it is a cell

110:49

bottom then produces a hash

110:52

now if you will look at these fields

110:54

block number data and previous hash all

110:56

these fields are actually fixed appeals

110:59

what do I mean by fix means the miner if

111:02

you are a miner you cannot change

111:03

anything inside this block number right

111:06

because block number is something which

111:08

is given by the algorithm right so if

111:10

block number five is created after that

111:12

block number six will be created so you

111:13

cannot say that okay after block number

111:15

five I want to create a block number

111:16

seven so this cannot be possible you

111:18

cannot change the data right you cannot

111:20

change the transaction if a is doing

111:21

some transaction to B you cannot say

111:23

that no C is doing some transaction to B

111:25

so you cannot change the date of a block

111:27

you cannot change the previous hash as

111:28

well because previous has actually

111:30

depends upon the previous block right so

111:32

because previous hash contained the hash

111:34

of the previous block so this can all

111:36

this can also not be changed right so

111:40

all these fields are fixed we cannot

111:41

change them but miners require a field

111:45

which they can change so that they can

111:48

solve this mathematical problem which we

111:50

will discuss in an Optimum video but to

111:53

solve this mathematical problem they

111:55

need a feel and that field is nulls now

111:59

nonce is something which gives power to

112:01

the miners so that they can solve that

112:05

mathematical problem which we are going

112:06

to talk about okay now as I said block

112:09

number data cannot be changed previous

112:11

hash cannot be changed but nonce is a

112:13

number which we can change and if we can

112:16

change the nodes we can also change the

112:19

output of our chart with X algorithm

112:21

right because as we have as we have

112:22

discussed about chart of physics

112:23

algorithm as we change the input the

112:26

output of chart of this x algorithm also

112:28

gets changed right

112:31

so let's say this is these are some

112:33

fields that are given in our blog some

112:36

fixed field given in our blog block

112:37

number six some data some transaction

112:39

some previous hash okay now if I have to

112:43

generate this hash if I have to generate

112:45

the chart definitely I have to give all

112:46

these fields to the chart of physics

112:48

algorithm right so let's say if the

112:50

nonce is 23 and then we have a hash of

112:53

this zero zero zero zero one b a 1. now

112:56

since these fields are fixed and let's

112:58

say if I want to change the hash what I

113:00

will do I will change the notes so as

113:03

soon as I will change the nodes you can

113:05

see that we have a different hash if I

113:07

will change the nouns to 3 so I have a

113:09

different hash I cannot change the

113:10

remaining fees but I can change the non

113:12

so I am changing it so that I can have a

113:14

different Dash and why we are doing this

113:15

you will understand let us do it

113:17

practically also so this is a website

113:19

demo blockchain.org block if you will

113:23

come to this website and let's say I

113:25

have some data let's say a is sending

113:29

5 Bitcoin to B definitely this is how

113:32

this is not how transaction actually are

113:34

there in the black blockchain but just

113:36

for Simplicity I'm doing this okay so

113:39

now as you can see that as soon as I

113:40

have changed the data we have a

113:42

different type of hash right if I will

113:43

remove this let me remove this so you

113:45

will see that this is a different kind

113:46

of hash if I am having some data we have

113:48

a different kind of hash and as soon as

113:50

I am changing the data we have this

113:53

color of the block gets pink right now

113:56

why it is pink because this is not the

113:59

correct nonce for this block okay so the

114:02

miner what Miner will do he will solve

114:05

our nonce which is going to be perfect

114:09

which is going to be correct so that

114:12

this block gets green again so let me

114:14

click on this mime so that you can see

114:16

that I am clicking on mine and you will

114:18

see that our nonce will get changed and

114:20

as soon as our nouns will get changed

114:22

you can see that our block got green and

114:24

hash also got changed right

114:26

so as I said nonce is a number which is

114:28

in under the control of minor Norms can

114:31

be changed by the miners whenever they

114:33

want so that they can change the hash if

114:35

I will let's say again change some data

114:37

so you can again see that this what pink

114:39

in color now I have to solve this

114:40

mathematical problem and to solve this

114:42

mathematical problem I have to generate

114:44

a nonce so I will click on this mind

114:46

button and this will help me in

114:48

generating a nonce which will be correct

114:50

in order to get this block color again

114:53

green means this block then will become

114:55

a valid block so if it if it was a pink

114:58

block it was not a valid block it was a

114:59

malicious block because there was some

115:01

change in the data but now it is a

115:03

again uh a correct block right not a

115:07

malicious block if I will change the

115:09

block number for now so you can see

115:10

again it's it's pink right if I have to

115:13

again click on mine again nonce will get

115:15

changed nothing will else will get

115:16

changed and now we have a green plot so

115:19

this is what nonce is but definitely we

115:22

are going to talk about much more in our

115:24

upcoming videos but I hope you have

115:26

understood how non sexually Works hi so

115:29

in the previous video we talked about

115:30

nons right and now in this video we are

115:33

going to talk about how nons are useful

115:36

in mining and not only that we are going

115:38

to also see how actually mining takes

115:41

place so let's start now what is nonce

115:45

let us understand non's first definitely

115:47

we have seen nonce in great detail in

115:49

the previous video but let's see in the

115:50

point of view of mining okay so nonce is

115:53

a number that blockchain miners are

115:55

solving for and what do I mean by this

115:57

statement you will understand once we

115:59

are you know once we will go throughout

116:01

the whole presentation so just wait for

116:03

some time

116:04

now what is Target so Target is a number

116:07

used in mining which we will see how and

116:09

why it is a number that block hash must

116:12

be below for the block to be added onto

116:15

the blockchain

116:16

now what do I mean by this so in the

116:19

previous video we have seen that nonce

116:21

is a number that can be controlled by

116:22

the miners and when the nonce is changed

116:25

right when the nonce of a particular

116:27

block is changed the hash of that block

116:29

is also getting changed right because

116:31

nonce is also being added as an input to

116:34

our sha-256 algorithm and when we are

116:37

changing the nonce we are changing the

116:38

input to r236 algorithm so the output

116:41

that we are getting that is the block

116:43

hash is also getting changed right now

116:45

this target is a number that block hash

116:48

must be below now what do I mean by that

116:50

you will understand once we will start

116:52

with our presentation so just don't

116:54

worry about it but for now just

116:56

understand like this that you have

116:57

generated a block hash okay you have

116:59

generated a block hash by changing the

117:01

nonce now your block hash must be below

117:04

the Target that is a number that is

117:07

being adjusted by the Bitcoin algorithm

117:09

let's let's say that we are talking

117:10

about Bitcoin blockchain only so this

117:12

Bitcoin blockchain will give you a block

117:14

hash means it this Bitcoin blockchain

117:16

will give viewer Target okay and you

117:18

have to produce a hash block hash which

117:21

is below this Target and this will make

117:23

sense when we will once we will start

117:24

with our presentation

117:26

now the target at just every 2016 blocks

117:29

so this is something which is being

117:30

adjusted after every 2016 blocks and it

117:34

also ensures that the blocks are mined

117:36

once every 10 minutes now

117:39

this is something which is B which is

117:41

actually being done by the Bitcoin

117:43

algorithm means by the Bitcoin

117:44

blockchain only so we are not doing

117:46

anything any there is no centered

117:48

Authority who is doing these things all

117:50

these things are being controlled by the

117:52

Bitcoin uh Bitcoin software only okay so

117:55

this is how our hashing algorithm looks

117:56

like right which we have discussed in

117:58

one of the videos of hashing algorithm

117:59

where we are giving an input to this

118:01

chart of this x algorithm and this chart

118:03

this Excel Wortham is then just

118:04

producing this uh hash right this hash

118:07

64 XL character that is a hash right

118:10

now what what what are these numbers

118:13

right what is this five eight one nine e

118:15

f so this is an alphanumeric character

118:17

right we have numbers we have also some

118:20

characters so like what are these These

118:23

are nothing but these are actually

118:24

hexadecimal numbers so if you are from

118:25

computer science background or if you

118:27

have taken computer in any way then you

118:30

might know this that these are

118:31

hexadecimal number so like uh we have a

118:34

decimal number system like 0 1 2 3 4 5 6

118:37

till 15 right so these are decimal

118:39

numbers and if we have to write the same

118:42

number in hexadecimal number system we

118:44

write like this so if you will see that

118:46

0 to 9 everything is the same 0 to 9 but

118:49

after 10 means after 9 when you have 10

118:52

so 10 is represented a in hexadecimal 11

118:56

is represented as B in hexadecimal and

118:58

12 as C and so on okay so this is what

119:01

hexadecimal number are so again if you

119:04

want to know a bit more about it just

119:06

watch any YouTube video or just go for

119:09

any you know Google page and you will

119:10

see that it's simple it's simply a

119:12

number system like we have decimal

119:14

number system we have hexadecimal number

119:15

system nothing else okay so these are

119:18

the hexadecimal numbers that you are

119:20

seeing okay so these are nothing but

119:21

these are hexadecimal numbers for

119:23

hexadecimal characters so let's say that

119:26

this is one of the hexadecimal number

119:29

right because as we said that a decimal

119:31

number system can be represented in

119:33

hexadecimal number system so this is

119:35

nothing but this is also a numbered like

119:36

we have 100

119:38

000 999 or let's say one lakh two crore

119:41

or like two crores 10 lakhs 99 000 this

119:43

is also a number right in the same way

119:45

we have this hexadecimal number we can

119:47

have a hexadecimal number looking like

119:48

this we can have a hexadecimal number

119:50

looking like this

119:51

now let me ask you a question that let's

119:54

say if you have 64 characters okay let's

119:56

say you have 64 characters means you

119:58

have 64 blanks and you have to find the

120:02

smallest hexadecimal number what will be

120:04

the smallest hexadecimal number what you

120:07

are going to fill in those 64 characters

120:09

in those 64 blanks actually so that you

120:12

have the smallest hexadecimal number

120:15

take a while pause me for a minute and

120:17

then answer it

120:18

I hope you have answered it so let's see

120:21

uh what will be that number that number

120:23

will be zero zero zero right so we are

120:25

filling each and every 64 blanks that

120:28

are given to us with 0 and if we will

120:30

fill it with 0 so the number that we

120:32

will get will be the smallest number

120:34

right in the same way if I have if I

120:37

will ask you that what will be the

120:39

greatest number you have 64 again 64

120:41

blanks and I want to know which is the

120:44

greatest number what are you going to

120:46

fill in those blacks what will be your

120:48

answer take a minute and pause me for a

120:51

second

120:52

I hope you have answered the question

120:53

and the answer to this is simple that

120:56

will be FFF by so 64 f are there why the

121:01

reason is simple because in hexadecimal

121:02

number system as we have seen

121:04

uh 15 if you will see uh f is the

121:07

largest number currently in hexadecimal

121:09

number like in decimal number system we

121:11

have 10 right like what I'm trying to

121:13

say here is that in case of decimal

121:15

number after this there is a repetition

121:17

right 11 12 13 14 15 16 and hexadecimal

121:20

number is uh the also the same case the

121:22

important thing to note is notice here

121:24

is just just remember this that if f is

121:27

the largest number right in this table

121:29

right f is 15 actually so we can have

121:32

FFF in all those 64 blanks right so this

121:37

is the largest number now why I am

121:39

telling you all these things you will

121:40

understand

121:42

so this is our block okay we have some

121:46

data we do not have any nonce since we

121:48

do not have any non so we are not we

121:50

have we do not have any hash here right

121:51

and this is the set of all possible

121:54

hashes so when I'm saying all possible

121:57

hashes so what I'm saying is that we

121:59

have hashes here means all the

122:01

hexadecimal numbers here from smallest

122:04

to largest okay so we will start from

122:06

zero zero zero zero zero because since

122:08

we are talking about 64 blanks 64

122:11

because chart 56 produces 64 hexadecimal

122:13

characters so there will be 64 zeros

122:16

here and then there will be 64 F here

122:18

right means between these you will have

122:20

all the numbers

122:22

so you will have something let me start

122:25

my pen so you will have zero zero zero

122:27

zero like this zero then zero zero zero

122:30

zero one then zero zero zero zero two I

122:34

hope you understand right and the same

122:35

way you will have FFF FFF till here so

122:39

we have all the possible hashes in this

122:42

all possible hashes uh in this all

122:45

possible hashes Square okay arranged

122:47

from smallest to largest this is a

122:49

Target that is being set by the Bitcoin

122:52

algorithm now how this Bitcoin like why

122:54

Bitcoin algorithm set these type of

122:56

targets as I said so that it can ensure

122:59

that each and every block is mined on an

123:02

average of 10 minutes only so no Miner

123:04

can mine the block before 10 minutes and

123:06

when I'm saying mine what do I mean by

123:08

my means no Miner can solve a

123:11

mathematical problem before 10 minutes

123:13

on an average of 10 minutes okay so this

123:16

is to ensure that and for that we have

123:18

this Target and this is set by the

123:20

Bitcoin algorithm since we are talking

123:21

about Bitcoin blockchain okay

123:24

now we are going to see what is that

123:27

mathematical problem that miners

123:28

actually solve for we have seen an

123:30

overview that miners solve a

123:32

mathematical problem and after solving

123:34

that mathematical problem we have block

123:36

created and then we add that block after

123:38

verification and validation right in the

123:40

blockchain uh mining overview if you

123:42

haven't seen that video please check

123:44

that video in the playlist you will find

123:45

that or I will share it in the I button

123:47

okay let us see what is the problem that

123:52

miners are actually solving for

123:54

so let's say we have a nonce Hendrick

123:57

okay so we have a non-centric and for a

124:00

nons hundred you can see that we have a

124:03

hash that is cd1 aefbf okay and this

124:07

hash is actually this hash is actually

124:10

belongs to this part of the you know all

124:13

these possible hash means this is

124:15

belonging somewhere this at this

124:17

position okay at this position okay

124:21

now when we will change this nons you

124:24

can change see that when I am changing

124:26

it to 76 this has changed and now we are

124:29

at this position

124:31

an important thing to hear notice is

124:33

that none of the noise till now that we

124:35

have generated is below the Target and

124:38

we have seen right in the definition of

124:40

Target that the block hash that we are

124:43

generating must be below Target so that

124:47

we can add a block to the blockchain or

124:50

we can create a block and this is the

124:52

problem that miners are actually solving

124:54

for what we are trying to do is they are

124:57

trying to change the nodes because this

124:58

is something which is in their control

125:00

they are changing these these nodes now

125:03

once they are once they are changing

125:04

these laws they have different hashes

125:06

right before that if you can see we have

125:08

hundred like before at nine at

125:10

non-centered we have this hash at 76 we

125:13

have this hash so what they are trying

125:15

to do is they are changing the nons so

125:18

that they can generate hash and what

125:20

they are trying to do here is they are

125:21

trying to generate a hash they are

125:23

trying to generate a hash which is below

125:24

this target currently none of the hashes

125:26

that the miner has generated is not is

125:28

below the target so he will keep on

125:31

generating these knots he will keep on

125:34

changing these knots so let's say he

125:37

started again and now he has a nouns of

125:39

201 but still you can clearly see that

125:41

this hash is not below this target right

125:44

as you can see from the picture okay now

125:47

let's say he again

125:49

change the noise and now he has a hash

125:51

of zero zero zero b6a and this is

125:54

something which is below this target now

125:57

this is the time where not where the

126:00

miner has actually solved the

126:02

mathematical problem because he has

126:04

generated a nonce not actually I will

126:06

say NOS because when I'm saying non so

126:08

actually nonce is something which is

126:09

actually generating R hash right so when

126:11

I'm saying nons or block hash just thing

126:13

think like uh I'm going to use them

126:16

interchangeably so just don't be

126:17

confused so when he is changing the nons

126:20

now he has produced a noise or he has

126:22

produced a block hash which is below

126:26

this target so now this Miner has

126:28

actually solved the mathematical problem

126:30

and he will be rewarded with a

126:32

cryptocurrency and if we talking about

126:34

Bitcoin so he will be awarded with

126:36

Bitcoin now some of you might be

126:39

thinking like why this hash is below

126:41

this target now why not these hashes

126:44

right some of you might be thinking and

126:45

I will explain to you these uh in much

126:48

more detail in our upcoming slides but

126:50

for now let me give you a hint actually

126:52

what is actually happening if you will

126:53

see

126:54

this is the Target right zero zero zero

126:56

this is a number so we are saying that

126:58

uh the first four digit since we have 64

127:01

characters right so we have 64

127:03

characters and in in this we are saying

127:05

that for the Target to achieve the first

127:08

four numbers should be zero right the

127:10

first four number should be zero so any

127:13

number which is below this number

127:16

it can be anything it can be anything

127:18

any number that is below this number

127:20

will be the desired hash and the desired

127:25

The Miner who will generate that desired

127:27

hash will be awarded otherwise if a

127:30

number if you will see this number this

127:32

b474 this number can never be below this

127:34

target right why because in the starting

127:37

only in the starting only it has B4

127:40

7 for E right since we have taken only

127:45

eight characters here right nine

127:46

characters actually for the demo purpose

127:49

actually eight characters yeah eight

127:50

characters only so you can clearly see

127:52

that all the eight characters are having

127:54

these numbers so none of these numbers

127:56

are zero so the target can never below

127:58

this

127:59

the hash can never be below this Target

128:01

and that's why that's why uh the this

128:05

hash is the one which was the desired

128:07

one but only there can be various other

128:08

hashes because this is an area right it

128:10

can have mini Target so it can also have

128:12

a target of means uh the target can be

128:15

right like this also one two three four

128:17

okay because again we have four zeros

128:19

and the number which will be below this

128:22

and don't worry if you still are not

128:23

able to understand you will understand

128:24

it let's move on and then you will

128:27

understand it in a much more detail okay

128:28

okay before moving further let me tell

128:30

you one more thing I because some of you

128:32

might have this question that uh so this

128:35

nons like the non that we are generating

128:37

is this producing like it is so simple

128:40

like it looks so simple that we can

128:42

generate and loss and we can be here

128:43

right we can generate some nonce and

128:46

that will lead to here because you know

128:47

all these hashes are from smallest

128:49

largest so just generate a nouns which

128:51

will lead us to this right but this is

128:53

totally a random process why because if

128:56

you will see uh if we will start with

128:58

hundred this hundred is produced using a

129:00

hash which is which is here right which

129:02

is some point here now when we have 76

129:05

now you can see that the 76 is producing

129:07

a hash which is somewhere there means it

129:10

is much above uh this the previous one

129:13

right so it is producing a hash which is

129:16

some point here and let's say if we have

129:18

201 so in that case you can clearly see

129:21

that it is somewhere below so this is a

129:24

totally random process so this is not

129:25

something like you can just produce

129:27

non-sequentially that 0 1 2 3 and you

129:30

know you will start from this this this

129:31

no this is not how it works this is a

129:34

totally random process so they like you

129:37

cannot just produce a nonce like by

129:39

thinking okay I will reduce this noise

129:41

and that will lead me to this right

129:42

right this is the totally random process

129:44

there is no pattern to it so just

129:46

remember this and do not be confused

129:48

with this okay now let's move on to the

129:50

detailed topic of this target now let us

129:53

understand uh that criteria that Target

129:56

and all those things if you're still not

129:58

able to understand so let's say we have

130:00

a five digit number because as I said

130:02

it's a similar number or nothing but

130:03

these are also numbers so we are

130:04

considering that we have a five digit

130:06

number and with the help of this five

130:08

digit number we can cover this entire

130:10

area right

130:11

so we can have numbers starting from 0 0

130:15

till and let's say we are only assuming

130:17

uh decimal number system so we can have

130:19

a number of nine nine right so we are

130:22

assuming that we have a decimal number

130:23

system for non-not hexadecimal number so

130:25

that I can explain you this so we have a

130:27

number starting from zero zero zero two

130:29

nine nine nine so we are covering this

130:30

entire area right we are covering this

130:32

entirely but what will happen if I will

130:34

make the first number zero if I will

130:37

make the first number zero now you can

130:39

clearly see earlier we were covering

130:42

from 0 0

130:43

to

130:44

9999 right but now what we are covering

130:48

we are only covering these four digit

130:51

because we have made this first

130:54

character as 0 so now we are covering

130:56

from number from 0 0 to 999 since the

131:02

first character is 0 the first number is

131:05

zero so now you can clearly see we have

131:07

much smaller number right we have much

131:10

smaller number between this range

131:11

because earlier we were having 999999

131:13

and now we have only nine nine nine nine

131:15

so definitely this range will be between

131:17

this small like a small range will be

131:20

there between these two numbers right so

131:23

that's why we are saying that this is

131:25

actually representing this is small area

131:26

so this area is actually having numbers

131:29

from 0 0

131:31

299 and that makes sense also because

131:33

999 is a much bigger number so it will

131:36

be from here to 0 0 right it makes sense

131:40

and what will happen if I will make the

131:42

first two characters here again this

131:44

area will get reduced why because now we

131:46

have only numbers from 0 0 to 999 right

131:50

because the first two are already zero

131:53

the first two are already zero right so

131:56

by this you can clearly see that the

131:57

area is getting reduced and the miners

132:00

are actually solving for this area only

132:02

so they are actually producing a nonce

132:04

which is which is lying between these

132:07

two ranges between this area so they are

132:11

finding let's say uh they have a target

132:13

of for example

132:14

let's say zero zero

132:17

um uh zero zero let's say four five

132:20

three just an example so any number

132:22

which is below this range like that is

132:24

that can be zero zero four five two that

132:27

can be zero zero four or three hundred

132:30

anything which is below this range will

132:33

be the solution for their mathematical

132:36

problem or any number which is above

132:38

this let's say for example 1 2 one two

132:41

four five three or one zero four five

132:44

three all these numbers you can clearly

132:45

see that will lie above this area right

132:47

because it is star it is only a three

132:49

digit number but all these numbers are

132:50

four digit number so definitely we

132:52

cannot have a number four digit number

132:54

uh in this area because this is the area

132:56

of three digit number right

132:58

so that's why we have this type of thing

133:01

this type of Target thing and I have

133:03

just given you one more example where

133:04

I'm saying that first three characters

133:06

are zero so now you can clearly see one

133:07

more important thing that you can see

133:09

that as we are increasing the number of

133:11

zero right as we are increasing the

133:12

number of zero the target area is

133:14

getting reduced and when the target area

133:16

is getting reduced it will become more

133:19

difficult for the miner to solve the

133:20

mathematical problem because now they

133:22

have to solve for this small area only

133:24

earlier they were solving for this big

133:26

area earlier is before that there was

133:28

only for this big area but now as the

133:31

number of zeros are increasing right

133:33

before these two numbers

133:35

the target area is also getting decrease

133:38

means the solution is the probability of

133:42

solving uh finding their solution

133:43

through their problem is also getting

133:45

reduced and that's what make mining very

133:49

much difficult

133:50

and just don't uh believe me just don't

133:52

trust me I will show you a mathematical

133:55

proof for this also okay so just if if

133:58

you are comfortable with mathematics

134:00

then that's good if you're not just have

134:01

a look at it you will have a good sense

134:04

why this is so much difficult for the

134:06

miners because many of you might be

134:08

thinking it's looks so easy we do not

134:10

have to do anything we have to just

134:11

generate you know we have to just

134:13

generate some nonce and by the which

134:15

with the help of which we can easily you

134:18

know find the block hash and that's an

134:20

easy process but not it's not an easy

134:21

process and you will understand this

134:23

with the help of this example so let's

134:25

say this is the current Target

134:26

definitely this is not the current

134:27

Target I have made this PPT along back

134:29

so just say that this is one of the

134:31

Target that was given to the miners to

134:34

solve for so now the miners

134:36

responsibility is to generate a hash

134:38

which is below this huge number right

134:41

and the first 19 characters as you can

134:44

see are leadings zero okay

134:46

so now so now let us understand this why

134:49

a mining is so difficult okay so let's

134:51

say we have a possible hash means we

134:53

have 64 hexadecimal characters so we

134:55

have 64 inside decimal characters right

134:57

and so in total we can have a

135:00

possibility of 10 to the power 77 hashes

135:03

now what do I mean by that so since we

135:05

have 64 characters right so in these 64

135:08

characters I can have I have 64 64

135:11

possibilities right 16 possibilities

135:13

here 16 possibilities here why 16

135:15

possibilities because as we have seen in

135:17

hexadecimal number we have number from 0

135:19

to 15 and if we will count it is 16

135:22

There are 16 numbers right 0 to 15 means

135:24

or 0 to F actually 0 to F so we have 16

135:28

numbers here from 0 to F 16 numbers are

135:31

there between 0 to F and that's why we

135:33

have 16 possibilities so we can have 0

135:35

we can have one we can have you know a

135:38

or b or F like this this is something

135:40

related to permutation if you are not

135:42

comfortable with it this that's fine for

135:45

now just a thing like this that we have

135:46

66 seen to the power 64 possibilities

135:49

because 16 into 16 into 16 till 64 times

135:52

we will have 60 to the power 64 and we

135:55

have calculated in 10 to the power 70

135:57

into 10 to the power so it is 10 to the

135:58

power 77. now total valid hashes because

136:02

as you can see that uh the Target that

136:04

is set has 15 19 leading zeros so the

136:08

total possible hashes with these 19

136:11

reading 0 is 10 to the power 54 why

136:14

because the first 19 first 19 characters

136:17

are 0 right first 19 characters are 0 so

136:19

we cannot touch them so there's a 0

136:21

there's a zero like this we can only

136:23

touch the remaining that is 64 minus 19

136:26

right 64 minus 19 characters we can

136:28

touch so we can say that they are 10 to

136:31

the power 54 that is 16 in to the power

136:34

if you will calculate it it will be

136:36

around I think uh 45 right it is 16 to

136:39

the power 45 and if you will uh find it

136:43

in the form of 10 to the power it is 10

136:45

to the power 54.

136:48

now if you ever see the probability of

136:50

picking a random hash probability of

136:53

picking a random hash from this large

136:55

area that is 10 to the power 77 this is

136:57

the large area right having all the

136:58

possible hashes and this is the small

137:01

area having a small set of hash right so

137:04

if you will see the probability of

137:05

finding a particular hash that is a

137:08

solution to your problem

137:11

that is 10 to the power minus 23 that is

137:14

0.000

137:16

till at 22 times right something like

137:19

that so this is a very small number this

137:22

is a very small number and that's why

137:25

minor has to put so much effort in order

137:28

to find a solution to their problem in

137:31

order to generate that right hash which

137:33

is below the target this is the

137:36

problematic thing right so mining is not

137:39

an easy task that's why it took days if

137:41

you are if you're a miner of proof of

137:43

work it took days even weeks sometimes

137:46

to find the target to find the desired

137:48

Target so that you can create the block

137:51

of a blockchain

137:54

now again I hope you have understand

137:56

that so this is something which I

137:59

thought you should know that who is

138:01

actually adjusting these difficulties so

138:02

this is done by the Bitcoin algorithm

138:05

only so we are not doing this no Central

138:07

authorities doing this everything is

138:09

done by the Bitcoin algorithm okay

138:11

lecture we are going to talk about

138:12

Bitcoin Target history and you will love

138:15

this lesson you will learn a lot in this

138:17

lesson so in the previous video we

138:19

talked about nonce mining in detail

138:21

about the Target and how we how the

138:23

miners actually solve for that Target in

138:25

order to get the reward in order to

138:27

solve that mathematic problem so that

138:29

they can create a block right now let us

138:32

see what are the different Bitcoin

138:34

Target that already has occurred in the

138:38

history right so this is a beautiful

138:39

website if you want to learn about

138:41

Bitcoin in detail trust me this is the

138:44

best website and you can learn a lot

138:46

about Bitcoin in the on this website the

138:48

website name is learn me a bitcoin.com

138:50

it's a great website and let's go to the

138:54

Target page of this website

138:56

uh so where's the target let me search

138:58

for it

138:59

so Target

139:01

oh here it is

139:03

so this is our Target page and in this

139:06

if you will see

139:08

we have all the target currently the

139:09

target is this okay you can see a lot of

139:12

number of zeros are there right and as

139:13

we discussed the more number of zeros

139:15

that we have the Lesser will be the area

139:18

of finding the solution right in the

139:21

previous video we have talked about this

139:23

and if you will see okay this is the

139:26

Bitcoin Target history so you will find

139:27

the Bitcoin Target history under this

139:29

tab and you can see the Bitcoin Target

139:31

history so you can see that how the

139:33

Bitcoin Target history is being changing

139:35

right it's been changing from time to

139:38

time

139:39

on every 2016 uh 2016 blog or on every

139:42

two weeks right it it's changed and it

139:45

is done by the Bitcoin algorithm so with

139:47

this is not we what we are doing what

139:49

this is done by the Bitcoin algorithm

139:50

only so you can see that it is being

139:52

changed changed changed right and

139:55

currently it has changed on 13th of

139:58

September 2022 and today is 14th of

140:00

September when I am recording this video

140:02

so you can see that the target just

140:04

changed uh yesterday only right

140:06

and let us see some of the important

140:08

things that you should notice here that

140:11

that is important right so first thing

140:13

if you will notice from 3rd Jan 2009

140:18

to

140:19

18th of December 2009 the target never

140:22

changed you can see that the target is

140:24

still zero zero zero zero zero FFF zero

140:27

zero zero zero FFF and why this is so

140:29

because as we discussed right the target

140:31

uh change should change after every 2016

140:34

block or after every two weeks right but

140:37

the target was never changing

140:39

and the answer to this question is very

140:41

simple because at that point of time

140:43

there were not much miners right who

140:45

were actually mining for the Bitcoin so

140:47

there were less number of people who

140:48

were solving the mathematical problem

140:50

so since there were less number of

140:52

people so the Bitcoin algorithm never

140:55

thought that why should I change the

140:56

Bitcoin Target because there are less

140:58

number of people and already this target

141:00

is very much you know heavy for the

141:01

miners at that point of time because at

141:03

that point of time there were not so

141:05

much good Technologies also I will say

141:07

okay so miners were using their computer

141:09

or some a little bit high performance

141:12

computer or something so at that point

141:14

of time uh Bitcoin mining algorithm

141:16

thought that why should I change the

141:17

target it is good why should I change it

141:19

right but after some time means after

141:22

18th means after this 18th December 2009

141:25

you can see that Target is continuously

141:27

changing so if you will see so it is

141:30

8868 it is c428 so the target is

141:34

continuously changing right the number

141:36

of zeros are not changing one important

141:38

thing to notice here is the number of

141:39

zeros are not changing but it does not

141:41

matter because as we discussed right

141:43

these are all the numbers so if it is d8

141:45

and this is c42 so d8 if you can clearly

141:48

see uh

141:50

at this point of time ffff right

141:56

this number is greater than thus this

141:58

number means what actually happened I

142:01

think in on 30th December 2009 the

142:03

target decreased decrease in the sense

142:06

uh this number got much less means the

142:09

target become much harder to achieve

142:11

because now we are what we are trying to

142:13

do here is we are actually reducing the

142:15

area right because we are decreasing

142:17

this number and this all these things we

142:19

have discussed in the previous video so

142:20

I'm not going into much depth so we are

142:22

decreasing the number so hence we are

142:25

decreasing the area where the solution

142:27

for the

142:28

for the problem is right for the mining

142:31

problem is for the miners so therefore

142:33

miners are solving for much lesser area

142:35

right but after some time you will see

142:37

that I think the number of zero also

142:40

started increasing means this was making

142:43

the Bitcoin

142:44

uh solving problem much more harder to

142:46

solve means Bitcoin mining problem much

142:48

more harder to solve so let us see where

142:51

the number of zeros are changing it is

142:53

actually very much difficult to find out

142:55

right a lot of numbers are here at this

142:57

point of time

142:59

okay so I think from

143:02

around this point of time the number of

143:05

zeros are changing or something yeah

143:06

this point of time I think the number of

143:08

zeros are also enemies now the target is

143:10

much more harder right so earlier it was

143:13

decreasing you know like it was harder a

143:15

little bit harder a little bit harder

143:16

but now since the number of zeros are

143:18

increasing right so the target is much

143:20

more harder at at this point of time so

143:24

this is something that you can see right

143:25

you can clearly see that the target is

143:27

changing on every two weeks fifth August

143:28

15th August and the number of blocks the

143:31

difference between the number of blocks

143:32

is 2016. so all these things you can see

143:35

on this page it is a beautiful website

143:37

as I said so you can see a lot of

143:40

interesting thing here so it is also not

143:42

the fact that let me tell you one thing

143:44

more that it is not that every time the

143:46

target every time the difficulty will

143:48

increase there will be times where the

143:50

target when the difficulty will decrease

143:51

because at this point of time when the

143:53

cryptocurrency market is going down and

143:55

miners are not much interested in mining

143:57

Bitcoin so you will notice that the

143:59

Bitcoin difficulty level is decreasing

144:01

day byte

144:03

now d by d means on every two weeks or

144:05

such type of things are going on why

144:08

because the number of miners are today

144:09

because the cryptocurrency market is

144:11

down at that point at the time of making

144:13

this video so miners are leaving the

144:15

Bitcoin mining industry and hence the

144:17

target enhance the difficulty is also

144:19

decreasing okay so this is the best time

144:21

if you want to be a miner because the

144:23

difficulty is decreasing

144:25

and there are other things also so if

144:27

you want to learn much more about this

144:29

target so you can see that a lot of

144:30

things again I think there is a

144:31

calculator also like how much time it

144:33

will take to you know solve the Target

144:36

and all those things so this is a good

144:38

website you can definitely refer to this

144:40

website a highly recommended website so

144:42

you must check out this website in the

144:44

next video we will talk about the

144:46

different machines that we have for

144:49

mining like gpus and Asic normal

144:51

computers or the CPUs we will talk about

144:53

that in detail in the next video and if

144:56

you have any doubts please comment below

144:58

now in this video we are going to talk

145:00

about the difference between the various

145:02

technologies that miners use for money

145:07

now before talking about the different

145:09

Technologies let us go back to our nonce

145:11

example where we have learned that by

145:13

producing that these nonses which are

145:16

being actually being produced by the

145:18

miners these miners produce different

145:20

nonsense and with the help of which they

145:22

are able to reach the Target right

145:25

no one important thing to notice here is

145:28

that by changing these nonses miners are

145:32

able to change the hashes so let's say

145:34

we have two miners one Miner who is

145:37

actually able to generate five hashes in

145:40

one second and we have another Miner who

145:42

is able to generate 10 hashes per second

145:45

when I'm saying hashes I'm talking about

145:46

these hashes now if I will ask you which

145:49

Miner has high probability of winning

145:53

this target of uh of generating hash

145:56

which is below this target

145:57

the answer to this question is very

146:00

simple that is minor B why because minor

146:03

B is able to generate hatches at 10

146:06

hashes per second while minor a is able

146:09

to generate only 5 hashes per second so

146:11

like now minor B has more chances right

146:15

because he will be able to change the

146:16

different nonsense at much faster rate

146:18

as compared to your minor a which is

146:20

able to generate hashes at a much slower

146:23

rate right it is like minor days having

146:25

a car which is running at 25 kilometer

146:27

per hour while minor B is having a car

146:30

which is running at 50 kilometer per

146:31

hour so now minor B is much faster as

146:34

compared to minor a

146:37

now

146:38

why I'm telling you all this I'm telling

146:40

you all this because these different

146:42

technologies have different mining rate

146:45

so if we talk about CPUs so if we talk

146:48

about CPUs normal CPUs that we have in

146:50

our like we use uh in our day-to-day

146:52

life right we have CPUs in our laptop we

146:54

have CPUs

146:56

like when we use a system so if you will

146:58

see CPU is a technology which which is

147:02

actually able to generate 10 mega hashes

147:05

per second so it is around I think 10

147:07

mega hashes is uh is definitely it might

147:11

sounds very much high but it is not that

147:13

much higher in not in today's world

147:15

nobody actually use CPU for Mining and

147:17

especially if it is Bitcoin nobody is

147:19

actually using CPU for mining Bitcoin

147:21

because it is or very less number okay

147:24

it is only 10 million hashes per second

147:27

okay now after CPUs what miners started

147:31

using is gpus now these gpus has a

147:35

mining rate of one gigahertz

147:38

hash not Hertz actually I actually

147:40

literally always get confused between

147:41

hashes so it is actually one giga hashes

147:46

per second which is around 1 billion

147:48

hashes per second and if you will see it

147:50

is much higher than CPU right but still

147:53

gpus are something which are you know

147:55

which are actually used for

147:56

multi-purpose things so they are not

147:58

specially designed for mining purposes

148:00

so still the mining the mining harsh

148:03

rate is still very low if we talk about

148:06

gpus and there are very few miners at

148:08

this point of time in 2022 which might

148:11

be using these gpus okay

148:14

but now what miners are actually using

148:16

is async now what is this Asic Asic is

148:21

also a technology with the help of which

148:23

miners are able to generate

148:25

110 trillion hashes per second so you

148:28

can see that among all these

148:30

Technologies A6 are the most fastest so

148:35

this is what make basic so powerful now

148:39

let me show you some of these uh gpus

148:42

which are actually available on eBay so

148:44

you can go on eBay and you can search

148:46

for these gpus the thing with GPU is

148:48

that they are actually more cheaper as

148:51

compared to your Asic which are actually

148:52

very costly you will see they are in

148:54

thousands of dollars so this is how your

148:58

GPU looks like okay so actually I

149:00

haven't used any gpus yet so definitely

149:03

it is on eBay so I'm guessing this is

149:04

what how gpus actually looks like okay

149:08

that's wonderful and I think this is for

149:10

mining only any video

149:13

on that gpus Creator CDU PCI e-mining

149:16

learning something like that I'm not

149:18

that much sure but I think this is one

149:20

of those GP

149:21

okay

149:23

so let me let me search this GPU

149:27

or

149:28

mining

149:30

so that we can have better results

149:33

okay

149:34

different

149:36

this is a GPU mining rig so where you

149:38

can have various gpus at one time

149:41

many gpus at the same time the gpus that

149:45

you are seeing and these are I think the

149:46

slots are given here okay and now you

149:49

can see the Asics so you will see A6 or

149:53

as I said the most powerful but they are

149:55

very costly also it is around one

149:58

thousand dollars

149:59

chillio very costly thing

150:02

that's the thing

150:04

so I hope you have got why do we use

150:07

CPUs why do we use these gpus and why do

150:10

we use basic actually it's not ASCII but

150:13

it is Asic sorry for the song strongest

150:16

spelling here so I hope now you got why

150:18

a minus currently use ASX most of the

150:21

mining pools actually use Asic because

150:22

Basics are very much faster miners are

150:25

able to generate hashes at a much faster

150:27

rate hi now in this video we are going

150:30

to discuss about mining pool so let's

150:34

start so this is our blockchain Network

150:36

and the people that you are seeing in

150:38

this blockchain network we are assuming

150:40

that these all people are actually

150:42

miners now who are miners we have talked

150:44

about it that miners are the people who

150:46

are solving a mathematical problem and

150:48

what is that mathematical problem that

150:50

mathematical problem is to solve for a

150:53

nouns or to solve for a hash which is

150:55

below the Target right and we have

150:57

discussed everything in detail in our

150:59

previous video so if you have not

151:01

watched the previous videos please watch

151:03

the previous videos as well in the

151:05

previous video we also talked about that

151:07

these miners who are actually

151:09

participating in the blockchain network

151:11

in the mining process they require some

151:13

form of Technologies right so let's say

151:16

these are different miners they all have

151:18

different type of Technology some of

151:20

them are using CPUs some of them are

151:21

using GPU some of them are using Asic

151:24

now the problem arises the problem

151:27

arises when there is unequal

151:31

distribution of hashing power now what

151:34

do I mean by that so let's say all these

151:37

miners were actually mining by using

151:39

some GPU technology because GPU is a

151:42

cheaper technology so these miners can

151:44

afford gpus only so what they did they

151:47

started using gpus okay so they are they

151:49

are enjoying their Bitcoin mining by

151:51

using GPU only

151:53

but after some time what happened some

151:56

big companies comes into picture and

151:58

these big company started using Asic

152:02

Technologies or big mining

152:05

Technologies in order to mine Bitcoin so

152:09

these companies that you are seeing on

152:10

your screen these are actually people or

152:12

big Corporation who have uh who have

152:15

millions or not I will say Millions but

152:17

thousands of miners working under them

152:19

and they are using powerful Technologies

152:21

like Asic or let's say you know

152:25

gpus or some form of powerful

152:27

Technologies in order to mine now if you

152:29

will see in this case these miners that

152:31

are not part of these big mining

152:34

Corporation they they do not have enough

152:37

power they do not have enough

152:39

Technologies or means in order to

152:41

compete with these uh big cooperation

152:44

right why because these big corporations

152:46

since they are using powerful powerful

152:49

Technologies so they might be mining

152:51

let's say in in one second they are

152:53

mining let's say one trillion hashes per

152:55

second but these miners who are working

152:57

alone at their home

152:59

they are able to mine only let's say

153:01

thousands of hashes per second so the

153:03

probability of winning definitely is

153:05

higher for these big corporations and

153:08

not with these individual miners right

153:10

who are mining alone at their home

153:12

so what these miners can do is they can

153:16

form a mining pool okay so you can see

153:19

that these miners they have formed a

153:21

mining pool in the same way this big

153:24

Corporation also thought okay why not to

153:26

increase my power and they also uh

153:29

become a part of this mining pool now

153:32

what is this mining pool all about so it

153:34

is a pool of miners where all the miners

153:37

like these miners let's say these four

153:39

miners has actually formed a group and

153:42

now they are solving the mathematical

153:43

problem as a group so these these miners

153:47

are not solving the mathematical problem

153:48

alone but these viners are actually

153:51

combining all their power and they are

153:53

using all their power in order to solve

153:56

this mathematical problem and that's how

153:58

they are now I will say they are now as

154:01

much as powerful as these big

154:03

corporations because definitely I am

154:05

showing you only four miners here but uh

154:07

in the mining pool you can have

154:08

thousands of miners or even lacks of

154:10

miners okay so they can now compete with

154:12

these big corporations who are actually

154:15

using Hi-Fi Technologies uh like

154:18

powerful Technologies for mining okay

154:20

now let us also discuss some more

154:22

benefits of mining pools first benefit

154:24

is that you don't have to buy costly

154:27

equipments now since you are working as

154:30

a group so earlier you might need to buy

154:32

an Asic so that you can mine right you

154:34

can compete with these big powerful

154:36

corporations but now you can form a

154:38

group and by forming a group you are now

154:41

equally powerful as those corporations

154:43

because you are combining all the

154:45

Technologies and you are like working as

154:46

a group now okay

154:48

second is that you don't have to worry

154:50

about mining setup now let's say you are

154:53

you know you are at your home and you

154:55

want to mine but you do not want to you

154:57

know have a heavy setup of uh like you

154:59

know big big uh Technologies at your

155:01

home or something like that so what you

155:03

can do is you can join these mining pool

155:05

okay and then you have to pay some

155:08

amount of you know fees to these mining

155:10

pool because definitely you are using

155:11

all their software and everything they

155:13

will provide you with each and

155:14

everything you have to just start your

155:16

computer now and you have to just start

155:17

mining okay so they will provide you

155:19

with everything so you don't have to

155:20

worry about these mining setup about the

155:22

software about you know the hardware and

155:24

everything you have to Simply have a

155:26

computer or a simple Technologies and

155:28

now you can be a be a part of this

155:30

mining pool

155:31

now the third thing is that distribution

155:33

of rewards is according to the mining

155:36

power now what do I mean by that so

155:38

let's say these four miners are you know

155:40

mining for a Bitcoin and let's say this

155:42

Miner is using some powerful

155:44

Technologies like Asic okay so now

155:46

definitely he has uh you know he is

155:49

using much more he's using much more

155:51

hashing rate in order to solve for this

155:54

uh mathematical problem right definitely

155:56

these three people are also using let's

155:57

say these three people are using gpus

155:59

only and but he is using Asic so

156:02

definitely he is actually making uh he

156:04

is actually utilizing the most power and

156:06

he is actually giving

156:08

most to the group right for mining right

156:11

he's a he's working most as compared to

156:13

these because gpus as we have discussed

156:15

has a hashing rate of gigahertz not

156:18

Hertz actually Giga a giga hashes per

156:20

second but an Asic has a hashing rate of

156:23

1 trillion hashes per second right so

156:25

definitely he is actually using a lot of

156:27

power so in this case if they will warn

156:31

if they will uh solve this mathematical

156:33

problem and if they will get a reward in

156:36

terms of Bitcoin so definitely in that

156:38

case this Miner will be definitely given

156:40

much more amount of Bitcoin as compared

156:43

to these three miners combined right

156:45

because he has used much more

156:47

Technologies much more powerful much

156:49

more power actually in order to mine

156:51

this Bitcoin so it is like the effort

156:54

you are going to put the reward you are

156:56

going to get accordingly only okay and

156:58

the fourth point is that there is no

157:00

wastage of power since all these miners

157:03

can as you can see that all these four

157:04

miners are solving the same mathematical

157:07

problem right but this mathematical

157:09

problem will be divided among all these

157:11

four people and which we will discuss in

157:13

our upcoming videos but for now let's

157:15

say this mathematical problem is let's

157:17

say you know this mathematical problem

157:19

is of let's say 100 meter just an

157:23

example to give you so 25 meter will be

157:25

given to am 25 meter be given to M25

157:28

meter will be given to him and 25 meter

157:29

will be given to him so that they can

157:32

equally work on these problems so they

157:35

are not you know they are not not

157:37

solving the same mathematical problem

157:38

means there there is no repetition of

157:40

work here right so this work will be

157:43

divided equally among all these four

157:44

people and they will start solving the

157:47

mathematical problem in this way and let

157:49

me show you the different hash rate that

157:51

we have currently okay so this is for

157:54

Bitcoin so I'm on this website

157:56

blockchain.com pools and here you can

157:59

see that these are different mining

158:00

pools so here you can see that these

158:02

different mining pools they have a

158:04

different hash Aid and this unknown is

158:06

actually occupying The major portion

158:09

here right so he is the most powerful I

158:11

will say in this hash distribution and

158:13

then we have this and pool via BTC so

158:17

they are different mining pools at this

158:19

point of time now you must be thinking

158:21

that if this unknown is the most

158:23

powerful one why not to join this

158:25

unknown mining pool right so that that

158:27

you will have higher chances of winning

158:28

but in that way you have to also think

158:31

that since this unknown is uh you know

158:33

this is a big this is a big mining pool

158:36

so definitely the distribution of reward

158:38

will be done accordingly right so if

158:40

let's say you also want a reward but

158:42

that reward will be divided among all

158:45

the participates all the participants

158:47

all around among all the miners who are

158:49

a part of this big mining pool right so

158:52

the distribution will be done

158:53

accordingly and in that way you will be

158:55

getting less amount of reward because

158:56

there are more number of people right

159:00

or let's say more more big technology

159:02

they are using in that case they will be

159:04

given much more reward than you if you

159:07

are a small part of this mining pool

159:10

so here you can see much more

159:11

information about it definitely there is

159:14

much more to explore on this blockchain

159:15

explore.com do visit to this website you

159:18

will learn a lot about Bitcoin ethereum

159:20

and different cryptocurrencies about

159:22

their heart rate and everything else

159:25

now in this video we are going to talk

159:27

about non's range and this is a very

159:30

important video because this video

159:32

actually will help you to understand our

159:35

next topic that is time stamp so please

159:39

be a little bit more alert more careful

159:42

in this video okay this is a very

159:44

important video and this video will be a

159:47

little bit tricky I will say because in

159:49

this we are going to use a little bit of

159:51

mathematical calculations so you might

159:54

find it a little bit tricky but I will

159:56

suggest you to just be patient and at

159:59

the end of this video you will be

160:01

understanding each and every thing okay

160:03

so just be a little bit patient here

160:05

so as we have discussed in our previous

160:07

video that this nonce is a is a number

160:10

that miners use in order to solve the

160:13

mathematical problem so with the help of

160:15

this nonce miners are able to generate

160:17

different hashes and once they will they

160:19

are able to generate a hash which is

160:21

below the target they are able to create

160:23

the block and once they will create the

160:25

block they will get rewarded right we

160:26

have X I have explained all these things

160:28

in the previous video

160:30

now since this nonce as we can see is a

160:33

number right

160:34

and since this is a number it has a

160:36

particular range this nonce is a 32-bit

160:39

number

160:40

now if you are not from a computer

160:42

science background you might not be

160:43

getting this bit so I will suggest you

160:45

to just go and search for it and you can

160:48

easily see an explanation for this bit

160:49

okay this is something related to your

160:51

computer science fundamentals so just go

160:53

and search for it and you will find a

160:55

good video uh like about this bit for

160:57

now what you can think or not I will say

161:00

think for now what you can say that this

161:03

nonce the range of nouns we have is four

161:06

zero to four to four into ten to the

161:09

power 9 means with this 32-bit number we

161:12

can generate 0 to 4 into 10 to the power

161:15

9 knots that is around 4 billions of

161:17

nouns means we can have announced at 0 1

161:20

2 until we can have this nons 4 into 10

161:24

to the power 9 okay it is a pretty big

161:27

number right this is a pretty big number

161:29

now and how I have got this calculation

161:32

this is something again I will say this

161:34

is something related to your computer

161:35

science background only so I have just

161:36

taken this 0 0 2 2 to the power 32 and

161:40

then minus 1. that's how I got this

161:42

number 420 power 9 okay

161:45

now if you are not getting it just don't

161:47

worry just go on with the video you will

161:49

understand each and everything at the

161:51

end the concept actually at the end of

161:52

this video this 4 into 10 to the power 9

161:54

nons might looks like a very big number

161:58

to you right but trust me this is not a

162:00

very big number if you talk about our

162:02

sharp 256 algorithm which produces 64

162:05

hexadecimal characters and if we talk

162:08

about the number of possibilities means

162:10

the number of hashes that we can

162:12

generate from this 64 hexadecimal

162:14

characters is around 10 to the power 77

162:17

okay it is around 10 to the power to 77.

162:20

now how I got this number since we have

162:23

64 characters here and at each character

162:26

we have 64 possibilities right because

162:28

as we have discussed about hexadecimal

162:30

number hexadecimal number is from 0 to F

162:34

and if you will see the range it is 16

162:36

so we have 16 possibilities here 16

162:39

possibilities here 16 possibilities here

162:41

and we have till 64 characters right so

162:45

I have just multiplied all this 16 into

162:47

16 into 16 64 times and that's how I got

162:50

this number okay so this is the total

162:53

number of hashes that we can produce by

162:55

using this sha 256 algorithm and this is

162:58

something uh related to your permutation

163:00

and combination of mathematics but don't

163:02

worry if you just remember this number

163:04

and you are good to go since the total

163:06

number of valid hashes is around 10 to

163:09

the power 77 right which we calculated

163:11

using this chart of 56 algorithm and the

163:14

total number of nodes that we can

163:16

generate is 4 into 10 to the power 9.

163:18

now if you will see something uh

163:21

something is problematic here the number

163:24

of Nas that we are generating is very

163:27

very very much lower than this 10 to the

163:30

power 77 means this 10 to the power 77

163:33

is a very very big number right if you

163:36

will compare it with this 4 into 20

163:38

power 9 right because we have 10 to the

163:40

power 7 here we have 10 to the power 9

163:42

so it is a very big number

163:44

now this generates a problem now what is

163:48

that problem that there are not enough

163:50

nouns to generate the valid hash why

163:53

because with the help of nons what we do

163:55

with the help of nonce we generate hash

163:57

right

163:57

and with the help of norms you can

163:59

clearly see that we can generate only 4

164:02

into 10 to the power 9 hashes because we

164:05

have 420 power 9 nons so we can generate

164:07

4 into 20 to the power 9 hashes right

164:09

but the total number of valid hashes is

164:12

10 to the power 79 77 right so we cannot

164:16

generate we cannot generate all the

164:18

hashes that are possible now if you are

164:20

not getting it you will you will

164:22

understand just see this diagram so

164:24

let's say this is our nouns right this

164:25

is our number of nodes and this is our

164:28

total number of valid hashes okay and

164:30

let's assume that this is 4 into 10 to

164:32

the power 9 nonsense and just assume

164:35

that these are 10 to the power 7 7

164:36

hashes okay

164:38

now let's say as a miner I use one of my

164:41

nons and I was able to generate this

164:44

hash okay so I was able to generate this

164:46

hash that is present in our chart of

164:48

physics algorithm Now by using this I

164:50

was able to generate this this this this

164:52

this now after some point of time you

164:55

will see that I do not have any nonce

164:57

remaining in my bucket so I cannot

165:00

generate these hashes that are left and

165:02

it might be the possibility that my

165:06

target is

165:08

somewhere here right because it might be

165:12

a possibility right that I might I might

165:15

have exhausted all my nons I might have

165:17

exhausted all my nons but still I was

165:19

not able to produce these hashes so I

165:22

was not able to go to these hashes and

165:25

might be might be my answer is there in

165:28

these the in these hashes that are left

165:32

it can be a possibility right

165:34

so this is a problem and just do not

165:36

think that I am just I was just using

165:39

this noise and it was admitting this

165:40

nons meaning it can be here and here

165:43

also like this this can produce this

165:44

nons also this hash also this nons can

165:47

also produce this hash although I'm just

165:48

I'm trying to explain you another

165:50

concept here the concept is that with

165:52

the help of this noise you cannot

165:53

generate all the possible hashes that

165:56

are there and if you are not able to

165:57

generate all the possible hashes so you

165:59

might not be able to generate the hash

166:02

which is below the target

166:04

okay and this is a problem right this is

166:07

a problem

166:08

now let's look at another important

166:11

thing that let's say that a modest Miner

166:13

who is mining is able to generate 10 to

166:16

the power 8 hashes per second so this is

166:18

just an assumption so he is using some

166:19

technology and he is able to generate 10

166:22

to the power 8 hatches per second

166:24

now since we have only 4 into 10 to the

166:27

power nons how much time it will take to

166:30

consume all these nonsense so it will

166:32

take around 4 into 10 to the power 9

166:34

probably 10 to the power 8 equal to 40

166:38

seconds right now how how I got this

166:40

calculation let me tell you so in one

166:43

second

166:44

I was able to generate 10 to the power 8

166:46

hashes right so let me do it one

166:49

seconds and hashes okay so I'm using a

166:52

unitary mathemat Unity method of

166:54

mathematics so in one second I was able

166:56

to generate 10 to the power 8 hashes

166:58

right now

167:00

I have 4 into 20 Bar None nine nons

167:03

right so means I do I have 4 into 10 to

167:05

the power 9 dashes right because these

167:08

Norms are actually used to generate

167:09

hashes so we can say that with the help

167:11

of this 420 power 9 knots I am able to

167:13

generate 4 into 10 to the power 9 hashes

167:16

so the question is how much time will it

167:19

take to generate this number of hashes

167:22

so I am taking this as x a variable then

167:25

I'm going to do cross multiplication a

167:27

simple unitary method trick and go and

167:30

see this this is a simple thing and

167:33

we'll I will be getting X 4 into 10 to

167:36

the power 9

167:37

into 1 divided by 10 to the power 8 and

167:41

by this you can clearly see that in 40

167:43

seconds

167:44

I will be exhausted with all my nonses

167:47

now the question is what I will do if

167:51

all my nonsense are exhausted after 40

167:53

seconds what I will do right this is the

167:55

question

167:56

let me erase all these things

167:59

so this is my question that so what the

168:01

miners will do when nons get exhausted

168:05

and miners have not hit the target okay

168:08

this is a big question and we will

168:11

address this question in our next video

168:13

where we are going to talk about

168:14

timestamps field in our blockchain okay

168:18

hi

168:19

in this video we are going to talk about

168:21

time stamp so in the previous video we

168:24

have talked about a problem that we have

168:26

with the nonsense right we have limited

168:29

set of knots and the modest Miner and

168:31

the modest minded actually mines around

168:33

10 to the power 8 hashes per second due

168:36

to which a minor will get exhausted with

168:39

all its nons in just 40 seconds right

168:43

now the question arises that what the

168:46

miners will do when all the nouns get

168:49

exhausted and miners have not hit the

168:52

target this is a big question right and

168:54

the solution to this problem is

168:56

timestamp timestamp is also a field

168:59

given in our Bitcoin blockchain or any

169:01

other blockchain but for now we are

169:03

talking about Bitcoin and this timestamp

169:05

is the time at which a particular block

169:09

is created so let's say the timestamp

169:11

for this block can be this number now

169:13

this number within seconds this is

169:15

actually Unix timestamp means Unix time

169:18

let me show you that

169:20

so if I will go to this Unix timestamp

169:22

so this is our Unix time so this is the

169:24

time like at the at the time when the

169:27

Unix started in January 9 in January 1

169:29

1970 so you can clearly see that this

169:32

clock is uh going on right so now we

169:35

have one more field that is given to our

169:38

sha 256 algorithm and with the help of

169:41

which we are able to produce our hash

169:43

right earlier we were only talking about

169:45

block number nons data previous hash but

169:48

now we have one additional field and

169:50

that additional field is stamp which is

169:53

also given as an input to r256 algorithm

169:56

so whenever our timestamp will change

169:58

and since the timestamp will change in

170:01

every second right because this is given

170:02

in seconds so in the next time it will

170:05

be five six right this number and then

170:07

five six so when the timestamp will

170:09

change then definitely the output of our

170:11

chart of V6 algorithm will also change

170:13

hence we will have a different hash of

170:15

this blog right now let us see how this

170:18

timestamp can help miners like the

170:22

problem that we are facing right that

170:24

the nons are being exhausted so how this

170:27

timestamp can help us in this situation

170:30

so let's say this is the timestamp of

170:32

this block and let's say this is not

170:36

right and timestamp is not of this blog

170:38

actually uh this is the timestamp when

170:40

like you know the miners are actually

170:41

solving for this block okay so they are

170:44

solving this mathematical problem and

170:46

every time the timestamp is changing so

170:48

that's the thing okay currently I'm just

170:50

showing it inside the block so that you

170:52

can understand this in a better way

170:54

so now let us see this is our nonce okay

170:56

this is the nonce and it is currently at

170:59

zero okay so this is like a scale so it

171:01

is currently at zero okay

171:04

now let's say

171:05

that miners are solving this

171:07

mathematical problem they are using

171:08

their you know Technologies their mining

171:10

equipments in order to solve this

171:12

mathematical problem so let's say after

171:14

0.5 seconds after 0.5 seconds

171:18

okay yes one more thing to tell you yeah

171:21

I just forgotten this that a minor

171:23

exhaust 4 billion nodes in 40 seconds

171:24

this is what we have seen right so a

171:27

minor will be exhausting around 0.1

171:30

billion nons in one second right simple

171:31

calculation 4 billion in 40 seconds so

171:34

0.1 billion in one second

171:36

now let us say that this is a non scale

171:40

as I said let's say after 0.5 seconds

171:43

after 0.5 seconds so our timestamp is

171:46

not changed right because time stamp

171:48

will change in every one second so let's

171:49

say this is we are we have only passed

171:52

around 0.5 seconds and after 0.5 seconds

171:55

you can clearly see that some of the

171:56

nonsense get exhausted by the miners

171:59

because he is solving this mathematical

172:00

problem now in the next 0.5 second what

172:03

will happen in the next 0.5 second this

172:07

timestamp will change and since this

172:09

timestamp will change so we will have an

172:12

entirely different kind of a hash for

172:14

this block

172:15

right we will have an entirely different

172:18

kind of a hash for this block since we

172:21

will have a different kind of a hash for

172:23

this block The Miner can now again start

172:27

this nonce from 0 and again reuse the

172:31

nonsense I hope you are getting this

172:33

this is a little bit you know difficult

172:35

to understand so just just try to just

172:38

try to understand what I'm trying to say

172:40

here that since the hash is changed of

172:43

this block is change

172:45

partner can again start using nonce from

172:49

zero so that he can find its Target

172:53

because the hash is changed so by using

172:56

nons from 0 he will have entirely

172:59

different kind of hash when starting

173:00

from 0 right

173:02

this is what I'm trying to say so let's

173:04

say after one second again okay so again

173:07

after one second so what I'm trying to

173:08

say here is that after one second he

173:10

will be exhausting again some amount of

173:13

nonce if let's say it is 58 again some

173:16

amount of rocks is being getting

173:17

exhausted so after every second some

173:20

amount of knots will get exhausted and

173:23

once

173:24

that one second will hit again the miner

173:26

will start from zero and again he will

173:28

start using the nonsense again and again

173:30

so he is actually reusing the nonsense

173:32

again and again so this is what is

173:35

actually happening so 56 so now the no

173:38

The Miner has used this amount of nodes

173:40

and after 57 he will again go back to

173:42

zero and he will exhaust some more

173:44

amount of noise now let me tell you one

173:46

more important thing here just don't be

173:48

confused that this this is not starting

173:50

from this to this okay

173:52

like this at 56 it is was at this so you

173:56

might be thinking that at 57 it is

173:57

starting from this to this no at 57 it

174:00

is again starting from 0 to 57 only okay

174:03

at 58 again starting from 0 to this

174:06

point only now why this is changing like

174:08

why some at some point we have this

174:12

green ending here at 57 it is ending

174:15

here and at 58 ending here why it is

174:18

happening like this because only one

174:19

second is passing every time right and

174:21

this is a and then and this is due to

174:24

what we are taking into consideration is

174:27

that Miner is using a technology right

174:29

Isaac or GPU whatever technology so this

174:32

Asic or GPU technology might get heated

174:35

up and since the these technology might

174:38

get heated up so the efficiency of these

174:40

technology will get decreased right and

174:42

since the efficiency of these technology

174:44

will get decreased definitely it will

174:47

also affect the hashing rate of those

174:50

Technologies right if the that's why if

174:52

you have some of the pictures that

174:54

mining those big mining pools or I will

174:57

not say mining pool those big mining

175:00

companies have coolers or AC so that

175:03

they can cool off their big their big

175:06

you know Technologies they are using for

175:08

mining right so this is the simple case

175:10

that's why I'm showing you different you

175:12

know different number of nonsense are

175:14

getting exhausted in each and every

175:15

second okay

175:17

so one thing is for sure with the help

175:19

of this timestamp we are able to reuse

175:21

our nonsense right so the problem that

175:24

we were facing earlier that the nonsense

175:26

were getting exhaust again and again now

175:28

it will not they will not get exhausted

175:30

The Miner will be able to reuse the

175:32

nonsense so we have found a solution to

175:35

our problem

175:36

but here is a catch there is one more

175:39

problem let me tell you what is that

175:41

problem

175:42

if we talk about our current hashing

175:45

rate of the whole network okay I'm

175:47

talking about the hashing rate of the

175:48

whole network okay when all the miners

175:51

are and all the mining pools are there

175:53

you will see that this is around 234

175:57

million trillion hashes per second

176:00

234 million three lane hashes per second

176:03

this is a pretty big number

176:06

and if we talk about the number of

176:08

nonsense the number of nonses that we

176:10

have is only around 4 into 10 to the

176:13

power 9 as we have discussed in our

176:15

previous video and if we will divide

176:17

this number from this million trillion

176:19

hashes 10 to the power 6 10 to the power

176:22

I'm not considering this 234 and leaving

176:24

it out

176:25

then also this time we will see is 4

176:30

into 10 to the power 9 seconds

176:33

which is way less than one second means

176:36

the minor will be exhausting all its

176:40

nouns in just the power 9 seconds which

176:44

this number as I said is very very very

176:47

less than one second

176:49

now some of you might be thinking like I

176:51

you do not get this right why I am

176:53

dividing it this like this number from

176:55

this let me show you this

176:58

so this is our blockchain Explorer

177:00

website if you will go to this link

177:03

blockchain.com

177:04

hash it you will see that this is our

177:08

and I will go here so you can clearly

177:10

see might be able might be visible on

177:12

your screen it is

177:15

234.365 million and you can clearly see

177:18

that this is in given in trillion hashes

177:21

per second so the estimated number of

177:22

tetra hashes per second the Bitcoin

177:24

network is performing in the last 24

177:26

hours so actually it is for 24 hour data

177:28

but this is the total hashing rate of

177:32

the whole miners that are actually

177:34

mining for the Bitcoin

177:37

now

177:38

if you will go to our hashing

177:40

distribution of the different mining

177:43

agencies or the different mining

177:45

companies right we will see that a small

177:48

mining company is actually around let me

177:51

see whether they are providing any

177:53

percentage or not

177:55

it is not providing any kind of a

177:57

percentage I think no they are not

177:59

providing any kind of percentage but

178:01

what what important thing I want to

178:03

share is that if you will see this

178:05

unknown is actually

178:07

around I think 49 or around 40 percent

178:11

right it is around I think 47 percent or

178:14

something it is actually using 47 of

178:17

this big number

178:18

234 million trillion hashes per second

178:21

means this person not actually this

178:24

person this mining pool is actually

178:26

generating or I will say is able to

178:29

generate

178:30

around 47 of this

178:33

234.365 million trillion hashes per

178:36

second so if you will combine this

178:38

mining pool power they are generating

178:40

this nonce in this amount of rate and if

178:44

you will see the smallest mining also it

178:46

is it will be around I think one person

178:48

let's say this is around one person then

178:50

also if you will see this number is a

178:53

pretty big number and that's why if you

178:55

will see I haven't haven't included this

178:57

234 in the calculation I will only

179:00

assuming that the hashing rate the

179:01

current hashing rate is only around

179:03

million trade in hashes per second

179:05

that's why I have just taken 10 to the

179:06

power 6 into 10 to the power 12 I

179:08

divided this number by this 4 into 10 to

179:11

the power 9 by this number right

179:13

so you can clearly see that if we will

179:15

combine the mining pools the power of

179:18

the mining pools when they are working

179:19

together the mining the hash the the

179:22

nons are actually getting exhausted in

179:24

less than one second

179:26

so now again the question arises what

179:29

the miners will do

179:31

in their Ideal Time

179:33

right again this question arises what

179:35

the miners will do in their ideal time

179:37

because in less than one second they are

179:39

exhausting all their nonsense

179:41

and we will see the answer to this

179:43

question

179:45

now in this video we are going to talk

179:46

about Maple so let's start

179:49

so if we talk about our previous video

179:51

where we saw that the current hashing

179:54

rate is around 234 million trillion

179:57

hashes right for the overall uh Bitcoin

180:00

Network okay since we are talking about

180:01

Bitcoin so it is around 234 million

180:04

trillion hashes per second

180:06

and we also saw that if we talk about

180:09

the number of nodes we have only four

180:11

billion nodes that is 4 into 10 to the

180:12

power 9 nons and if we will divide this

180:15

uh by this total number of hashes per

180:17

second we can clearly see that 4 billion

180:19

nouns will get exhausted in Just 4 into

180:22

10 to the power 9 seconds that is very

180:25

very very less than one second right and

180:29

we ended our previous video by this

180:31

question what should the miners do in

180:34

the ideal time because in less than one

180:36

second all the announcers will be

180:38

getting exhausted now they do not have

180:40

nonsense and if they do not have

180:42

nonsense they cannot generate hashes so

180:44

they will use the Target right so what

180:47

they will do in this one second period

180:49

of time so should they wait four times

180:51

time to change that after one second and

180:52

then they will start again the nonce

180:54

process or there is some solution to

180:57

this problem and there is a solution to

181:00

this problem and the solution is the

181:03

transactions as we know that our Bitcoin

181:06

block consists of of number of

181:07

transactions which we have seen in our

181:09

previous video as well right so by

181:11

changing the transactions you will see

181:13

by changing the transactions we can

181:16

change the hash right because

181:17

transaction is also one of the fields

181:20

that we give to our sha 256 algorithm

181:23

and when we will pass our transaction to

181:26

r26 algorithm then the output will also

181:29

be generated and if we will change the

181:31

transaction so because transaction is

181:33

one of the input of our sharp 256

181:35

algorithm in that case output of our

181:38

chart to physician algorithm will change

181:39

hence we will have a different kind of a

181:41

hash right so now the question arises

181:45

from there these transactions come from

181:47

these transactions actually come from an

181:49

area that is called mempool and we will

181:52

talk about mempool in detail in our next

181:54

video but for now uh just imagine that

181:57

mempool is an area Okay from which

182:00

miners pick your transaction so whenever

182:04

you are transaction let's say you are

182:05

sending some Bitcoin to your friend this

182:07

transaction will be uh this transaction

182:10

will be transferred to this mempool okay

182:12

which is an area where all the

182:13

transaction will be there and from this

182:16

only miners will pick your transaction

182:18

so you can clearly see that I have not

182:21

actually I have this map I have a number

182:23

of transactions right and this thing

182:26

that you are seeing ff3 a b c d two

182:28

three ABC so this is the transaction

182:30

hashes and this is the fees okay because

182:33

as we know that miners also take a

182:37

little bit amount of fees whenever they

182:39

are processing your transaction because

182:40

they are you know they are doing a lot

182:43

of work there right they are solving

182:44

this mathematical problem and solve this

182:46

mathematical problem requires a huge

182:48

amount of energy and for that they

182:51

charge this a little bit amount of fees

182:53

for your transaction

182:55

okay so this is a very simple process so

182:58

here you can see that there are a lot of

182:59

number of there are so many transactions

183:01

so there will be so many people who are

183:04

doing some transaction in transaction

183:06

are actually being the part of this

183:08

mempool and now miners will pick their

183:10

transaction from this mempool only now

183:13

let me ask you a question if you are a

183:15

miner okay let's say if you are a miner

183:17

then which of these following

183:19

transaction you will pick and put it

183:22

inside your blog okay so let's say there

183:25

is a transaction there are a lot of

183:27

transactions here right in this mempool

183:28

and now you are a miner and you have to

183:31

create this block and in order to create

183:33

this block definitely you need some of

183:35

these transactions and you need to pick

183:36

some of these transactions into this

183:38

block and let's say you can pick around

183:40

four transactions from this mempool so

183:43

my question to you is which of the

183:46

following transaction you will pick from

183:48

these uh eight number of I think there

183:51

are eight number of transactions given

183:52

in the mempool what you will choose

183:54

pause me for some time and answer me in

183:56

the comment section of this video okay

183:58

and see whether you are right or not so

184:01

so I hope you have answered with the

184:02

question in the comment section now let

184:04

me tell you which of the which of the

184:06

following transaction The Miner will

184:08

pick

184:09

so you can clearly see that from among

184:13

these transaction this transaction if

184:16

you will see has the most amount of

184:19

transaction fee and since you are a

184:21

miner you want to make some profit then

184:23

definitely you will pick this

184:25

transaction as your first transaction

184:26

and you will put this transaction in

184:28

your Bitcoin below right second

184:31

transaction that you will pick since I

184:33

said right you can pick four

184:34

transactions so definitely you will

184:36

choose this transaction because this in

184:38

this you are getting a few of 0.06 and

184:42

in the same way you will choose this

184:43

0.05 and then 0.04 right because these

184:47

transaction these transactions have the

184:49

most amount of fees and you will take

184:51

these transaction you will put this

184:53

transaction to this Bitcoin block right

184:56

simple as it now you can clearly see

184:58

that these transactions are also part of

185:00

your Bitcoin blockchain and when there

185:03

will be a change in transaction your

185:05

hash will also change now let us go back

185:07

to our question that what happened if

185:10

all the nonsense will get exhausted in

185:13

less than one second let's start with

185:15

that question or let us start with the

185:16

solution of that question so let's say

185:18

this is our clock this is a beautiful

185:20

clock okay and this is our current

185:22

timestamp at 58 okay which is which is

185:24

has which has not changed yet okay let's

185:27

say this is our nons okay that we are

185:29

using

185:30

and let's say in less than one second in

185:32

less than one second you can just see

185:34

the clock just see this clock clear free

185:36

okay just see this Fork carefully and

185:39

you will see that in less than one

185:40

second we have exhausted all our

185:42

nonsense right

185:43

and still the timestamp is the same now

185:46

what Miner will do in this case because

185:48

nonses are exhausted he cannot depend

185:51

upon the timestamp he can only do one

185:54

thing in this case and that thing is

185:57

transactions he can change the

186:00

transactions given in this transaction

186:03

block and how he will do that he will

186:05

pick up a transaction which is having

186:07

the least amount of value okay which is

186:10

the 0.04

186:12

and he will replace this transaction

186:14

with a transaction which is just below

186:17

this 0.04 means Below in the sense which

186:19

is having a transaction fee of just less

186:22

than this 0.04 and if you will see in

186:25

this mempool the 0.02 is a transaction

186:27

which is having a transaction fee of

186:30

just less than 0.04 right and he will

186:33

replace these two transaction now as

186:36

soon as he will replace these two

186:37

transactions right you can clearly see

186:40

that now Miner can again use back all

186:43

the nonsense right because once he will

186:46

change the transaction the hash will

186:48

change right now he will have a

186:50

different kind of a hash and now he can

186:52

again change these nonses in order to

186:55

generate the target hash right I I hope

186:58

this makes sense because earlier if you

187:01

will go back to this situation we were

187:03

having some climate of a hash right and

187:05

by changing the nonce we were not able

187:07

to reach toward

187:08

now once we will change the transaction

187:10

like in this case we have replaced the

187:12

0.02 with 0.04 now this hash will change

187:16

so now we can again reuse our nonce

187:19

right now let's say again he will start

187:22

the same process he will generate some

187:23

nonce and only less than in less than

187:25

one second here again if you will see he

187:28

has again exhausted with all his nons

187:30

now what he will do again he will check

187:33

which is which transaction is having the

187:35

least amount of value in this case you

187:36

can clearly see it is 0.02 and he will

187:39

replace this with this 0.01 right he

187:42

will not replace it with this 0.04

187:44

because again he will land up to the

187:46

starting right so he will replace this

187:48

0.02 with this 0.01 transaction and now

187:52

again he is having an authority or I

187:55

will say not an authority again is

187:56

having a power to reuse the nonce right

187:59

and again you can clearly see that a

188:01

timestamp is still not changed so again

188:03

he will start the non-process and boom

188:06

in less than one second he has

188:08

again exhausted with all his nons now

188:11

what he will do he will again do the

188:13

same process again and again he will

188:15

replace the 0.01 with this

188:18

0.008 right

188:21

now

188:23

he will again start the same process

188:24

this is our repetitive process right and

188:27

again you can clearly see that he has

188:29

exhausted with all his Lawns and let's

188:30

say minor was not able to find the

188:33

solution with the help of this nons also

188:35

now what will happen because now you can

188:38

clearly see we are taking an example

188:40

error assumption here that we have we

188:43

have exhausted with all a transaction in

188:44

our mempool okay we can take this

188:46

assumption definitely there can be

188:47

thousands of transaction in our mempool

188:49

but I am entering this assumption that

188:51

we have exhausted with all our uh

188:53

transaction in our mem now what Miner

188:55

will do in this particular case

188:57

and the answer is if you will clearly

189:01

see here the timestamp will change after

189:05

this

189:06

one second has passed right till now the

189:09

case is that we were working with were

189:12

less than one second right so we started

189:14

with this less than one second less than

189:16

one second less than one second and now

189:19

we have reached R1 second now once he

189:23

will reached our once again

189:28

and since our trying stamped a timestamp

189:31

has changed in this case now you can

189:33

clearly see that the miner can again

189:36

restart the process of nons he will

189:39

again take the transaction which is

189:40

having the you know he will again take

189:43

the 0.04 which he has displaced earlier

189:46

so that he can found the solution he

189:48

will again take this 0.04 because it

189:50

this transaction is having the uh having

189:53

the most amount of transaction fee as

189:55

compared to the remaining transaction

189:56

and he will again start the process of

190:00

this generation of nons and if he will

190:03

be lucky he will get the answer in this

190:05

case otherwise again the same process

190:07

that we have discussed right this

190:10

process will get repeated again and

190:11

again till the time he will find his

190:14

solution

190:16

so I hope this makes sense let me just

190:19

give you a quick summary to you if you

190:21

are still not able to catch up with just

190:24

let me give you a quick summary to you

190:26

once again okay so we started with this

190:28

position okay and we exhausted with all

190:32

our nonsense in less than one second so

190:34

we replace our 0.04 transaction with

190:37

0.02 and now again we will start with

190:39

our nonsense again we exhausted with all

190:42

our nonsense still we haven't reached to

190:44

our solution so what we will do again we

190:46

will change the transaction means we

190:48

will replace the transaction so 0.02 was

190:50

replaced with the 0.01 now again the

190:53

mining process will start and boom again

190:56

you can clearly see that we assuming

190:58

that okay The Miner was not able to find

191:00

the solution and he has exhausted with

191:02

all his loans now what he will do again

191:04

he will again replace means

191:07

replace this transaction the 0.01

191:11

transaction with 0.08 and again he will

191:13

start the same process okay

191:15

okay 0.08 and again he will start the

191:18

same process and once he will reach to

191:21

this one second and let's say he is

191:23

still not he was now still not able to

191:25

find a solution he will do nothing just

191:29

he will wait for the timestamp to change

191:31

and once the timestamp will change again

191:33

he will be in power to use the nonsense

191:36

again and he will also take back his

191:39

piece right this transaction P of 0.04

191:41

why he is taking back a 0.04 transaction

191:44

first this is the this is the

191:47

transaction fee which is this

191:48

transaction is having the most amount of

191:50

transaction fee as compared to the

191:51

remaining transaction second reason is

191:53

because the timestamp will change so

191:55

with the timestamp has changed he will

191:57

be having a different kind of timestamp

192:00

right not timestamp actually different

192:02

kind of a hash for this block right and

192:04

due to which he can again use the

192:07

nonsense and again the same process will

192:09

start until or unless he will find the

192:12

solution to his problem so I hope hope

192:16

you understood this by now if you have

192:18

still any doubts please let me know your

192:20

doubts in the comment section below I

192:22

will be happy to answer your doubts okay

192:26

and yes let me tell you one more

192:28

important point in this video that never

192:32

try to have a transaction fees which is

192:34

two less okay so always see that what is

192:37

the current market transaction fee rate

192:40

if you will have your transaction fee

192:42

two Less in that case what will happen

192:44

Miner will never pick your transaction

192:46

in this case because minor let's say R

192:50

minor was not having any option right

192:52

that's why he picked this 0.008 but

192:55

still you can clearly see that 0.008 it

192:58

is wave pay way less than the these

193:02

transactions so chances that this

193:04

transaction will never be picked by The

193:05

Miner okay so just be careful if you are

193:08

doing any type of transaction

193:09

cryptocurrency transaction on a Bitcoin

193:11

or any other type of a blockchain just

193:13

remember that your transaction fee

193:15

should not be

193:16

so less that the miner will never pick

193:19

your transaction from the mempool okay

193:21

and in the next video definitely we will

193:22

talk about this mempool in much great

193:25

detail in this video we are going to see

193:27

how mempool Works behind the scene so

193:30

let's start

193:32

so this is our blockchain Network okay

193:34

so this is our blockchain Network and

193:36

the systems that you are seeing here

193:37

right so we are like we are assuming

193:40

that these systems these computers that

193:42

you are seeing on your scene are

193:43

basically miners

193:45

and this person like these people that

193:48

you're seeing in black color these

193:49

people are basically representing nodes

193:51

okay so these are the people who are not

193:54

doing any kind of mining these people

193:57

who are just here here it connected to

193:59

this blockchain network in order to do

194:01

some transaction let's say this person

194:03

wants to send some Bitcoin to this

194:05

person so that's why he need to connect

194:07

it to this blockchain network okay and

194:09

in the same way let's say the these

194:11

nodes also help in uh verification and

194:14

validation of a block so let's say if a

194:15

block will be created so these people

194:17

these nodes basically can validate and

194:20

verify a particular blog now let me tell

194:22

you one thing more that there is no like

194:25

any uh specific specialty or difference

194:28

between a node and a miner which

194:30

basically a miner is actually a node

194:32

only okay so this is a node only who has

194:34

actually opted for mining so these

194:36

people can also opt for mining so do not

194:38

just think that these two people are

194:40

basically two different kind of a people

194:42

they are same just the thing is that the

194:44

this node has opted for Mining and this

194:47

these nodes that you're seeing in Black

194:48

alert they have not opted for mining

194:51

okay

194:51

okay now as we have discussed in our

194:54

last video right that mempool is an area

194:56

where we store all our unconformed

195:00

transactions so let's say if this person

195:03

is doing some transaction that

195:04

transaction will go to mempool and

195:06

miners will pick transaction from that

195:08

mempool and I have discussed this in

195:10

great detail if you haven't watched the

195:12

previous video please watch that video

195:13

and then only continue with this video

195:15

okay

195:17

now many of you might think that when I

195:20

am seeing that mempool is an area where

195:22

all uncomfort transaction go you might

195:24

think that mempool is a centralized

195:26

database

195:27

but that's not the case mempool is not a

195:30

centralized database mempool is

195:31

something which is associated with each

195:34

and every node so this mempool is also

195:36

with the miners this mempool is also

195:39

associated with these nodes means these

195:41

nodes these miners has this area so

195:44

whenever you convert into node so your

195:46

system will be working as a database you

195:48

can think like your system is a database

195:50

not your system is a storage and in that

195:53

storage this mempool will be stored so

195:55

each and every person who is connected

195:57

to this blockchain network will consist

195:59

of this mempool okay so if you want to

196:01

have a mempool of your own means not of

196:03

your own actually a mempool like this so

196:05

you just need to be a so you need to

196:08

install a software called Bitcoin a

196:11

Bitcoin client and once you will install

196:12

this software you can also become a node

196:14

and then you will also have a mempool in

196:17

your system okay in your node

196:20

okay that's good now let's say this

196:23

person that you are seeing here this

196:25

node uh wants to do some kind of a

196:27

transaction so let's say this is our

196:29

transaction ID and he did some kind of a

196:32

transaction df123 now this information

196:35

will be conveyed to the

196:39

connected participants or the connected

196:42

nodes now one thing important to note

196:43

here is that you can clearly see that

196:45

this transaction is at this point of

196:47

time is an unconfirmed transaction so

196:49

until or unless this transaction will

196:52

not be verified and validated by The

196:54

Miner and will go to a block this

196:56

transaction will come under the category

196:58

of unconfirmed transaction and this is a

197:00

mempool this screen this green area that

197:03

you are seeing on your screen is a

197:04

mempool now this information will be

197:06

conveyed to the as I said to the

197:09

nearby nodes now once this information

197:11

will be converted to the nearby nodes

197:13

this transaction will also be added to

197:15

their mempool and the same way this

197:18

information will be transferred to the

197:20

remaining other nodes that are connected

197:22

to this blockchain network and by this

197:24

you see clearly see that these

197:26

transaction will be a part of each and

197:29

every mempool okay so any Miner can pick

197:32

these transaction from his mempool and

197:34

he will be able to then start mining

197:36

okay

197:37

now let's say this is also one of the

197:39

person who wants to do some kind of

197:41

transaction so let's say she did a

197:43

transaction of abc56 and this

197:45

transaction will again be added to the

197:47

uh nearby nodes so this information will

197:50

travel to the nearby nodes and from the

197:52

those this information will travel to

197:54

the other nearby nodes and this way you

197:57

can clearly see that all these

197:59

transactions actually added to the

198:00

mempool and by this only this mempool uh

198:04

will be filled with all the transactions

198:07

now currently what I am showing to you

198:09

on the screen is only four transactions

198:12

here right but that's not the case your

198:13

mempool can consist of thousands of

198:15

transactions but definitely I cannot

198:17

illustrate that here that's why I'm just

198:19

showing you four transactions okay so

198:22

this makes sense I hope now let us

198:24

understand so this is a process where we

198:26

have seen that how an unconformed

198:28

transaction goes to the mempool now let

198:30

us understand how this unconfirmed

198:32

transaction is taken from the miners

198:35

means how miners uh take these

198:38

transactions from the mempool and create

198:40

a blog for this so let's say uh

198:44

definitely since this is the blockchain

198:45

network so each of the nodes will have a

198:47

blockchain right exact copy of the

198:49

blockchain I have discussed in the

198:51

starting lecture right that blockchain

198:52

is a distributed immutable Ledger and as

198:55

we know that people are minors so they

198:58

will start mining for the Bitcoin

199:01

now let's say this Miner was the first

199:04

Miner who was able to create who was

199:06

able to solve this mining problem okay

199:08

he was able to solve this mining problem

199:10

and that's how he was able to create a

199:12

block and since he has now the

199:14

capability to create this block he can

199:16

add these transaction to this block okay

199:20

now once he will add these transaction

199:22

to this block he will convey this

199:25

information to the nodes to the nearby

199:28

miners that okay I have created this

199:30

block and I have like I have used this

199:33

like I have put these transaction into

199:35

my blog please confirm please verify and

199:38

will date my blog whether it is correct

199:39

or not now these nodes will start very

199:42

we'll start verifying and validating

199:43

these blocks and once they will verify

199:46

and validate and say that okay this

199:47

block created by this Miner is a correct

199:49

block

199:50

this block to their blockchain so you

199:52

can clearly see that so this information

199:54

has traveled to this this and this

199:56

person and that's why they have added

199:58

this block to their blockchain and once

200:00

they will add this lock to their

200:02

blockchain these transaction will also

200:03

move from this unconformed category to

200:07

the confirm category because now a block

200:09

is created and any transaction within

200:10

the block is a confirmed transaction now

200:13

this information again will be conveyed

200:15

to the remaining nodes they will also

200:17

create a will also take the remaining

200:19

like the transaction from this mempool

200:21

and I will they will add it to their

200:23

blog and in the same way others will

200:26

also do and this is how you can clearly

200:28

see that transactions are taken from

200:30

this mempool area to the blockchain area

200:33

okay so transactions are getting like

200:36

these unconfirmed transaction which

200:37

belongs to mempool are now becoming

200:40

confirmed transaction once they are once

200:42

they are part of this block of the

200:44

blockchain and this is how mempool works

200:47

but let me show you mempool in real life

200:49

also so how does mempool looks like so

200:51

this is our blockchain.com unconformed

200:54

like website and I have chosen this

200:56

unconfirmed transaction and now you can

200:58

clearly see that this is how mempool

201:00

looks like so what they are doing is

201:01

they also are this company

201:03

blockchain.com

201:05

um is running a node and now they are

201:07

displaying the data on our screen so

201:09

there you can clearly see that each and

201:11

every time one of the transaction is

201:13

being added to this mempool and all

201:15

these transactions are basically

201:16

unconfirmed transaction and this place

201:18

is nothing but this place is a mempool

201:20

now from this uncome from transactions

201:23

only miners will pick some of these

201:24

transaction and will add to the block of

201:27

the blockchain and once they will verify

201:29

and validate those block means from the

201:32

other participants of that blockchain

201:34

node once they will verify and validate

201:36

this block then these transactions will

201:38

become a confirm transaction so I hope

201:40

this makes sense do check out this

201:42

website this is a great website if you

201:45

are looking for some practical insight

201:47

about Bitcoin or ethereum or any of the

201:49

you know

201:51

like blockchain so mainly I think they

201:54

deal with Bitcoin and ethereum and then

201:55

Bitcoin cash and all those things but

201:57

still I will definitely suggest you to

202:00

do come and visit this website hi in

202:03

this video we are going to talk about

202:04

transactions and utxos in Bitcoin

202:08

blockchain so let's start so how

202:10

transaction actually occurs in a Bitcoin

202:13

blockchain okay so let us understand

202:15

that if you will understand this you can

202:17

easily understand how transactions

202:19

actually occur in any other kind of a

202:21

blockchain okay so this is very

202:22

important lecture so just be a little

202:24

bit more I will say cautious a little

202:27

bit more aware during this lecture so

202:29

let's say some of my friend okay let's

202:32

say some of my friend let's say Arjun

202:34

one of my friend transferred me some 0.4

202:37

Bitcoin to me okay in the same way there

202:40

is some friend of mine Raj who also sent

202:43

me some 0.3 Bitcoin Alice and Bob so

202:46

here you can see that all these people

202:48

Arjun Raj Alice

202:51

all these people have sent me some

202:54

amount of Bitcoin right

202:55

and these transaction that you are

202:58

seeing on your scene are basically

202:59

called as UT exos now what is the full

203:02

form of utxos these are unspend

203:06

transaction output unspent transaction

203:09

output or you can call them as UT exos

203:14

now let's say I want to buy this coffee

203:16

which is of 0.5 Bitcoin definitely a

203:19

very costly coffee but let's say I want

203:20

to buy this coffee of zero point but now

203:23

how this transaction will takes place

203:25

okay so let us understand this now if we

203:28

talk about a normal Banks transfer right

203:31

or a normal Bank uh I will say

203:33

transactions how it will work in a bank

203:36

Transaction what will happen let's say

203:38

if I have to buy this let's say 0.5

203:40

rupees or for 0.5

203:43

then in the bank statement what you will

203:46

see is that you will have some total

203:47

amount that is 0.4 plus 0.3 plus 0.7

203:51

plus 0.1 so you might have seen this

203:53

also right in your bank statement that

203:54

you have some this total bank account

203:57

balance and from that total account

203:59

balance from that total bank account

204:01

balance some amount get detected right

204:03

and this is how a normal transaction

204:05

Bank transaction looks like but in case

204:08

of Bitcoin this is not how it works okay

204:10

in case of Bitcoin what will happen so

204:13

understand how this transaction will

204:14

take place in the Bitcoin blockchain so

204:16

first thing that we will have is the

204:18

input okay so we will have an input and

204:21

from this utxos from this unspend

204:24

transaction output

204:26

our wallet because we are not going to

204:28

do that our Bitcoin wallet will select a

204:30

utxos which will help us in buying this

204:34

0.5 Bitcoin coffee

204:36

so either we can go for this 0.4 Bitcoin

204:39

plus 0.1 Bitcoin utxo or we can select

204:43

any other udx0 given here like this 0.3

204:46

Bitcoin udx so we cannot select because

204:48

this is not uh this will not be helpful

204:51

right to buy the 0.5 Bitcoin but we can

204:53

select this utxo so this is the total

204:55

random process this is done by just

204:58

selecting this Alice utxo definitely you

205:00

can also go for the 0.10.4 but we will

205:03

talk about this case in our upcoming

205:04

videos but in this case let let's say

205:06

that this utxo was selected from our

205:10

like by our wallet okay

205:12

now this utxo will be divided into two

205:15

first utxo the first output actually

205:19

will be 0.5 Bitcoin to the coffee shop

205:21

okay so 0.5 Bitcoin will be given to the

205:24

trophy shop so that we can buy the

205:26

coffee

205:27

the remaining utx so that is 0.5 0.7

205:31

minus 0.5 that is 0.2 Bitcoin will be

205:34

written back to us right because this is

205:37

this will work as a change we are giving

205:38

0.7 and 0.2 Bitcoin is written back as a

205:42

change right

205:44

now this UT this transaction that you

205:47

are seeing right this output that you

205:49

are seeing this will be utxo for the

205:51

coffee shop and this uh thing that you

205:54

are seeing this transaction that you are

205:55

seeing this output that you are seeing

205:57

this will be the utxo for our wallet

206:00

okay for our uh cryptocurrency wallet

206:02

where we have all these uh these all

206:05

these Duty xos now this is something

206:07

very different from a bank uh Bank

206:09

transaction right as I said in a bank

206:11

Transaction what will actually happen

206:13

from your total savings some amount will

206:15

get detected and this is how the

206:17

transaction will take place in a bank a

206:19

transaction in a bank in a banking world

206:21

right but in case of blockchain this is

206:23

now how it is done and don't worry if

206:24

you are still not able to get this

206:26

particular example we are going to have

206:27

many examples in our upcoming videos

206:29

then you will be able to understand this

206:31

in a much better way okay if you are

206:33

still not able to understand it if you

206:34

are able to understand it that's good

206:36

but in our upcoming videos I am going to

206:38

take some more examples so that I can

206:40

explain you this concept of udx host

206:42

because this is very important to

206:43

understand okay so we will see that so

206:46

this is how our utxo field will look

206:47

like so we will have Arjun utxo Raj Bob

206:50

and this will be a utxo from me to me

206:53

right because I am transferring 0.2

206:56

Bitcoin from my wallet to me only right

206:59

so that's how this will looks like in

207:01

our cryptocurrency in our Bitcoin wallet

207:03

and yes definitely we have also brought

207:06

this copy

207:07

now let me take one more example so that

207:09

you can better understand this so let's

207:11

say we have again these u2xos and we

207:14

want to buy this noodles which is a very

207:16

costly noodles of 1.4 Bitcoin but let's

207:18

say we want to buy this noodle so how

207:21

this input will work in this case let us

207:22

see some different kind of example now

207:25

in this case let's say our wallet can

207:26

select this 0.4 Bitcoin udx0 then this

207:30

0.3 Bitcoin udx0 and then this 0.7

207:34

Bitcoin udx0 so our wallet is selecting

207:37

all these three because 0.4 plus 0.3

207:40

plus 0.7 will be equal to 1.4 Bitcoin

207:43

and then this will be now this is while

207:46

this was our input and there will be an

207:48

output now this will be transferred to

207:51

our uh noodles shop only right because

207:53

we do not will be having any remaining

207:55

amount of beauty XO in this case right

207:56

because there is no change so this

207:59

output will become the utxo for our

208:02

noodle shop okay so this is how it will

208:05

work when we are adding all those but

208:08

still we will see some more example in

208:10

our upcoming videos and yes this will be

208:13

the only UD Expo that will be left in

208:15

our wallet because all these utxos this

208:18

religion Raj Alice we have spent all

208:20

these utxos so in our wallet we will be

208:23

seeing only this utx so okay and why

208:25

this is done like how why this is so

208:27

complicated actually this is done so

208:29

that in Bitcoin blockchain we can have a

208:32

track of each and every transaction and

208:34

we are not missing any kind of a

208:36

transaction that's why we are doing all

208:39

these complicated stuffs so that we can

208:41

have a track of each and every

208:43

transaction that is happening on Bitcoin

208:45

blockchain now in this video we are

208:47

going to talk about transaction fee the

208:50

previous video of utxos we talked about

208:52

how utxos work and if you haven't

208:55

watched the previous video please watch

208:56

that video

208:57

now in this example that we have

209:00

discussed in our previous Edo

209:02

so these were our available utx if

209:05

someone has done some payment and these

209:06

were the available uh udxos in our

209:10

wallet now once we will do this payment

209:12

for the coffee one of the U2 XO will be

209:15

selected from this given set of udxos

209:17

and let's say in this case we have

209:19

selected the 0.7 Bitcoin from LSU dxo

209:22

and once we are doing this payment you

209:25

can clearly see that this utxo has been

209:27

divided into two parts first is 0.5

209:29

Bitcoin to the coffee shop because we

209:31

want to buy this coffee and the second

209:33

utxo is there's 0.2 Bitcoin which is

209:36

given back to us just like we are like

209:39

we are actually giving back the change

209:40

right so we are providing some

209:42

additional money and the shopkeeper has

209:44

given us back the change now there is

209:47

one problem the problem is that we

209:50

haven't considered the transaction fee

209:52

so whenever we are doing some kind of

209:54

transaction in this case we are doing a

209:56

transaction right we are spending some

209:58

Bitcoin to buy this shop to buy this

210:00

coffee so we are doing some kind of a

210:02

transaction and in order to process this

210:05

transaction we need to pay some amount

210:07

of transaction fee to the miner because

210:10

Miner will be solving a mathematical

210:13

problem he will be taking our

210:15

transaction to create our to create a

210:17

Bitcoin block and then only our

210:19

transaction will get processed now in

210:22

order to know in order to make our

210:24

transaction get selected from The Miner

210:28

we have to pay a certain amount of

210:30

transaction fee so that transaction fee

210:32

can be anything but in this case let us

210:34

assume that we need to pay a transaction

210:37

fee of 0.1 Bitcoin so now what will

210:40

happen the 0.7 Bitcoin that you are

210:43

seeing on your screen it will not be

210:45

divided into 0.5 and 0.2 Bitcoin but it

210:49

will be divided into 0.5 Bitcoin and 0.1

210:52

Bitcoin because 0.1 Bitcoin will be the

210:56

fees that we are paying to The Miner

210:58

okay

210:59

and now the utxo will look something

211:02

like this so this utxo will be given

211:06

back to us right it will be the part of

211:08

our utxos field this udx0 will be the

211:11

part of our coffee shop owner and this

211:13

utxo the fees that we are giving right

211:15

this fee zero point 0.1 Bitcoin this

211:19

will be given back to the miner and this

211:21

is how actually utxos work in real life

211:24

okay

211:29

so remember this whenever you are doing

211:31

any kind of a transaction so in that

211:33

transaction you need to pay some amount

211:35

of fees to The Miner and that fees will

211:37

also be considered as a utxo for the

211:40

miner because it is like you are paying

211:41

some something to The Miner so it will

211:44

be a utxo for minus wallet so this is

211:47

how our utxo field will look like after

211:50

we will do payment for this coffee hi

211:53

welcome back now in this video we are

211:55

going to talk about cryptocurrency

211:57

wallets

211:58

so if we talk about cryptocurrency

212:00

wallets and if you have seen any

212:02

cryptocurrency wallet if you have it let

212:04

me show the cryptocurrency wallet I have

212:06

this metamask for it

212:09

so in this metamask wallet what you will

212:11

be seeing is that metamask wallet is

212:14

actually showing me the total amount of

212:16

cryptocurrency that I have in my wallet

212:19

means in my account actually

212:21

now this is actually rinky B this is

212:23

actually test Network actually it is uh

212:25

these are just generally these are

212:27

actually fake okay so just do not

212:28

confuse it with real ethers and try to

212:30

hack my account or something these are

212:32

fake ethers actually those these are on

212:34

test Network and we will talk about

212:35

these technical details what are test

212:37

networks what are fake ethers in great

212:39

detail in our upcoming courses but this

212:42

is not the part of this particular

212:43

course okay so in this if you will see

212:45

that I have this amount of balance in my

212:49

wallet so this arises a question right

212:51

that whether cryptocurrency wallets are

212:55

actually storing our balance right

212:57

because it is showing our balance so it

213:00

might be that whenever we are getting

213:02

some amount of cryptocurrency it is

213:04

getting stored on this wallet but this

213:06

is the case or not we are going to

213:08

answer this in this video okay and this

213:10

will be a very useful video for you to

213:12

just watch this video uh full okay

213:15

So currently you can see that I have

213:18

four blocks here okay and in all these

213:20

four blocks we have certain transactions

213:22

so if you remember from our coffee shop

213:24

uh utxo video if you do not just see

213:28

this screenshot I am attaching here so

213:31

here you can see that I have all these

213:33

transaction done to me and all these

213:34

transaction I'm showing on this block

213:36

number one so I am assuming that all

213:38

these transactions that are done to me

213:40

are actually the part of this block

213:42

number one this is just an assumption

213:43

okay so that I can explain you this

213:45

concept about cryptocurrency wallets so

213:47

this is just an assumption

213:49

this another set of transaction the

213:51

transaction that I am doing to the

213:52

coffee shop I am assuming that these are

213:54

the part of this block number two okay

213:56

in the same way and yes one more thing

213:58

that this transaction that you're seeing

214:00

right LS to me this transaction is

214:02

actually getting used up why because I

214:05

am using this 0.7 Bitcoin from Alice and

214:07

I'm giving it to the coffee shop and 0.2

214:10

back to me and these are the part of

214:12

this block number two so I am completely

214:13

using up this Alice 2 me transaction

214:15

right

214:17

now in the same way if you will remember

214:18

from our noodle shop utxo

214:21

example in that case we will see I have

214:24

some more amount of transaction done to

214:26

be and let us assume that okay my

214:28

friends are a little bit generous and

214:30

they are doing some more kind of

214:31

transaction they are sending me some

214:33

more Bitcoin to my wallet okay this is

214:35

an example and all these transactions

214:38

are plot of block number three and the

214:40

transaction that I am doing to the

214:41

Noodle Shop is a part of this walk

214:43

number four okay now in this also if you

214:45

will see this Arjun to me Raj to me

214:47

Alice to me all these three transactions

214:49

are getting used up so that I can pay to

214:51

this noodle shop right and I have shown

214:53

this here also

214:55

now

214:56

let us discuss uh let us discuss about

214:59

those transaction that we are not

215:01

spending so if you will see this

215:03

transaction which is done to me by Bob

215:06

we are not using this transaction we are

215:08

not using this transaction which is done

215:10

to me from me only while I when I was

215:13

giving the change

215:15

and if you will see this urgently

215:17

transaction rash to me transaction Bob

215:19

to me L transaction all these

215:22

transactions are those transactions

215:24

which are done to me means I was the

215:27

receiver and I haven't used up these

215:29

transactions well if you will see these

215:31

green transactions that you can see here

215:33

green viewed circles all these

215:35

transactions are Dawn transactions which

215:37

are actually used up transactions means

215:39

they are they do not uh definitely they

215:41

belong to the blockchain but we do not

215:43

care about it right because now we have

215:45

used all these transactions and the

215:48

remaining transaction that I'm showing

215:49

with the help of an arrow not actually

215:51

error because like this transaction

215:54

actually what I'm trying to say like

215:55

this transaction where I'm doing a

215:57

transaction to this noodle shop so this

215:59

transaction is a transaction where I am

216:01

the sender I am not the receiver right

216:03

so I am the sender here in the case of

216:05

this also me to coffee shop I am the

216:07

sender so this transaction is also I'm

216:10

not highlighting with yellow because I

216:11

am the sender I am detecting some

216:13

balance from my account to pay the this

216:15

coffee shop to pay this noodle shop

216:17

right

216:18

now let us see how actually

216:20

cryptocurrency wallets work how whether

216:22

like since we have this

216:26

questioning our cryptocurrency or not

216:29

now this in with the help of this

216:31

example it will be very clear that

216:33

cryptocurrency wallets are not actually

216:35

storing our cryptocurrencies so what

216:37

cryptocurrency wallets are actually

216:39

doing is they are keeping track of all

216:42

these yellow utxos

216:45

means those utxos which we haven't spent

216:49

like this green one and those udxos in

216:53

which we are the receiver because once

216:56

we are receiving something that will be

216:58

the part of our balance right so

217:00

cryptocurrency wallets are just keeping

217:02

the track of all these utxos by talking

217:05

to the blocks that you can see here

217:06

right they talk to these blockchain the

217:08

different blocks of the blockchain and

217:11

from that only they are able to keep the

217:13

track of all the unspent transactions

217:15

that are done to me and then what they

217:17

do they tap the value of all these

217:21

transaction and by that they are able to

217:23

determine the total amount of balance

217:25

that I am having on my account in my

217:28

account

217:29

so they are not actually storing our

217:31

cryptocurrency they are just keeping the

217:33

track means they are just keeping the

217:35

track on these blockchain the different

217:37

blocks of the blockchains and by that

217:39

they are able to calculate the total

217:41

amount of balance so they are just

217:43

displaying they are just displaying the

217:45

total amount of balance they do not have

217:46

our cryptocurrencies in any way they are

217:48

not in a position to uh to anything with

217:52

our cryptocurrencies and anyway until

217:53

unless it is a centralized wallet so we

217:57

have different kind of wallets we have

217:58

different kind of exchange like we have

218:00

centralized exchanges as well we have

218:02

decentralized exchanges so the X the

218:05

wallet that I have shown you right the

218:06

metamask wallet metamask wallet is

218:08

actually a decentralized wallet so

218:10

metamask wallet is not storing our

218:12

cryptocurrency

218:14

cryptocurrencies or metamask wallet is

218:17

not in a position to manage our

218:18

cryptocurrencies because the total

218:21

control of our cryptocurrencies is in

218:23

our and only metamask cannot do anything

218:26

in that case Okay so by this

218:29

remember that wallets if a wallet is a

218:31

decentralized wallet they do not keep

218:34

track of our cryptocurrencies but

218:36

definitely if you are using a

218:37

centralized exchange or a centralized

218:39

wallet chances are high that they are

218:41

actually storing all your

218:42

cryptocurrencies and they are displaying

218:44

the result to you on your wallets okay

218:47

so be aware about this also whenever you

218:50

are trying to use any cryptocurrency try

218:52

to go for a decent rise exchange try to

218:54

go for a decent eyes wallet but

218:56

definitely see whether it is safe or not

218:57

okay just do not blindly go to any

218:59

decentralized exchange or wallet the

219:01

point is that remember this thing that I

219:04

do not want to go in the detail of the

219:05

trading and all those things the point I

219:07

want to make clear is that decentralized

219:08

exchanges decentralized wallets are able

219:11

to keep track of your cryptocurrencies

219:13

by this method by keeping the track of

219:15

the different transactions that are

219:17

happening on the blocks and then they

219:18

are fetching those results and showing

219:20

you to you in the wallet so that you can

219:22

see easily on the UI part of the wallet

219:24

okay

219:25

now in this video we are going to talk

219:27

about private and public key and this

219:29

will be an important video so please be

219:32

with me

219:33

so in the previous video what we have

219:34

seen is that whatever transaction that

219:37

we do get actually stored on our

219:39

blockchain right and we also discussed

219:41

about the cryptocurrency wallets how

219:43

they work if you haven't watched the

219:45

previous video please watch it then you

219:47

will be having a better Clarity during

219:49

this video now the problem with this

219:52

model is that there is no Central

219:54

Authority who is actually verifying who

219:57

is actually doing a transaction let's

220:00

say for example like you can clearly see

220:02

that there is a transaction right Bob is

220:04

sending some Bitcoin to me 0.1 Bitcoin

220:06

to me right but how and who will

220:09

actually verify whether this Bob is

220:12

actually doing a transaction

220:14

and this 0.1 Bitcoin is actually being

220:16

sent by Bob we do not know right if we

220:20

talk about banking system they have

220:22

their own identification function so

220:24

which they are able to verify okay this

220:26

person is sending some amount of money

220:28

to this person so they are able to

220:30

verify all of those things but in case

220:32

of a decentralized financial system if

220:35

like it is a decentralized financial

220:36

system because we can send transactions

220:38

right we can money we can receive

220:40

Bitcoin actually so it is a kind of a

220:42

decentralized financial system right so

220:45

in this case you can see that there is

220:46

no centered Authority who can verify

220:48

whether the transaction is being done by

220:50

a particular person or not

220:52

just imagine a situation where a miner

220:54

is keeping some fake transaction in

220:57

these blocks because Miner have the

220:59

authority of uh of mining transactions

221:02

right of creating things so what they

221:05

can do is they can generate some fake

221:06

transactions let's say they can generate

221:09

some transaction of a is sending some

221:11

Bitcoin to them and they can have this

221:13

transaction in these blockchains right

221:16

now if this will happen in that case the

221:19

whole financial system of blockchain of

221:22

Bitcoin blockchain or any other

221:23

blockchain will collapse so how this

221:25

verification and validation of a

221:28

transaction takes place we are going to

221:30

see that in this video so this

221:32

verification and validation of a

221:34

transaction takes place with the help of

221:35

two keys first key is our private key

221:38

and second key is our public key so let

221:41

me show you this private key and public

221:43

key in my metamask wallet so this is a

221:46

wallet that I have talked about right in

221:48

the previous video so let me enter my

221:49

password here okay so this is my

221:51

metamask wallet and in this if you will

221:54

see this this is an account right so

221:56

this is an account so let me do one

221:59

thing

221:59

let me go for Account Details now if you

222:03

will see that this is my account this

222:05

account is nothing but this is account

222:07

is actually our public key but

222:09

definitely uh we will talk about this

222:11

account in more detail in our upcoming

222:12

video but for now you can think of this

222:14

account address as our public key

222:17

because this will be the address that we

222:19

will be sending to other person whenever

222:22

they want to transfer some Bitcoin or

222:24

some ether to our address okay and I

222:27

will show you that so don't worry about

222:28

it

222:29

so another thing if you will see let me

222:32

show you the

222:34

private key of this

222:37

count

222:39

details I think export private keys so

222:43

let me type my metamask password

222:46

remember one thing guys that this

222:48

private key is something that you should

222:49

never disclose to anyone because I'm

222:53

using fake ether here definitely if I

222:55

will be having some real ether I will

222:56

not be showing you this private key

222:58

because this is something very

222:59

confidential that you should never share

223:01

with anyone and that's what metamask

223:03

what it's also saying that never

223:05

disclose this key anyone with your

223:07

private keys can steal any asset held in

223:09

your account we've got this private key

223:11

will actually act as a nature okay I

223:14

will talk about this in great detail

223:15

just don't worry just see this that this

223:17

is your private key okay so this is your

223:20

private key so this is your public key

223:22

and let's say I want to send some ether

223:24

to some different account let's say I do

223:25

do I have another okay no issues what I

223:28

will do I will send some ether to my

223:29

account only so let me do that so I will

223:32

copy this I will send I will send to so

223:36

you can clearly see that I am this is

223:38

actually the sending address is actually

223:40

the public address where I want to send

223:42

some either I'm taking the example of

223:44

ether because this is Rinky B test

223:46

Network actually provides us with

223:47

ethereum transactions so don't worry

223:50

whether it is ethereum or whether it is

223:51

a Bitcoin because concept Remains the

223:54

Same okay so let's say I want to

223:56

transfer some 0.0001

223:59

rinky B it and when I will click once

224:03

you can clearly see that

224:06

so this so This transfer of ether is

224:09

actually taking place from my account to

224:11

the account that I am sending ether to

224:12

so when I'm sending this ether I will be

224:15

signing this transaction with my private

224:18

key stating that this transaction is

224:20

actually done by me okay and to whom I

224:23

am sending this transaction is the

224:25

person I am having the public key or you

224:27

can think of it as address or public

224:30

address of that person where I am

224:32

sending this ether to so when I will

224:33

click on confirm

224:36

so this transaction will take place and

224:38

some amount of ether will be transferred

224:41

from my account to some other person

224:43

account okay now the question arises as

224:45

I said who will verify this whether the

224:47

transaction that I have done right now

224:49

in front of you whether that transaction

224:51

is actually done by me or by some other

224:53

person so let us see that so for that we

224:55

have something

224:57

which is called as verification function

224:59

let me show you that so this is our

225:02

message message means this is our data

225:04

or you can think of it as transaction

225:06

also this is our private key I have

225:09

shown you this right now with the help

225:11

of this private key only our public key

225:13

our public exp is actually generated

225:15

okay so this private key is something

225:16

that you keep

225:19

with you only you never shared this

225:21

private key with anyone in the world and

225:23

this public key is something that you

225:24

share with anyone from whom you want to

225:27

receive some amount of cryptocurrency so

225:29

you can think of private key as your

225:31

email address password and public key as

225:34

your email address so you can share this

225:36

public key with anyone but you cannot

225:38

share this whatever key with anyone okay

225:40

now since this is our message and we

225:43

want to make sure that this message is

225:46

actually signed by us so what we will do

225:48

is with the help of this private key we

225:50

will sign this transaction now when we

225:53

will sign this transaction what we will

225:55

have is a signature now in order to

225:58

verify whether this message or this

226:00

transaction is being signed by me or not

226:02

what we will have we will be having is a

226:05

verification function now we will pass

226:08

as an input to this verification

226:09

function this message the transaction

226:11

that we have done this in nature okay

226:14

the signed message that we have done and

226:17

the third thing is our public our our

226:19

public key when we will pass these three

226:21

things to this verification function

226:23

this verification function will either

226:25

give in the output in either in yes or

226:28

no output is yes then we will say okay

226:31

this this message is actually being done

226:34

by this public key only means this

226:36

message this transaction is actually

226:38

done by me or the person who is actually

226:40

doing this transaction only and if this

226:43

verification function says no Then we

226:45

will say that okay the person who is

226:47

doing this transaction is not the right

226:49

person and then we will uh this

226:51

verification function will give an

226:53

output no with the help of which we will

226:56

be able to verify whether this message

226:58

is a correct message or a corrupted

227:01

message okay so this is a very simple

227:03

process we will talk about this in much

227:05

more detail in our upcoming videos this

227:07

is just to show you an overview of how

227:10

private key and public key is actually

227:11

used in cryptocurrency transactions hi

227:14

now in this video we are going to talk

227:16

about public key and private key

227:19

demonstration in the previous video we

227:21

have seen how we can use private key and

227:24

how we actually use public key and

227:26

everything in detail right now in this

227:28

video we are going to see a

227:29

demonstration for it so let's go to this

227:31

website and just for search for this

227:33

super data science public key and you

227:35

will find this link okay this first link

227:37

public slash private key pairs just

227:39

click on this

227:41

now once you will click on this you will

227:43

see that you will have two things that

227:45

is your private key and as well as your

227:47

public key Now by clicking on this

227:49

random function you can have different

227:51

private keys and different public key

227:52

lists say if I want to click on this if

227:55

you'll you can see right I'm just

227:56

clicking on this random function and as

227:59

I'm clicking on this random function my

228:01

public key is also getting changed

228:02

because as we have discussed in our

228:04

previous video with the help for private

228:06

key we generate our public key right

228:09

so let's say if I'm having something

228:11

like this so you can clearly see that as

228:13

I am changing the private key I'm

228:15

removing some elements from the private

228:17

key my public key is actually getting

228:19

changed right now remember one important

228:21

point that never have your private key

228:23

too short because if you are going to

228:25

have your private key Too Short in that

228:27

case what will happen anyone can guess

228:30

your private key and on behalf of you

228:33

they can do transactions so which I

228:35

don't think so you want it so do not

228:38

create your I will suggest you that do

228:40

not create your private key because when

228:42

you are going to create your own private

228:44

key chances are very high that it can be

228:46

easily used because humans are very poor

228:48

in creating random numbers okay in

228:50

generating random numbers that's why we

228:52

have computers so let the computer do

228:54

this work do not do that just for the

228:56

demonstration purpose I'm showing you

228:57

that by changing the elements here you

229:00

can have your different set of private

229:02

key I think it does not support the

229:04

alphabets that's why it is not changing

229:05

but no shoe so let's have number only

229:09

okay right now let's go to the

229:12

signatures part so in the signatures

229:14

part as we have discussed that with the

229:16

help of our private key what we do we

229:18

generally

229:19

verify that the message that we are

229:21

doing the transaction that we are doing

229:23

is actually done by us right so let's

229:25

say this is me

229:27

chitage I know it is a complicated name

229:30

sends some Bitcoin to

229:33

let's say uh Raju okay so we have Chutes

229:36

we have Raju this is our message so I

229:39

want to sign this transaction I want to

229:41

sign this transaction so what I will do

229:43

I will just click on the sign now as

229:45

soon as I will click on the sign you can

229:47

see that I have this message signature

229:49

and you cannot change this message in

229:51

nature because this is something which

229:52

is actually being done by using your

229:54

private key and by using your message

229:56

okay

230:00

so for different messages you will see

230:03

different kind of message in nature so

230:05

let's say if I'm changing it okay some

230:07

random text now if I will click on sign

230:10

okay

230:11

I think it is not supporting alphabets

230:14

that's right no no I don't think

230:17

I think oh no it is supporting alphabet

230:19

I just do not thought I do not see that

230:21

it is changing the signature it is too

230:24

long right so you can clearly see right

230:25

as I'm changing the message and I am

230:28

signing it okay I'm not saying

230:30

so now I am changing the message and I'm

230:32

signing it so you can see that I have a

230:34

different message in nature right

230:35

private key is the same definitely you

230:37

can change your this private key Also

230:38

let's say you want to have some

230:40

different private key like this and if

230:42

you will click on sign you will have a

230:44

different kind of message okay message

230:45

initial actually so this is how this

230:48

works in uh in Practical right now let

230:51

me show you this verification function

230:53

also so as we have discussed in the

230:55

previous video that for verification we

230:58

need message we need public key as well

231:01

as we need signature right and you can

231:02

see that we have all three elements here

231:04

when I will click on this verify you

231:06

will see that this will turn into green

231:09

color so let me click on this so now you

231:11

can see that it turns into green color

231:13

and if I'm going to change anything and

231:15

then I am going to verify it then you

231:16

will see that it will turn into red

231:18

color so let's say I am manipulating

231:20

this message okay I am a hacker and I am

231:22

trying to manipulate this message I'm

231:24

trying to change some data from this

231:26

message so what I am doing is I am just

231:28

instead of sending a transaction money

231:31

to Raju I am sending this money to me

231:33

let's say Okay so let's say this is me

231:36

just like this only and now if I will

231:39

click on verify you will see that it

231:41

will turn red in color white does white

231:43

girl get turn red in color because the

231:47

message because the signing that we have

231:49

done was for actually

231:51

H2 Raju right but now we have changed

231:55

the message we have uh manipulated the

231:58

message and since we have manipulated

231:59

the message that's why when we are doing

232:01

this verification it is turning into red

232:04

okay so if anyone is changing the

232:06

message or public key or signature in

232:08

any way then this verification function

232:10

will always give red color or I will say

232:13

no as an answer and this verification

232:16

will not be done okay and if it is

232:18

turning green in color means if the

232:19

verification function is sending an

232:21

output yes then it is working perfectly

232:23

fine mean your means your message public

232:26

key answer nature everything is fine and

232:28

you can work with this okay so I hope

232:31

you enjoyed this video this

232:32

demonstration video I will meet you in

232:34

the next video and definitely if you

232:36

have liked this video please click on

232:37

that like button if you are new to this

232:39

Channel please subscribe to this channel

232:40

because I'm regularly going to upload

232:41

new blockchain courses on this channel

232:43

and yes meet you soon take care bye bye

232:46

if you have any doubts comment below

232:47

this video okay

232:49

now in this video we are going to talk

232:50

about public key versus Bitcoin address

232:54

so if you remember from our previous

232:56

video where we talked about private and

232:58

public key where we talked that with the

233:01

help of this private key we generate

233:03

this public key and let's say if you

233:05

want to do any kind of transaction or

233:07

let's say we want to do any kind of you

233:09

know any we want to send any kind of

233:10

message then we sign this message using

233:13

this private key means we take this

233:15

private key this message and with the

233:16

help of which we generate a signature

233:18

right and then we take the signature

233:21

this message and the public key to this

233:23

verification function and with the help

233:25

of which we can verify whether the

233:27

transaction whether this message is

233:28

actually being sent by us or not right

233:31

and if you haven't saw the previous

233:33

videos please saw this video I have

233:35

talked about this in detail

233:36

now in this example we have more entity

233:40

and that entity is Bitcoin address now

233:44

what is this Bitcoin address

233:46

people think that Bitcoin address and

233:48

public key are the same thing but that's

233:50

not the case Bitcoin address is the

233:52

address at which you receive Bitcoin so

233:56

let's say you have a friend and you want

233:58

to receive some Bitcoin from your friend

234:00

so what you will send is your Bitcoin

234:03

address to your friend and then your

234:05

friend will transfer some Bitcoin to

234:07

that Bitcoin address

234:09

people think that public key is actually

234:10

being sent but actually Bitcoin address

234:13

is being sent in order to receive

234:15

Bitcoin here okay now what is the use of

234:18

public key so public key as we can

234:19

clearly see it is actually used for the

234:21

authentication right so whenever we are

234:23

doing some kind of transaction let's say

234:25

I'm sending some Bitcoin to my friend in

234:27

that case I will be using my public key

234:30

so public key is a different thing and

234:33

Bitcoin address is a different thing

234:35

now there might be some questions here

234:37

that why do we have publicly different

234:39

even though public is something that can

234:41

be you know that can be public in nature

234:43

so why do why do we not send our public

234:45

key for receiving Bitcoin why do we have

234:47

this special Bitcoin address and the

234:50

reason for this is that we want to make

234:52

our system more secure by sending our

234:55

public key we are actually making

234:57

ourselves more I will say vulnerable

234:59

because now we are sending our public

235:02

key to each and every one person and

235:05

might be individual they might be uh you

235:08

know I will say

235:09

0.0001 possibility that with the help of

235:12

our Public public key we might Trace

235:14

back to our private key but that's not

235:16

the possible case because we can only go

235:18

from private key to public key we can

235:20

never go for go back from public to

235:22

private key but there might be any case

235:25

in future must like any invention or

235:28

something like that there can be a

235:30

situation where we are able to go back

235:32

from our public to private key from this

235:34

public key to private key now that that

235:36

will be a very you know dangerous

235:37

situation now to have some additional

235:40

layer here to have some additional

235:42

security layer here what we have done is

235:44

we are generating a Bitcoin address from

235:47

this public key so let's say if someone

235:49

is trying to decode this Bitcoin address

235:52

might be again this is a might be a very

235:56

less probability case if something

235:58

happens in the future also then also

236:00

they will they will be able to go back

236:02

to the public key but not directly to

236:04

the private key so we are actually

236:06

adding one more security layer here so

236:08

that nobody can go to this private key

236:11

because private key is something that

236:12

needs to be private if someone is having

236:15

access to our private key they can take

236:18

all our funds they can manipulate all

236:20

our funds means they can do anything

236:21

with our cryptocurrencies that we have

236:23

in our wallet so that's why we have this

236:26

public key as well as this Bitcoin

236:28

address Bitcoin has to receive Bitcoin

236:29

public key for the verification of this

236:32

uh for for the verification of this for

236:34

a verification of our transaction okay

236:37

so if we talk about a Bitcoin blockchain

236:39

a typical block of a Bitcoin blockchain

236:42

is of size 1 MB okay so in this 1 MB we

236:46

have the block number some different

236:48

fields like you know as we have

236:49

discussed timestamp nodes and other

236:51

other fields as well as well as we have

236:54

a lot of transaction definitely I'm

236:55

showing only three transactions here but

236:57

definitely there are more transactions

236:58

here these are the transactions ID by

237:00

the way and this is our previous hash

237:02

this is our cache so you can see that

237:04

this one MB of block is containing so

237:07

many things right

237:08

and not only this this thing this 1mb

237:12

block also contains some more

237:14

information about the transactions

237:15

because we cannot only depend upon the

237:17

transaction ID right we need some more

237:19

information about the transaction like

237:21

uh who is doing this transaction to whom

237:23

this transaction has been done the

237:25

amount of Bitcoin that has been sent as

237:28

well as the signature and public key why

237:31

do we require signature in public key as

237:32

we have discussed in our previous video

237:34

of private and public key where we

237:36

talked about that so nature and public

237:37

key is required so that the other person

237:41

can verify whether this transaction is

237:44

actually being done by me or not by me

237:46

uh by me as in like in this case X is

237:49

doing some transaction so to verify

237:51

whether X has actually done this

237:52

transaction or not so nature and public

237:54

key is required and we have discussed

237:56

this in the previous video right so you

237:58

can see that transaction is involving so

238:00

many different fields also and this

238:02

thing this script sick means this in

238:05

nature as well as this public key

238:07

acquires around 60 to 65 percent of

238:11

space

238:12

now just imagine we have our MMB block

238:15

with 60 to 65 percent of space is

238:18

actually being acquired by this in

238:20

nature and by this public key which is

238:23

not a good thing why because if this

238:26

thing is acquiring around 60 to 65

238:27

percent of space then we have few space

238:30

left in order to have our transactions

238:33

means if we will cover this amount of

238:36

space just by its nature and public key

238:38

then we will have only few transactions

238:40

right because if this is acquiring 60 to

238:43

65 percent then we have on we are left

238:46

with only I think 30 to 35 percent of

238:48

space for our transactions which we do

238:50

not want right we want to accommodate

238:52

more number of transaction to our block

238:54

why so that more number of processing

238:56

can take place more number of

238:57

transaction can be solved means can be

239:00

processed in per second like in the case

239:02

of Visa which is actually solving

239:04

processing around thousands of

239:06

transaction per second and we've also

239:08

want the same with blockchain right with

239:10

Bitcoin blockchain because if we we will

239:12

process less number of transactions per

239:14

second then people will not be good

239:16

right people will not be happy that

239:18

let's say they have they have done some

239:19

transaction and not they have to wait

239:21

for let's say three to four days and

239:23

nobody wants this type of thing right

239:25

nobody wants to wait for three to four

239:26

days for a single transaction which can

239:28

be done using you know your via bank

239:30

transfer by a Visa in just few

239:33

milliseconds

239:34

so blockchain Community decided

239:37

something what they thought that instead

239:40

of having this 60 to 65 percent of a

239:42

space this stick with this this thing is

239:45

actually called as thick weight okay

239:47

segment as in segregated witness okay so

239:50

segment is segregated witness because

239:52

this is the witness that are doing this

239:54

transaction

239:55

and what the blockchain community taught

239:57

that why not to remove this thing and

240:00

said like let's send this thing

240:02

separately let's do not send this thing

240:04

the 60 to 5 65 percent script say within

240:07

this blog instead of this why not to

240:10

send this separately so first you will

240:13

have a Blog in which you will have all

240:15

the transaction okay so you can fully

240:17

use a block for filling up the

240:19

transactions and once you have fill up

240:21

the transaction once you are running

240:22

with

240:23

the feeling of transaction now you can

240:26

send this script Sig afterwards so by

240:29

this we are able to accommodate more

240:32

number of transaction with the by which

240:34

the miners will be able to process more

240:36

number of transaction per second and by

240:39

which people will be more happy in the

240:41

Bitcoin community so this was the

240:44

suggestion that was adopted and due to

240:46

which we have this thing this in nature

240:49

and public key which is also known as

240:51

segregated by segregated because now

240:52

they have they have been segregated

240:54

means they have been detached from this

240:56

and now they are being sent separately

240:59

in the Bitcoin Network okay so this is

241:02

something very important to know that

241:04

now you have this these things in nature

241:06

in public here as a separate entity and

241:08

this transaction field and all these

241:10

fields as a separate entity once your

241:12

transaction is filled up like once your

241:14

block is created then you send these

241:16

cigarette segregated Witnesses or script

241:19

sick after that okay so this is done so

241:22

that we can have more space for our

241:24

transaction so that we can process more

241:26

number of transactions per second okay

241:28

so this is all about segregated witness

241:30

hi in this video we are going to talk

241:32

about hierarchically deterministic

241:34

wallet or HD wallets so let's see what

241:37

it is and what is the use of HD wallets

241:41

so if we talk about our previous video

241:43

in that video we have discussed that

241:45

this Bitcoin address is actually used in

241:47

order to receive Bitcoin right and this

241:50

Bitcoin address is there so that we can

241:52

have secure kind of transaction because

241:54

so that we do not have we do not have to

241:56

reveal the public key every time we are

241:58

doing any kind of transaction right so

242:00

this was the whole purpose of Bitcoin

242:02

address but if I will tell you here that

242:04

there is still one problem one issue

242:07

with this particular approach where we

242:10

are using only single Bitcoin address

242:13

and the issue is that there are privacy

242:17

concerns now what is this privacy

242:19

concern since we are using the same

242:21

Bitcoin address again and again to

242:24

receive Bitcoin from our friends from

242:26

our relative or from our customer let's

242:27

say if you are a business owner so

242:29

anybody can track my Bitcoin address

242:32

transaction because I'm using the same

242:34

address again and again and everyone is

242:37

doing kind of transaction what kind of

242:39

Bitcoin to my this same Bitcoin address

242:42

so anybody can go to bitcoin Explorer or

242:45

any website like this and they can

242:47

search for my Bitcoin address and once

242:49

they will search for my Bitcoin address

242:51

they can see all kind of transaction

242:54

that I have receive or all kind of

242:56

Bitcoin that I have received from my

242:58

friend or from a relative or any other

242:59

person

243:00

now this is a dangerous kind of a

243:02

situation right because

243:04

now any person who is who who we do not

243:07

know any hacker or any you know scammer

243:10

can track down

243:12

the pattern that we are doing means he

243:15

can track down the pattern in

243:16

transaction that okay this kind of like

243:19

this this particular Bitcoin address is

243:22

receiving this kind of Bitcoin so might

243:25

be this person is a business owner or

243:27

let's say might be this person is a very

243:29

rich person because he receiving

243:30

constantly receiving some amount of

243:32

Bitcoin to his Bitcoin address so

243:34

anybody can easily find out the pattern

243:36

anybody can easily find out all the

243:39

transaction that we are doing and this

243:40

is not we want to show right to all the

243:43

person we do not want to show this to

243:44

the public you do not want to show that

243:46

okay today you have brought some coffee

243:48

or you have brought some clothes you do

243:51

not want to show this to the public that

243:52

you are doing this kind of transaction

243:54

so what is the solution to this problem

243:56

what we can do in order to prevent from

243:59

this problem what we can do is we can

244:01

use HD wallets so what are HD Waters HD

244:06

wallets are those wallets which actually

244:08

provide you functionality to have more

244:11

than one Bitcoin address if you talk

244:13

about early cryptocurrency wallets those

244:15

cryptocurrency warrants only give us the

244:17

functionality of having one Bitcoin

244:19

address and the problem as I said was

244:22

that anybody can easily find out the

244:24

type of transaction you are doing okay

244:27

so with the help of HD wallet what we

244:29

have is now is a master private key so

244:33

this HD wallet provides us with a master

244:35

private key and this master private key

244:37

is actually used to generate a private

244:39

key and this private key is used to

244:41

generate a public key and with the help

244:42

of which we can generate a Bitcoin

244:45

address and not only this now what we

244:48

can do is we can add

244:50

on let's say we added plus one to this

244:53

private key so no not have an entirely

244:55

different kind of private key and then

244:57

we can use this second private key in

244:59

order to generate second public key in

245:01

order to generate second address and in

245:04

the same way if you will see we can

245:06

continue on so we can have numbers of

245:09

private key we can have hundreds of

245:11

private key and we can have hundreds of

245:13

Bitcoin addresses and with the help of

245:15

which nobody can track out what who we

245:19

are or what we are doing actually now

245:21

remember I'm not saying that by tracking

245:23

your addresses anybody can find out your

245:25

home or your name no I'm not saying that

245:27

I'm just saying that your transaction

245:29

since every each and every transaction

245:31

is in public anybody can find out uh you

245:34

know pattern in that and from that

245:35

pattern he can he might reach to you

245:37

okay this is one of the possibilities it

245:40

is not that completely true that it will

245:42

always happen but it there can be a

245:44

possibility of happening that right so

245:46

for that SD wallets provide us with this

245:49

safeguard that now you can clearly see

245:51

that we have multiple addresses we can

245:53

use these multiple addresses we have our

245:55

crypto wallet and you can select any of

245:57

the addresses that are provided and you

245:59

can use those addresses in order to do

246:01

any kind of transaction and by this your

246:04

identity your privacy is totally

246:07

protected and why they are called

246:09

hierarchically deterministic wallet and

246:10

the reason for this is very simple

246:12

because as you can clearly see right

246:14

that it is like an hierarchy right so

246:16

someone is donating this this then this

246:18

so a hierarchy is there not only this if

246:21

you talk about real world application

246:22

let's say you are a CEO of a company

246:24

okay and you want to give certain

246:28

authority to your employees let's say

246:30

you have some top managers so what you

246:33

can do is you can hold your master

246:34

private key and you can provide these

246:37

private key one private key to private

246:39

key three private key four to your

246:41

managers so they so let's say they want

246:43

to do any kind of transactions any kind

246:46

of payment for their for your company

246:48

because since you are providing then the

246:50

private key so every transaction that

246:52

you will be doing with the help of this

246:53

driver key will be for business purposes

246:55

right so they will be able to do all

246:57

kind of transaction with these private

246:59

key because private key is actually used

247:01

for the transactions right and with the

247:03

help of this master private key you can

247:05

easily find out what kind of

247:07

transactions your managers are doing now

247:09

your managers cannot find out what kind

247:11

of transaction you are doing with the

247:12

help of this master private key but with

247:14

the help of this master private key you

247:16

can find out what kind of transactions

247:18

your managers are doing so you can

247:20

easily find out like if this is manager

247:22

one kind of transaction he is doing or

247:24

manager 2 what kind of transaction she

247:26

is doing so you can find out each and

247:28

every detail about these private keys so

247:30

you can go from here to here again but

247:32

you cannot go from here to right so this

247:35

is something we have talked about in the

247:36

previous videos also right

247:38

so this is the use of HD wallets and

247:41

that's why we use HD wallets because

247:43

they provide service privacy as well as

247:45

safety and let me show you one example

247:47

also so this is an address and you can

247:50

clearly see all the associated

247:52

transactions of this address what amount

247:54

of Bitcoin he is sending what amount of

247:57

Bitcoin he is receiving each and

247:58

everything is given in this blockchain

248:01

Explorer just you have to come to this

248:03

particular website just paste down the

248:05

address any random address or any

248:07

address that you have just search for it

248:09

and you can find out each and every

248:11

transaction that this particular address

248:13

is doing okay hello hello hello now in

248:16

this video we are going to start with

248:18

ethereum so in the starting of our

248:21

course as I said right that I have

248:23

divided this course into three parts

248:25

module a where we talked about

248:27

blockchain what would be where we talked

248:29

about cryptocurrency that is Bitcoin and

248:32

now we are going to cover module C so I

248:34

am very excited to start this new module

248:37

and in this module we are going to learn

248:39

each and everything about ethereum like

248:41

what is ethereum what is a smart

248:43

contract decentralized application evm

248:46

Dao hard and soft Fork Dao attack Ico

248:50

and all coins and definitely much more

248:52

this is just an overview so do not be

248:54

confused that only they are going to be

248:56

only nine videos they are going to be so

248:59

many new things in our upcoming videos

249:02

but let's start with this new module and

249:05

let's start with what is ethereum now

249:08

before talking about ethereum let us

249:10

talk about the founder of ethereum who

249:13

is vitalik Butrin vitalic butane is the

249:17

founder of ethereum he proposed the idea

249:19

of ethereum in 2013 when he was only 19

249:22

years old

249:24

and his story is also very inspiring

249:26

guys he proposed the same idea to the

249:29

Bitcoin community that we should have a

249:31

blockchain in which at which actually we

249:33

can run programs but nobody in the

249:36

Bitcoin Community believed in him and

249:38

then only he launched the ethereum

249:41

blockchain

249:43

now what is wonderful about ethereum

249:45

blockchain ethereum blockchain like if

249:47

you talk about uh Bitcoin blockchain

249:49

which came before ethereum blockchain

249:51

Bitcoin blockchain

249:54

only supports transactions of Bitcoin

249:56

means you can do transactions on bitcoin

249:59

like you can send some Bitcoin to your

250:01

friend or your friend can send some

250:02

Bitcoin to you but you cannot run

250:05

programs on bitcoin blockchain and

250:09

ethereum is a blockchain that gives you

250:12

a facility to run programs on the

250:16

blockchain on this ethereum blockchain

250:18

and these programs are called smart

250:20

contracts and we will talk about this in

250:22

much more detail in our upcoming videos

250:24

but for now this is the most interesting

250:28

thing about ethereum that you can run

250:30

programs on ethereum blockchain and with

250:33

the help of which you can create

250:35

decentralized application and again this

250:37

is a topic which we will discuss about

250:39

in our upcoming videos in great detail

250:42

and if we talk about the cryptocurrency

250:45

related to ethereum that is ether so if

250:48

we talk about Bitcoin Bitcoin provides

250:50

us with Bitcoin and if we talk about

250:52

ethereum it provides us with ether as a

250:55

cryptocurrency okay but we will talk

250:57

about ethereum in much more detail in

250:59

our upcoming videos this is just an

251:01

introductory video could tell you what

251:03

is ethereum and who is the founder of

251:05

ethereum but we will talk about ethereum

251:08

in much more detail in our upcoming

251:10

videos now in this video we are going to

251:12

talk about ethereum notes let us see

251:14

what are they

251:16

so let's say this is our ethereum

251:17

blockchain Network okay where a b c e f

251:21

these are different systems and they are

251:23

part of this ethereum blockchain network

251:26

now let's say you also want to become a

251:29

part of this ethereum network let's say

251:31

you also think that okay I also want to

251:33

be the part of this ethereum network and

251:35

I also warned that I should have the

251:37

access to the blockchain you want you

251:40

may want right in future

251:41

so what you have to do in order to

251:43

become a part of this ethereum

251:46

blockchain network

251:48

now in order to become a part of this

251:49

ethereum blockchain network you need to

251:52

install a software called get

251:55

or we also called these kind of software

251:58

as client so you need to install this

251:59

client that is get in order to become a

252:02

part of this ethereum blockchain network

252:04

now once you will become a part of this

252:06

ethereum blockchain network you can also

252:08

have access to the ethereum blockchain

252:10

like these nodes have okay so let me

252:14

show you that software so this is get so

252:16

this is our get

252:18

okay so once you will install this

252:20

software into your system then you can

252:22

also have access to the ethereum

252:24

blockchain you can do transaction on

252:26

ethereum blockchain let's say you want

252:27

to become a miner in the ethereum

252:29

blockchain then you can also become a

252:31

miner in the ethereum blockchain once

252:33

you will install this get software okay

252:35

now in order to become this and yes one

252:38

more important thing that I should tell

252:39

you that once you will become a part of

252:42

this ethereum blockchain network then

252:44

you will not be a normal system then you

252:46

will be called as node so let's say

252:50

before installing of get you are having

252:52

a normal laptop normal system okay let

252:56

us call that now once you will install

252:58

get and once you will start running get

253:00

on your system then your system will not

253:02

be a normal system now it is a special

253:05

kind of system because now it can be a

253:06

part of our ethereum blockchain and we

253:09

called that kind of a system as node

253:12

okay so you need to install git in order

253:14

to become a part of this ethereum

253:16

network and if you will become a part of

253:17

this ethereum network work you will be

253:19

called as no

253:20

now we have different kind of nodes

253:22

because

253:24

if you talk about ethereum blockchain we

253:26

have different kind of people there are

253:29

few people who want to be minors there

253:31

are few people who just want to be

253:32

validators there are few people who just

253:34

want to do normal transaction on

253:36

ethereum blockchain

253:37

so that's why we have three kinds of

253:40

varieties three types of nodes in the

253:43

ethereum blockchain first we have full

253:45

node second we have light node and third

253:48

we have our cheap node let us see what

253:51

are these three different nodes

253:54

so if we talk about full load as the

253:56

name suggests it consists of the whole

253:59

copy of the blockchain so whatever is

254:01

happening on the blockchain ecosystem

254:03

ethereum blockchain ecosystem each and

254:05

every data each and every block

254:06

information is consists of with this

254:10

full node so if you become a full node

254:12

you will have access to the whole

254:13

ethereum blockchain but definitely not

254:16

the whole I will say there will be some

254:18

amount of data you have to request from

254:21

a different kind of a node that we

254:23

called as archievement you can see that

254:26

it stores full blockchain data although

254:29

this is periodically pruned so a full

254:31

node does not store all state data back

254:33

to Genesis so definitely you will be

254:35

having some amount of data let's say if

254:37

they are 100 blocks so you will be

254:38

having information about let's say 80

254:41

Blocks but rest 20 blocks will be pruned

254:44

okay so you cannot have access to that

254:46

20 blocks definitely you can ask that

254:49

like you can ask about that data about

254:51

that 20 blocks data from our cheap node

254:53

and we will talk about Archie notes so

254:55

don't worry but one thing is for sure

254:56

you can have access to around 80 percent

254:58

of the blockchain data that is happening

255:00

that is there in the ethereum blockchain

255:03

ecosystem now if you will become a full

255:06

node then you can participate in the

255:08

validation verification as well as

255:12

mining of the blocks okay validate the

255:15

blocks are malicious whether the

255:18

transaction are right or not so you can

255:20

do all kind of thing if you will become

255:22

a full node third thing is that it

255:25

serves the network and provide data on

255:26

request means we will in the next slide

255:29

we will talk about light node and light

255:31

node actually depends upon full node

255:32

full node depends upon our chief node

255:34

and light node depends upon full node so

255:36

if you request some data full node will

255:38

be the one that can also provide you

255:40

with that data especially light mode

255:42

access uh lightning request for that

255:44

data from Full node and we actually

255:45

request data from light node so this is

255:47

how this whole process actually works

255:50

and all states can be derived from Full

255:52

node although very old state are

255:54

reconstructed from request made to RT

255:56

node as I said that you can definitely

255:58

have access let's say if you have

255:59

hundred blocks and you as a full node

256:01

you have only access to 80 Blocks but

256:03

let's say you want to have access to

256:05

those 20 left blocks then in order to do

256:07

that you have to just request from the

256:09

archive notes that hey I just want that

256:12

data can you please send me that data so

256:13

our achieve node will send you that data

256:16

so this is how full node works but

256:17

definitely in order to become a full

256:19

node you need to have a good system you

256:21

need to have a system which has higher

256:24

storage because if you will have less

256:26

amount of storage or let's say your

256:28

internet is not that kind of a stable in

256:30

that case full full node will not work

256:32

for you so you need to have a dedicated

256:34

system in order to run a full node now

256:37

let's talk about light node and light

256:39

node is the most favorite one for most

256:42

of the users and the reason is very

256:43

simple because light node does not store

256:46

the entire blockchain it only store the

256:49

summary of blockchain okay so it is like

256:52

blockchain is a whole story and it is

256:55

having some input like light node is

256:56

loading only the summary point of that

256:58

story so this is how light node works

257:01

okay and it depends upon full load so

257:03

whatever transaction are happening it if

257:05

it wants to have the you know if it

257:08

wants to know about that transaction it

257:11

has to request from the one node

257:13

and it is very good for those system

257:15

which have low capacity devices so let's

257:18

say you you have you are having a system

257:20

which is not of you know good storage

257:22

and your internet is not that good in

257:25

that case you can become a light node

257:27

and by becoming a light node you can do

257:29

transaction on the ethereum blockchain

257:31

definitely you cannot become a validator

257:33

or a miner by using light mode so the

257:36

light node do not participate in the

257:38

consensus means it does not participate

257:40

in the you know in the proof of work

257:43

because definitely Now ethereum does not

257:45

work on proof of work now it has chapter

257:47

problems take so you cannot participate

257:50

in the consensus part means you cannot

257:52

participate in the decision making part

257:53

whether a block is a malicious block or

257:56

not whether a block is a correct block

257:57

or if not do that you cannot mine a Blog

258:00

you cannot create a blog you can only

258:01

access the ethereum block like you can

258:04

see what is happening on the ethereum

258:05

blockchain this is the only role you

258:08

will be having if you will become a

258:09

light Road let's talk about archive node

258:12

so archive node as I talked earlier also

258:14

these are the nodes that have the entire

258:17

history of the blockchain so if there

258:19

are hundred blocks in the ethereum

258:21

blockchain our chief node will store the

258:25

entire 100 blocks in its you know in its

258:28

data storage so this is how our cheap

258:31

node works and that's why it is written

258:33

that built an archim of historical data

258:35

means from the beginning like uh

258:38

ethereum when ethereum started from that

258:41

point of time time till now they are

258:43

storing each and every data and yes it

258:46

requires terabytes of disk space if you

258:49

want to become an archive node so if you

258:50

are having you know some GB of space

258:52

then it will not be beneficial to become

258:54

an archive node it will not be fruitful

258:57

so you need to

258:59

have terabytes of data space disk space

259:03

actually in order to become our cheap

259:05

node so these are the three different

259:06

nodes that we have in ethereum

259:08

blockchain and trust me this light node

259:12

is the most

259:13

easy one if you want to become a part of

259:16

this ethereum blockchain this is the

259:17

most easy one because it does not

259:18

require much from you it only requires

259:21

some amount of storage and if you have

259:23

those like certain amount of storage you

259:25

can become a light now in this video we

259:27

are going to talk about ethereum

259:29

accounts let's start

259:31

so what is an ethereum account an

259:33

ethereum account is an entity with an

259:35

ether balance or it balance that can

259:38

send or receive transactions on ethereum

259:41

blockchain the definition is very simple

259:43

if you will see the ethereum account

259:45

works

259:46

just like our bank account with the help

259:49

of our bank account we can send some

259:51

money we can receive some money in the

259:53

same way with the help of ethereum

259:55

account we can say some ether we can

259:58

receive some ether so if you have an

260:00

ethereum account now you can send ether

260:02

to someone and receive ether from

260:04

someone

260:05

there are basically two types of

260:06

ethereum accounts first one is

260:08

externally owned account that is e o e o

260:12

a and second one is contract account let

260:15

us understand each of them with the help

260:16

of an example

260:18

so what is an externally owned account

260:20

so externally owned account are those

260:23

account that are actually opened by a

260:26

human so if you are a human definitely

260:29

if you are listening to me you are a

260:30

human so if you will open an account on

260:32

ethereum then that account will be an

260:35

externally owned account now the key

260:38

feature of this externally owned account

260:39

is that for opening this extra new

260:42

account you will need a wallet so that

260:44

can be any cryptocurrency wallet and in

260:47

order to access this wallet what you

260:49

will have is a private key and we have

260:51

seen this also right I was talking about

260:54

private key and publicly I have shown

260:55

you this also that with the help of this

260:57

private key you can access this wallet

260:59

and this wallet will provide you the

261:02

complete control over your externally

261:04

Vodacom okay and we will see an example

261:06

also so don't worry so with the help of

261:08

this private key you can access this

261:10

wallet and this wallet will then show

261:13

you your current balance whatever

261:14

balance you have in your cryptocurrency

261:16

wallet and also with the help of this

261:18

you can send transaction you can receive

261:22

transaction and not only this with the

261:24

help of externally owned account you can

261:27

access your smart contract and we will

261:30

see an example for this also definitely

261:32

I will talk about smart contract in much

261:34

more detail in our upcoming videos but

261:36

for now you can think a smart contract

261:38

as a simple program and with the help of

261:41

our externally owned account we can

261:43

access our smart contract okay so let me

261:46

teach you an example also so this is our

261:48

metamask wallet I'm using this for a

261:51

long time right throughout this video so

261:54

in this this account that you're seeing

261:55

right on your scheme this account is

261:57

your externally owned account or eoa and

262:01

with the help of this account you can

262:03

send some ether to some other account

262:05

also but for now I don't think so I have

262:07

any other account to test this so what I

262:10

will do is I will just copy the same

262:11

address I will send some ether to my own

262:14

address only so I am copying this

262:16

address so it is like you are no this is

262:18

that this is the account address of the

262:21

person to whom you want to send some

262:22

ether so let's say I want to send some

262:25

0.0001 if and then I will click on next

262:30

and then I will

262:32

click on confirm now once I will click

262:34

on confirm

262:36

0.00018 will be transferred to this

262:39

particular account okay because I have

262:41

the I have this account only at this

262:43

point of time so I am sending the same

262:44

to my address only but definitely if you

262:47

will have some other address you can

262:49

send ether to that address as well okay

262:52

so let's wait for our transaction to be

262:55

get confirmed so you can now see that

262:57

our transaction is confirmed and we can

262:59

see that on

263:01

this gorily etherscan.io so this is you

263:05

as you can see that

263:06

this is our ethereum blockchain means

263:08

ethereum blockchain block and this is

263:10

the from address means this is the

263:12

person who has actually sent some meter

263:14

and this is the address of a person to

263:16

whom this address was uh this ether was

263:18

actually sent and also you can see other

263:21

details on the ethereum blockchain that

263:23

the transaction fee they charged and the

263:25

amount of ether that I have sent from

263:27

this address to this address so this is

263:30

the whole use of external account so

263:32

that you can send receive ether with the

263:34

help of extend your own account now

263:36

let's talk about the second account and

263:38

that account is one product account so

263:41

this contract account is which is

263:43

actually controlled by your contract so

263:46

definitely in future I will create a

263:47

course on solidity in that course I will

263:50

definitely show you how you can create

263:51

your own contract account but in this

263:53

video because this is out of the scope

263:56

of this course in this video I will just

263:58

demonstrate you how a contract account

264:00

looks like and what is the use of

264:02

contract accounts so with the help of

264:04

contract account just like with the help

264:06

of your ex in your account you can send

264:08

and receive it you can also do the same

264:11

with the help of your contract account

264:12

the only difference is that this

264:15

contract account is totally controlled

264:17

by the contract code so whatever code

264:20

you have written in your contract in

264:22

your smart contract that will control

264:24

how the sending and receiving of ether

264:26

will be done okay let me show you that

264:28

also so

264:31

let me show you one contract okay so

264:35

this is one of a random contract address

264:38

okay this is not I have created or

264:40

something this is a random contract

264:41

address that is available on ethereum

264:43

blockchain okay and let's say I want to

264:46

send some ether to this contract so can

264:48

I do that yes you can do that this is

264:51

your contract account address okay so

264:52

you have to just copy this

264:54

and you have to open your wallet because

264:56

as I said that with the help of your

264:58

externally owned account you can

265:00

interact with the smart contract right

265:02

so I want to send some ether to this

265:04

contract so I will click on send I will

265:06

paste the address of this contract

265:07

account okay so this is the contract

265:09

account address and let's say I want to

265:11

send some Zero Point again some 0.0001

265:15

ether and then I will click on next I'm

265:17

not sure whether it will get confirmed

265:19

or not because this is not my contract

265:21

okay it is a random contract if if this

265:24

contract does not have any functionality

265:26

of receiving either definitely it will

265:27

fail okay so I'm just telling you this

265:29

beforehand because I haven't created

265:31

this contract I'm just randomly sending

265:33

some ether to this contract address

265:37

so let's see what will happen let's wait

265:39

for our transaction to get confirmed

265:41

okay let's go to block Explorer

265:45

so now in this you can clearly see that

265:47

this is the contract account that I have

265:49

used in order to send some ether and

265:52

this is the contract address at which I

265:54

have sent this ether okay

265:57

and whether it will fail or pass I do

266:00

not know let's wait and let's see so now

266:02

you can see that it got failed because

266:04

this contract might not have any

266:06

functionality to receive the ether

266:08

because as I said everything in contract

266:10

account means in this contract account

266:13

is totally dependent on the smart

266:15

contract so if in your smart contract

266:17

you do not have any functionality of

266:19

receiving ether then definitely you

266:21

cannot receive anything right but you

266:23

can see that I tried I tried to send

266:25

some either this was the transaction fee

266:27

this was the value that I have sent and

266:29

everything but it got canceled that's a

266:31

different story okay so this is how

266:33

contract account looks like this address

266:35

that you are seeing this is how your

266:37

contract account looks like and why do

266:39

we have this contract account

266:41

so that we can provide a unique identity

266:43

to our contracts right because let's say

266:46

in future I want to talk to my contract

266:48

I want to receive some data from my

266:49

contract and definitely I need to have

266:51

some address right where I can locate my

266:53

contract and this contract account

266:55

actually help us in that so that's why

266:58

we have this contract address and

266:59

everything

267:00

let me show you a quick picture like

267:03

what is the difference between extending

267:04

on account and what is the difference

267:05

between contract account so in action

267:08

you want account you require a private

267:09

key so that you can access your wallet

267:11

in Conrad account you do not require any

267:13

kind of private key or public key this

267:16

is controlled by human because we are

267:18

creating this wallet but this is

267:19

controlled by the contract code this is

267:21

uh having a unique account address and

267:24

this is also having a unique account

267:25

address so that we can locate it right

267:27

we can talk to them and this also hold

267:30

ethereum balance and this can also hold

267:32

ethereum balance okay so because they

267:34

work just like your normal extra new

267:36

account contract the only difference is

267:38

that they are in control of contract

267:39

code and not by humans this is the only

267:42

difference otherwise they can do all

267:44

sort of things that this extra new

267:45

account can do they can receive balance

267:47

they can send balance they can receive

267:49

ether they can send ether they can have

267:51

their own balance like okay this account

267:54

this contract is having let's say two

267:55

eth of balance so this is also possible

267:57

in the case of contract account okay

268:01

so I hope now it is clear what is the

268:03

difference between extreme account and

268:04

what's the difference between contract

268:06

account now we are coming to

268:08

hi now let us talk about the

268:12

Topic in ethereum blockchain that is

268:14

smart contract let's see what it is

268:17

so if we talk about smart contract what

268:20

is a smart contract a smart contract is

268:23

simply a program written on ethereum

268:26

blockchain so just like you write

268:28

programming C C plus plus Java right you

268:32

write programs

268:33

in the city you write programs for the

268:36

ethereum blockchain and those programs

268:38

are actually called as a smart contract

268:41

what yes it is true smart contracts are

268:44

nothing but simply programs now you must

268:47

be wondering that why do we call them a

268:49

smart contract if they are simply

268:51

programs actually the thing with the

268:54

smart contract is that in a smart

268:56

contract you write projects like you

268:58

have that Logics like if this will

269:00

happen then this will happen if this

269:02

will happen then this will happen so it

269:04

is just like a contract right where you

269:06

are writing some if and else statement

269:08

where you are stating certain rules that

269:10

if this will happen then this will

269:11

happen if this will happen then this

269:13

will happen so because of this I think

269:16

the name was given as a smart contract

269:19

otherwise smart contracts are simply

269:22

program that are written on ethereum

269:24

blockchain nothing else nothing more now

269:27

let us talk about one important thing

269:28

about smart contract that if we talk

269:31

about ethereum blockchain we have the

269:33

foundation of writing programs that is

269:35

smart contract but if we talk about

269:37

Bitcoin we do not have any functionality

269:39

writing smart contracts on bitcoin

269:42

blockchain why this is so let us answer

269:44

this question if we talk about Bitcoin

269:47

blockchain the programming language that

269:49

is used in order to create our Bitcoin

269:51

blockchain is Bitcoin script and the

269:54

programming language that we are using

269:56

in order to create our smart contract is

269:59

solidity it is a very popular

270:01

programming language for either ethereum

270:02

blockchain you might have heard this

270:04

name solidity and we use this

270:07

programming language in order to write

270:09

programs of the ethereum blockchain now

270:11

the thing with Bitcoin script is that

270:13

Bitcoin script is not during complete

270:16

while our solid reprogramming language

270:19

is Turing complete now what do I mean by

270:21

not Turing complete and during complete

270:24

so when I say Turing complete tuning

270:26

complete means that you can code any

270:29

form of logic that you can think so

270:32

whatever you can think you can code in

270:35

solidity programming language while in

270:37

case of Bitcoin script that's not the

270:39

case you cannot write all the programs

270:41

that you can can think and the reason

270:43

for this is that Bitcoin script does not

270:46

support Loops while salty programming

270:49

language support loops and that's the

270:52

reason and that's the reason ethereum

270:54

blockchain supports programs means you

270:57

can write programs on ethereum

270:59

blockchain but you cannot write programs

271:01

on bitcoin blockchain because Bitcoin

271:03

blockchain is using Bitcoin script which

271:05

is not during complete means you cannot

271:07

write loops on bitcoin script and since

271:09

you cannot write loops on bitcoin script

271:12

you cannot code any form of program that

271:14

you can think right and now you must be

271:16

wondering like why Satoshi Nakamoto will

271:19

do that why Satoshi Nakamoto use a

271:22

programming language that is not during

271:24

complete why not any other programming

271:26

language that is student complete and

271:28

the reason is very simple guys at the

271:30

time when Satoshi Nakamoto was

271:32

developing this Bitcoin blockchain

271:35

he thought of a problem and the problem

271:37

was actually real the problem was that

271:39

let's say Bitcoin is providing you

271:42

facility to ride programs on the Bitcoin

271:44

blockchain okay so let's say this is a

271:45

program that I have created using

271:47

Bitcoin blockchain and now I'm I'm

271:49

trying to run this program on the

271:50

Bitcoin blockchain so these are the

271:52

participants that are connected with

271:53

each other and they are forming the

271:55

Bitcoin blockchain so definitely they

271:56

will be having their blockchains and

271:58

everything will be there

272:00

now the problem is that when we will run

272:03

a program on this Bitcoin blockchain the

272:06

same program will run on each of the

272:09

computers or I will say in each of the

272:11

nodes that are part of this Bitcoin

272:13

blockchain because if we talk about

272:15

Bitcoin right we have seen right that

272:18

blockchain is a distributed immutable

272:19

ledger so this program that we will be

272:21

writing will be a part of our Bitcoin

272:23

blockchain so this will also get

272:25

distributed all across the network so if

272:28

it will get distributed all over the

272:30

network so the same program will be

272:32

running on each and every system now the

272:34

problem is that if this program consists

272:37

of an infinite Loop then what will

272:40

happen if this program will consist of

272:42

an infinite Loop then this infinite LEAP

272:44

program will run on each and every

272:47

system and the thing is nobody can stop

272:51

these programs why because in Bitcoin

272:54

blockchain we do not have any Central

272:55

Authority and since we do not have any

272:58

Central Authority nobody can control

273:00

these programs nobody can stop this

273:02

program and this will totally destroy

273:06

the Bitcoin blockchain right because

273:08

these programs will keep on running will

273:10

keep on running and they will slow down

273:12

the network and Bitcoin blockchain will

273:14

collapse so this was the problem when

273:17

Satoshi Nakamoto was designing Bitcoin

273:20

blockchain

273:21

now you must think like then how

273:23

ethereum is able to do that right

273:25

because as we can clearly see on this

273:27

screen that we cannot have programs

273:30

running on blockchain because if we are

273:31

running a program running on blockchain

273:32

and if the program consists of a loop

273:34

then this program will be running

273:37

continuously all over the network and

273:40

this will totally destroy the network

273:42

so what vitalik butane taught that

273:45

definitely we have we have we will have

273:47

a smart contract in this transactions

273:49

field because we have different

273:51

transactions right we want to send ether

273:53

we want to receive ether all these

273:54

things will be there but we will also be

273:56

having smart contracts right in this

273:58

blockchain in this ethereum block

273:59

blockchain so what he said that okay you

274:03

can write smart contracts you can write

274:04

programs on ethereum blockchain but you

274:07

need to pay for every single line of

274:10

code that you are running on this

274:12

program this is the beauty of ethereum

274:15

blockchain just imagine what he is

274:17

thinking what he actually thought

274:18

actually

274:19

that when you will create programs you

274:22

will be able to create you will be able

274:24

to write code whatever code you want to

274:27

write you can do that but for every

274:29

single line of code that is executing on

274:32

the ethereum blockchain you need to pay

274:34

money

274:36

and this is done using gas which we will

274:38

talk about in our upcoming video but

274:40

this this is how vitalybutrin stopped

274:44

this infinite Loop concept because if a

274:46

person is running an infinite Loop then

274:49

he will be exhausting all his money that

274:52

is that he is having in his ethereum

274:54

account balance right so nobody wants

274:57

that right nobody want to exhaust their

274:59

money and this is how ethereum

275:03

stopped this infinite Loop problem

275:05

definitely other measures were also done

275:07

but this is one of the beautiful thing

275:08

that vitalik butane thought so that he

275:11

can stop this infinite Loop programs in

275:15

the ethereum blockchain and that's why

275:17

now we can run programs on so many

275:20

systems mean when our program is running

275:22

it is running on so many different

275:24

systems without collapsing the ethereum

275:27

blockchain because if someone tries to

275:28

collapse that he has to exhaust with all

275:31

his money and nobody can have infinite

275:33

money in his account right you can have

275:35

some you know let's say one crore two

275:37

let's say let's say 100 crore but at one

275:39

point of time your money will get

275:41

exhausted right and that's how ethereum

275:43

blockchain is

275:45

you know much more ahead of the hackers

275:48

and the scammers I will say so that's

275:50

why we are able to run programs on the

275:52

ethereum blockchain and that's why we

275:54

are not able to run programs on the

275:55

Bitcoin blockchain and this is very

275:57

important interview question also so

275:59

remember this concept this is very

276:00

important and might be asked in your

276:02

interviews hi now in this video we are

276:05

going to talk about decentralized

276:06

application so let's start so before

276:08

talking about decentralized application

276:10

let us talk about how our centralized

276:13

application works so this is our

276:16

architecture

276:18

centralized application where we have

276:20

various clients okay and we have one

276:24

server So This Server is actually owned

276:26

by a central Authority so let's say this

276:28

is Amazon Amazon is having all your data

276:31

whenever you request something from

276:33

Amazon Amazon respond you with that data

276:36

so we are simply clients and Amazon is

276:39

actually having the server means this is

276:41

the server of Amazon okay so this is

276:43

house client server model works

276:45

to talk about decentralized application

276:48

since this application is decentralized

276:50

we do not have a client server model

276:52

each and everything is done on

276:55

peer-to-peer Network only means on this

276:57

ethereum block so this is how our P2P

277:00

Network looks like so our application

277:03

will not be running on a single node but

277:06

our application will be running on each

277:08

and every node so this is how

277:10

decentralized application works and you

277:12

can clearly see that how this is running

277:14

on each and every system right

277:17

now let us see some one formal

277:19

definition of decentralized application

277:20

how our decentralized application is

277:22

created then you will understand why it

277:24

is called decentralized so for creating

277:27

our decentralized application we require

277:29

smart contract definitely because in

277:32

this smart contract we write our

277:34

business logic because this smart

277:36

contract is also decentralized in nature

277:38

right we write our smart contract this

277:40

smart contract is running on each and

277:41

every node so this decentralized

277:44

application is actually using this as

277:45

smart contract okay as our backend so if

277:49

we talk about our centralized

277:50

application federalized application they

277:52

use server right and that server is

277:54

owned by a particular company but in

277:56

case of a smart contract smart contract

277:58

is not owned by any particular company

278:00

it is the part of our whole ethereum

278:03

blockchain then we take this smart

278:05

contract and then we connect one front

278:08

end with this smart contract why do we

278:10

have this front end so that we can with

278:13

the functioning of this smart contract

278:15

right because Normal user cannot

278:17

directly talk to our smart contract so

278:19

they require one UI in order to talk to

278:22

this smart contract and when we

278:24

integrate these two things and deploy it

278:27

over the blockchain or over the

278:30

decentralized network the application

278:32

that we get by integrating these two

278:35

technologies is a decentralized

278:37

application so this is one simple

278:40

definition of decentralized application

278:42

when you integrate your smart contract

278:44

with your front-end and deploy it on the

278:46

decentralized network then the

278:48

application that you get is a

278:50

decentralized application and here is

278:52

the list of some decentralized

278:54

applications so Google which is a

278:56

centralized application that alternative

278:58

is research Twitter which is a

279:00

centralized application for social media

279:02

lbry is different like it is our

279:04

decentralized application for your

279:06

social connections and like in YouTube

279:08

be a video platform via YouTube

279:12

alternative is

279:13

you can use in order to watch videos

279:15

definitely all these decentralized

279:17

applications are not totally I will say

279:19

fully equipped with each and everything

279:21

with each and every features they are in

279:24

development phase only but you can have

279:26

a look at these different decentralized

279:28

application they are available so let me

279:30

show you dtube so this is dtube

279:34

okay so it is taking some time let's

279:37

wait

279:39

so now you can see that this is our DQ

279:41

and you can see that there are certain

279:43

videos that are being uploaded at each

279:46

and every time right so yes this is how

279:49

our D tube looks like you have to login

279:51

it in order to run it so now you can

279:54

clearly see that we have options for

279:56

username and YouTube private qk I

279:58

haven't used this application yet but

280:00

you can see that right you have a lot of

280:01

options here and definitely we will talk

280:04

about this what is this 0.089 dollar we

280:06

will talk about this also but this is

280:08

how it looks and currently definitely

280:10

they are not much you know users at this

280:13

point of time because as I said it is

280:15

totally new people are still you know

280:17

working on it still doing it

280:20

yes this is good so let us see the

280:23

difference between our centralized

280:24

applications and decentralized

280:26

application if we talk about our

280:27

centralized application they are not

280:29

trustworthy right because they are

280:30

owning our data they can use they can

280:33

manage anything with our data because

280:35

server is actually in control of the

280:37

company that is providing us the

280:38

services and you have seen users like

280:41

this you might have seen news also

280:43

related to this that your data got

280:45

compromised or something like that

280:46

credit card details got the because each

280:49

and everything is in the control of this

280:50

centralized Authority and you cannot

280:52

trust it but in a decentralized

280:53

application since everything is open it

280:55

is not in control of a central Authority

280:57

so you can trust on them and not only

280:59

this these three centralized application

281:01

code is totally available in the open

281:03

source so you can go and read about the

281:05

code while in centralized application

281:07

you cannot read their code whatever they

281:10

are doing with your data you do not know

281:12

nothing about it they can censor our you

281:15

know they can censor important things

281:16

let's say I have a video which which is

281:19

against government just an example

281:20

people so these centralized applications

281:22

can censor those videos right but in

281:25

decentralized application you cannot do

281:27

that once a video is live nobody can

281:29

remove until unless we have some kind of

281:31

you know feature in it that okay after

281:33

Democrats like after certain vote you

281:35

can remove the video or something like

281:36

that otherwise nobody can remove the

281:39

video because once it is on

281:40

decentralized application it is on

281:42

thousands and lacks of computers and you

281:46

you can you might remove some computers

281:48

right but still it will be running on

281:50

some other different like in on some

281:52

other different note right because in a

281:54

decentralized network we have lacks and

281:57

thousands of computers so if we talk

281:59

about centralized application we need to

282:01

pay means let us understand this with

282:03

the help of YouTube YouTube is a

282:04

centralized application and if you were

282:07

watching some we need to see some ads

282:10

how YouTube and if you do not want to

282:14

watch those ad what you have to do you

282:16

have to buy a YouTube membership right

282:18

you need to pay in order to use their

282:20

application well in case of

282:22

decentralized application this is not

282:23

the case in the case of decentralized

282:25

application definitely decentralized

282:27

application let's say dtube will show

282:28

you ads but they will give you an option

282:31

that whether you want to see those ads

282:34

or whether you do not want to see those

282:36

ads if you want to if you are willing to

282:37

see those ads then you will be paid for

282:40

every ad that you are watching yes they

282:43

will be paying you for every ad that you

282:45

will be watching while in case of

282:47

centralized application this is not the

282:48

case right you need to pay so remove ads

282:50

but in decent AS application you will be

282:52

having some options that okay you want

282:53

to watch what's if you want to watch ads

282:55

or not if you do not want to watch ads

282:58

then you will not be paid but if you are

283:00

willing to watch ads then they will pay

283:01

you for watching ads if we talk about

283:04

centralized application they can go down

283:06

right once a server is down nobody can

283:08

access that application but in the case

283:10

of decentralized application this can

283:12

never happen because your application is

283:14

not running only on single server but

283:16

your application is running on each and

283:18

every node that is part of that

283:22

ethereum blockchain right so there are

283:24

thousands and lacks of computers that

283:26

are running your applications so nobody

283:28

can stop it so those application cannot

283:31

go down because they are running on so

283:33

many nodes right so do let me know in

283:36

the comment section whether

283:37

decentralized applications are great or

283:40

not okay don't forget do comment it now

283:43

let us talk about ethereum virtual

283:44

machine and what are they

283:46

so as we discussed in the previous video

283:48

that decentralized applications are

283:50

application that run on each and every

283:52

node that is part of our ethereum

283:55

blockchain Network right

283:57

now the problem in this approach is that

284:00

it may happen some hacker or some

284:03

malicious user is running an application

284:07

that is containing some virus right and

284:11

if that application if that

284:12

decentralized application is containing

284:14

some virus then that virus will be

284:17

running on each and every system that is

284:20

part of this ethereum blockchain network

284:22

right and this is not we want right we

284:25

do not want that virus should run on our

284:27

system

284:28

so what ethereum community so ethereum

284:31

Community got an idea they said that why

284:33

to run decentralized application

284:35

directly on your system they said that

284:38

you need to install a client that we

284:42

have talked about right get you need to

284:44

install a client called get that get

284:47

will run an ethereum virtual machine

284:50

inside your computer and this

284:53

decentralized application will not be

284:55

running on your computer but this

284:57

decentires application will be running

284:59

on this ethereum virtual machine so it

285:02

is like if you have used virtualbox

285:04

right if you have used virtualbox so you

285:06

might know this that let's say if you

285:08

are having a host operating system

285:10

Windows and you want to run Linux

285:13

operating system on your Windows

285:14

operating system in order to do that you

285:17

need to install virtualbox and then you

285:20

can run Linux operating system on your

285:24

Windows operating system yes if you

285:26

haven't used it it move you might find

285:28

it complicated just search on just

285:31

search for virtualbox and you will see a

285:33

lot of different videos with the help of

285:35

which you can run Windows you can run

285:37

Linux operating system on a Windows

285:40

operating system machine and then what

285:43

ethereum community did they designed

285:45

this ethereum virtual machine so

285:46

whatever will be happening like whatever

285:48

result this decentralized application or

285:50

whatever this decentralized application

285:52

will be doing it will not be interacting

285:54

directly with your machine it will be

285:57

only interacting with this ethereum

285:59

virtual machine which is like an

286:00

operating system running on your on the

286:02

top of your operating system so this is

286:05

the beautiful thing about ethereum

286:07

virtual machine and how do you have this

286:09

ethereum virtual machine so when you

286:11

install this git client software in your

286:13

system when you become the part of this

286:15

ethereum blockchain in that way only you

286:18

also get access to this ethereum virtual

286:20

machine okay so whatever blockchain

286:22

whatever thing is happening in you it

286:24

might look like that it is happening in

286:26

your system but it will be happening on

286:28

the this ethereum virtual machine now

286:30

let us talk about ethereum gas which is

286:33

a very important concept for the

286:34

ethereum blockchain

286:36

so let us understand the concept of

286:38

ethereum gas with the help of an example

286:40

let's say you are having a car okay at

286:42

position a and you want to reach to this

286:45

position B

286:47

now in order to reach from position a to

286:49

position B you require one thing right

286:51

and that one thing is petrol or I will

286:54

say gas without gas or without petrol or

286:57

diesel you cannot reach from A to B

287:00

definitely you have a car you have a

287:01

machine it might be beautiful it might

287:03

be expensive but without petrol can it

287:05

move from a b no right so you need to

287:08

refill some petrol to this car so that

287:10

you can reach from point A to point B

287:13

right now in the same way let us say

287:16

that you have a smart contract and you

287:18

want to deploy this smart contract on

287:20

the ethereum blockchain you want to

287:22

execute some code on this on this smart

287:25

contract that is deployed on this

287:26

ethereum blockchain now in order to do

287:29

that you will require gas but this gas

287:32

will not be like your petrol or like

287:34

your you know diesel but this gas will

287:37

be called as ethereum gas now why you

287:40

will require this ethereum gas let us

287:41

understand this with the help of an

287:43

example

287:44

so let's say you want to execute this

287:46

code in your smart contract okay so this

287:49

just create a beautiful smart contract a

287:51

program okay in which you want to

287:54

execute this expression 10 into 3 minus

287:57

6 okay so this is a simple expression

287:59

and you want to execute it in your smart

288:01

contract

288:02

now in order to execute this statement

288:05

you will require some amount of cash for

288:09

each and every operator right there is a

288:12

particular gas associated with it so for

288:15

example if we talk about multiplication

288:16

if you are doing a multiplication

288:18

operator multiplication operation then

288:20

you require five amount of cash for this

288:23

subtraction operator that you are seeing

288:24

right the subtraction operator this

288:26

requires three amount of gas and if we

288:29

talk about this equal to operator right

288:31

this equal to operator is equal to

288:34

operator requires three amount of gas so

288:36

in order to run this code it is like

288:38

running a car right in order to run this

288:40

code you will require this amount of gas

288:42

so that you can run this expression so

288:45

if we if I talk about like if I say that

288:47

what is the total amount of gas you will

288:49

be required in order to execute this

288:51

expression that will be 5 plus 3 plus 3

288:55

that is equal to that's right I hope

288:58

this makes sense that you require 11 gas

289:00

so that you can get the result of this X

289:02

expression so let me show you one

289:05

important one important document

289:08

where you can find the list of all the

289:11

gas associated with all the opports okay

289:14

let me show you that

289:16

so this is this

289:18

close this t-tube

289:21

okay so this is an official website okay

289:23

of ethereum popcodes okay in this I

289:27

think

289:28

we have to go to this right

289:31

awkward gasless now in this you can

289:33

clearly see that for each and every

289:35

operator for each and every instruction

289:37

that you are executing on the ethereum

289:39

blockchain within your smart contract or

289:41

on your ethereum blockchain you have to

289:44

pay certain amount of cash okay so for

289:46

stop it is zero gas for add this is

289:49

three gas for multiplication five gas

289:50

right with this which is we have seen

289:52

also for subtraction this is three gas

289:54

so you need to have certain amount of

289:56

gas in order to run in order to code any

290:00

kind of expression on the smart contract

290:02

again we will see much more about it in

290:05

our upcoming videos but I hope this

290:07

makes sense right I will share the link

290:09

also if you want otherwise you can

290:11

search it it is given there also yes and

290:14

one important point that why do we not

290:16

use ether in this case like why do we

290:18

have this another entity called gas

290:21

remember right guys that ether

290:22

fluctuates a lot because ether is

290:24

something sometimes either price will be

290:26

one thousand dollars at another point it

290:28

will be two thousand dollars so there is

290:29

no particular you know a particular

290:32

value associated with ether it keeps on

290:34

changing and that's why we have this

290:36

concept of gas and which we will talk

290:38

much more about in our upcoming video

290:40

where we will talk about ethereum gas

290:42

price but before that let us talk a

290:45

little bit more about this Am gas so

290:47

let's see some important points related

290:49

to ethereum gas first

290:51

production that modifies the blockchain

290:53

costs some amount of gas so any

290:56

transaction that you are doing right

290:57

which is modifying the state of your

291:00

blockchain let's say you are changing

291:01

the value of a variable in the in your

291:03

smart contract okay and which I will

291:06

talk about in much more detail in our

291:07

solidity course but for now so if you

291:10

are changing a variable if you are

291:11

changing something in your smart

291:12

contract on the ethereum blockchain then

291:14

that will cost you some gas

291:17

and who will pay this gas the user that

291:20

is generating this kind of transaction

291:22

so let's say you want to you know let's

291:24

say you want to print hello world in

291:26

your smart contract so you are making

291:28

some changes right you are actually

291:29

calling some function into a smart

291:31

contract so if you are calling those

291:33

function you need to pay cash okay and

291:36

when I'm saying transaction do not be

291:38

consumed that transaction is something

291:39

when I send something to someone no

291:41

transaction is anything in ethereum

291:44

blockchain that changes the state of

291:46

your

291:47

just remember like this anything that

291:50

you are doing and which is actually

291:51

changing the state of your block is

291:53

actually your transaction so in the

291:55

previous video we talked about gas right

291:57

that what is gas and how why it is used

292:00

in everything let's talk about what is

292:02

this price so let's say again we have

292:04

this beautiful car and we want to reach

292:06

from point A to point B and definitely

292:09

in order to reach from point A to point

292:10

B we require some amount of gas so let's

292:13

say in order to reach from point A to

292:15

point B I require some 10 liters of

292:18

petrol okay let's say I in order to

292:21

reach from point A to point B I require

292:22

some 10 liters of petrol now if I ask

292:25

you what is the total price you have

292:28

spent in order to reach from point A to

292:31

point B definitely you can tell me the

292:33

total amount of petrol that you have

292:35

consumed in order to reach 1.8 to point

292:37

B that is 10 liters but now I am asking

292:39

you that what is the total price

292:43

that you have paid in order to reach

292:46

from point A to point B

292:48

now you will say this is a silly

292:50

question because you haven't told me the

292:52

price of petrol because it will depend

292:55

upon the price of petrol that how much

292:58

cost I have paid in order to reach from

293:01

point A to point B and I will say

293:02

definitely you are right so let's say

293:04

the price of petrol is 5 rupees I know

293:07

this is silly it can never be it can

293:09

never be so little as five rupees or

293:11

let's say one dollar or two dollars so

293:13

yeah this is silly but still

293:16

let's say five Rupees is used in order

293:18

to reach from point A to point B now if

293:20

I will ask you the total price then you

293:22

can say that okay the total price will

293:24

be 5 into 10 that is 50 rupees because I

293:26

am using uh 10 liters and for per liter

293:29

I am paying 5 rupees so 10 into 5 that

293:31

is 50 rupees and I will say yeah you are

293:33

completely right

293:35

now the same goes for our gas so in the

293:39

previous video we have seen right that

293:41

we can calculate the total amount of gas

293:43

that we are consuming in order to

293:45

evaluate this expression now if I will

293:47

ask you that what is the total amount

293:50

you have paid in order to evaluate this

293:52

expression you will say again the same

293:54

thing right that okay I know the total

293:57

amount of Gap

293:58

I do not know the total amount of money

294:00

means the total amount of price I have

294:03

to pay for per amount of gas right and

294:06

this is what we called as gas price

294:09

so what is grass price it is the amount

294:12

the sender wants to pay per unit of gas

294:15

to get that transaction mined gas price

294:19

is something which is sent which is set

294:21

by the sender so in case of petrol the

294:25

petrol price is actually fixed by the

294:27

government right government decides that

294:29

what will be the total amount of price

294:31

you are going to pay for per liter of

294:33

petrol but in case of gas it is not

294:36

determined by the government it is you

294:38

who is doing the transaction who will

294:41

decide the amount of price you are

294:43

willing to pay for each amount of gas

294:45

that you are spending okay and I know

294:49

you might be thinking I will pay as low

294:50

as possible but this is now how it works

294:53

let me tell you why and before moving

294:55

further let me tell you this also that

294:57

gas prices are denoted in GOI and one

294:59

guy is equal to 10 to the power minus 9

295:01

ether so this is a unit of ether okay

295:03

just like we have 1 kg is equal to one

295:05

thousand gram uh one meter is equal to

295:07

centimeter in the same way in one way we

295:10

have 10 to the power minus 9 ether so

295:12

remember that so your gas price can be

295:15

in 10 Way 100 GUI or it can be 1000 GUI

295:18

whatever you will decide so it totally

295:21

depends on you whether you want to have

295:22

your gas price as 10 gray whether 100 or

295:25

1000 quid now let's go back to again

295:28

that question that okay if the gas price

295:30

is set by me only because I am going to

295:33

set this gas price I will have my gas

295:35

price as low as possible I will pay some

295:39

0.00001 way in order to do my

295:41

transaction

295:42

but now let me tell you one catch here

295:45

the catch is that definitely you can

295:48

decide the gas price but still if you

295:51

want your transaction to get mined

295:54

faster then you need to pay good amount

295:57

of gas price so the higher the gas price

296:01

the faster the transaction will be mine

296:03

it is just like in Bitcoin so in Bitcoin

296:05

we discussed about the transaction fee

296:07

right that the higher transaction fee

296:09

you will be having the more chances of

296:12

your transaction to get mined the more

296:14

chances that your transaction will be

296:16

successful in the same way if you are

296:19

going to pay more amount of gas price

296:21

then your transaction will be elected

296:24

means sorry not elected actually will

296:26

selected by the miners then only they

296:28

will take your transaction and put it

296:30

inside the block and then only they will

296:32

mine your transaction right so you need

296:34

to have a gas price which is

296:38

according to the market level so your

296:40

gas price should not be too low or your

296:42

gas price should not be too high okay so

296:45

remember this if you will pay more

296:48

amount of gas price then you will be

296:51

having your transaction mined in less

296:53

amount of time the more gas price the

296:56

less time it will take it doesn't mean

296:57

that you have to pay you know 10 million

296:59

in order to have your transaction you

297:02

know in order to run in order to

297:04

make your transaction successful no I'm

297:06

not saying that it totally depends upon

297:07

the market you have to see what is the

297:10

market rate of gas price and you have to

297:12

Choose Wisely in order to boost that

297:15

kind of transaction but generally most

297:17

of the wallets that you see that your

297:19

metamask wallet they assume like they

297:22

they take the market price and they

297:25

provide you the gas price accordingly

297:26

but still if you want to increase the

297:29

speed of your want to have your

297:31

transaction done in you know in as much

297:34

fast as it can possible in that case you

297:36

need to pay a higher gas price than any

297:39

other person who is doing that kind of

297:41

transaction let me show you this with

297:42

the help of an example so I will open my

297:45

metamask wallet in this let me copy this

297:47

same send I will select the address

297:50

where I want to send so now I am doing

297:52

some kind of transaction right I am

297:53

sending

297:55

so I have selected let's say this amount

297:57

of GUI I will say next now you can see

298:00

that hey if you will see this is they

298:02

are calculating this Max V right so how

298:04

they are calculating this Max V so what

298:06

they are doing is they are seeing the

298:09

total amount of gas you are going to

298:10

spend okay so for every transaction

298:12

there is a gas limit we will talk about

298:14

this uh we will talk about that in our

298:17

upcoming video so what they are doing is

298:19

they are giving you the estimated price

298:21

it will take in order to do your

298:23

transaction successfully and let me show

298:25

you this Market tab so I will clicking

298:26

on this Market tab now you can see that

298:28

if you are willing to pay some this

298:30

amount of it in that case your

298:33

transaction time will be 30 seconds if

298:36

you are paying this amount of edge so

298:38

this is the market price this is on

298:39

average I think this will be less than

298:41

30 seconds so it is more than 30 seconds

298:43

it is less than 30 seconds and then you

298:45

have this aggressive that if you want

298:47

your transaction to be confirmed in like

298:49

you know in less than 30 seconds in that

298:51

case you have to go for this amount of

298:53

the gas price okay or I will say this

298:56

amount of fees okay they are calculating

298:57

your gas price uh by taking the gas

299:00

consume and the total um the total gas

299:03

price you are willing to pay so they are

299:05

doing it on your behalf so this meta

299:07

Mass quality is doing on your behalf

299:08

definitely you can go to the advanced

299:10

settings and you can change it but I

299:12

will not advise you to do that because

299:13

your metamask for it is good enough to

299:15

do that but still if you are thinking no

299:17

I want to change it I want to change the

299:19

gas price I want to change the gas

299:21

amount or whatever you want you can do

299:23

that also okay but I would say that let

299:26

it do by metamask only okay so this is

299:29

how it is in this video we are going to

299:32

learn ethereum gas limit which is a very

299:35

important topic in the ethereum

299:37

blockchain so let us see what is

299:39

ethereum gas limit ethereum gas limit is

299:42

the maximum gas the transaction can

299:45

consume so let's say you are doing some

299:49

kind of transaction the maximum gas that

299:52

your transaction can consume will be

299:54

your ethereum gas limit means will be

299:57

the ethereum gas limit of your

299:59

transaction and what is the transaction

300:01

as we have discussed before also

300:03

anything that changes the state of our

300:06

blockchain for our ethereum blockchain

300:08

in this case is a transaction right and

300:12

who sent this ethereum gas limit so this

300:14

ethereum gas limit is actually set by

300:16

the sender of the transaction so let's

300:19

say you are doing some kind of

300:21

transaction some ether transfer to your

300:23

friend now in this case you will be

300:26

setting this ethereum gas limit

300:30

no okay we understood what is this

300:32

ethereum gas limit and this is set by

300:34

the sender but what is the use of

300:36

ethereum gas limit why do we have this

300:38

we have learned about ethereum gas then

300:40

we learned about lithium gas price and

300:42

now we have another term related to gas

300:44

that is ethereum gas limit what is the

300:47

use of it let us understand this so if

300:49

we talk about our smart contract

300:52

our smart contract is

300:54

a program that is deployed on the

300:56

ethereum blockchain right and our smart

300:58

contract is something that also changes

301:01

the state of the blockchain so if you

301:03

are doing any kind of you know a state

301:06

change operation with the help of your

301:08

smart contract you are at the end doing

301:11

a transaction let's say you are calling

301:13

some function of your smart contract and

301:15

your smart contract is deployed to the

301:16

blockchain on the blockchain and let's

301:18

say this function is changing some data

301:20

on the ethereum blockchain okay on the

301:23

Block which is which is uh at which this

301:25

is smart contract is deployed now this

301:28

function calling that you're doing is

301:30

actually changing the state of the

301:31

blockchain right so this will be a

301:33

transaction

301:35

now since this smart contract is not

301:37

running only on your system but this is

301:40

smart contract is running on each and

301:42

every system that is part of this

301:43

ethereum blockchain right

301:45

now just suppose just suppose let's say

301:48

this person is a hacker okay just

301:50

suppose that this person is a hacker and

301:53

this person has launched a smart

301:55

contract and in this smart contract he

301:57

has some transaction

301:59

which is consuming infinite amount of

302:03

gas just uh assumption just uh you know

302:06

just an example that let's say this this

302:10

smart contract consists of a function

302:12

which consumes infinite amount of gas

302:15

now what will happen in this case now

302:17

you may say that okay since this person

302:19

is launching some function which is

302:21

which is going to definitely consume you

302:24

know infinite amount of gas when I'm

302:25

saying infinite you think of it as a

302:27

huge amount of gas okay you can think

302:29

like that also

302:31

now definitely he has to pay good amount

302:34

of money for that but another drawback

302:36

of this situation is definitely let's

302:38

say this person is a rich person and he

302:40

said okay I have no problem in giving

302:42

money to the ethereum blockchain so he

302:44

said okay no issues I will call this

302:46

function and I will pay the money

302:48

whatever money you require and I will

302:49

pay that to the ethereum blockchain I

302:51

have no issue with that but there is one

302:53

drawback the drawback is that this smart

302:55

contract is not running or not only

302:57

running on his system but this smart

302:59

contractor is running on each and every

303:01

system of this ethereum blockchain means

303:04

this will actually slow down the

303:06

ethereum blockchain right let's say this

303:08

is smart contract consists of an

303:10

infinite function so this for smart

303:13

contract function is keep on running and

303:14

running the loop actually not function

303:16

in finite Loop now this Loop will be

303:18

running infinitely it will be

303:20

continuously running and he said okay

303:21

I'm a rich person I'm ready to pay you

303:23

anything whatever you want but this will

303:25

actually affect the overall system

303:27

because each and every system has this

303:30

smart contract as we talked about also

303:32

that in blockchain everything is

303:34

distributed so this is smart contract

303:36

will be running on each and every system

303:37

which will actually slow down the

303:39

ethereum blockchain right and we do not

303:41

want that so that's why we have a

303:44

concept of gas limit we in the starting

303:48

of a transaction only ask from the

303:50

person who is doing any kind of

303:52

transaction that how much amount of gas

303:55

you think your transaction is going to

303:57

consume definitely it is totally an

304:00

estimated guess you cannot say that okay

304:02

this will be the total amount it is a

304:04

totally estimated guess okay this is the

304:07

amount of

304:08

gas my transaction is going to consume

304:10

you have to tell this to the ethereum

304:12

blockchain in advance actually to the

304:13

ethereum wallet whatever wallet you are

304:15

using in advance so that the ethereum

304:18

blockchain can okay see that okay this

304:21

transaction is consuming this amount of

304:22

gas okay this is good I have no issue

304:24

with it and then only that come out of

304:27

that transaction will be executed on the

304:29

ethereum blockchain so that it does not

304:31

slow down the whole system so that's why

304:34

we have a limit we are having a limit

304:36

that has to be decided by the sender

304:38

that okay this is the gas limit of my

304:41

transaction with the transaction that

304:43

I'm going to do this will be the gas

304:45

limit of my transaction okay so you have

304:48

to give it a finite number so that the

304:50

ethereum blockchain can accept it if it

304:52

is a good amount of limit and if the

304:54

limit is too high it will reject that

304:57

transaction let me show you that also so

304:59

this is my madamas wallet let me copy

305:01

this address and let me send some amount

305:03

of ether to me only okay I'm sending

305:06

some amount of ether to my address only

305:08

just to show you what do I mean by that

305:11

so I will have

305:12

0.0 Point sum zero zero zero one ether

305:16

okay I want to send this amount of ether

305:18

to me I have to click on next

305:20

now when I will click on next if you

305:22

will go to this part this Market part

305:25

and then if you will go in this advanced

305:29

settings

305:30

you will see that there is an option of

305:32

ethereum gas limit that you can set you

305:35

can edit this ethereum gas limit

305:37

according to the type of transaction

305:39

that you are doing typically whenever

305:41

you are doing an ethereal transfer an

305:43

ether transfer in that case twenty one

305:45

thousand is the ethereum gas limit okay

305:47

it is a ethereum gas limit in like

305:50

whenever you are sending some amount of

305:51

ether to your friend but definitely when

305:53

it is a smart contract transaction in

305:56

that case your gas limit may vary it can

305:58

be more than twenty one thousand but 21

306:00

000 is the minimum so it can be more

306:02

than 21 000 only okay

306:04

and also this gas limit is also used in

306:07

order to calculate your ethereum

306:08

transaction fees okay so here you can

306:10

see that there are a lot of things right

306:12

maximum base fee priority fee but you do

306:15

not have to go in the calculation of it

306:16

because this thing keep on changing okay

306:19

earlier there was another criteria in

306:21

order to calculate the gas fee and now

306:23

we have another criteria of calculating

306:25

the gas fee so do not if you want to go

306:27

into that definitely you can but I will

306:29

not suggest you because this is

306:31

something which will keep on changing

306:32

and I don't think so there is any use of

306:35

it but definitely if you want to you can

306:37

go and learn about this on ethereum.org

306:40

website and as I said this gas limit you

306:44

can change it according to your

306:45

convenience and you might be thinking I

306:48

can have let's say 42 000 definitely you

306:50

can have a 42 000 gas limit then you

306:53

also have to pay uh the amount you know

306:56

you you have to pay for the 42 000 gas

306:59

limit amount of fees as well so do not

307:01

think that you can have hundred thousand

307:02

of gas limit so if you are going to have

307:05

hundred thousand gas limit then you have

307:07

to pay accordingly now what will happen

307:09

let's say you might be thinking that

307:10

okay if my guess is wrong if let's say

307:13

my transaction is consuming only 35 000

307:16

in this case so what will happen the

307:18

remaining 7000 gas limit fees will get

307:22

reverted to your account so don't worry

307:24

about it if it is let's say your

307:26

transaction is consuming 35 000 and you

307:28

have put it you know you have put 42 000

307:31

in that case 7000 will be reverted back

307:34

to your account and if you are having

307:37

less amount of gas limit let's say your

307:39

transaction is going to consume 42 000

307:41

and you have only used thirty five

307:43

thousand let's say now in this case what

307:45

will happen your transaction will get

307:47

failed and your money will also be not

307:49

refunded because it's your mistake

307:52

because the miner who has picked your

307:54

transaction has put all his effort in

307:57

order to solve for your transaction but

307:59

now since you have given only 35 000

308:02

amount of gas limit he will not be able

308:04

to execute your transaction because your

308:06

gas limit must be 42 000 so it will be

308:09

rejected and you will not get any kind

308:11

of refund okay so that's the case now in

308:14

this video we are going to see a demo of

308:16

the ethereum blockchain we will see like

308:19

what are the different fields in the

308:21

ethereum blockchain the transactions

308:23

that ethereum blockchain have and how it

308:25

is different from the Bitcoin blockchain

308:27

okay so this is a beautiful website

308:30

etherscan.io you can

308:33

learn a lot about ethereum on this

308:36

particular website about its

308:38

transactions about the mining rate each

308:41

and everything is given at this website

308:43

in a great detail okay so just come to

308:47

this website either scan dot IO now here

308:49

if you will see we have all the latest

308:51

transactions field and here we have all

308:54

the latest blocks field okay so let's

308:57

let me go to this particular block and

308:59

you can see the block number here the

309:01

block number is around I think some

309:04

lacks I think once tense hundred

309:06

thousand ten thousand lakhs and lacks

309:08

crores actually so it is in crores and

309:10

then we have status uninitialize okay so

309:13

it is not successful yet this is the

309:15

timestamp at which this particular block

309:17

was created and this is the proposed

309:20

slot and Epoch okay nice and we have the

309:24

number of transactions so you can

309:25

clearly see that this block is now at

309:28

this point of time is having 168

309:30

transactions and 44 contract internal

309:35

transactions that's great okay then we

309:38

have the recipient so this is our

309:40

recipient address then we have the block

309:42

reward and then the difficulty wow

309:45

that's great so this is the difficulty

309:47

and this is the block reward guys okay

309:49

and this is the size of our block okay

309:52

and this is the gas use so we have

309:53

discussed about gas right so you can

309:55

clearly see that how gas is actually

309:57

being you know involved in the

309:58

blockchain and this is the gas limit and

310:00

if you will see a very good example it

310:03

is that this is the total amount of gas

310:05

that is used and this is the gas limit

310:07

set by the sender right and you can

310:09

clearly see that only

310:11

84.59 of this ethereum gas limit is used

310:14

so the rest amount that is the rest I

310:17

will say around 16 percent of the gas

310:19

will be refunded back to the sender okay

310:22

now this is base fee base fee per gas

310:25

now I am not going to into the

310:26

technicals of this for this as I

310:28

suggested you before also you have to go

310:30

to ethereum.org there you can find much

310:33

more details about this fee per gas and

310:36

everything so this is the burn fees

310:38

extra data this is the hash of this

310:40

particular block so as we have discussed

310:42

in the blockchain video as well right

310:43

that each and every block has a hash so

310:46

ethereum blockchain also has a hash this

310:48

is the parent hash so you can think of

310:50

it as a previous hash okay so it is

310:52

pointing to this particular block okay

310:54

and this is the state route so stay

310:56

tuned is currently out of the scope of

310:58

this particular course but this has to

311:00

you know do with your Merkel tree okay

311:03

but this is not a part of this

311:05

particular course definitely I will

311:06

discuss this in some other video so this

311:08

is actually the state route of that

311:10

Mughal tree and this is the nonce now

311:12

currently you can see that nonce is zero

311:14

because now ethereum has shifted from

311:17

proof of work to proof of state

311:19

blockchain that's why it is 0 here okay

311:22

and if you want to discover about this

311:24

parent hash okay so if you will see the

311:26

block number is uh some 547 right in the

311:29

last let me see this particular block

311:31

which is the parent block and if you

311:33

will see it is 546 which makes sense

311:35

also because this was the first block

311:37

five four six then the next block will

311:39

be five four seven right

311:41

and here also you can see the number of

311:43

transactions in each and every detail is

311:45

given in this particular block as well

311:47

right so this is a great website guys if

311:49

you want to explore about ethereum

311:51

blockchain I will suggest you I would

311:53

highly suggest you to visit this

311:54

particular website you can learn a great

311:57

deal about blockchain in on this

311:58

particular website so this is the base

312:00

fees this is the priority fees so this

312:02

is the market rate currently this is the

312:04

price of our ether okay that's great and

312:07

these are the different things okay if

312:09

you want to learn about the rc20 tokens

312:11

definitely this is not a part of this

312:12

particular course we will talk about

312:13

this in our solidity course okay but

312:16

this is not a part of this particular

312:18

course and blockchain and everything is

312:20

given in this particular you know

312:22

website and let's say if you want to

312:24

search for a particular address you have

312:26

to Simply search that address here okay

312:28

you have to just type the address here

312:29

and you can learn about that app that

312:31

particular account address about that

312:33

particular block the transaction has

312:35

anything so if you have anything having

312:37

like transaction as block token or

312:40

anything you can have a look at that

312:42

particular block okay so that's great

312:45

right so I hope you like this video if

312:47

you have liked this video please click

312:48

on that like button if you are new to

312:50

this Channel please subscribe to this

312:51

channel because I'm regularly going to

312:52

make new blockchain courses on this

312:55

channel and if you want to join me on

312:56

Instagram Instagram ID is given in the

312:58

description as well as our blockchain

313:01

developer Community Discord link is also

313:03

given in the description so you can join

313:05

me there okay so meet us in the next

313:07

video till then bye bye hello guys

313:10

welcome back to code reader channel in

313:12

today's video we are going to talk about

313:13

decentralized autonomous organization so

313:17

let us see what are they now before

313:19

talking about decentralized autonomous

313:21

organization let us understand this word

313:24

organization how does a typical

313:27

organization looks like so if you will

313:29

see a typical organization looks

313:32

something like this right we have a

313:34

director under this director we have

313:36

some managers under these managers we

313:38

have some employees right so if director

313:40

has some work he will assign to it to

313:42

the manager then manager will assign it

313:44

to the employees and this is how an

313:47

organization runs right in a

313:49

hierarchical manner that director is the

313:51

supreme authority after that we have

313:54

managers and after that we have

313:55

employees right now there are certain

313:58

tasks in any organization which are very

314:01

repetitive in nature right in which we

314:03

do not require human intervention like

314:07

for example uh let's say

314:09

there is a customer who has certain

314:11

doubts related to the product let's say

314:13

this organization is selling some

314:15

product and this customer has some

314:16

doubts related to the product now this

314:18

organization can solve the doubt of the

314:21

customer by two ways right first way is

314:23

that this organization can you know

314:25

assign some person to that customer who

314:28

will actually solve the customer doubt

314:30

or what this position can do is this

314:33

organization can have a bot and AI bot

314:37

which will actually solve the doubt of

314:38

the customer and I think the second

314:40

option is better than the first one

314:42

because it will not require any human

314:44

intervention so it will actually save a

314:47

lot of money for this organization and

314:49

it will be a very fast process right

314:50

because you will have an artificial

314:52

intelligence bot which will be solving

314:54

all the doubts in a very much faster way

314:56

because customers uh poor or the same

314:59

will have the same doubts right so we

315:01

can have documentation linked or we can

315:02

have some videos linked and that but

315:04

will provide the customer with all those

315:07

documentation and with all the videos

315:08

and customer care can refer it

315:10

afterwards right so what we can do is

315:12

for all repetitive kind of tasks in

315:15

which uh you know human intervention is

315:18

not required we can install Smart

315:20

contracts now these smart contracts will

315:24

work just like an organization the only

315:27

difference will be that there will be no

315:29

human intervention in running this

315:31

decentralized autonomous organization

315:33

and as the term if you will see why it

315:36

is called decentralized because it is on

315:38

blockchain or a smart contract is on

315:40

blockchain that's why we are calling it

315:43

as decentralized we call this autonomous

315:45

because we do not require any human

315:47

intervention so let's say if there is a

315:49

task we will assign that task to this

315:51

smart contract now according to the you

315:54

know variety of tasks this is smart

315:56

contract assigned this this particular

315:58

task to this particular smart contract

316:00

and then this smart contract can assign

316:02

the same task to this smart contract so

316:04

you can think of it like this smart

316:05

contractors working as a director

316:06

definitely all these smart contracts are

316:09

the same right because all these are

316:11

actually programs but just to make you

316:13

you know make you understand this

316:15

concept of decent eyes autonomous

316:16

organization we can assume that this

316:18

smart contract is a director this is

316:20

that you are seeing on the second level

316:22

are basically managers and at the end we

316:25

have

316:26

the employees which are actually working

316:28

in this decentralized autonomous

316:30

organization

316:32

and the beauty of this decentralized

316:34

autonomous organization is it is very

316:36

very cost effective and very very

316:39

transparent and total democracy is there

316:42

because there is no human intervention

316:44

let us see the difference between Dao

316:46

and a typical organization a traditional

316:48

organization so if we talk about Dao

316:51

right it is totally democratized because

316:53

we do not have any humans so each and

316:56

everything is done by the words and

316:57

which are totally transparent as well

316:59

while if we talk about organization it

317:02

runs on hierarchy right because there is

317:04

a director who will be ruling the

317:06

organization and he will be telling what

317:08

to do and what not to do if we talk

317:10

about Dao we require voting but if we

317:13

talk about traditional organization it

317:15

might be or it might not be the case if

317:17

you talk about Dao no trusted

317:19

intermediary to count for right because

317:22

we does not we do not need to depend on

317:24

someone else for the counting of word

317:26

because smart contracts are smart enough

317:28

to count the votes in this we require

317:30

some other person some person who

317:33

actually manually uh you know do the

317:35

voting you know counting of the votes

317:37

and everything so we are actually

317:39

dependent so much on our centralized

317:41

Authority right if we talk about fourth

317:44

services offered are handled

317:45

automatically right right because no

317:48

human intervention just give it a task

317:50

and smart contract are smart enough they

317:52

will do your task if you talk about a

317:54

traditional organization we have human

317:57

handling or what we can say is Sentry

317:59

controlled automation if we talk about

318:02

the fifth Point all activity is

318:04

transparent because smart contracts are

318:07

totally present in the public space so

318:10

you can check the smart contracts how

318:12

the smart contract code is running each

318:14

and everything is totally transparent if

318:16

you talk about a traditional

318:17

organization you never know what is

318:19

actually happening inside an

318:21

organization right it is is totally

318:22

private it is limited very very much

318:25

limited to the public right so this is

318:27

the beauty of decentralized autonomous

318:30

organization and we will also discuss

318:32

one case study where this Tau was used

318:35

in order to raise fund okay and we will

318:37

talk about that in the next video but in

318:40

this video I hope you get what the what

318:41

is the idea behind this Tau right let me

318:44

give you an example of this in this case

318:46

also like how this decent lives

318:48

autonomous organization can be very

318:49

helpful so let's say you are here and

318:52

you want to donate some money to this

318:54

NGO right so in this NGO because this

318:57

NGO is our organization right which will

318:59

have a lot of people which will have a

319:02

director manager and so many other

319:03

people will be involved right so this

319:05

money that you are sending to the NGO

319:07

can be utilized for good purpose and can

319:10

also be utilized for bad practices right

319:12

and we do not know like where our money

319:14

is going we do not know whether the

319:16

director of the Sanju is a good person

319:19

or a bad person we do not know right so

319:21

what we can do is instead of you know

319:24

having this NGO as a as an organization

319:27

where humans are running it we can have

319:30

our decentralized autonomous

319:32

organization where we will write each

319:34

and every rules that okay if this money

319:36

is coming from let's say this person and

319:39

this person wants to donate this money

319:40

for human education so this money should

319:43

go to human education only or let's say

319:45

for child education then it should go to

319:46

the child education only and the pets

319:48

best part is and the best part is that

319:50

this organization will be totally

319:52

transparent so you can go and read it

319:55

and not only that you can see all the

319:57

transaction as well that okay if the

319:59

money that you are sending to this

320:00

decentralized autonomous organization

320:01

whether this money is actually going to

320:04

the right account address or not and

320:08

this is the beauty of decentralized

320:10

autonomous organization but in the next

320:12

video we will talk about Dao attack

320:14

which was the biggest attack I think and

320:17

we will talk about that in the next

320:19

video hi in today's video we are going

320:21

to talk about the Dao attack so in the

320:25

previous video we talked about Dao right

320:27

decentralized autonomous organization

320:30

and we have seen that in a decentralized

320:32

autonomous organization each and

320:35

everything or I will say most of the

320:36

work is actually done by smart contract

320:39

right

320:40

and using the same principle of

320:42

decentralized autonomous organization an

320:45

organization was formed by the name of

320:47

the Dao the Dao was an organization

320:51

which was established in year 2016 and

320:54

it was working on a very simple

320:55

principle anyone who wants to invest

320:58

some money to some startup like it was

321:01

working as a venture capitalist form

321:02

which was actually helping others to

321:05

invest in a particular company so let's

321:08

say we have certain group of investors

321:10

okay so what they do actually they buy

321:13

some Dow tokens by providing some ether

321:15

to the organization and they were

321:18

provided with some Dow tokens now this

321:20

Dao tokens were actually used for the

321:22

voting so let's say if some investment

321:24

proposal let's say some startup is there

321:26

and it says okay I am a startup and we

321:28

need some money in order to you know to

321:30

run our startup so people who will be

321:33

having this Dao token they were allowed

321:36

to vote on this investment proposal

321:38

whether to invest for this particular

321:40

startup whether to invest for this

321:42

particular company or not so with the

321:44

help of this Dow token people who are

321:46

given this Authority this power to

321:49

invest in a particular company or not so

321:52

what they do they simply vote for a

321:54

particular investment proposal and if

321:55

the investment proposal votes are let's

321:57

say more than 50 percent then definitely

321:59

they go for this investment proposal

322:01

otherwise this investment proposal was

322:03

rejected so you can clearly see that it

322:06

was a very simple concept and it was

322:09

very much successful also let me show

322:11

you the timelines so it was established

322:13

as I said the Dao was established in

322:15

2016 so 34 2016 it was established and

322:19

by 15 5 2016 in just 15 days the da was

322:24

able to raise over 100 million US dollar

322:28

which was you know record breaking in so

322:31

much less time the Dao was able to raise

322:34

so much high amount of money via

322:37

crowdfunding and one month after this

322:39

race the Dao was attacked there was some

322:43

issue there was some vulnerability in

322:45

the smart contract of the Dao because as

322:47

I said right when we talk about

322:49

decentralized autonomous organization

322:50

most of the things that is actually done

322:52

by smart contracts and there was some

322:55

vulnerability in the smart contract code

322:57

and that vulnerability was exploited by

323:00

some hacker and they were able to

323:03

extract huge amount of tokens from the

323:07

Dow smart contract which was a very

323:09

panic situation because the investors

323:11

who have invested huge amount of money

323:14

in this Dow contract they were losing

323:17

this money so this was a panic situation

323:19

at that point of time you can clearly

323:21

see right U.S 100 million dollar was

323:23

raised right so a lot of amount of money

323:26

was there in the Dow contract the Dow

323:29

Community came up with a proposal that

323:31

what should they do in order to stop

323:33

this attack and the solution that was

323:36

accepted on 27 2016 was to go for hard

323:41

Fork which we will talk about in great

323:44

detail in the next video after hard folk

323:46

only the ethereum blockchain got

323:48

splitted into two different blockchains

323:51

one was ethereum classic and the another

323:53

was ethereum blockchain the core

323:56

ethereum blockchain but we will talk

323:58

about this hard for Concept in the next

324:01

video but before moving before uh

324:05

completing this video before ending this

324:06

video I want to draw some important

324:09

points to you so that you are not

324:11

confused because many of you guys might

324:12

be thinking that the Tao was attacked

324:14

means the blockchain can be attacked and

324:16

the blockchain can be hacked no the

324:18

blockchain was not actually hacked the

324:20

problem was with the quote person who

324:23

has written this smart contract code has

324:25

not written this Smartphone track

324:27

properly and that's why this blockchain

324:30

or I will say this is smart contract was

324:32

hard so the problem was not with the

324:34

technology the problem was with the

324:36

smart contract code that was written by

324:39

some human so it is is very very very

324:42

necessary if you are creating a smart

324:43

contract your smart contract should be

324:45

written in a very secure way otherwise

324:49

you will be you will be losing millions

324:53

of amount of dollars because your smart

324:55

contracts can hold millions of amount of

324:57

dollars right so you have to be very

324:59

careful you need to have good developers

325:02

who are actually creating your smart

325:04

contract in this video we are going to

325:06

talk about a very important topic that

325:07

is hard Fork so in the previous video we

325:10

have seen that the Dow smart contract

325:13

was hacked and the hacker was able to

325:16

extract out funds from the Dow smart

325:18

contract if you haven't watched the

325:19

previous video I will suggest you to

325:21

watch the previous video on the Dao

325:24

attack now to stop this attack not to

325:27

stop this hacker from extracting out the

325:29

fund from the Dow smart contract the

325:31

ethereum community came out with a

325:33

solution and that solution was hard Fork

325:36

now in this hard folk what was proposed

325:39

actually that let us upgrade our smart

325:41

contract because our smart contract

325:43

consists of some vulnerabilities and due

325:46

to these vulnerabilities some hacker is

325:48

able to extract out funds some people of

325:51

the ethereum community thought of that

325:53

we should upgrade our smart contract if

325:55

we will upgrade our smart contract then

325:58

the hacker will not be able to extract

326:00

out fund but there were some other

326:02

members who thought okay if we are going

326:04

to upgrade our smart contract we are

326:06

actually going against the principle of

326:08

a smart contract that smart contract

326:10

must be immutable you cannot change a

326:14

smart contract once it is deployed to

326:16

the theme or to any other blockchain so

326:19

two parties were formed one who was

326:22

suggesting that we should upgrade the

326:23

smart contract so that we can stop the

326:25

hacker from extracting out the fund

326:27

another party who was saying that if we

326:30

are going to upgrade our smart contract

326:31

it will be against the principle of our

326:34

smart contract that is immutability so

326:36

we should not upgrade our smart contract

326:39

and due to which only two blockchains

326:42

were formed one was the ethereum

326:44

blockchain this over blockchain this

326:47

blockchain supported the upgradation of

326:49

the smart contract while this blockchain

326:52

this ethereum classic blockchain said

326:54

okay I am not going to participate in

326:55

this upgrading of the smart contract so

326:58

we will split from here and this process

327:01

where you are seeing right that a single

327:03

blockchain got splitted into two

327:05

different blockchain this process is

327:07

actually called as hard folk but you

327:09

have to understand much more about this

327:11

because there is another term also that

327:13

is called Soft Fork but we will talk

327:15

about sort folk in the next video in

327:17

this video let us understand what is

327:19

hard fork and what is hard folk all

327:21

about so during a hard four soft

327:24

implementing a protocol and its mining

327:26

procedures is upgraded so the underlying

327:30

software the ethereum software that

327:31

people are using so that they can be the

327:34

part of this ethereum blockchain that

327:36

software is updated so that the desired

327:38

changes can be made second thing is once

327:41

a user upgrades their software that

327:43

version rejects all the transaction from

327:45

older software effectively creating a

327:48

new branch of the blockchain and you

327:49

will understand this we will discuss

327:51

about all these Concepts in much more

327:53

detail just don't worry for now however

327:55

those users who retain the old software

327:58

continue to process the transaction so

328:01

if you will go back in this example this

328:04

ethelium classic who said that we are

328:06

not going to upgrade the smart contract

328:08

they were following the old version of

328:10

the software while this new blockchain

328:12

after this point this new blockchain was

328:15

adopting a new version of the software

328:17

so that's why we see a split after this

328:21

one nine one nine nine nine nine block

328:23

and hard work is not something that has

328:26

actually happened to the ethereum

328:27

blockchain hardwood is something that

328:29

has already done on the Bitcoin

328:32

blockchain in year 2017 August 2017 two

328:36

different blockchains were formed one

328:38

was our core blockchain that that is

328:40

Bitcoin core blockchain and another

328:42

blockchain by the name of Bitcoin cash

328:44

now why we have these two different

328:47

parties the reason is very simple this

328:49

Bitcoin cash Community there's Bitcoin

328:52

cash party they said that we should have

328:55

much more size of the Bitcoin blockchain

328:57

like if we talk about a typical Bitcoin

328:59

blockchain block size it is around 1 MB

329:02

and since it is around 1 MB we have

329:04

limited number of transactions inside a

329:06

block right so this Bitcoin Cash Company

329:08

said that okay uh this 1mb block is not

329:11

suitable because we are not able to have

329:13

more number of transaction in the

329:15

Bitcoin block why not to upgrade the

329:18

block size from 1mb to 8 MB but this

329:22

Bitcoin Community this party they said I

329:24

know we do not want that we only want

329:26

that Bitcoin blockchain block should be

329:28

1 MB because this is good we should not

329:30

increase it to 8 MB but this community

329:32

said no we want to increase it to 8 MB

329:35

and that's when this split happened at

329:38

four seven eight five five eight block

329:40

talk this two parties are formed this

329:42

Bitcoin who was supporting 8 MB block of

329:45

the Bitcoin blockchain and this Bitcoin

329:48

that was supporting only 1 MB of the

329:51

Bitcoin blockchain and now let us

329:52

understand this hard fork with the help

329:54

of an example so here we have this

329:56

Bitcoin cash blockchain who said that

329:58

okay we are ready for the 8mb block of

330:00

the Bitcoin blockchain and this Bitcoin

330:02

blockchain this uh our core Bitcoin

330:04

blockchain who said that no we are not

330:07

going to upgrade to block size of 8 MB

330:10

so these are the people who haven't

330:12

upgraded right and these were the people

330:14

who have upgraded and I have given some

330:17

timestamp definitely this timestamp can

330:19

be in months or in a year but I have

330:21

just to for the illustration purpose I

330:23

have have 11 am 12 p.m 1 pm 2 pm okay so

330:26

this is just an example to illustrate

330:28

and here we are going to upgrade the

330:30

block size to 8 MB so this this

330:32

community of Bitcoin cash has upgraded

330:34

it MB block but this one has not updated

330:37

or has not upgraded to 8mb blog let us

330:40

understand this with the help of an

330:42

example so this is the line after which

330:45

people have a choice that they can

330:47

either go to you know 8mb block or they

330:49

can remain in the 1mb block so let's say

330:52

Urban MB block is mine at this by by

330:55

this Bitcoin Community okay and after

330:57

some time at 12 pm let's say they again

330:59

mind one more block that is of 0.7 MB

331:02

and since 0.7 MB is less than 1 MB so

331:05

they can mine this particular block

331:07

right now at 1 pm at 1 pm a Blog is mine

331:11

which is of 7 MB now since this block is

331:15

of 7 MB so these people cannot mine this

331:18

block right why because they have not

331:21

upgraded to the latest version of the

331:24

software right this is what we have seen

331:25

right in the previous video while these

331:27

people they have upgraded to the new

331:29

software so they can mine a block of 7mb

331:32

right now again at let's say 1 pm again

331:36

a new block Is Mine by these people

331:39

which is of let's say 0.5 MB and that's

331:42

fine right but now you can see that we

331:44

have a split in the blockchain right

331:47

after this particular block we can see

331:49

we can clearly see that we have a split

331:51

now after this part after this

331:53

particular time both of these Community

331:55

will mine the block separately so let's

331:59

say another block of 8mb was mined by

332:02

this community at 2 pm and at 2 pm a

332:05

block was mined by this community of 1mb

332:08

in the same way again some 0.8 MB block

332:10

was mined by this particular community

332:12

and 8mb block was mined by this Bitcoin

332:15

cash community in this process will go

332:17

on parallely means these people will not

332:19

affect these people and these people

332:20

will not affect these people because now

332:22

we have two separate blockchain this

332:24

people these people have actually

332:26

upgraded the software while these people

332:28

have not upgraded the software that's

332:30

why we have these different blockchains

332:33

and this is what we have learned about

332:34

the hard poke right and the definition

332:35

of heartful that there will be two

332:38

versions of the software the people who

332:39

will will go for the latest version they

332:41

will have a different blockchain but the

332:43

people who will be you know in the old

332:45

version of the software who will be

332:46

using the old version of the software

332:48

they will be still be using that old

332:50

blockchain only and this is what we are

332:52

seeing in this particular example also

332:54

so I hope now you have understood what

332:57

is hard fork and all these three points

332:59

are very clear to you so I now in this

333:01

video we are going to talk about soft

333:03

work in the previous video we talked

333:05

about hard Fork right now in this video

333:08

we are going to understand soft food if

333:10

you haven't watched the previous video I

333:12

will suggest you to watch that video

333:14

before watching this video okay let me

333:16

present you certain points related to

333:18

sort fork okay and if you are not

333:20

getting those points just don't worry we

333:22

are going to understand those points

333:24

with the help of an example for now just

333:26

have a look at these different points so

333:28

that you can have a you know just have a

333:30

look so that when I'm going to explain

333:32

those things

333:33

you can connect the dots okay so just

333:35

for that just have a look at these

333:37

different lines and you will understand

333:39

this by the end of this video so just

333:41

don't worry okay so let's talk about

333:43

software software changed to the

333:46

protocol but the end product remains

333:48

unchanged now what do I mean by this

333:51

like it simply means that you are going

333:53

to make some changes let's say if you

333:55

talk about ethereum so you are going to

333:56

make purchase to the ethereum protocols

333:58

means the rules and regulation on which

334:00

ethereum program on which ethereum

334:02

blockchain is running you are going to

334:03

change those rules and regulations but

334:06

the end product remains unstranged in

334:09

your ethereum blockchain will remain the

334:11

same there will be changes but those

334:13

changes will not affect the product so

334:15

let us understand if we have talked

334:17

about hard Fork right in the previous

334:18

video where we have seen that after hard

334:21

work we got two different ethereum

334:23

blockchain first was this ethereum

334:25

blockchain and another was the classic

334:28

blockchain right this ethereum classic

334:29

blockchain has its own Community this

334:32

ethereum blockchain has its own

334:33

Community this ethereum classic

334:35

blockchain has its own cryptocurrency

334:37

and this ethereum blockchain has its own

334:39

cryptocurrency so you can clearly see

334:41

that in hard Fork our end product that

334:44

is our ethereum blockchain got changed

334:46

but the blockchain got splitted into two

334:48

different blockchains so we got two

334:50

different products right but in case of

334:53

sore folk this is not the case and you

334:55

will understand this first we will see

334:56

the exam if we talk about the second

334:58

point a soft Fork is Backward Compatible

335:00

if we talk about hard folk heart found

335:03

Backward Compatible once our hard Fork

335:05

is done as the name suggests hard so you

335:08

cannot go back once a hard Fork is done

335:10

but if you talk about soft Fork soft

335:12

Fork are actually Backward Compatible

335:15

meaning that upgrade nodes can still

335:18

communicate with non-upgraded ones means

335:20

as I said right software soft folk is

335:23

also going to change the protocol so it

335:25

is like you are updating your software

335:27

so after the upgradation of your

335:29

software the people who are going to use

335:31

that upgraded software

335:33

will be able to communicate with those

335:36

people as well who has not who have not

335:39

actually upgraded their own software so

335:42

both of these different parties will be

335:43

able to talk to each other will be able

335:45

to communicate each other okay third

335:48

point that all nodes not upgraded nodes

335:51

could still validate blocks and

335:53

transaction but they just wouldn't

335:56

understand them I understand all these

335:59

things are so overwhelming so confusing

336:01

so just don't worry let's see the

336:03

software of an example okay

336:06

so let's understand this soft work with

336:08

the help of our game analogy okay so

336:11

let's say you are playing some video

336:12

game okay and do previous game you have

336:15

two different teams first team a so this

336:18

is our team a and we have this team B

336:20

okay so you can clearly see that this is

336:22

our team B and in order to play this

336:25

game they need to fight with each other

336:28

so they have some swords given in the

336:30

game okay not in reality they are doing

336:33

everything in the game only okay so just

336:35

don't take it seriously that they are

336:36

you know fighting with sword no so this

336:38

player they they have their own players

336:40

and this player can use this sword in

336:43

order to fight okay so you might have

336:45

played these type of games now after

336:47

some time the game community means the

336:50

company who was actually providing this

336:51

game they thought why not to upgrade

336:54

this so This sword okay this sword was

336:58

weak okay so they thought why not to

337:00

upgrade this sword to a new sword okay

337:03

and this is uh more enhanced so it is

337:07

more stronger than this previous sword

337:08

so they thought okay we will upgrade our

337:11

gaming software and we will provide this

337:13

latest sword to all the new players okay

337:16

to all the players who are going to join

337:18

the game as well as players who are

337:20

already part of this game they can

337:21

upgrade their software in order to have

337:24

this and the change was made but this

337:26

team a they say that okay this sword

337:29

that we are using uh in by it and we are

337:32

comfortable to use it so we are not

337:34

going to upgrade our software okay we

337:36

are comfortable and we are going to play

337:38

with this same old sword while Team B

337:41

they said okay this sword is much more

337:43

enhanced one much more stronger so we

337:46

are going to upgrade our software and

337:48

they are very software so now they knew

337:51

stronger sword okay so team a using the

337:55

old sword while Team B is using the new

337:58

much stronger sword but after some time

338:01

this team a started facing some problems

338:04

since this sword is much more stronger

338:07

than this sword so they are easily Team

338:09

B is easily able to defeat team a right

338:12

first they are in majority so they have

338:14

much more players and they have much

338:16

more stronger sword so they are beating

338:18

team a in a much more easy way right it

338:21

makes sense a much more stronger sword

338:23

will definitely going to defeat this you

338:25

know old uh weaker sword

338:28

so team a after some realization they

338:31

said okay this is not working definitely

338:33

we are comfortable you know operating

338:35

the sword but we need to upgrade it we

338:38

need to upgrade our gaming software so

338:40

at the end they need to upgrade from

338:43

this old sword that they were using to

338:46

this new sword provided by The Gaming

338:48

Community

338:49

now you might be thinking like why I'm

338:51

explaining you this whole story right

338:54

what what is the point of it but you

338:56

will understand this once we are going

338:57

to say take the same analogy in this

339:01

soft Fork example okay so in this soft

339:04

focus so we have two teams one who who

339:08

is not ready who are not actually ready

339:09

to upgrade their software and we have

339:11

this another team who are in majority so

339:14

they are in majority like Team B the

339:16

team B was in majority right so they are

339:18

also in majority and they are ready for

339:20

the upgrade and what is the upgrade so

339:22

this team a or the team that haven't

339:26

upgraded yet their software they are

339:28

saying that okay we are going to have

339:30

one MB Block in our blockchain so we are

339:32

going to we are going to mind block of

339:35

size up to 1mb while this team B they're

339:39

saying that no we are not going to we

339:41

are not going to mine you know block

339:43

size of 1 MB we are going to mine block

339:45

size of up to 0.5 MB that's why this is

339:49

0.5 MB right so they are ready for

339:51

mining this 1mb like block size of up to

339:53

1 MB but this team B they are not

339:56

willing to mine 1mb block they are

339:58

saying that we are going to mine only

340:00

0.5 MB blocks okay up to 0.5 MB blocks

340:03

so the mining process starts and since

340:05

this is a soft Fork both of the teams

340:07

are in communication this is what we

340:09

have seen in the first point as well

340:10

right that both of the teams will be in

340:12

communication even though after soft

340:15

work so let's say uh Team a okay so the

340:19

team who haven't upgraded their software

340:21

they they mined a block of 0.5 0.4 MP

340:24

okay at 11 am and after some time again

340:28

they got this opportunity of mining the

340:30

0.5 me block so they were able to mine

340:32

the 0.5 MB block

340:35

it was some time that after let's say 1

340:37

pm at 1 pm they again got an opportunity

340:40

to mine the 0.8 MB block okay so this is

340:43

totally random so they are you know they

340:45

are lucky I will say so they are able to

340:47

mine these blocks 0.4 MB 0.5 MB as well

340:51

as 0.8 MB because they are supporting

340:53

blocks of like up to 1 MB right

340:56

but at 2 pm at 1 pm actually not 2 pm at

340:59

1 pm at same time our team B team who

341:04

have upgraded their software and who are

341:06

in majority they mind a block of 0.3 MB

341:10

okay okay this can happen right because

341:13

we have seen in the consensus algorithm

341:16

video right if you haven't watched

341:17

please pause that video where I've

341:18

explained about the consensus and

341:20

everything

341:21

that it might happen that two nodes or

341:24

two miners can

341:26

minor block at the same time so in this

341:29

case this community okay so as as both

341:32

of them are the part of the same

341:33

Community they are in communication so

341:35

in this community there was some Miner

341:38

who was able to mine the 0.8 MB block

341:40

and in this community as well there was

341:41

a miner who was able to mine the 0.3 MB

341:43

block so it makes sense right this type

341:45

of things happens in the blockchain

341:46

community there are so many Miners and

341:49

they might be mining at the same time so

341:51

this happened at 1 pm only okay in this

341:55

community as well after 1 pm at 2 pm

341:58

again they got this opportunity Team B

342:00

again got this opportunity of mining a

342:02

0.4 MB block okay this makes sense and

342:05

as soon as Team B mined this 0.4 MB

342:08

block

342:09

team a this team realized that okay uh

342:12

there is a problem and the problem is

342:14

that this team this team B has the

342:18

longest stream why because they have

342:20

mined is 0.4 0.5 0.3 and 0 4 0.4 MB

342:24

blocks right so they have in total four

342:27

blocks in their you know in their

342:30

in their bucket well if you talk about

342:31

Team B or not sorry not Team B actually

342:34

team a they have only 0.4 0.5 and 0.8 MB

342:38

blocks means in total they have three

342:41

blocks in their bucket so by the longest

342:44

chain as I have discussed in the

342:46

consensus algorithm video as well right

342:48

that by the longest chain rule

342:51

this block would be discarded from the

342:55

blockchain ecosystem because this is not

342:58

this block is not the part of the

343:00

longest string now some of you might be

343:02

thinking right like but 0.5 MB and 0.5

343:05

MB were not actually mined by Team B so

343:09

why you are saying that 0.4 and 0.5 MB

343:11

is actually mined by Team B see I'm not

343:14

saying that they have mined this

343:15

particular block the point is that both

343:17

of these Community are the part of the

343:19

same Community right and this is what we

343:21

have seen in the software video also

343:22

that even though after upgrade both of

343:25

these nodes will still talk to each

343:27

other they will still you know

343:29

participate in the validation and the

343:30

you know verification of the blockchain

343:32

so they are the part of the same

343:34

community so they have they have not you

343:36

know they have not split it like like we

343:39

have seen in the heartfold they are the

343:40

part of the same Community the only

343:41

thing is that one of the teammate have

343:43

upgraded the software while another have

343:45

not upgraded the software this is the

343:47

only difference that is lying so still

343:49

this whole blockchain this still this

343:52

the whole blockchain that you're seeing

343:53

is part of the both of these people

343:56

right but the 0.8 MB is not part of this

343:58

uh this community right why because the

344:01

0.8 MB is a block which they they do not

344:04

support so they say that okay we have

344:06

upgraded our software and we are not

344:08

going to you know ex we are not going to

344:10

accept this 0.8 MB block so it it makes

344:13

sense because they have they have

344:15

upgraded their software right so they

344:16

will not calculate this block at the

344:19

part of the blockchain while this team

344:21

will only accept this block as the part

344:24

of their blockchain because they have

344:25

not upgraded their software

344:27

so they will so the whole Community will

344:30

discard this particular block and you

344:33

can clearly see that why because this

344:35

this team B is in majority right and we

344:38

always go for the majority so they will

344:40

discard this particular block and again

344:42

the mining process will start so let's

344:44

say at 3 pm this team may again mind

344:48

some blocks 0.5 MB and then off at 2 pm

344:51

this particular you know this majority

344:53

majority team that Team B mined the 0.3

344:56

MB block and this process will go on but

344:59

here one important thing to note here is

345:01

that you can clearly see that this

345:03

blockchain does not got splitted right

345:07

this blockchain is still the same while

345:09

in case of hard Fork we saw that we have

345:12

two different blockchain definitely it

345:13

might look that okay this blockchain is

345:16

getting spreaded at this point of time

345:17

but no this is not getting split because

345:19

we are going to discard these blocks

345:21

right and this is what we have seen in

345:23

the game video as well right that after

345:25

some time team realizes that we are

345:27

going going to lose this particular game

345:29

so we need to we need to upgrade our

345:32

software right and the same thing will

345:34

happen in this case as well when when

345:36

this team a will see that okay these

345:39

people this these people who are in

345:40

majority they have upgraded their

345:42

software so we need to upgrade our

345:45

software so that we can also be the part

345:47

of this game right so that we are not

345:50

losing this whole game so this is what

345:52

actually happens in soft fork and still

345:54

if you have any confusion please let me

345:56

know in the comment section of this

345:57

video I will definitely answer your

345:59

queries hi now in this video we are

346:02

going to talk about icos that is initial

346:05

coin offering now to understand this

346:07

definition let us take an example

346:09

because I know this definition

346:11

is a little bit Technical and you might

346:14

not get this definition

346:16

so let me give you an example to

346:18

understand this definition let's say uh

346:21

you do a bakery shop okay it this bakery

346:24

shop consists of some delicious pastries

346:26

and king and you find one of those

346:29

pastries and one of those you know cake

346:31

and you're okay I need to buy this

346:33

particular cake it looks delicious to me

346:36

so you went to this bakery shop and you

346:38

said to the owner okay I want to buy

346:40

this pastry and you provided him with

346:43

the money but this bakery shop owner

346:45

said no I cannot directly provide you

346:47

this cake if you want to buy this cake

346:50

you need to buy some tokens from me and

346:53

then you need to go to the K counter in

346:55

order to get this cake so instead

346:58

directly providing you with the cake

347:01

this bakery shop owner provided you with

347:04

some tokens now this tokens are

347:07

something which you can use in order to

347:09

buy anything from this bakery shop Okay

347:11

so this Billy shop this owner gave you

347:14

this tokens he said that okay with the

347:16

help of this token you can buy anything

347:18

from my shop you can go to the you can

347:20

go to a specific counter let's say if

347:22

you want to go to buy a cake you have to

347:23

go to the cake counter if you want to

347:25

buy a pastry you have to go to the

347:26

pastry counter and you can use these

347:29

tokens in order to buy this cake and you

347:33

said okay that's good and you and you

347:35

give Who provided the money to the

347:37

bakery shop owner and bakery shop owner

347:39

provide you with this tokens and you use

347:41

these tokens in order to buy this

347:43

particular cake now if you will see in

347:46

this example these coins that you are

347:48

seeing right on your screen these coins

347:50

are basically known as tokens okay and

347:53

you might have gone to a bakery shop

347:55

like this right you might have gone to

347:57

so if we will go back to the definition

347:59

tokens are a type of cryptocurrency that

348:02

represents an asset so if you will see

348:05

if you will look closely these coins

348:07

these tokens are actually

348:09

representing a particular asset and that

348:13

asset is cake in this example right so

348:17

tokens are are a type of cryptocurrency

348:19

so our base they are also basically type

348:21

of cryptocurrency

348:23

represent an asset in this case as I

348:25

said these tokens this physical world

348:28

tokens are actually representing this

348:29

cake or specific use okay we will talk

348:32

about it and resides on their blockchain

348:35

means every blockchain has its own token

348:39

like if we talk about ethereum ethereum

348:41

has erc20 token okay Solana will have

348:45

its own token so every blockchain will

348:48

have its own token okay so this is the

348:50

whole definition this tokens definition

348:52

I think now clear right that tokens are

348:54

a type of representsy that represent 10

348:56

assets so remember this line that tokens

348:58

are nothing but these are cryptocurrency

349:00

that are representing some asset okay

349:03

now if this definition is clear let us

349:05

talk about icos now let us talk about

349:08

initial coin offering now before talking

349:10

about initial coin offering let us

349:12

understand what are basically IPOs so

349:14

IPOs are something that if you might

349:16

have heard this term in the stock market

349:18

so let us understand that so that it

349:20

will be much easy to understand stand

349:23

what basically took icos are so gay so

349:26

we have jaff buzzers okay so we have jab

349:29

azos invested some amount of capital to

349:32

Amazon right now when he invested this

349:34

amount of capital into Amazon because

349:37

Amazon as you all know is a business

349:38

right

349:39

Amazon provided their business with some

349:43

shares right because let's say in the

349:45

starting their business owned the whole

349:47

Amazon so he has all the shares of

349:50

Amazon right

349:52

and how Amazon make profit Amazon makes

349:55

profit by providing service and products

349:56

right to the consumers and in return

349:59

Amazon gets some profit so this is how

350:02

Amazon makes money right

350:04

now Zeb was all thought okay this is

350:06

good but I need some more capital I need

350:09

some more Capital so that you know I can

350:11

grow my business at 10x speed

350:14

so what he did he launched an IPO

350:18

now in this IPO

350:20

anybody can invest

350:23

and

350:24

like invest to the Amazon so these

350:27

people these people who are you know

350:28

part of the general public they will

350:30

provide some cash to Amazon because

350:32

jabezos needed some cash right in order

350:34

to expand the Amazon business

350:38

so they will provide him some cash

350:40

meaning they will provide some cash to

350:42

the Amazon and in return Amazon will

350:45

provide them with some shares now what

350:47

are what are the benefits of the share

350:49

so in like when Amazon will give the

350:52

shares to these shared folders so these

350:54

shareholders will have a say according

350:57

to the number of shares they hold right

350:59

so if someone is holding some let's say

351:01

for example 40 of the shares of this

351:03

Amazon so he will be giving you know he

351:05

will be having much more authority over

351:08

the shareholders who have only 30

351:10

percent or let's say 20 percent stake in

351:12

Amazon right because he owns much more

351:15

shares of Amazon because he has provided

351:16

more cash to Amazon right so this makes

351:18

sense right so this is how an IPO works

351:21

okay this is how a company some money so

351:24

that it can expand and these people who

351:27

have invested some money to the Amazon

351:28

they have some shares so that they have

351:31

you know some rights over Amazon as well

351:33

as whatever profit Amazon will make they

351:35

will have their own shares now let us

351:37

talk about an ice you now icos works

351:40

exactly the same as an IPO the only

351:43

difference is that icos are much more

351:45

faster because they do not require any

351:47

kind of paperwork or the paperwork that

351:49

will be that is required is minimal no

351:52

legal procedures no use documentations

351:54

nothing is required you can launch an

351:57

Ico right now as well so it is so easy

352:00

well if we talk about an IPO you need a

352:03

lot of legal procedures required it

352:05

takes you know around one year to two

352:07

years even to launch an IU to launch an

352:10

IP or even more also because a lot of

352:12

Regulation is there a lot of you know

352:14

legal documents a lot of formalities are

352:17

there but if we talk about an Ico Ico

352:19

does not require any of these things

352:21

they are very simple they are very easy

352:24

to launch so if you talk about an Isis

352:26

an ISO works so again let us say that

352:29

zip is also is thinking to launch his

352:31

business Amazon now instead of receiving

352:34

some shares what he will receive will be

352:37

some tokens so as we discussed that

352:39

tokens represent some asset right and in

352:42

this case tokens are representing Amazon

352:44

okay now again how Amazon will make

352:47

profit against service and products and

352:49

then by you know selling these services

352:51

and products Amazon will make some

352:53

profit now again this episode thought

352:55

okay I need some you know money so that

352:57

I can expand my business so what their

352:59

business will do he will launch an ICU

353:02

again people will come provide cash room

353:05

as well

353:06

and his business and in return

353:09

these users these people these people

353:12

who are investing their cash to this

353:14

Amazon They will receive some tokens now

353:17

with the help of these tokens these

353:19

people again will make some profit

353:21

whenever Amazon will make profit they

353:23

will make some profit and definitely

353:25

when Amazon will make some loss they

353:27

will also have those losses right

353:28

because they are actually you know

353:30

investing to this Amazon for the

353:32

betterment of Amazon so if Amazon is

353:34

going in lost it will also experience

353:36

loss in terms of tokens so tokens value

353:39

will start decreasing if Amazon will be

353:41

not working properly

353:43

and again since they will have tokens

353:46

they will own tokens so they will also

353:48

have some rights over you know Amazon uh

353:51

big decisions like say Amazon is

353:54

thinking to launch one more business or

353:56

Amazon is thinking to launch one product

353:58

so the people who will be owning these

354:00

tokens right so they will have some

354:02

voting rights and they will also decide

354:04

whether the whether a particular product

354:06

should be launched by Amazon or not or

354:08

whether a you know particular Services

354:10

should be provided by Amazon or not all

354:12

these decisions

354:14

will also go to go through these people

354:17

as well because they have invested their

354:20

money and they also have some tokens so

354:22

they will also have authority right in

354:25

order to say something whenever Amazon

354:27

is taking some major decision so this is

354:29

what an Ico is all about simple right

354:32

just like an IPO the only difference is

354:34

it is very fast no complex procedures no

354:38

legal documentation and everything

354:39

definitely if there are no legal

354:41

documentation it is so easy chances are

354:43

high that you know Ico is a scam so you

354:46

have to be very very much careful

354:48

whenever you are investing in an Ico or

354:51

chances are high that you get corned

354:53

okay because either as I said right

354:55

there are no legal documentations there

354:57

are no legal procedures so anybody from

354:59

their home can launch an Ico so you have

355:01

to be very very very much careful

355:03

whenever you are investing in an Ico

355:06

okay always read the white paper

355:08

documentation provided by the company

355:10

before investing in any kind of icos I

355:14

AI now in this video we are going to

355:16

talk about ethereum 2.0 so let us see

355:19

what it is on 15th September 2022

355:22

ethereum shifted from a proof of work

355:24

blockchain to a proof of stake

355:27

blockchain so the mining concept that we

355:30

have discussed in our previous video

355:31

right when we were discussing how minor

355:34

solves a mathematical problem and

355:36

everything right I hope you have watched

355:37

those videos so all those Concepts were

355:40

related to your proof of work consensus

355:42

and now ethereum is using proof of stake

355:45

consensus so now it is not using proof

355:48

of work consensus at all and now it is

355:50

using proof of stake consensus so now

355:53

you must be thinking like why ethereum

355:55

shifted from proof of work blockchain to

355:57

a proof of stake blockchain and we will

355:59

discuss about that also don't worry we

356:02

will also discuss the difference between

356:04

proof of work and proof of stake

356:06

consensus okay like in proof of work

356:08

actually we were having minors right in

356:10

proof of stake we have validators so

356:13

definitely you can call them the miners

356:15

but in proof of stake terminology you

356:17

call them validators now what these

356:20

validators do these validators is take

356:23

some of their ethers to the ethereum

356:26

network so this is your ethereum network

356:28

you can think of it as a locker okay for

356:30

now I am just demonstrating it as a

356:32

locker so what they do they stick some

356:36

ether to the ethereum network so it is

356:38

like you have some let's say some two

356:40

ethers and you are going to stake two

356:42

ether to this ethereum network now once

356:45

you will take some ether to the ethereum

356:47

network you are eligible and now you can

356:50

mine for the ethereum blockchain so like

356:52

in proof of stake uh miners were using

356:55

you know miners who are were solving

356:57

some mathematical problem in order to

356:58

solve the blockchain you know that

357:00

mathematical pressure in order to a mine

357:03

a particular blockchain in the same way

357:04

after staking these ethers these

357:07

validators can now mine for the ethereum

357:10

blockchain let's say this validator who

357:12

has actually staked is he meter right to

357:15

the ethereum blockchain once he will

357:17

mine a ethereum block and he will add

357:19

this ethereum block to the ethereum

357:21

blockchain the state ether The Ether

357:24

that he has take to the ethereum network

357:25

will be returned back to him so The

357:27

Ether that he has take let's say he has

357:29

state two ether just for example so this

357:31

two ether will be written back to him as

357:33

well as he will get some commission for

357:35

solving or I will say for mining the

357:38

ethereum block blockchain okay so this

357:41

is how the validators make profit by

357:43

this transaction fee but if during the

357:47

verification and validation of the block

357:49

the like this validator has done some

357:51

cheating for example so if during the

357:54

verification and validation of the block

357:56

other validators found that okay this

357:58

valuator has done some sort of cheating

358:01

then the ethereum network will not

358:04

provide the state ether back to the

358:07

validator and he will not be receiving

358:09

any kind of transaction fee like in

358:11

Bitcoin blockchain the block was

358:13

discarded and the miner was not getting

358:15

any kind of reward in the same way in

358:17

ethereum blockchain the miner who will

358:19

be doing any kind of cheating or

358:22

valuator who will be doing any kind of

358:23

cheating that validator will not get any

358:25

transaction fee and the state ether The

358:27

Ether that he has taked in the ethereum

358:29

blockchain will not be provided back to

358:31

him so he will be at a loss so he have

358:34

to be very much careful whenever he is

358:36

mining for the ethereum blockchain so

358:39

now let us understand this with the help

358:40

of an example also that let's say all

358:43

these people a b c e f are validators

358:46

who have actually staged some amount of

358:49

ether in the ethereum blockchain now the

358:51

question arises which of these people

358:53

will be selected for the mining of the

358:56

blockchain whether all will be selected

358:58

for the mining of the blockchain no all

359:01

of these people will not be selected for

359:03

the mining of the blockchain because in

359:05

proof of stake there is no competition

359:07

between the miners like in Bitcoin

359:09

blockchain we have a lot of competition

359:11

between the miners right which Miner

359:13

will solve the mathematical problem

359:14

first but in proof of stake there is no

359:17

there is no competition

359:19

let's say if all these people have a

359:21

stake some amount of ether then only

359:23

randomly one of these people will be

359:26

selected so it is a total it is a

359:28

totally random process so in this total

359:30

random process if let's say a has Stakes

359:33

amount of ether the chances are there

359:35

that a will be selected or chances are

359:37

there that e can be selected so it is a

359:39

total random process this selection

359:41

process is total random anybody can be

359:43

selected from the ethereum blockchain

359:45

network so e can be selected B can be

359:48

selected any of these people can be

359:50

selected but they is also one condition

359:53

means

359:54

definitely anybody can be selected this

359:57

total this is definitely total random

359:59

process but in this also the person who

360:02

has the most amount of ether the chances

360:05

of getting selected as a validator are

360:08

very much higher so if you are a person

360:11

let's say if you have you know stay 10

360:14

ether in the ethereum blockchain and

360:16

your friend has taked 20 e 13 ethereum

360:18

blockchain so the chances of your friend

360:21

getting selected are much higher than

360:24

you because he has taked 20 either and

360:27

you has you have actually state only 10

360:29

ether right so in this case your friend

360:32

has a higher chance of getting selected

360:34

it is not that you will not be selected

360:36

there will be a chance that you will be

360:38

selected you might be selected because

360:39

it is a total random process but chances

360:42

of getting selected for the person who

360:44

has take most amount of ether will be

360:46

much higher than those people who have

360:49

stayed less amount of ether okay now let

360:51

us see the difference between proof of

360:53

work and proof of stake consensus so if

360:57

we talk about proof of work proof of

360:59

work in proof of work we have minors

361:01

right in case of proof of stake we have

361:04

validators improve of work high

361:06

performance Hardware is required so

361:08

people need to buy miners actually need

361:10

to buy Asic technology so that they can

361:13

mine you know so that they can

361:15

competition of mining right so anybody

361:17

who will be solving the mathematical

361:19

problem first will be the winner right

361:22

so for that they need to invest huge

361:24

amount of money in the technology but in

361:27

case of proof of stake you just require

361:30

your mobile or your laptop and that is

361:32

more than enough if we talk about proof

361:34

of work it requires a huge amount of

361:36

electricity well if you talk about proof

361:39

of stake it does not require any kind of

361:40

electricity and that is very simple

361:42

right you can simply mine for the

361:45

ethereum blockchain using your mobile or

361:47

your laptop if we talk about proof of

361:49

work the more hashing power you have the

361:51

more blocks you can validate so the

361:53

person who will be having you know huge

361:55

technology for mining he will be having

361:58

the most most hashing power right and

362:00

since he will be having the most hashing

362:02

power the chances of mining a particular

362:05

block are very high while in case of

362:07

proof of stay the person who has

362:09

invested the most amount of ether will

362:12

be having higher chances of validating a

362:16

particular block or mining a particular

362:17

block I am saying for mining again and

362:19

again so just don't be confused I'm

362:21

talking about validation only okay

362:23

if we talk about proof of work we for

362:25

attack need to happen we need 51 hashing

362:28

power right we have discussed all these

362:30

things in the uh in the Bitcoin

362:32

fundamental videos right I hope you have

362:34

watched those videos while in case of

362:36

proof of stake anybody who wants to have

362:39

control over the ethereum blockchain

362:41

need to stake 51 percent of the stake

362:44

amount and that is very much very very

362:46

high means just imagine the price of

362:49

ether is around I think one thousand

362:51

dollar at this point of time I just

362:52

don't know but 51 percent

362:55

to stake 51 percent you know seeing to

362:58

the total ethereum blockchain you know

363:00

number of validators and let's say if

363:02

each validator is only investing one

363:04

ether just just an example let's say

363:06

they have one lakh validators so total

363:09

amount that you have to invest will be

363:12

51 of this one lakh ether around that is

363:17

I think very very much high so that's

363:19

the case when it comes to proof of stay

363:21

if we talk about proof of work

363:22

competition is there right everybody is

363:25

competing with each other but in case of

363:27

proof of stake there is addition it is a

363:31

total random process of selection right

363:34

so these are the differences between

363:36

your proof of work consensus and proof

363:39

of stake consensus so I Welcome to our

363:42

last video of this course that is old

363:45

coins what are basically all coins all

363:48

coins are basically all cryptocurrencies

363:51

other than one so if we talk about you

363:54

know life Bitcoin Theta usdte link BNB

363:59

Ada there are so many cryptocurrencies

364:02

apart from Bitcoin and all these

364:04

cryptocurrencies come under the category

364:07

of altcoins now you must be thinking

364:09

what is the need of so many different

364:11

cryptocurrencies what is the need of

364:13

altcoins you know means cryptocurrencies

364:16

uh apart from Bitcoins like Bitcoin was

364:19

uh Bitcoin was not enough actually there

364:22

are three reasons uh the reasons why do

364:24

we have so many different all coins

364:26

first reason is application and uses if

364:29

we talk about Bitcoin let's say Bitcoins

364:31

only support transactions right we can

364:33

only send transactions we can send some

364:36

Bitcoin to our friend or our friend can

364:37

send some Bitcoin to us and this is how

364:39

Bitcoin works but if you talk about

364:41

smart contracts Bitcoin does not support

364:44

smart contracts right and ethereum as a

364:46

blockchain supports smart contracts so

364:48

you can clearly see that ethereum is

364:50

supporting transaction as well as a

364:52

smart contract while Bitcoin is only

364:53

supporting transactions right second

364:56

thing is protocol if you talk about

364:58

Bitcoin Bitcoin has a different kind of

365:00

a protocol protocol means rules okay so

365:03

like uh like if you talk about Bitcoin

365:05

and ethereum both of them are actually

365:07

using blockchain as a technology right

365:08

but both of them Works in a different

365:11

way if we talk about Bitcoin Bitcoin

365:13

uses proof of work while if we talk

365:15

about ethereum ethereum uses proof of a

365:17

stake and both of these consensus are

365:20

different consensus right so this is the

365:23

second reason why we have ethereum right

365:26

otherwise Bitcoin was more than enough

365:28

right but since proof of stake is much

365:31

more environmental friendly that's why

365:33

we have another altcoin and that is

365:35

ethereum okay third reason is technology

365:37

so if you talk about Bitcoin Bitcoin is

365:40

using public blockchain right but if you

365:43

talk about Ripple Ripple is also a you

365:46

know Ripple is also a altcoin but it is

365:49

using you know different kind of

365:51

Technology it is using blockchain but it

365:52

is not working on the principle of

365:54

decentralization all these different all

365:56

coins like you you can see that there

365:58

are so many different all points right

366:00

so all these different altcoins are

366:02

basically developed because all of them

366:05

have either different applications

366:07

different protocols or they are using

366:10

some different kind of Technology that's

366:12

why we have so many cryptocurrencies

366:13

that's why we have so many old coins

366:15

otherwise if we want only one

366:17

application that is only sending of

366:19

transactions then Bitcoin was enough but

366:22

since we require so many different

366:24

things that's why we have so many

366:26

different altcoins and with this we have

366:29

completed our course so congratulations

366:32

we have learned so many different things

366:35

right we covered three different modules

366:37

first was blockchain second was

366:39

cryptocurrency and the third was

366:42

ethereum blockchain if oh I hope you

366:46

enjoyed this course please do leave a

366:49

comment below any feedback anything that

366:51

you want to say please leave a comment

366:53

below of this video I will be be happy

366:56

to address it this is only for you

367:15

I hope you have liked this course if you

367:17

have liked this course please click on

367:19

that like button if you are new to this

367:21

Channel please subscribe to this channel

367:22

because I'm regularly going to upload

367:24

new blockchain courses on this channel

367:25

if you have any doubts or queries you

367:27

can comment your doubts and queries in

367:29

the comment section below I will be

367:31

happy to help you there and if you want

367:34

to talk to me directly then you can

367:36

connect with me at Instagram code eater

367:38

21 is my ID or you can connect with me

367:40

at LinkedIn web3 is my LinkedIn ID and

367:44

please do not forget to share your

367:46

feedback thank you so much meet you soon

367:48

in the next course

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.