Pay-to-public-key (P2PK) is a Bitcoin output-script form that places an actual public key directly in the locking script. Its familiar form is <public key> OP_CHECKSIG. To spend an ordinary P2PK output, the spender supplies a valid signature for that key. This was already an implemented Bitcoin script template in the earliest tagged source examined for this article, v0.1.5. Original script solver
P2PK should not be confused with pay-to-public-key-hash (P2PKH), whose locking script holds a 20-byte hash rather than the public key itself. Nor should an explorer-generated address label be mistaken for bytes actually present in a transaction. Both forms existed in the early software. Their history is better understood as two contemporaneous ways of paying than as a simple story in which address payments were invented after Bitcoin's early public-key outputs.
Two scripts with different responsibilities
The direct form is short enough to read at a glance:
P2PK output: <public key> OP_CHECKSIG P2PK input: <signature> P2PKH output: OP_DUP OP_HASH160 <20-byte public-key hash> OP_EQUALVERIFY OP_CHECKSIG P2PKH input: <signature> <public key>
In the P2PK case, the public key is already present in the output and OP_CHECKSIG verifies a signature against it. In P2PKH, the spender must reveal a public key whose hash matches the one recorded in the output, as well as provide a valid signature. The two templates were explicitly handled by the original Solver(): its comments describe a standard transaction in which the sender provides the public key, followed by a short-account-number form in which the sender provides its hash. The signing routine likewise constructs a signature-only script for P2PK, or a signature plus public key for P2PKH. Bitcoin v0.1.5 solver — source code · Bitcoin developer guide — later technical explanation
This distinction is about conditions for spending and what is revealed in the output, not the identity of its owner. A public key is not a person's name. A signature demonstrates control of the corresponding signing key under Bitcoin's verification rules; it does not establish who physically held the device or why a transaction was made.
What the early wallet actually constructed
The Bitcoin v0.1.5 client did not only recognise P2PK in theory.
- Its mining code created the coinbase output using
key.GetPubKey() << OP_CHECKSIG, a direct P2PK construction. Original block-construction code - Its transaction builder could add change with
vchPubKey << OP_CHECKSIG. A nearby comment says the output ordering should eventually be randomised and a new change key used, but the shown code reuses a key from the coins being spent. The comment records a design concern, not an implemented improvement. Original transaction builder - The same version implemented
PubKeyToAddress(),Hash160ToAddress()and Base58Check encoding with version byte zero. This was an early public-key-hash receiving format, not an additional consensus ledger field. Original address implementation
A further piece of the original interface makes the distinction sharper. In v0.1.5, the wallet's send-to-address path decoded a Base58 receiving string and built a P2PKH output, whereas its separate send-to-IP path obtained a recipient-provided script over the network. Meanwhile, its coinbase and change creation used P2PK. The two script forms therefore corresponded to actual, different source paths, not merely two entries in an unused solver table. The source demonstrates intended behaviour, not how often each path ran on mainnet. Pay-to-public-key-hash traces the address-payment side. Original address and IP branches · Online request for script · Change output
These source paths explain an apparent contradiction in modern descriptions of Bitcoin's beginnings. Early blocks and change outputs frequently used public-key scripts while early software also understood public-key hashes and checksummed receiving addresses. The direct source does not support a claim that the P2PKH mechanism was absent until a later soft fork or the 2012 introduction of P2SH.
The genesis output and the first ordinary spend
Bitcoin's genesis coinbase contains a 67-byte P2PK locking script: a push of a 65-byte uncompressed public key, followed by OP_CHECKSIG. The 50 BTC genesis output is a special case that cannot be spent, because the original genesis generation output was not entered into the spendable-transaction database. Its unspendability should not be attributed to any defect in P2PK or to ordinary coinbase maturity. Original genesis construction · Genesis block
The earliest identified non-coinbase transaction on the canonical chain, f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16, appears in block 170 on 12 January 2009. It spends the coinbase output from block 9 and creates 10 BTC and 40 BTC outputs. Both are P2PK, not P2PKH: their 67-byte locking scripts each start with 41 04, encoding a push of a 65-byte uncompressed key, and end in ac, OP_CHECKSIG. See First Bitcoin transaction for the chain record and the separate documentary basis for the customary Satoshi-to-Hal attribution. Block 170 transaction record · Bitcoin Wiki — decoded early transaction
For this article I also checked a subsequently published 275-byte transaction serialization. Double-SHA-256 hashing its bytes and reversing the result produces the displayed transaction ID; parsing its two outputs yields 10 and 40 BTC, both with 67-byte scripts matching the P2PK pattern. That is a reproducible check on the published serialization, not independent verification of block inclusion or of the named people behind the keys. The original block and full node validation remain the stronger record. Later transcription containing raw transaction hex · Explorer cross-check
Notice the easy trap: an explorer may show a Base58 address for each of those early public-key outputs. Such an address can be derived from a public key; it is not proof that the original transaction stored the 20-byte hash or used the P2PKH script. For output classification, the actual script takes precedence over a service's presentation.
From two templates to standardness
In December 2010, Bitcoin 0.3.18 made an explicit IsStandard() template whitelist part of ordinary transaction relay and mining policy. Its script solver continued to recognize both <pubkey> OP_CHECKSIG and the P2PKH pattern. Thus the 2010 policy milestone did not create either form: it formalised which already-supported forms the default node would relay. Non-standard and consensus-invalid were not synonymous. Transaction standardness reconstructs the source revision and contemporary dispute. Bitcoin 0.3.18 templates · Implementing revision
P2PKH subsequently became a widely recognised default wallet destination, while later formats such as P2SH and native Segregated Witness addresses added other ways of committing to spending conditions. This is a history of wallet conventions and output forms, not a claim that old valid P2PK outputs became automatically invalid. Bitcoin address follows the encoding history.
Exposed keys, hashes and later analogies
In P2PK, the public key is published when the output is created. In ordinary P2PKH, the output commits to a hash, and the public key is supplied when the coins are spent. That gives the two formats different exposure and byte-size properties. It does not make P2PKH an assurance of anonymity, guarantee a never-exposed key when addresses are reused, or establish that any particular early key has been compromised. Bitcoin developer guide — output and spending scripts
Taproot returns to a form in which a public key is present in an output, but P2TR is not legacy P2PK. BIP 341 defines a version-one witness program containing a 32-byte x-only output key, potentially tweaked by a commitment to a Merkle tree of scripts. It is spent through Schnorr key-path rules or a revealed script path, not by treating the witness program as the old <pubkey> OP_CHECKSIG script. The BIP itself notes that Taproot combines aspects of paying to keys and paying to scripts. BIP 341 — design and validation
Why this matters for Bitcoin-native objects
An Ordinals or Bitmap indexer may associate a sat, inscription or district with a particular current output and display an address as a convenient label. The underlying Bitcoin evidence is still the output, its position and its spending conditions. P2PK is an early, concrete demonstration that not every spendable output was originally represented by an address string appearing on chain. The application may derive a destination label; it must not treat that label as a separate fact committed by Bitcoin. See Ordinals, Bitmap and Bitcoin address.
Evidence and open work
The v0.1.5 code and v0.3.18 code are direct implementation records. Block 170 is an on-chain historical claim corroborated by a hosted transaction record and a checked third-party serialization; the local checksum and script parsing alone are not full consensus validation. The modern Bitcoin developer guide explains the mechanism, while BIP 341 is a later first-party specification for a distinct output type. Sources about who sent the first human payment remain documentary claims separate from the keys and bytes.
Recover an independently validated block-0-to-170 transaction serialization packet, including the block-9 output and the corresponding script checks, so that the early P2PK case does not rely on public explorers or later transcription.
Identify dated wallet-source changes that moved ordinary coinbase, change and user-payment construction from direct P2PK outputs toward P2PKH or subsequent script types, without mistaking the first source appearance of a template for its widespread adoption.