Skip to content

BIP 448 support by W0xlt#1

Open
darosior wants to merge 3 commits into
bip448:masterfrom
w0xlt:inquisition-bip448-support
Open

BIP 448 support by W0xlt#1
darosior wants to merge 3 commits into
bip448:masterfrom
w0xlt:inquisition-bip448-support

Conversation

@darosior

Copy link
Copy Markdown

This is work by @w0xlt to introduce BIP 448 in rust-bitcoin master.

w0xlt added 3 commits May 30, 2026 02:22
Expose names for the BIP348, BIP349, and BIP446 opcode bytes
used by Bitcoin Inquisition signet. They remain aliases for
the current OP_SUCCESSx bytes so script construction can use
the proposal names without changing TapScript classification.

Add coverage for the alias byte values, builder output, and
current OP_SUCCESSx classification behavior.
Add a TemplateHash tagged-hash type and SighashCache helpers
for computing the BIP446 OP_TEMPLATEHASH message used by Bitcoin
Inquisition signet scripts. The helper commits to version,
lock time, sequences, outputs, input index, and this
input's annex data while intentionally leaving prevouts and
spent amounts out of scope.

Share the BIP341 annex hashing logic, add raw BIP340 signing helpers
for CHECKSIGFROMSTACK use, and cover the behavior with local BIP446 vectors
plus length and input-index error tests.
Add examples that build the common
OP_TEMPLATEHASH OP_INTERNALKEY OP_CHECKSIGFROMSTACK Taproot script
and sign a TemplateHash for a script-spend witness. These examples
demonstrate the local construction and signing API without
implying consensus validation.

Document the intended Bitcoin Inquisition signet scope,
the non-consensus limitations, the TemplateHash commitments, and
the raw CSFS signing convention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants