Quantcast
Channel: sign native P2WPKH with bitcoinjs-lib (signing sighash) (non-mandatory-script-verify-flag) - Bitcoin Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Antoni for sign native P2WPKH with bitcoinjs-lib (signing sighash)...

i have fixed the problem by using a P2PKH output script for the sighashconst sighash = tx.hashForWitnessV0( 0, Buffer.from(utxo.scriptPubKey, 'hex'), utxo.amount, hashtype);has been changed toconst pkh...

View Article



sign native P2WPKH with bitcoinjs-lib (signing sighash)...

i experimented a lot with p2wsh multisig configurations with bitcoinjs-lib. but when i tried to sign a standard native segwit p2wpkh to p2wpkh transaction everything goes ok except for bitcoin-cli...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images