Hash preimage verification combined with signature check in a single block. Collapses a hash + SIG two-block pattern, saving 8 bytes on wire.
Compound Non-Invertible| Field | Data Type | Size | Side | Description |
|---|---|---|---|---|
| hash | HASH256 | 32 B | Conditions | SHA-256 hash the preimage must match. Node-computed — the user provides PREIMAGE and the node computes this field automatically. Raw hash input is rejected. |
| scheme | SCHEME | 1 B | Conditions | Signature scheme identifier (0x01 = Schnorr, 0x02 = ECDSA). Routes to post-quantum verifier when PQ scheme set. |
| pubkey | PUBKEY | 32-33 B | Witness | Public key matching the commitment |
| signature | SIGNATURE | 64-65 B | Witness | Schnorr signature over the transaction |
| preimage | PREIMAGE | 32 B | Witness | Data whose SHA-256 equals the hash field — provided by the user. The node derives HASH256 from this data at creation time. |
Public key folded into Merkle leaf via merkle_pub_key (PubkeyCountForBlock = 1). No key field in conditions.
{
"type": "HASH_SIG",
"fields": [
{ "type": "PUBKEY", "hex": "02abc1...33 bytes" },
{ "type": "HASH256", "hex": "e3b0c442...32 bytes" },
{ "type": "SCHEME", "hex": "01" }
]
}{
"type": "HASH_SIG",
"fields": [
{ "type": "PUBKEY", "hex": "02abc1...33 bytes" },
{ "type": "SIGNATURE", "hex": "30440...64 bytes" },
{ "type": "PREIMAGE", "hex": "deadbeef...32 bytes" }
]
}