Skip to content

Commit adf18c9

Browse files
committed
fixups
1 parent aa790ef commit adf18c9

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

bip-templatehash-csfs-ik.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```
22
BIP: ?
33
Layer: Consensus (soft fork)
4-
Title: OP_TEMPLATEHASH + OP_CHECKSIGFROMSTACK + OP_INTERNALKEY
4+
Title: Next-transaction and Rebindable Signatures
55
Author: Gregory Sanders <[email protected]>
66
Antoine Poinsot <[email protected]>
77
Steven Roose <[email protected]>
@@ -16,7 +16,7 @@
1616
## Abstract
1717

1818
This document proposes bundling three new operations for [Tapscript][tapscript-bip]:
19-
[`OP_TEMPLATEHASH`][templatehash-bip], [`OP_CHECKSIGFROMSTACK`][csfs-bip], and [`OP_INTERNALKEY`][internalkey-bip].
19+
[`OP_TEMPLATEHASH`][templatehash-bip], [`BIP348 OP_CHECKSIGFROMSTACK`][csfs-bip], and [`BIP349 OP_INTERNALKEY`][internalkey-bip].
2020

2121
These minimal operations introduce modular functionalities which improve existing second layer protocols and make new
2222
ones possible through plausible interactivity requirements.
@@ -25,9 +25,9 @@ ones possible through plausible interactivity requirements.
2525

2626
The three proposed operations are simple, well-understood, and enable powerful new capabilities while minimizing the
2727
risk of surprising behavior or unintended applications. They improve existing, well-studied protocols and make promising
28-
new ones possible, while minimizing the risk of surprising behavior or unintended or undesirable applications.
28+
new ones possible.
2929

30-
`OP_TEMPLATEHASH` enables commitment to the transaction spending an output. `OP_CHECKSIGFROMSTACK` enables
30+
`OP_TEMPLATEHASH` enables committing to the transaction spending an output. `OP_CHECKSIGFROMSTACK` enables
3131
[BIP340][schnorr-bip] signature verification of arbitrary messages. `OP_INTERNALKEY` allows to push the
3232
[Taproot][taproot-bip] internal key on the stack.
3333

@@ -52,7 +52,7 @@ signatures.
5252
## Rationale
5353

5454
This proposal seeks to extend Bitcoin's scripting capabilities in areas that are useful to proven approaches to scaling
55-
Bitcoin payments, while minimizing the risk of enabling surprising or unwanted usage. The operations proposed to achieve
55+
Bitcoin payments. The operations proposed to achieve
5656
these capabilities are contained within the more modern and well-studied Tapscript context. They are simple, composable
5757
and unlikely to be made obsolete by future extensions to Bitcoin Script. They build upon existing operations and
5858
therefore present a minimal cost to validation and implementation complexity.
@@ -70,6 +70,10 @@ substantially improve existing ones, this proposal favours the minimal approach.
7070
signatures usage more efficient;
7171
- it prevents surprising interactions with programs in a transaction input's `scriptSig`.
7272

73+
## Implementation
74+
75+
[`OP_TEMPLATEHASH`][templatehash-bip], [`BIP348 OP_CHECKSIGFROMSTACK`][csfs-bip], and [`BIP349 OP_INTERNALKEY`][internalkey-bip] implemented as specified in their corresponding documents.
76+
7377
## Backward compatibility
7478

7579
This document proposes to give meaning to three Tapscript `OP_SUCCESS` operations. The presence of an `OP_SUCCESS` in a

bip-templatehash.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ rules: there is no block that is valid under the rules proposed in this BIP but
117117
rules. As a consequence these changes are backward-compatible with non-upgraded node software. That said, the authors
118118
strongly encourage node operators to upgrade in order to fully validate all consensus rules.
119119

120+
## Implementation
121+
122+
* https://github.com/instagibbs/bitcoin/tree/2025-07-op_templatehash
123+
120124
## Test Vectors
121125

122126
For development and testing purposes, we provide a [collection of test vectors](bip-templatehash/test_vectors). The test

0 commit comments

Comments
 (0)