Linked Questions

0 votes
1 answer
180 views

signing multiple input raw transaction - algorithm and sighash types [duplicate]

I have an unsigned raw transaction: ...
Jubert's user avatar
  • 37
85 votes
3 answers
37k views

How to redeem a basic Tx?

Given a raw, standard Tx (wiki): 01000000 01 26c07ece0bce7cda0ccd14d99e205f118cde27e83dd75da7b141fe487b5528fb 00000000 8b ...
ThePiachu's user avatar
  • 43k
4 votes
1 answer
833 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 ...
Mine's user avatar
  • 1,416
1 vote
2 answers
3k 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 ...
Justin O'Brien's user avatar
1 vote
2 answers
1k 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: ...
chupacabra's user avatar
1 vote
2 answers
1k 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 ...
Dimitar Vasilev's user avatar
3 votes
1 answer
622 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 ...
pebwindkraft's user avatar
  • 5,086
1 vote
2 answers
475 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 ...
Ne0's user avatar
  • 111
0 votes
1 answer
314 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 ...
cryptodescriptor's user avatar
0 votes
1 answer
278 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?
user2298995's user avatar
0 votes
0 answers
286 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-...
David Rz Ayala's user avatar
0 votes
1 answer
162 views

Multiple inputs with one signature

From this question I've learned that a transaction with N inputs requires N sign operations. But what if there a huge amount of inputs? E.g. I have a coffee shop and I sell 5000 pcs coffee every day ...
Gábor Kiss-Vámosi's user avatar
1 vote
1 answer
68 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?
Mine's user avatar
  • 1,416