Questions tagged [sighash]

The tag has no usage guidance.

2
votes
1answer
58 views

Do we still need SIGHASH_NOINPUT for Lightning Network?

In the original Lightning whitepaper, Joseph Poon advocates using SIGHASH_NOINPUT so that we can create the first commitment transaction which references the funding transaction txid without actually ...
0
votes
1answer
27 views

Is SIGHASH_NONE encompassing of other signature types?

Say I am building a transaction in private: Input 1 is signed with SIGHASH_SINGLE ( | SIGHASH_ANYONECANPAY) Input 2 is signed with SIGHASH_NONE | SIGHASH_ANYONECANPAY SIGHASH_NONE implies that ...
1
vote
1answer
123 views

Why hash witness script instead of pubkey script in signature?

When a segwit input is signed, the signature will commit to the witness script (or a p2pkh-like script in case of p2wpkh). This is specified in BIP143: For P2WPKH witness program, the scriptCode ...
1
vote
1answer
252 views

“mandatory-script-verify-flag-failed (signature must be zero for failed check(multi)sig operation)”

I forked the openwallet-android so that I could add my coin - (placeholders) placeh.io. The openwallet-android connects to electrumx server. I am able to get my chain to load correctly in electrumx ...
1
vote
2answers
101 views

Why is the signature hash different for each input in a multi-input transaction?

In pre-BIP143 signature hashes, I know that the signature hash differs because you have to substitute the previous scriptPubKey for each input and thus the serialization changes. The question is why? ...
0
votes
1answer
58 views

SignatureHash description

SignatureHash takes in as input a scriptCode: uint256 SignatureHash( const CScript& scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType, const ...
1
vote
1answer
110 views

Where to find the sighash type?

Where can I find the sighash type specified in a script? Is it included in the scriptsig?
1
vote
2answers
187 views

What are the unnamed parts of the segwit/bitcoin cash raw tx shown and how do I get them as shown?

There are three parts to this. Shown here. Part 1. This string is found at the final form of the raw tx: ...