Legacy P2PKH (pay-to-pubkey-hash) wrapped as a typed Ladder Script block. Verifies HASH160(pubkey) matches committed hash, then checks signature.
Legacy Non-Invertible| Field | Data Type | Size | Side | Description |
|---|---|---|---|---|
| hash160 | HASH160 | 20 B | Conditions | RIPEMD160(SHA256(pubkey)) commitment. Node-computed — the user provides PUBKEY and the node computes this field automatically. Raw hash input is rejected. |
| pubkey | PUBKEY | 32-33 B | Witness | Public key — provided by the user. The node derives HASH160 from this key at creation time. Revealed at spend time. |
| signature | SIGNATURE | 64-65 B | Witness | Signature over the transaction sighash |
Conditions side (in scriptPubKey):
Witness side (in input witness):
With rung overhead included. Compressed pubkey (33B) case.
| Condition | Result |
|---|---|
| Missing HASH160, PUBKEY, or SIGNATURE | ERROR |
| HASH160 wrong size (not 20B) | ERROR |
| HASH160(PUBKEY) != committed hash | UNSATISFIED |
| Signature fails | UNSATISFIED |
| Signature valid | SATISFIED |
{
"type": "P2PKH_LEGACY",
"inverted": false,
"fields": [
{ "type": "HASH160", "hex": "89abcd...20 bytes" }
]
}{
"type": "P2PKH_LEGACY",
"inverted": false,
"fields": [
{ "type": "PUBKEY", "hex": "02abc1...33 bytes" },
{ "type": "SIGNATURE", "hex": "e5f6a7...64 bytes" }
]
}