What Bitcoin needs
The Great Script Restoration.
Cheshire runs in Bitcoin Script, with one change Bitcoin does not have yet: GSR. Its covenant and its STARK verifier use GSR's new tapscript leaf version and nothing else.
The verifier does field arithmetic with OP_MUL and OP_MOD, hashes with OP_SHA256 and OP_CAT, and the covenant rebuilds its own transaction with OP_CAT to carry the pool's state forward. An OP_CAT-only version was built first: each settlement took about 1.87 MvB over many transactions, and it could not bind the published data to the proof.
Neither BIP is active on Bitcoin. Cheshire is a demonstration of what the restoration makes possible, and we support the effort to activate it.
BIP-440Varops budget
A budget that keeps blocks fast
Every opcode pays for the bytes it reads and writes, so the restored opcodes cannot be used to make a block slow to validate.
Read BIP-440
BIP-441Restored opcodes
The opcodes disabled in 2010, back
OP_CAT, OP_SUBSTR, OP_MUL, OP_DIV, OP_MOD, shifts and bitwise operations; stack items above 520 bytes; script numbers of any length.
Read BIP-441
0xc2Both apply only in this new tapscript leaf version, so nothing changes for existing scripts.