-
I need a singing input transaction hash to sign from an external wallet in bitcoin. I'm getting an assertion failed error in Below is the code I have used to generate the preimage hash.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @harshavnaik, please make sure you provided exactly 32 bytes prev out hash, i.e |
Beta Was this translation helpful? Give feedback.
-
Hi @satoshiotomakan, This is my unspent transaction object. this is the prev out hash |
Beta Was this translation helpful? Give feedback.
@satoshiotomakan thank you for reviewing my code. after buffer reverse (i.e,
Buffer.from(utxo.txid, 'hex').reverse()
) it's working fine for me.