Linked Questions

71
votes
3answers
25k views

How to redeem a basic Tx?

Given a raw, standard Tx (wiki): 01000000 01 26c07ece0bce7cda0ccd14d99e205f118cde27e83dd75da7b141fe487b5528fb 00000000 8b ...
2
votes
1answer
539 views

How to tell which part of the previous tx I need to make the hash to sign for an old given tx?

I have recently been taught (here) how to create the hash to sign for a given "input script" for an existing transaction. I then sought to test my abilities and sought out a difficult transaction to ...
1
vote
2answers
2k views

How to manually verify a signature given scriptSig and scriptPubKey?

First transaction Given a transaction on the blockchain: 3a1b9e330d32fef1ee42f8e86420d2be978bbe0dc5862f17da9027cf9e11f8c4 One of the outputs transfers 424,242.42424242 BTC to ...
1
vote
2answers
366 views

Do i need to sign each input in a raw transaction?

I've been reading up about raw transactions on bitcoin.org and there are two examples Simple and Complex. What I can't tell from the information provided is if it necessary to sign each of the inputs ...
2
votes
1answer
494 views

Signing tx with OpenSSL, but fails when sending with bitcoin qt. How to debug?

I try to create a tx with 4 inputs, and sign it via cmdline and openssl on a cold storage machine. Then I want to send it via bitcoin qt (or blockchain.info). Signing with a single input and a single ...
1
vote
2answers
385 views

Can not decode transaction. Script was manually verified successfull

I can not decode transaction in Bitcoin-QT. The error is: TX decode failed (code -22). But blockexplorer site decode it. Then I try to send transaction from blockcypher.com site, and the error is: ...
0
votes
1answer
179 views

Is scriptSig different for each input?

Since scriptSig is a signed transaction hash with the spender's private key, how is the scriptsig different for each input?
0
votes
0answers
187 views

Help with multi-input transaction by code

I'm trying to consolidate multiple inputs into a single output, all left over is for the miner. When I send my transaction to a peer, it is never mined. I believe something is invalid in the multi-...
0
votes
1answer
66 views

Struggling to successfully broadcast a p2pkh transaction

I've been experimenting with sending bitcoin transactions with python for the past week. I successfully was able to send p2wpkh->ALL address types, p2sh-p2wpkh->ALL address types. What I am ...
1
vote
1answer
56 views

Is the HashOfThingToSign (used in signature generation) the same for each input of a transaction or is it different for each input of a transaction?

Does a transaction with 50 inputs have 50 different hashofthingtosign, one for each input, or does it just have one that is used for all the input scripts?
0
votes
1answer
41 views

How to manually sign a transaction with multiple inputs and multiple outputs?

I'm developing transaction constructor, but i faced several problems. To some of which i found answer in How to sign a transaction with multiple inputs?, for the rest i'll try to explain: When we ...