datadictionary.org
Script Template locking_script

P2PK

Pay to public key. The original Bitcoin output type used in early (Satoshi-era) blocks. Funds are locked directly to a public key; the spender signs with the matching private key.

name p2pk
category locking_script
family payment
status stable

ASM Pattern

 OP_CHECKSIG

Hex Pattern

21 <33-bytes> ac        # compressed pubkey
41 <65-bytes> ac        # uncompressed pubkey

Fields

Name Type Size Description
pubkey bytes 33 or 65 Recipient public key. Compressed (33 bytes, 0x02/0x03 prefix) or uncompressed (65 bytes, 0x04 prefix).

Detector

method opcode_sequence
rule (script.length == 35 && script[0] == 0x21 && script[34] == 0xac) || (script.length == 67 && script[0] == 0x41 && script[66] == 0xac)
confidence high

Unlocking script

<signature>

Notes

P2PK is rare on modern BSV — P2PKH superseded it because revealing the full public key at receive time is larger and less private than revealing a hash. Coinbase outputs to Satoshi-era miners commonly use P2PK.