Signing P2WSH PSBT with sats-connect: Need Help

0 replies 176 views
dr_gasNewbie
Posts: 16 · Reputation: 30
#1Jan 21, 2025, 05:26 AM
I set up a funded P2WSH script which is an HTLC and now I'm trying to create a PSBT that another wallet will sign to withdraw the funds. However, I'm hitting a snag with this bitcoinlib-js error: Input script doesn't have pubKey. Not really sure what's going wrong or how to properly add the pubkey to the PSBT. Here's a detailed run-down of what I've done so far to create, fund, and (unsuccessfully) redeem the HTLC. Address: tb1pnz86gezf5dzmja9q86z5agnmgjj29f00nxjj9jx0fsss6kkyh03sjkqhpd Public Key: 59fff87c1bb3f75d34ea9d1588b72d0df43540695671c7a5ad3ec6a71d44bd79 Script used for HTLC creation: This successfully set up the P2WSH transaction and displayed the following on the screen: Created an HTLC Script! P2WSH Bitcoin Deposit Address for HTLC: tb1q5cyw034kcvsp6fsfx9skeq93vhvuqghmjc9y8xdhjll8m9thrn9q5mv0nr Witness Script Hex: 63a820652c7dc687d98c9889304ed2e408c74b611e86a40caa51c4b43f1dd5913c5cd08876a914e 399056c4ca63571aca44fc2d11b3fdac69a37e06751b17576a914e399056c4ca63571aca44fc2d1 1b3fdac69a37e06888ac Redeem Block Number: 1 Secret (for spending): mysecret SHA256(Secret) (for HTLC creation): 652c7dc687d98c9889304ed2e408c74b611e86a40caa51c4b43f1dd5913c5cd0 ScriptPubKey Hex: 0020a608e7c6b6c3201d260931616c80b165d9c022fb960a4399b797fe7d95771cca Then I funded the script through xverse by sending bitcoin directly to https://mempool.space/testnet/tx/be9cc0e300d1c01b7fdbeeff1c99acc0fb8a7d9e8d025547b7bfc9635dedcbb3 The ScriptPubKey on mempool.space appears to match.
7 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics