Implementing Proof-of-Work in Javascript (Blockchain, part 2)

  Рет қаралды 324,668

Simply Explained

Simply Explained

6 жыл бұрын

Adding the proof-of-work mechanism to our homemade Javascript blockchain.
Proof-of-work will secure our blockchain against spammers and people trying to tamper with our blocks.
► Source code
Available on GitHub:
github.com/SavjeeTutorials/Sa...
💌 Sign up for Simply Explained Newsletter:
newsletter.simplyexplained.com
Monthly newsletter with cool stuff I found on the internet (related to science, technology, biology, and other nerdy things)! No spam. Ever. Promise!
🌍 Social
Twitter: / savjee
Facebook: / savjee
Blog: savjee.be
❤️ Become a Simply Explained member: / @simplyexplained
#blockchain #javascript #nodejs #coding #simplyexplained

Пікірлер: 332
@jessss7792
@jessss7792 6 жыл бұрын
Another solid video. Please continue this series, I'd love to see part 3!
@elgrimoriodelchamo1017
@elgrimoriodelchamo1017 6 жыл бұрын
Same here. Amazing videos. Greetings from Venezuela, thank you very much Savjee!
@LeandrocBr
@LeandrocBr 6 жыл бұрын
one more here!!
@BFFGamingHD
@BFFGamingHD 6 жыл бұрын
YES, YES AND YEEEEES!
@austinkim1735
@austinkim1735 6 жыл бұрын
one more!
@joaofrutinho
@joaofrutinho 6 жыл бұрын
Epale chamo, yo también estoy en Venezuela, estoy interesado en hacer contacto con otros desarrolladores de aquí, si quieres nos contactamos, yo soy autodiacta. Así que sería genial poder ver en qué podemos ayudarnos.
@exo.master
@exo.master 6 жыл бұрын
It is kinda funny how we, software developers with some knowledge about Object Oriented Programming, can understand the concepts very fast when classes are given in OOP. Between .. dear Savjee, your techniques show excellence on teaching, congratulations!!
@jgttech
@jgttech 5 жыл бұрын
So true. I was just saying to a co-worker of mine that I wish everything was explained in OOP, then I could learn physics and anything at that point lol. OOP is how you communicate to a modern developer lol. So freaking true.
@fxstreamer238
@fxstreamer238 2 жыл бұрын
@@jgttech If you dont understand physics you probably wont understand oop
@_jko
@_jko 2 жыл бұрын
This is exactly I came to watch the video. I watched a bunch of other videos that tried to explain the concept, but it generated MORE questions, not less. It's easier to understand things in code, because there are no contingencies. All the ideas, advantages, disadvantages, potential for bug, etc., are all in the code, whereas spoken words are so malleable and leave a lot of room for interpretation.
@jordixboy
@jordixboy 2 жыл бұрын
@@fxstreamer238 what has physics to do with OOP lol. It's just a way to model data, another data structure, nothing more.
@fxstreamer238
@fxstreamer238 2 жыл бұрын
@@jordixboy ask the other guy. he wants to learn physics with oop. you thought you were smart but you just caught off guard didnt you
@drbasavarajans
@drbasavarajans 6 жыл бұрын
And finally I could comprehend what bitcoin is. Thanks for that crisp and neat threadbare tutorial. Thanks. Hats off to your skill of telling.
@fxstreamer238
@fxstreamer238 2 жыл бұрын
congrats now you are 0.0001 % closer to understand btc.
@xCoKeZx
@xCoKeZx 3 жыл бұрын
I never really understood how blockchains work until now. Apparently all I needed was an illustration in an OOP-way. Thanks a lot!
@waseem_498
@waseem_498 2 жыл бұрын
Thought the same
@cameronm9968
@cameronm9968 6 жыл бұрын
Seriously helpful video man! Seeing it implemented made blockchains so much easier to understand. I finally get why proof-of-work actually works and how it prevents and slows malicious modifications to the chain. Incredible work.
@_jko
@_jko 2 жыл бұрын
Thanks for the video. I watched a bunch of other videos that tried to explain block chain in plain English, but they utterly failed. You started with the basic idea, and improved it as you went on through the video to show how to address potential pitfalls. That was really helpful. None of the other videos do that. They just simply throw a definition at you and hope that you understand it from there.
@JackSparrah
@JackSparrah 2 жыл бұрын
Just starting to learn about blockchain in 2021, and this was super helpful. Seeing it coded live made it so much more clear. Thank you!
@rishabhsingal9423
@rishabhsingal9423 3 жыл бұрын
I've watched more than 6 hours worth of videos on blockchain but still never understood how it really works. But this 6-minute video quick explains how blockchain works in such an easy-to-understand way! Hats off, thank you!
@artofchickens
@artofchickens 6 жыл бұрын
I just recently found your channel. This and your previous video are awesome! I have yet to watch the rest. Thanks so much for such valuable information!
@kkode001
@kkode001 5 жыл бұрын
Very helpful series. Awesome!!! 10 mins of code is better than 10 hrs of talk. Thanks and keep it up.
@freddie2153
@freddie2153 6 жыл бұрын
Great series so far, easy listen but packed full of info!! Looking forward to more.
@lovebajpai5288
@lovebajpai5288 6 жыл бұрын
Great work Savjee!! It simply explains the nonce, difficulty and mining in such an easily understandable way!!! Thank you!!Can you also do something around Valet and how it fits in all this?
@fredkilby5535
@fredkilby5535 6 жыл бұрын
Great video in explaining the technical aspects of blockchain and how to parts fit together.
@cazino4
@cazino4 3 жыл бұрын
Fantastic video, great to see a practical examples of what a block chain implementation might look like. Thank you.
@rum81
@rum81 6 жыл бұрын
Thank you very much for these two videos, i have understood in 15-20 minutes what could not understand after months of blog and videos on block chain
@lapsedubstep
@lapsedubstep 6 жыл бұрын
AMAZING video. thankyou! Hope to see part 3 ❤
@BFFGamingHD
@BFFGamingHD 6 жыл бұрын
Savjee, please continue this series! I love it and I love you
@kp8752
@kp8752 6 жыл бұрын
These videos are fantastic honestly. Also the easiest to understand blockchain intro tutorial
@jamallucas
@jamallucas 6 жыл бұрын
I finally understood the logic behind blockchain. Great video buddy!!!!!
@aeonreigh
@aeonreigh 5 жыл бұрын
I love this! way better from the talks I've been to about block chain!!!
@lucasalvesdossantos3993
@lucasalvesdossantos3993 8 ай бұрын
I'm a professor watching the playlist from Brazil! Tranks!
@4by4rusjo44
@4by4rusjo44 6 жыл бұрын
Great stuff mate. Thanks for sharing
@adams1378
@adams1378 6 жыл бұрын
Amazing video dude. Please continue along that path, really interesting !
@JChengZhang
@JChengZhang 6 жыл бұрын
Explained so simple. Please continue with this!
@jobsphil9553
@jobsphil9553 6 жыл бұрын
Thanks for your sharing.. You are the great.. definitely .
@arsnakehert
@arsnakehert 6 жыл бұрын
Damn, what a brilliant little series! This is so very illustrative! Thank you!
@phillipesmith5401
@phillipesmith5401 2 жыл бұрын
Belittling?
@vsowill
@vsowill 2 жыл бұрын
It’s wild how relevant this video is in 2022 and it’s 4 years old. 🔥🔥
@vprnet
@vprnet 6 жыл бұрын
Surah, you are a very talented instructor!
@techtantrik
@techtantrik 6 жыл бұрын
Well paced lab and very well explained. Thanks!
@g_pazzini
@g_pazzini 6 жыл бұрын
awesome.... i'm an OOP developer... and i can finally understand blockchain by watching your videos... thanks!
@AnishSingh-st5yl
@AnishSingh-st5yl 4 жыл бұрын
Merci beaucoup Xavier...
@FreedomForKashmir
@FreedomForKashmir 2 жыл бұрын
I LOVE your videos on blockchain ..... you are the best teacher over the internet You cleared a lot of my concepts
@phet1574
@phet1574 6 жыл бұрын
Great series! I would love to see the part3 :D
@DurgaPrasad3496
@DurgaPrasad3496 6 жыл бұрын
This is Awesome. After watching this video i get into better perspective of blockchain. Thank You!
@kejoe100
@kejoe100 6 жыл бұрын
Thanks for the videos, I love this kind of series!!! Plz plz make next videos
@jazztwk
@jazztwk 6 жыл бұрын
Great video, really explain clearly in the technical prospective of proof of work, please make more example video
@yousafhassan8655
@yousafhassan8655 5 жыл бұрын
Thank you so much Sir. The mining concept was very well explained.
@phnxbr
@phnxbr 6 жыл бұрын
Hi! It was a pleasure to watch these videos, really simple comparing to others overсomplicating it. Just keep going.
@saumilkapadia88
@saumilkapadia88 6 жыл бұрын
mind blowing brilliant video and explanation.
@therealguanzo
@therealguanzo 2 жыл бұрын
This is so informative for someone that knows nothing about blockchain tech. Thanks!
@nandusuy
@nandusuy 2 жыл бұрын
Thank you. Learning with you is a comforable experience!
@chrisc9725
@chrisc9725 3 жыл бұрын
Wow man I've just come across your channel, its amazing, thank you.
@mikeigoe
@mikeigoe 6 жыл бұрын
Brilliant tutorial, thanks.
@Grkashani
@Grkashani 4 жыл бұрын
you are awsome man !!!!!!!!!!!!! , after many years looking for understanding blockchain I found my answer from you , thank you so much,
@rleevzlno
@rleevzlno 6 жыл бұрын
Awesome content. Thanks for share it
@PavonDunbar
@PavonDunbar 6 жыл бұрын
Amazing video. Subscribed. Thank you!
@neerajkulkarni6506
@neerajkulkarni6506 3 жыл бұрын
This is so well explained!
@ankitasaxena5891
@ankitasaxena5891 4 жыл бұрын
This channel has liberated my mind! I repeat 'LIBERATE'!
@maxbruhn8383
@maxbruhn8383 6 жыл бұрын
Very good video. Keep em coming.
@LeandrocBr
@LeandrocBr 6 жыл бұрын
Fantastic!!! I would like see another videos about this...
@munezhans7735
@munezhans7735 5 жыл бұрын
Well done. Thank you
@juancarlosgonzalez9722
@juancarlosgonzalez9722 3 жыл бұрын
Solid explanation my dude. Thank you.
@trungkienle3714
@trungkienle3714 6 жыл бұрын
thank you so much! It really helpful to me
@nouhbelahcen4486
@nouhbelahcen4486 4 жыл бұрын
Really amazing explain, Thank you very much.
@ayuthmang
@ayuthmang 4 жыл бұрын
Thank you for explaining block chain and proof-of-work in the easiest way. Hope to see more videos. -)
@jimannothe
@jimannothe 2 жыл бұрын
In the easiest way. though that's subjective
@gabrielmicko4771
@gabrielmicko4771 3 жыл бұрын
Very great, solid video. Thanks
@jaikant931
@jaikant931 3 жыл бұрын
Brilliant explanation. cheers
@gilbueno5181
@gilbueno5181 6 жыл бұрын
Make a Part 3 please :)
@kinershah464
@kinershah464 Жыл бұрын
Wow that was simple and it seems to be quite effective solution.
@j8577798yt
@j8577798yt 6 жыл бұрын
Best explanation on the net !!!
@shgazda
@shgazda 6 жыл бұрын
Man, great video! Thanks!!
@YogeshPadsala
@YogeshPadsala 6 жыл бұрын
yes this is a great video. thank you
@dipanshunegi9805
@dipanshunegi9805 3 жыл бұрын
Thank you do much sir .. love you for this.
@RaceBook.
@RaceBook. 6 жыл бұрын
Please upload the 3rd part also. great video lecture
@Raayol
@Raayol 6 жыл бұрын
Thank you!!! You are awesome!!
@potterprasant380
@potterprasant380 2 жыл бұрын
Osm... Thank You For This video ❤
@samueleagostinelli5346
@samueleagostinelli5346 6 жыл бұрын
Loving this
@mralextacy
@mralextacy 6 жыл бұрын
fantastic! subscribed.
@flamingwoodz
@flamingwoodz 6 жыл бұрын
This video series is awesome
@hadireg
@hadireg 3 жыл бұрын
excellent explanation!!!👍👍
@john-blair
@john-blair 3 жыл бұрын
Great video. Simply Explained. Thanks.
@FredChevitarese
@FredChevitarese 6 жыл бұрын
Very nice videos. Keep doing this :) Thanks!
@RyanHooGeek
@RyanHooGeek 6 жыл бұрын
Really nice video, it explains a lot! Words in the paper of bitcoin were so confusing before I watch this.
@footstepparecords
@footstepparecords 3 жыл бұрын
wow.. this is so dope!
@i6mi6
@i6mi6 6 жыл бұрын
Excellent work!
@SvartAdamSolander
@SvartAdamSolander 6 жыл бұрын
Really good video that really explaines it very well! I'm subscribing!
@saltblue3250
@saltblue3250 Жыл бұрын
Great explanation!
@emilie1977
@emilie1977 6 жыл бұрын
Merci, Thank you, Grazie!
@mtiderman
@mtiderman 6 жыл бұрын
outstanding! Thanks
@nicolaimartin7279
@nicolaimartin7279 6 жыл бұрын
amazing thx for share
@klx450dude
@klx450dude 6 жыл бұрын
greaaat greaaat video! Best explanation so far i found online about blockchain and mining, thank you! Please continue! :D
@simplyexplained
@simplyexplained 6 жыл бұрын
Working on something right now. Will be published after next Explained video 🤐
@christopheverdot9075
@christopheverdot9075 5 жыл бұрын
Very nice video, doing a POS instead of POW would also be possible on this javascript Blockchain demonstration ?
@ruiminti8528
@ruiminti8528 6 жыл бұрын
Nice,Thank you
@shahrameez019
@shahrameez019 Жыл бұрын
Thank you 💖
@kejoe100
@kejoe100 6 жыл бұрын
Your way of teaching is really good, very easy ro understand blockchain, its been 2 months u had not uploaded any video on this series, should we expect more videos???
@simplyexplained
@simplyexplained 6 жыл бұрын
Sometime in the future yes. Been busy with the Simply Explained series. Been thinking where I can take this Javascript implementation next.
@kejoe100
@kejoe100 6 жыл бұрын
Thanks Savjee!! Good to here, looking for next videos 😊
@mi13estrellas
@mi13estrellas 6 жыл бұрын
awesome ! please make a part 3 new subscriber :)
@Mentaleak
@Mentaleak 6 жыл бұрын
Great Video, Please do another one for Smart Contracts
@buzonliao
@buzonliao 6 жыл бұрын
Awesome video!
@yohan_aka_spof
@yohan_aka_spof 4 жыл бұрын
Very interesting ! There is just two small bugs: 1) in the constructor of your block you call calculateHash before setting the nonce, which will be then undefined. Overall, I wouldn't call calculateHash in constructor as you will anyway overwrite it inserting it in the chain. 2) in your mining function, you first increment nonce, then you calculate your hash so you will never test the case with nonce = 0
@sankhatvijay
@sankhatvijay 5 жыл бұрын
@Simply Explained - Savjee, First of thank you for the great video. I need help from you. we are planning to create new payment gateway, is it good to implement blockchain technology for our new payment gateway?
@AmitYadav786
@AmitYadav786 6 жыл бұрын
Another good video !!
@andrefurlan
@andrefurlan 6 жыл бұрын
Thanks!!!
@dennisgonzales9521
@dennisgonzales9521 3 жыл бұрын
Awesome!
@jerold278
@jerold278 6 жыл бұрын
Super Solid Nice !
@user-eq8gr8vo7h
@user-eq8gr8vo7h Жыл бұрын
my English is not very well but i can understand what you say, this thing not often happened ,about blockchain you do amazing job mashallah 🤩
@jordixboy
@jordixboy 2 жыл бұрын
good job man! im curios how would proof of stake be implemented?
@SafalLamsal
@SafalLamsal 6 жыл бұрын
great video!! part3 smart contracts?
@neethucheriyan1077
@neethucheriyan1077 4 жыл бұрын
sir could you pls explain how can we update the previous hash of a particular block, when the data in the previous block is updated
@danilosampaio6493
@danilosampaio6493 2 жыл бұрын
Someone gives an Oscar for this guy! This is simply awesome
@keivansf3459
@keivansf3459 2 жыл бұрын
Brilliant
Mining rewards & transactions - Blockchain in Javascript (part 3)
12:11
Simply Explained
Рет қаралды 188 М.
Proof-of-Stake (vs proof-of-work)
7:59
Simply Explained
Рет қаралды 1,4 МЛН
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Рет қаралды 9 МЛН
How to open a can? 🤪 lifehack
00:25
Mr.Clabik - Friends
Рет қаралды 13 МЛН
Зу-зу Күлпәш. Көрінбейтін адам. (4-бөлім)
54:41
JDK, JRE, JVM: What Are They and What Are Their Differences?
7:57
The Learn Programming Channel
Рет қаралды 85 М.
A beginner's guide to quantum computing | Shohini Ghose
10:05
What is Proof of Work? (Cryptocurrency Explanation)
9:36
Whiteboard Crypto
Рет қаралды 230 М.
How does Proof of Work ACTUALLY Work?
21:47
Caleb Curry
Рет қаралды 12 М.
How I would learn to code (If I could start over)
9:16
Jason Goodison
Рет қаралды 4,4 МЛН
What is Blockchain
13:58
zlotolow
Рет қаралды 3,2 МЛН
Where People Go When They Want to Hack You
34:40
CyberNews
Рет қаралды 70 М.
Why Blockchain Matters More Than You Think!
14:57
ColdFusion
Рет қаралды 1,1 МЛН
Я Создал Новый Айфон!
0:59
FLV
Рет қаралды 2,9 МЛН
Introducing GPT-4o
26:13
OpenAI
Рет қаралды 1,7 МЛН
Which Phone Unlock Code Will You Choose? 🤔️
0:14
Game9bit
Рет қаралды 6 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11