In this track: Wallets without mystery
beginner · 3 MIN READ

A public key versus a private key

One secret authorizes; public information helps others verify.

LET’S PICTURE IT

A secret signing stamp and a publicly checkable impression have different jobs. Verification should not require handing over the stamp.

SEE IT FOR YOURSELF
From a public address to a verified signatureStep 1 / 4
From a public address to a verified signaturePublic address0x0000…0001Share to receiveAnother personCan read the addressCannot sign for youPublic identifier ≠ secret authorizationLocal signerPrivate key stays hereSign the chosen requestSigned requestMessage + signatureSecret key not includedThe moving packet represents a signature, not a keySignatureCheck the exact messageCheck the signing contextVerificationAuthorization checkedIntent still mattersValidity and safety are different questionsWallet interfaceReads public dataRequests authorizationNetwork stateBalances and recordsIndependent verificationNo wallet is connected in this local illustration

An address is public receiving information. It is not the private key that authorizes actions.

Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.

The private key is authorization material

For a traditional externally owned account, a private key is used to create digital signatures. Someone with that key can attempt to authorize actions for the account. Keep it out of websites and ordinary messages.

The public key is derived

A public key is mathematically related to the private key. The design makes deriving the public key practical while recovering the private key from the public key is intended to be infeasible with suitable security assumptions.

An address is another representation

An ordinary Ethereum address is derived from public-key information through a hashing convention. It is not the full public key and is not the private key. Contract addresses can arise through different creation rules.

Follow the signature, not the secret

A wallet sends signed transaction data rather than publishing the private key. Learn signatures and permissions to understand what a verifier checks and why a valid signature can still authorize an unwanted action.

QUICK CHECK · NO PRESSURE

Which item must stay secret?

Your progress stays in this browser.
Keep exploring the original referenceethereum.org ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.