Block Reference
P2TR_SCRIPT_LEGACY
Legacy Family
TYPE 0x0907 · LEGACY FAMILY

P2TR_SCRIPT_LEGACY

Legacy P2TR script-path (Taproot) wrapped as a typed Ladder Script block. This is the critical block — taproot script-path is the primary inscription/data-embedding vector today. The revealed script leaf must be valid Ladder Script conditions.

Legacy Non-Invertible
P2TR_SCRIPT_LEGACY MERKLE + INNER EVAL Closes the taproot inscription vector
FieldData TypeSizeSideDescription
hash256 HASH256 32 B Conditions Merkle root of the script tree. Node-computed — the node derives this from the PREIMAGE (script leaf). Raw hash input is rejected.
preimage PREIMAGE var Witness Revealed script leaf (serialised Ladder Script conditions) — provided by the user. The node derives HASH256 from this data at creation time.
[inner witness] var var Witness Witness fields required to satisfy the revealed leaf conditions

Public key folded into Merkle leaf via merkle_pub_key (PubkeyCountForBlock = 1). No key field in conditions.

Conditions side (in scriptPubKey):

0x0907 0 2 HASH256 · 32B = 38 bytes

Witness side (in input witness):

0x0907 0 n PREIMAGE · varB [inner witness fields] = variable
Total (conditions + witness) variable

Witness size depends on the revealed script leaf and its witness fields.

1. Compute SHA256(PREIMAGE) to get the leaf hash.
2. Verify leaf hash is included in the Merkle tree with root HASH256. If proof invalid → UNSATISFIED
3. Deserialize revealed leaf (PREIMAGE) as Ladder Script conditions. If invalid → UNSATISFIED
4. Evaluate inner conditions with remaining witness fields. Result → SATISFIED or UNSATISFIED
ConditionResult
Missing HASH256 or PREIMAGEERROR
HASH256 wrong size or Merkle leaf pubkey count mismatchERROR
SHA256(PREIMAGE) != HASH256 (Merkle root)UNSATISFIED
PREIMAGE fails to deserialize as Ladder conditionsERROR
Inner conditions evaluation failsUNSATISFIED
Recursion depth > 2ERROR
Inner conditions satisfiedSATISFIED
Conditions (scriptPubKey)
{
  "type": "P2TR_SCRIPT_LEGACY",
  "inverted": false,
  "fields": [
    { "type": "HASH256", "hex": "e3b0c4...32 bytes (Merkle root)" },
    { "type": "PUBKEY", "hex": "02abc1...33 bytes (internal key)" }
  ]
}
Witness (input)
{
  "type": "P2TR_SCRIPT_LEGACY",
  "inverted": false,
  "fields": [
    { "type": "PREIMAGE", "hex": "01020304...serialised Ladder conditions (revealed leaf)" },
    { "type": "PUBKEY", "hex": "02abc1...33 bytes" },
    { "type": "SIGNATURE", "hex": "e5f6a7...64 bytes" }
  ]
}
Anti-Inscription Protection
The primary inscription/data-embedding vector (taproot script-path) is closed. Revealed script leaf MUST be valid Ladder conditions.
Script Tree Migration
Taproot script tree with typed Ladder leaves instead of arbitrary scripts. Full anti-spam coverage.
← P2TR_LEGACY All Blocks →