Private and public keys
Terms used in this lesson
- Witness
- Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
- Sighash
- The exact transaction digest and signature mode that determine which fields a Bitcoin signature authorizes.
- UTXO
- Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.
A private key is the secret that authorizes a spend. A public key lets others verify that authorization, while an address describes where a payment can be locked.
Loading lesson visuals...
Learn the idea
A private key is secret signing material, and a public key is the corresponding value others use to verify signatures. A Bitcoin output does not store coins inside a key. It stores an amount and a spending condition. A wallet controls an output when it can produce the data that satisfies that condition.
Generate or derive a private key
Wallet software obtains a valid secp256k1 scalar from secure randomness or a deterministic derivation tree. Anyone learning it can usually authorize its outputs.
Inspect every idea above to open it.
Bitcoin amounts exist in blockchain outputs. The wallet stores or derives the authorization and metadata needed to find and spend matching outputs.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.