• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

schnorr signatures – How does OP_CHECKSIG work for Taproot script path spending?

Moussa by Moussa
February 17, 2026
in Bitcoin
0
How do Bitcoin mining pools typically handle payout frequency versus thresholds?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I’ve been studying all the ways Taproot transactions can be spent and I can get all of them to work except for when script path spending is used and the script is executed. Transaction 0c045625… is a good example. I’ll focus on input 0 here.

I have successfully recreated the merkle tree of tagged hashes to match the witness program from the previous output, which I thought would be the hard part but it turned out to be quite easy.

But when the script finally executes, it still has to succeed, which means in most cases the signatures will also have to be verified. I can successfully verify signatures in key path spending inputs, but none of the script path spending ones.

Here is the segwit data for input 0 (the first two fields are the signatures):

107cc602f65b07acc72c1e71f9e443059256a844d3340deea90ca29d656c63e49eb0216be7e31a5e8ab02aa9e719ba43f05af84e86cf1912fbdf57ebbcf4cd5801
7a0c65d587f0859d7cf50009162b16c79fec22ecc485d0f8faf555f3718cda9a4891186a4a26ce7365516a0017806a6c3475d341866cd8b20c7891d02e2bc523
20c041f567623260a7b7caba5158cc0b864d735d36329db41fa41ffbb09ac86f71ad204cb206cf18865fd546b018324a8e94212dad909b3cd778bce22a219b9ac391ebac
c110551a18489887bdb3242f46719e7d375b0cc5c3062ff8430b8d20e904783e8cc913b7fd44a48042cfda824efc872816549871226770204d0884c60ba693a315

Here is the parsed witness script for input 0:

c041f567623260a7b7caba5158cc0b864d735d36329db41fa41ffbb09ac86f71
OP_CHECKSIGVERIFY
4cb206cf18865fd546b018324a8e94212dad909b3cd778bce22a219b9ac391eb
OP_CHECKSIG

Using Schnorr signatures, I can not get these public keys to verify the signatures. The signatures use sighash byte 01, or the default 00.

As for the data to be signed, I’ve tried verifying these signatures using TapSighash tagged hashes of the data (like I do for key path spending), or just using a single or double SHA256 of the data, but nothing works.

As for the public key to verify the signatures, I’ve tried using the public keys in the script directly, or applied as tweaks to an xonly public key parsed from the witness program, and vice versa, but nothing I’ve used to tweak any of these 32-byte pubkeys works either.

Since the public keys are 32 bytes and the signatures are 64 (and it’s a Taproot transaction), I assume these must be verifiable using Schnorr signatures.

What am I missing? All the other stuff I’ve done with Schnorr signatures works, and it is pretty simple. So there has to be a step I am missing.

For input 0 in the transaction linked to above, here is the data that my program is using to attempt to verify these signatures:

Witness Program:

0c96a8191c84ba0a4b64d8766a95ed49508bc24e768ee1945d21e8e850c8cbf3

Public Keys:

c041f567623260a7b7caba5158cc0b864d735d36329db41fa41ffbb09ac86f71
4cb206cf18865fd546b018324a8e94212dad909b3cd778bce22a219b9ac391eb

Signatures:

107cc602f65b07acc72c1e71f9e443059256a844d3340deea90ca29d656c63e49eb0216be7e31a5e8ab02aa9e719ba43f05af84e86cf1912fbdf57ebbcf4cd5801
7a0c65d587f0859d7cf50009162b16c79fec22ecc485d0f8faf555f3718cda9a4891186a4a26ce7365516a0017806a6c3475d341866cd8b20c7891d02e2bc523

Hash of Data to Sign (using only a single SHA256 of the serialized pieces of data, which seems to be the Taproot convention):

30264f68fd7f000080bbbe5b9e550000d0244f68fd7f000040bbbe5b9e550000

When a script path is used to redeem a Taproot output, and the script is executed, how are these pieces of data used to verify the signatures when OP_CHECKSIG is called?



Source link

Related articles

Post-BIP-110 fork: Is it necessary to resync from block 0?

September 9, 2026
Belgium Police Target Crypto Wallets In Cross-Border Piracy Crackdown

Philippines Central Bank Weighs Freeze On New Payment Operator Licenses

September 8, 2026
Share76Tweet47

Related Posts

Post-BIP-110 fork: Is it necessary to resync from block 0?

by Moussa
September 9, 2026
0

I've been running a pruned Bitcoin Knots node with BIP-110 enabled, with Core Lightning connected to it. I only run...

Belgium Police Target Crypto Wallets In Cross-Border Piracy Crackdown

Philippines Central Bank Weighs Freeze On New Payment Operator Licenses

by Moussa
September 8, 2026
0

Bangko Sentral ng Pilipinas is weighing a temporary moratorium on new Operator of Payment Systems licenses as part of a...

Senator Lummis’ New Bill Enables Tax-Exempt Bitcoin Spending — But Thresholds Are Too Low

Lummis Blasts Democrats Ahead Of Clarity Act Vote

by Moussa
September 8, 2026
0

Republican Senator Cynthia Lummis has again slammed Democrats over the long-awaited crypto Clarity Act.  Writing on X on Tuesday, the...

Strive Loads up on 1,375 Bitcoin as ASST Jumps 114% in 30 Days – Bitcoin News

by Moussa
September 8, 2026
0

Key TakeawaysStrive grabbed 1,375 bitcoin for $109M last week, lifting its stash to 24,531 BTC.Strive’s ASST is on a tear,...

Forgotten Bitcoin Core wallet passphrase

by Moussa
September 8, 2026
0

I forgot the passphrase for my old encrypted Bitcoin Core wallet.dat. I only have the backup file and have lost...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4"]

Newsletter

[vc_raw_html]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJTJGJTNGbmElM0RzJTIyJTNFJTBBJTB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N5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News