Block Reference
P2WPKH_LEGACY
Legacy Family
TYPE 0x0904 · LEGACY FAMILY

P2WPKH_LEGACY

Legacy P2WPKH (pay-to-witness-pubkey-hash) wrapped as a typed Ladder Script block. Identical evaluation to P2PKH_LEGACY — HASH160 check + signature verify. Represents the segwit migration path.

Legacy Non-Invertible
P2WPKH_LEGACY HASH160 + SIG Delegates to P2PKH evaluator
FieldData TypeSizeSideDescription
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):

0x0904 0 1 HASH160 · 20B = 26 bytes

Witness side (in input witness):

0x0904 0 2 PUBKEY · 33B SIGNATURE · 64B = 105 bytes
Total (conditions + witness) 131 bytes

With rung overhead included. Compressed pubkey (33B) case.

1. Delegates to P2PKH evaluator.
2. Compute HASH160(PUBKEY) and compare to committed hash. If mismatch → UNSATISFIED
3. Verify SIGNATURE against PUBKEY. If invalid → UNSATISFIED
4. Signature valid → SATISFIED
ConditionResult
Missing HASH160, PUBKEY, or SIGNATUREERROR
HASH160 wrong size (not 20B)ERROR
HASH160(PUBKEY) != committed hashUNSATISFIED
Signature failsUNSATISFIED
Signature validSATISFIED
Conditions (scriptPubKey)
{
  "type": "P2WPKH_LEGACY",
  "inverted": false,
  "fields": [
    { "type": "HASH160", "hex": "89abcd...20 bytes" }
  ]
}
Witness (input)
{
  "type": "P2WPKH_LEGACY",
  "inverted": false,
  "fields": [
    { "type": "PUBKEY", "hex": "02abc1...33 bytes" },
    { "type": "SIGNATURE", "hex": "e5f6a7...64 bytes" }
  ]
}
Segwit Migration Path
Represents the SegWit P2WPKH migration. Identical evaluation to P2PKH_LEGACY.
Witness Discount Compatibility
Maintains the conceptual distinction from P2PKH for users migrating from segwit outputs.
← P2SH_LEGACY P2WSH_LEGACY →