← Back to Bitcoin Improvement Proposals
BIPinformationalopcodesscript

BIP442: OP_PAIRCOMMIT

`OP_PAIRCOMMIT` is the newest member of the LNhance family of opcodes. It provides limited vector commitment functionality in tapscript. When evaluated, the `OP_PAIRCOMMIT` instruction: * pops the top two values off the stack, * takes the "PairCommit" tagged SHA256 hash of the stack elements, * pushes the resulting commitment on the top of the stack. Discussion: https://delvingbitcoin.org/t/op-paircommit-as-a-candidate-for-addition-to-lnhance/1216/12 Mail list proposal: https://groups.google.

No reviews
moonsettler·Updated Mar 10, 2026·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

OP_PAIRCOMMIT is the newest member of the LNhance family of opcodes. It provides limited vector commitment functionality in tapscript.

When evaluated, the OP_PAIRCOMMIT instruction:

  • pops the top two values off the stack,
  • takes the "PairCommit" tagged SHA256 hash of the stack elements,
  • pushes the resulting commitment on the top of the stack.

Discussion: https://delvingbitcoin.org/t/op-paircommit-as-a-candidate-for-addition-to-lnhance/1216/12

Mail list proposal: https://groups.google.com/g/bitcoindev/c/si6ZNIkVfOw/m/29VY_YRrCgAJ

Discussion (0 threads)

Loading discussions...