Bitcoinjs-lib: Signature Verification Example for P2SH(P2WPKH)

Created on 6 Dec 2018  路  2Comments  路  Source: bitcoinjs/bitcoinjs-lib

Apologies if this has been asked already, but can someone show me a quick example of validating the signature for a P2SH(P2WPKH) transaction? (pay-to-witness-public-key-hash wrapped in a pay-to-script-hash)

The integration test validates a basic P2PKH transaction, but I've been struggling to validate one for P2SH(P2WPKH). Broadcasting my raw transactions to testnet is working, but it's always good to validate this stuff in a test suite.

Thanks!

how to / question / docs

All 2 comments

@dcousens I got a notification for your follow up, but for some reason I'm not seeing it on GitHub now. Anyway, my aim is to simply validate the inputs I've created in my transaction have valid segwit signature (when the UTXO being spent is a P2SH(P2WPKH) output)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

silence-may picture silence-may  路  3Comments

hoshsadiq picture hoshsadiq  路  3Comments

thrastarson picture thrastarson  路  3Comments

zhaozhiming picture zhaozhiming  路  3Comments

itsMikeLowrey picture itsMikeLowrey  路  3Comments