River Intelligence

Sign up for our curated weekly newsletter delivering exclusive market insights to your inbox.

Build your Bitcoin wealth with River

green checkmark

No-fee recurring buys

green checkmark

Bitcoin mining

green checkmark

Phone support

BIP 342 (Tapscript)

Bitcoin Improvement Proposal (BIP) 342 defines Tapscript, an update to Bitcoin’s scripting language. Tapscript enables Bitcoin nodes to create and validate Pay-to-Taproot (P2TR) outputs by upgrading the opcodes Bitcoin uses to evaluate scripts.

Tapscript changes how signatures are evaluated to take advantage of the efficiency improvements of Schnorr Signatures. In addition, BIP 342 adds several new null opcodes, called OP_SUCCESS, which allow Tapscript to be flexibly upgraded in the future.

Bitcoin Improvement Proposal 342 is part of the Taproot upgrade, which also includes BIP 340 and BIP 341.

Learn more about Bitcoin’s Taproot upgrade.