Cannot spend 2 taproot output in one transaction #2041
Answered
by
guggero
phanquocky
asked this question in
Q&A
-
Here is My code for spend 2 taproot output
Here is my Log
I decode rawtransaction
I'm sure the above unspent taproot output is true, and I try spend 1 taproot output is fine but 2 taproot outputs don't work |
Beta Was this translation helpful? Give feedback.
Answered by
guggero
Oct 12, 2023
Replies: 1 comment
-
You need to use a single input fetcher and sighashes for both signature. But you need to add both previous outputs to the same input fetcher, so you need to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
phanquocky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use a single input fetcher and sighashes for both signature. But you need to add both previous outputs to the same input fetcher, so you need to use
MultiPrevOutFetcher
instead of the canned one.