Posts tagged #Public keys
-
Bitcoin's locks
Every coin on Bitcoin sits behind a lock: the scriptPubKey, the program that states under which conditions it can be spent. A reference piece on the lock types, from the first outputs of 2009 to Taproot and the quantum-resistant proposals: P2PK, P2PKH, bare multisig, P2SH, SegWit (P2WPKH and P2WSH), P2TR, each shown byte by byte on a real transaction verifiable with a node. What each type exposes of the public key, why a lock and an address are not the same thing, and how to read the language of scripts: pushes, ops and the stack.