Skip to content

Commit 8d39bf2

Browse files
authored
Merge pull request #13323 from Shiva-Sai-ssb/fix-11877
Update EOA address info [Fixes #11877]
2 parents 0a2ccde + f5284f9 commit 8d39bf2

File tree

1 file changed

+8
-2
lines changed
  • public/content/developers/docs/accounts

1 file changed

+8
-2
lines changed

public/content/developers/docs/accounts/index.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ If Alice wants to send ether from her own account to Bob’s account, Alice need
6060

6161
## Account creation {#account-creation}
6262

63-
When you want to create an account most libraries will generate you a random private key.
63+
When you want to create an account, most libraries will generate you a random private key.
6464

6565
A private key is made up of 64 hex characters and can be encrypted with a password.
6666

@@ -70,6 +70,12 @@ Example:
7070

7171
The public key is generated from the private key using the [Elliptic Curve Digital Signature Algorithm](https://wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm). You get a public address for your account by taking the last 20 bytes of the Keccak-256 hash of the public key and adding `0x` to the beginning.
7272

73+
This means an Externally owned account (EOA) has a 42-character address (20-byte segment which is 40 hexadecimal characters plus the `0x` prefix).
74+
75+
Example:
76+
77+
`0x5e97870f263700f46aa00d967821199b9bc5a120`
78+
7379
The following example shows how to use a signing tool called [Clef](https://geth.ethereum.org/docs/tools/clef/introduction) to generate a new account. Clef is an account management and signing tool that comes bundled with the Ethereum client, [Geth](https://geth.ethereum.org). The `clef newaccount` command creates a new key pair and saves them in an encrypted keystore.
7480

7581
```
@@ -89,7 +95,7 @@ Generated account 0x5e97870f263700f46aa00d967821199b9bc5a120
8995

9096
It is possible to derive new public keys from your private key, but you cannot derive a private key from public keys. It is vital to keep your private keys safe and, as the name suggests, **PRIVATE**.
9197

92-
You need a private key to sign messages and transactions which output a signature. Others can then take the signature to derive your public key, proving the author of the message. In your application, you can use a javascript library to send transactions to the network.
98+
You need a private key to sign messages and transactions which output a signature. Others can then take the signature to derive your public key, proving the author of the message. In your application, you can use a JavaScript library to send transactions to the network.
9399

94100
## Contract accounts {#contract-accounts}
95101

0 commit comments

Comments
 (0)