Transaction signature generation

8

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?

ThePiachu

Posted 2012-03-21T23:45:35.913

Reputation: 41 594

Does this thread give any help? http://bitcointalk.org/index.php?topic=50282.0 and verifier here: http://bitsend.rowit.co.uk

Stephen Gornick 2012-03-22T02:56:46.613

@StephenGornick Well, it gives a couple examples of raw transactions and a way to verify them online, but still doesn't explain how to create such transactions without using the Bitcoin client.ThePiachu 2012-03-22T15:40:30.437

see 'Signatures & Witnesses' of the following link : https://medium.com/coinmonks/how-to-create-a-raw-bitcoin-transaction-step-by-step-239b888e87f2

mkcisse 2019-01-30T23:23:51.933

Answers

2

This is done in the Javascript from BlockChain.info:

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

Stephen Gornick

Posted 2012-03-21T23:45:35.913

Reputation: 26 118

2

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:

http://davidederosa.com/basic-blockchain-programming/inside-transactions/

keeshux

Posted 2012-03-21T23:45:35.913

Reputation: 366