Tapscript is the scripting language used for taproot script-path spends.

It shares most operations with legacy and segwit Bitcoin Script but has a few differences:

  • OP_CHECKMULTISIG and OP_CHECKMULTISIGVERIFY are replaced by a OP_CHECKSIGADD opcode.

  • Many opcodes are redefined to be OP_SUCCESS opcodes that unconditionally render the entire script valid to simplify soft fork upgrades.

  • Signature hashes are calculated differently than in legacy script or BIP143 v0 segwit.

Primary code and documentation

Optech newsletter and website mentions

See also

Previous Topic:
Taproot
Next Topic:
Trampoline payments

Edit page
Report Issue