Closed belian001 closed 4 months ago
const psbtdata = bitcoin.Psbt.fromBase64('cHNidP8BAP0zAQIAAAACe6hpGYbsE3F7nF5M5sPIj63hB+/Gk6OX365hkOlzWbEFAAAAAP////+MKZJFhWtwxzSpGnelRzB3q5D533ymThr75ko15gR+DAIAAAAA/////wYQJwAAAAAAABYAFBDmp2yebwctpktA/wnQFed0rNPoIgIAAAAAAAAiUSCe9a8LWuYH0DuOroeU42lXZihRkaPfY+MOpiQ7pvNeZyICAAAAAAAAFgAUEOanbJ5vBy2mS0D/CdAV53Ss0+gAAAAAAAAAABtqXRgAxp2sATKXve/8ywEBAAC2oMfDrqjmCQIiAgAAAAAAABYAFJ61NjgWMz/tfd9RG+jnPL+QqC/n4OQOAAAAAAAiUSAJlh2k2v6/FWVALlQfWILFJF3Bnv+MZr2QwLrZGlgcGQAAAAAAAQErkhMPAAAAAAAiUSCe9a8LWuYH0DuOroeU42lXZihRkaPfY+MOpiQ7pvNeZwEDBIEAAAABFyDC0FkGA1Hx240xdRZ6pmmIJPJy9y+75j4whodc+MBP3QABAR8iAgAAAAAAABYAFBDmp2yebwctpktA/wnQFed0rNPoAQMEgQAAAAAAAAAAAAA=');
console.log('Signed PSBT:', signedPsbtBase64); This is my signature code. I use taroot to sign psbt, but there is always an error. What is the problem? From the unisat data, I can see that only the first input is signed.
Signature Error sighashTypes.indexOf is not a function
const psbtdata = bitcoin.Psbt.fromBase64('cHNidP8BAP0zAQIAAAACe6hpGYbsE3F7nF5M5sPIj63hB+/Gk6OX365hkOlzWbEFAAAAAP////+MKZJFhWtwxzSpGnelRzB3q5D533ymThr75ko15gR+DAIAAAAA/////wYQJwAAAAAAABYAFBDmp2yebwctpktA/wnQFed0rNPoIgIAAAAAAAAiUSCe9a8LWuYH0DuOroeU42lXZihRkaPfY+MOpiQ7pvNeZyICAAAAAAAAFgAUEOanbJ5vBy2mS0D/CdAV53Ss0+gAAAAAAAAAABtqXRgAxp2sATKXve/8ywEBAAC2oMfDrqjmCQIiAgAAAAAAABYAFJ61NjgWMz/tfd9RG+jnPL+QqC/n4OQOAAAAAAAiUSAJlh2k2v6/FWVALlQfWILFJF3Bnv+MZr2QwLrZGlgcGQAAAAAAAQErkhMPAAAAAAAiUSCe9a8LWuYH0DuOroeU42lXZihRkaPfY+MOpiQ7pvNeZwEDBIEAAAABFyDC0FkGA1Hx240xdRZ6pmmIJPJy9y+75j4whodc+MBP3QABAR8iAgAAAAAAABYAFBDmp2yebwctpktA/wnQFed0rNPoAQMEgQAAAAAAAAAAAAA=');
console.log('Signed PSBT:', signedPsbtBase64); This is my signature code. I use taroot to sign psbt, but there is always an error. What is the problem? From the unisat data, I can see that only the first input is signed.