Math Behind Bitcoin and Elliptic Curve Cryptography (Explained Simply)

  Рет қаралды 84,726

Aimstone

Aimstone

Күн бұрын

Пікірлер: 136
@Kaace77
@Kaace77 6 жыл бұрын
Meth!? Oh, math...
@FlorianBuchner
@FlorianBuchner 3 жыл бұрын
Thumbs up. I watched 4 videos about ecc now and this is the first one that metioned why it is harder to crack nP than calculating it. To be able to reduce 10P to only 4 operations is the only reason why this stuff works but nobody else mentioned it. Not even Computerphile.
@khalilal-chafie456
@khalilal-chafie456 4 жыл бұрын
One of the best explanations ever .. I would really appreciate it if you could make another video talking in details about the points addition and how it works with some examples if possible .. Thanks in advance 👍
@GreenBoiler
@GreenBoiler 6 жыл бұрын
Thanks for the video. I only made it to 6:03 Then my brain threw a null reference error after a stackoverflow error watching it over and over. Rebooting
@mariojohnson4695
@mariojohnson4695 6 жыл бұрын
I remember doing these equations in high school. Many people take advance math in school and people say why are we learning this, I never understood why people question the practicality of math to every day life.
@jimkhondekar5328
@jimkhondekar5328 3 жыл бұрын
At 9:31 you said division doesn't exist in elliptic curve cryptography. But I haven't found any property that says the statement. Did you mean "extremely difficult" to divide of "impossible". Because in mathematics impossible and extremely difficult are not two same things. You might say the calculation is extremely hard because of some astronomically large numbers, but you can't simply say division doesn't exist because of that. Division doesn't exist if it's related to infinite. Example:- something divided by 0 doesn't exist. Simply because the calculation is beyond human ability, doesn't means it doesn't exist mathematically. Mathematics doesn't care what human can do or cannot. Please clarify if "division doesn't exise" or "extremely hard". Please reply. Thank you.
@dennisbarzanoff9025
@dennisbarzanoff9025 7 ай бұрын
in ECC math there is no division property. You add points together via point multiplication, but there is no way to go back points
@robertvangeel3599
@robertvangeel3599 Ай бұрын
@@dennisbarzanoff9025 You mean to say: there is no known mathematical way to do this. Finding this would break cryptography, but there is no evidence that this is impossible, right?
@ShayneDidonato
@ShayneDidonato 18 күн бұрын
Hey, sorry for intruding, but might you help me out? I’ve kept USDT TRX20 in my OKX wallet and the recovery phrase [ clean party soccer advance audit clean evil finish tonight involve whip action ] How do I send it to EXMO or OKX?
@Djazeiry
@Djazeiry 5 күн бұрын
@@robertvangeel3599 just look on google there was some flaws find by some researchers
@ronneymccarthy6448
@ronneymccarthy6448 6 жыл бұрын
I understood very little but still liked the video, lol
@Aimstone
@Aimstone 6 жыл бұрын
Thanks!
@MatthewMarcus
@MatthewMarcus 6 жыл бұрын
My brain hurts. But you made it hurt much less than Vitalik. I’m now going to impress the F out of my friends. 🤓
@bhaskarpandey8586
@bhaskarpandey8586 3 жыл бұрын
What do you mean? There is next to nothing to understand.
@abubakarismail5436
@abubakarismail5436 2 жыл бұрын
This is my first time to comment on a tutorial. Man this is very precise explanation. I’m sticking to this channel
@ShayneDidonato
@ShayneDidonato 18 күн бұрын
Hi, would you be able to help me solve my problem? I hold USDT TRX20 in my OKX wallet and have the phrase (clean party soccer advance audit clean evil finish tonight involve whip action). How can I transfer it to EXMO or OKX?
@ShayneDidonato
@ShayneDidonato 18 күн бұрын
Hi, would it be possible for you to assist me with this problem? I keep my USDT TRX20 in my OKX wallet, and my phrase is (clean party soccer advance audit clean evil finish tonight involve whip action). What’s the process to transfer it to EXMO or OKX?
@lance3401
@lance3401 9 ай бұрын
Beatiful video I was looking for something like this, I love math behind bitcoin ann in algorithms as well, nice information already subscribe and thumps up my friend.
@tinashechipomho
@tinashechipomho 2 жыл бұрын
For the first time I get a simple and easy to understand explaination
@ShayneDidonato
@ShayneDidonato 18 күн бұрын
Hey, sorry for asking, but could you lend me a hand? OKX wallet contains my USDT TRX20 and recovery phrase [ clean party soccer advance audit clean evil finish tonight involve whip action ] How do I move it to EXMO or OKX?
@vincentdonghia5361
@vincentdonghia5361 3 жыл бұрын
What would P be in this case? Is it independent of big X?
@SK0R092
@SK0R092 6 жыл бұрын
This is actually great
@virajelix
@virajelix Жыл бұрын
You exlained it well! Thanks a lot!
@ozzyfromspace
@ozzyfromspace 3 жыл бұрын
This really helped me start to see what’s going on for a class I’m taking. Thanks, Aimstone!
@dennisbarzanoff9025
@dennisbarzanoff9025 7 ай бұрын
this is the first time i actually understood ECC. the first time. thx so much!
@elliotchan257
@elliotchan257 2 жыл бұрын
Helps a lot, thx
@jeffwilken7241
@jeffwilken7241 5 жыл бұрын
Absolutely first-rate explanation! Thank you so much.
@AndreyLomakin
@AndreyLomakin 3 жыл бұрын
Thank you for the very good video. But it takes 256 steps to compute P, not 510. Let see on simpler example: 8*P = 2 ^3 * P. Steps: 1) P+P = 2P 2) 2P+ 2P = 4P 3) 4P + 4P = 8P. 3 steps. The same to the key with 255, which has a max value equal to (2^256 - 1)
@complexnumbers64
@complexnumbers64 3 жыл бұрын
There's sort of a "local minimum" when counting steps/additions to calculate a power of 2 times P. But say we want 7P instead of 8P, it would actually require more steps. P+P, 2P+2P, 4P+2P then 6P+P which would be 4 steps/additions. So yup although the max 256 bit number can be done in 256 steps, values slightly smaller than that max are expected to need more steps :)
@ashutoshpanigrahy7326
@ashutoshpanigrahy7326 2 жыл бұрын
@@complexnumbers64 Nice point!
@ittayd
@ittayd 2 жыл бұрын
8 is 1000 in binary. So you calculate the sum required to calculate the '1' bit. That is 3 steps. Now what happens if you want to calculate 1001 (9)? You'd need another addition. And to calculate 1111 (15) you'd need 3 additions for a total of 6 operations. So for a 4 bit number, you need at most (4-1) operations to calculate the power of two sums (2p, 4p, 8p), then at most (4-1) additional operations to sum these together. For 256 you'd need (256-1) plus (256-1) or 510
@osirisravanz
@osirisravanz 6 жыл бұрын
Nice vídeo mate
@borisbobola2360
@borisbobola2360 6 жыл бұрын
Nice video, well explained!
@christopheveron2922
@christopheveron2922 9 ай бұрын
Thanks man!
@Shivam-mq7de
@Shivam-mq7de 2 жыл бұрын
Great Explanation. Thx.
@CricketRodeo
@CricketRodeo 2 жыл бұрын
Can someone tell me the sentence he says at 5:40? I can't hear what he's saying...can't make it out. Is he saying "Then you reflect the 3rd point occurs (across on) the x axis"?
@Nik-dz1yc
@Nik-dz1yc 3 жыл бұрын
after looking at lattice cryptography for so long, I'm glad to finally understand something
@iamwatchingyouuu-i5l
@iamwatchingyouuu-i5l 3 жыл бұрын
Very good introduction although I am not sure if I understand all, but at least I don’t feel boring watching the video. Thumb up 👍🏻
@SlayerFoxX
@SlayerFoxX 3 жыл бұрын
my favourite youtuber
@kennethstauffer9220
@kennethstauffer9220 5 жыл бұрын
the final step wasn't clear. how does signing work? how is something signed and what is the maths to show that i must be in possession of the private key.
@bige6560
@bige6560 3 жыл бұрын
Wow this was way easier than I thought awesome
@lakshayarora3916
@lakshayarora3916 6 жыл бұрын
Very good and easy explanation,well done!!!
@Alexander.s.arreola
@Alexander.s.arreola 3 жыл бұрын
Thank you for this.
@kenerik
@kenerik 5 жыл бұрын
Im 42 yr. Old 8th grade mathematics guy. I understood it perfectly. Thanks for sharing and making this video.
@Jdalio5
@Jdalio5 4 жыл бұрын
liar
@rainbowfx1696
@rainbowfx1696 4 жыл бұрын
I like his voice, it sounds fun. the content very easy to understand thankyou so much.
@bernardmacarius2635
@bernardmacarius2635 6 жыл бұрын
Extremely simple. Yes I am I guess. That all made very little sense to me. I did gather that hacking the private key from the public key is all but impossible. This is a good thing indeed.
@martyalmberg9317
@martyalmberg9317 6 жыл бұрын
Very good video I dont understand that kind of math. But I remember failing in it miserably in school. But for people who say bitcoin is a scam and can't have any value. At the very least I can show them the mathematical equation that makes it work. Thanks for your great videos
@Dell7864
@Dell7864 6 жыл бұрын
I was not prepared for that 😶
@hangoutwidfrnz
@hangoutwidfrnz 6 жыл бұрын
Perfect explanation, but I must say that this is for someone with atleast a basic understanding of graph theory and Algebra. Thanks for the video
@bharatmallapur2618
@bharatmallapur2618 2 жыл бұрын
Amazing! You deserve a Nobel prize for this wonderful explanation! You got a subscriber with a ton of thanks!
@MatCendana
@MatCendana 6 жыл бұрын
I STILL can't grasp this. But never mind - thank you for trying to help people like me, who suck at Maths, understand.
@909sickle
@909sickle 3 жыл бұрын
I wish you went into more detail on how the public key is derived from the private key
@Imisambi
@Imisambi 3 жыл бұрын
Yesssssssss
@bharatmallapur2618
@bharatmallapur2618 2 жыл бұрын
My 2 cents on this - If there is any error in the explanation below, more knowledgeable people are welcome to correct any GLARING mistakes. 1) You generate a random 256 bit number - let's say 1532 (it would be MUCH MUCH larger in real world cases) 2) You take a standard elliptic curve (say secp256k1) which has a standard starting point called P 3) You "add" P to itself 1532 times (Private Key number) using the logic mentioned (tangent and then drop a perpendicular to the curve to get 2P and so on). This will end up at a point (X,Y) on the curve finally. 4) the Y co-ordinate of the end point IS the PUBLIC KEY.
@insidethefire6840
@insidethefire6840 5 жыл бұрын
So it the modular the private key? How many times the line has bounced around the curve? I am pretty lost.
@phillipdane7852
@phillipdane7852 4 жыл бұрын
I'm reading through Mastering Bitcoin and this was very helpful as supplemental material!
@leechild754
@leechild754 4 жыл бұрын
im trying to understand >> im researching into creating my own blockchain from scratch... send help
@fatlip8315
@fatlip8315 Күн бұрын
5:25 ok, elliptical curve - was initially displayed as a spiral. It was unfurled to the way your displaying it now, to help understand it.
@EarthianZero
@EarthianZero 4 жыл бұрын
wow. Great video and nice explanation
@JananiAnbarasan
@JananiAnbarasan 29 күн бұрын
i usually find the hand movements in a video veryy annoying. but this is a great video despite that 🙌 Can you explain private key validation with the public key signature?
@francischuks7507
@francischuks7507 3 жыл бұрын
Its beautiful
@Isaac-Ft3
@Isaac-Ft3 Жыл бұрын
The best simple explanation for the BTC system, I have one simple question how some people could generate the private key?
@mreman007
@mreman007 6 жыл бұрын
Brilliant video 👍
@brandonmurphy2098
@brandonmurphy2098 6 жыл бұрын
Nice video ty learnt me somthn
@yurivic
@yurivic 5 жыл бұрын
Why every sentence is a question?
@alessandr0ananias
@alessandr0ananias 4 жыл бұрын
Instead of focusing on his accent you could have listened to the actual content of the video.
@gazmellen7881
@gazmellen7881 6 жыл бұрын
like ready the headlines of the news and not the actual article, do not always have the time.
@DP-bl7nh
@DP-bl7nh 6 жыл бұрын
nice video.
@Aimstone
@Aimstone 6 жыл бұрын
Thanks!
@glenmassey5968
@glenmassey5968 3 жыл бұрын
Nice explanation, does anyone have a more in depth video showing how base58 is involved and possibly an example of a private key being hashed into a public key and address?
@lapetiteanessesoap7559
@lapetiteanessesoap7559 Жыл бұрын
cool explane
@Akshatgiri
@Akshatgiri 4 жыл бұрын
Thanks for the explanation! To go from public key to address is sha256 used to hash the public key?
@pjak1minecraft
@pjak1minecraft 4 жыл бұрын
It uses SHA-256 and RIPEMD160. Bitcoin address = RIPEMD160(SHA-256(public key))
@carlpoppa1788
@carlpoppa1788 2 жыл бұрын
Isn't it possible that whoever created sha256 also created an equation that can find the private key by plugging in the values of the public key since it follows a predictable pattern?
@uditanshusadual7781
@uditanshusadual7781 3 жыл бұрын
Well i dont know about crypto stuff but certainly I know the definition of tangent you have is wrong. What is the equation of tangent to y=x^3 ast x=0? Does the tangent line only 'touch' the curve at (0,0)?
@victorlus1371
@victorlus1371 6 жыл бұрын
Great math!
@aion2177
@aion2177 5 жыл бұрын
I don't get why xP doesn't take 256 steps instead of 510? Given that 2P (2^1) -> 1 step; 4P (2^2) -> 2 steps; 8P -> (2^3) -> 3 steps; 16P (2^4) -> 4 steps... big number xP (2^256) -> 256 steps? Why 510? I re-watched the video like 10 times. I'm not understanding this. Can somebody explain more on this please ? I'm sorry if this is obvious. My brain is not working sometimes.
@simonbussieres3114
@simonbussieres3114 5 жыл бұрын
AIon same problem!
@samebi1170
@samebi1170 5 жыл бұрын
Sir i cannot understand the point from my book for random k values they give range 1,2,....,p-1....can u explain this
@alexschneider7942
@alexschneider7942 6 жыл бұрын
For those who say that they will never use high school math in their lives, that's the proof. Brilliant though
@ДарханЕргалиев-ц8ь
@ДарханЕргалиев-ц8ь 3 жыл бұрын
how about excell?
@davidbermudez7704
@davidbermudez7704 6 жыл бұрын
I took College Trig so everything you said was familiar to me
@abouzeed
@abouzeed 5 жыл бұрын
I still cannot understand the equation of point addition, why p+q=R.. ? plz explain this point more if you please
@moonkin.
@moonkin. 3 жыл бұрын
Really interesting! How can we just Elliptic Curve for personal use in Windows or Linux to encrypt messages/files?
@whoyatoya
@whoyatoya 6 жыл бұрын
IN laymans terms this is how difficult it would be to hack a private key. Say you had an analog coin with a 1 on one side and a 0 on the other and then flipped it 256 times . You'd have to duplicate the results of those flips exactly to hack bitcoin. ( 0110011100101000111011001010101001100101101010010011000101010101010000100101 and so on) Hence the sha-256 secure hash algorithm.
@kenerik
@kenerik 5 жыл бұрын
Not 510 times???
@homemdoacucar
@homemdoacucar 3 жыл бұрын
in X = x P, what is P then ? the message?
@bharatmallapur2618
@bharatmallapur2618 2 жыл бұрын
It is a standard start point defined for each particular curve such as secp256k1 curve.
@turner7777
@turner7777 3 жыл бұрын
wtf my entire life i didnt get the fucking graphs and one random video i got it lol thanks
@alessandr0ananias
@alessandr0ananias 4 жыл бұрын
Thanks - very helpful. I don't understand however how you use the private key integer in the elliptic curve, since the elliptic curve computation you mention requires a 2-integer input while the private key is just a 1-integer. Is it that you use the private key as X and assume Y as zero, or vice versa?
@sgssergio
@sgssergio 2 жыл бұрын
The private key is a scalar natural number element not a EC's random point.
@crownspecialties
@crownspecialties 4 жыл бұрын
How does this video relate to Bitcoin? It explains how the key is encrypted?? Also there is a back door to buying BC? If so how would that be an advantage to someone?
@pirexengaer
@pirexengaer 3 жыл бұрын
Hi, I have a good maths background (engineering) but you lost me on the P addition and multiplication. Anyway, good video on the topic!
@mrsmith3260
@mrsmith3260 4 жыл бұрын
I followed most of that -- one thing I don't get... X = xP wouldn't be any good if different x resulted in the same X... how come that doesn't happen?
@guregori_san
@guregori_san 2 жыл бұрын
good video but, you made a mistake. you can't send bitcoin to someone address. You send bitcoin to the blockchain and you put a condition to make this bitcoin available to the first person who meet this condition. One of the condition you can make and witch is used the most is "prove me you have the private key of this adress".
@maximilianocorrea3705
@maximilianocorrea3705 6 жыл бұрын
Hi. Is the private key generated using ECDSA? Or only the public key is generated using ECDSA?
@kenerik
@kenerik 5 жыл бұрын
I believe you bitcoin wallet generates a very high random prime number. Put it into the bitcoin formula, then it is hashed. The hash is now your private / secretly key.
@kenerik
@kenerik 5 жыл бұрын
With this hash you can generate your public key. Hence it can use elliptic curve cryptography to verify that you actually signed the transaction
@nomad7935
@nomad7935 2 жыл бұрын
Private key is a random integer, you can generate it in your head, or throwing dice. The public key is generated by multiplying the private key with the Generator Point (P) in X = xP
@xanh350
@xanh350 2 жыл бұрын
did Satoshi write all these information on his first report?
@attaramadhan3562
@attaramadhan3562 10 ай бұрын
no, all programmer like this youtuber jut elaborate the source code of bitcoin to understanding of flow/process (address, transaction, mining, rewards, etc) the bitcoin
@TC-Loom
@TC-Loom 6 жыл бұрын
Just a heads up, the square root of 26 is not 5.01
@raricejr
@raricejr 6 жыл бұрын
He meant 5.1
@PirateKnO
@PirateKnO 3 жыл бұрын
"Everyone likes meth right? No?!"
@stl-xx5rq
@stl-xx5rq 2 жыл бұрын
Bitcoin doesn't use RSA, it uses ECDSA. Both are asymmetric.
@maleavitohl5419
@maleavitohl5419 4 жыл бұрын
As far as i am understanding this, this is just the generation of the keypair. But how do prove someone that you are in possesion of teh private key, without giving it away? With RSA you are encrypting a Hash Value with hash^private key mod N. If someone wants to check your public key, they just have to decrypt the encrypted Hash with the public key and they get the original hash value. How does the process work with elliptic curves?
@monsterjaker
@monsterjaker 6 жыл бұрын
I'd rather wait for McCaffe to fart in bitcoins direction that try to figure out this common core.
@sgssergio
@sgssergio 2 жыл бұрын
The ECC explanation in this video es awesome but when you show addreses use not valid charscter suach M, the blockchain address are 256 bits numbers in hexadecimal format, only valid character are 0...A..F..
@bharatmallapur2618
@bharatmallapur2618 2 жыл бұрын
The Bitcoin addresses used to use Base58 encoding on the resultant public key hash in which 'M' is a valid character
@tomvice
@tomvice 2 жыл бұрын
Funny how youtubers sometimes nail a certain type of high level cheesy cadence, while still having an accent
@typingcat
@typingcat Жыл бұрын
Why 7? Is it because it is a lucky number?
@Pimp-Master
@Pimp-Master 5 жыл бұрын
Everything is wrong with this video, but it’s my first intro to the elliptical curve concept. You’ll always have a special place in my heart.
@agnipankh108
@agnipankh108 3 жыл бұрын
In the thumbnail why does bitcoin have only 4 fingers instead of 5?😂
@Ksnieup
@Ksnieup 2 жыл бұрын
Wow
@indocupang2598
@indocupang2598 6 жыл бұрын
tron and btc will big 2018-2019 momentum market
@carlperry1671
@carlperry1671 6 жыл бұрын
👍
@letsbye
@letsbye 3 жыл бұрын
i've lasted till 06:11..!!
@carlowood9834
@carlowood9834 3 жыл бұрын
I stopped watching at "generate public key from private key". That is not how it works.
@anshumansinha450
@anshumansinha450 2 жыл бұрын
Everyone likes meth, right? No? Atleast some of us do.
@frankpiterson9520
@frankpiterson9520 6 жыл бұрын
I hate math!
@tanyaderi5862
@tanyaderi5862 6 жыл бұрын
Seems complicated.
@sureshkumar-kx2xz
@sureshkumar-kx2xz 4 жыл бұрын
The way he defined tangent was SO DUMB!
But how does bitcoin actually work?
25:16
3Blue1Brown
Рет қаралды 16 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Elliptic Curve Back Door - Computerphile
12:24
Computerphile
Рет қаралды 519 М.
7 Cryptography Concepts EVERY Developer Should Know
11:55
Fireship
Рет қаралды 1,4 МЛН
BASIC Calculus - Understand Why Calculus is so POWERFUL!
18:11
TabletClass Math
Рет қаралды 995 М.
How does a blockchain work - Simply Explained
6:00
Simply Explained
Рет қаралды 10 МЛН
Quantum Computing Course - Math and Theory for Beginners
1:36:04
freeCodeCamp.org
Рет қаралды 366 М.
Elliptic Curves - Computerphile
8:42
Computerphile
Рет қаралды 565 М.
What is... an elliptic curve?
53:28
Alvaro Lozano-Robledo
Рет қаралды 55 М.
Martijn Grooten - Elliptic Curve Cryptography for those who are afraid of maths
28:37