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:

  1. Generate a random 256-bit number (private key)
  2. Calculate the public key via ECDSA
  3. Hash the public key (Keccak-256)
  4. Take the last 20 bytes as the address