Put in order · Blockchain and Web3 course · Module 2: Cryptography
Generating a Key Pair
Arrange the steps for generating Ethereum keys:
Items to put in order
- Take the last 20 bytes as the address
- Hash the public key (Keccak-256)
- Calculate the public key via ECDSA
- Generate a random 256-bit number (private key)
Show the answer
Correct order:
- Generate a random 256-bit number (private key)
- Calculate the public key via ECDSA
- Hash the public key (Keccak-256)
- Take the last 20 bytes as the address