Single signature verification. Supports Schnorr (BIP-340), ECDSA, and post-quantum schemes via the SCHEME field. The fundamental spending primitive.
Signature Non-Invertible| Field | Data Type | Size | Side | Description |
|---|---|---|---|---|
| pubkey | PUBKEY | 32-33 B | Witness | Public key (x-only 32B or compressed 33B) |
| signature | SIGNATURE | 64-65 B | Witness | Schnorr signature (64B) or with sighash byte (65B). ECDSA signatures are 8-72B. |
| scheme | SCHEME | 1 B | Conditions | Signature scheme identifier (0x01 = Schnorr, 0x02 = ECDSA). Routes to post-quantum verifier when PQ scheme set. |
Public key folded into Merkle leaf via merkle_pub_key (PubkeyCountForBlock = 1). No key field in conditions.
Conditions side (in scriptPubKey):
Witness side (in input witness):
With rung overhead included. Minimal Schnorr case (x-only pubkey, no sighash byte).
| Condition | Result |
|---|---|
| Missing PUBKEY or SIGNATURE | ERROR |
| Merkle leaf pubkey count mismatch | ERROR |
| Signature size out of range | ERROR |
| Merkle leaf verification fails | UNSATISFIED |
| Signature verification fails | UNSATISFIED |
| Signature valid | SATISFIED |
{
"type": "SIG",
"inverted": false,
"fields": [
{ "type": "PUBKEY", "hex": "02abc1...33 bytes" },
{ "type": "SCHEME", "hex": "01" }
]
}{
"type": "SIG",
"inverted": false,
"fields": [
{ "type": "PUBKEY", "hex": "02abc1...33 bytes" },
{ "type": "SIGNATURE", "hex": "30440...64 bytes" }
]
}