How To Create An Ethereum Account - YouTube

Channel: unknown

[1]
(bright jingle)
[4]
- Today we'll be learning about Ethereum accounts,
[6]
and the math behind creating one.
[9]
To interact with Ethereum in any meaningful way,
[11]
you need to have a user account.
[14]
- [Narrator] The simplest way to create an account
[15]
on Ethereum is by using the Mist Ethereum Wallet,
[19]
which is an application that allows you to manage
[22]
and interact with multiple Ethereum accounts.
[25]
Launching the application will sync to the blockchain,
[27]
meaning it will download the entire blockchain data
[31]
to your computer, which can take upwards of 100 gigabytes.
[35]
So be warned.
[36]
When you first launch the application,
[37]
it will walk you through creating an account
[40]
and setting a password for it.
[41]
It's very important that you never forget this password
[44]
to maintain access to the account.
[46]
There is no Forgot Your Password option.
[49]
Your new account then shows up
[51]
in the Wallet section of the app and it has a balance of $0.
[55]
Clicking on the account will give us more details about it,
[58]
and provides some options
[59]
for putting some real ether into it.
[61]
The main thing to note is the public address,
[64]
which you will share with other people.
[66]
Another way to create an account is via the command line.
[69]
If you download the Go Ethereum Client or geth
[73]
can simply invoke geth account new
[76]
to create an account.
[77]
This will prompt you to enter a password,
[80]
which again you should never forget,
[82]
and at the end, it prints out the public address
[85]
of your new account.
[86]
You can create as many accounts as you like,
[88]
and you can view them all by typing geth account list.
[92]
Note that this also shows the account we created
[95]
in Ethereum Wallet.
[96]
Another interesting thing to note
[98]
is that we don't even have to be connected to the blockchain
[101]
or even the internet to create an account.
[104]
It can happen entirely offline.
[107]
How is this possible?
[108]
We know that we need to generate a cryptographic key pair,
[111]
which consists of a public and private key.
[114]
But don't we have to register this key pair somewhere?
[117]
What if someone else is already using this key pair?
[120]
Even though it's technically possible,
[122]
it is highly, highly improbable.
[125]
Let's talk about why.
[127]
There are three steps involved
[128]
in generating an Ethereum public address.
[131]
The first step is to generate a private key,
[133]
which is just a random number, represented by 256 bits.
[139]
The second step is to use Elliptic-curve cryptography
[142]
to generate a 512-bit public key.
[146]
Each private key maps to exactly one public key.
[150]
The third and final step is to calculate the Keccak256 hash
[155]
of the public key,
[156]
and then keep the right-most 160 bits of the Keccak256 hash
[162]
to get the public address.
[165]
This is essentially a mapping of 256-bit private keys
[170]
to 160-bit public addresses,
[173]
meaning each account has more than one private key.
[177]
Security is achieved in the randomness
[180]
of selecting the private key.
[182]
As long as you guess something sufficiently random
[184]
and not like, one or two, it's highly unlikely
[188]
that someone else would also generate the same private key.
[192]
To give you a sense
[193]
of how many possible private keys there are,
[195]
let's take a look at some numbers.
[197]
There are 10,000 possible 4-digit iPhone passcodes.
[202]
So if someone were to try to break into your phone
[204]
by guessing each passcode, it would be pretty hard,
[207]
because they would have a one in 10,000 chance
[210]
of getting it right.
[212]
But it would be fairly easy for a computer
[214]
to try 10,000 passcodes pretty quickly.
[218]
Apple also claims a one in 50,000 chance
[221]
of a fingerprint ID matching a stranger's,
[224]
and a one in million chance of a face ID matching,
[228]
making your phone more secure.
[230]
At a few orders of magnitude larger,
[232]
we have 7.5 billion humans on the planet.
[236]
And we estimate that the Big Bang took place
[239]
some 14 billion years ago.
[242]
Larger still, we estimate around 400 billion different stars
[247]
just in our own galaxy.
[250]
Many, many orders of magnitude larger still,
[253]
we estimate that there are around seven times ten
[256]
to the power of 27 atoms
[259]
in the average adult male weighing 150 pounds.
[264]
Many orders larger still,
[266]
we estimate there are 1.3 times ten to the power of 50 atoms
[271]
in the earth.
[273]
And even larger still,
[275]
we come to the total number of possible private keys
[278]
using 256 bits.
[281]
One times ten to the power of 77.
[285]
This number is so big that if we took all the numbers
[288]
we just talked about before, and added them all up,
[292]
they still wouldn't even be half of this number.
[296]
It's unbelievably big.
[299]
So the chances of someone randomly generating
[301]
the same private key is sufficiently low
[304]
that it's practically impossible.
[307]
Staging a brute force attack
[308]
by trying each possible private key
[311]
would also require an unachievable amount
[313]
of computational power,
[315]
like a planet-sized computer
[318]
working since the beginning of time.
[320]
- To learn more about Ethereum accounts and using Wallets,
[324]
check out our online guides and courses at blockgeeks.com.
[328]
Thanks for watching and see you next time!