user323: When one sets up a transaction, the input of the transaction needs to have a script with a signature to show that you can spend those coins. Which fields of the previous and current transactions need to be concatenated into a message and signed to generate a proper signature? Can someone provide some examples?

user153: This is done in the Javascript from BlockChain.info:

http://bitcointalk.org/index.php?topic=40264.msg851062#msg851062

The transaction can then be sent using either of the following:

http://blockchain.info/pushtx
http://bitsend.rowit.co.uk/


user17067: Here and in the following articles I explain how to build and sign a Bitcoin transaction from scratch. There are also C code examples attached:
https://davidederosa.com/basic-blockchain-programming/inside-transactions/

323: <p>When one sets up a <a href="https://en.bitcoin.it/wiki/Protocol_specification#tx">transaction</a>, the input of the transaction needs to have a script with a signature to show that you can spend those coins. Which fields of the previous and current transactions need to be concatenated into a message and signed to generate a proper signature? Can someone provide some examples?</p>
 153: <p>This is done in the Javascript from BlockChain.info:</p>

<ul>
<li><a href="http://bitcointalk.org/index.php?topic=40264.msg851062#msg851062" rel="nofollow">http://bitcointalk.org/index.php?topic=40264.msg851062#msg851062</a></li>
</ul>

<p>The transaction can then be sent using either of the following:</p>

<ul>
<li><a href="http://blockchain.info/pushtx" rel="nofollow">http://blockchain.info/pushtx</a></li>
<li><a href="http://bitsend.rowit.co.uk/" rel="nofollow">http://bitsend.rowit.co.uk/</a></li>
</ul>
 17067: <p>Here and in the following articles I explain how to build and sign a Bitcoin transaction from scratch. There are also C code examples attached:</p>
<p><a href="https://davidederosa.com/basic-blockchain-programming/inside-transactions/" rel="nofollow noreferrer">https://davidederosa.com/basic-blockchain-programming/inside-transactions/</a></p>
