Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: yu77889 on July 29, 2013, 04:30:50 AM



Title: JavaScript Library to Sign Transaction
Post by: yu77889 on July 29, 2013, 04:30:50 AM
Working on a payment processing platform but I am seeking a way to ensure we don't act as a custodian to Bitcoin.  Our customers will be working in JavaScript.

I need a way to sign a transaction in JavaScrpt so that I can then take that output and send it to a remote bitcoind process to transmit to the network.  It's important that the client using JavaScript not have access to bitcoind.  Basically, the client will know its private address and it needs a mechanism to package the request so that it can be transmitted on a remote service.

I have been looking at the Bitcoin-JS library and I don't think it has what I need.  Perhaps I am mistaken...?


Title: Re: JavaScript Library to Sign Transaction
Post by: Stephen Gornick on July 29, 2013, 06:25:37 AM
|I have been looking at the Bitcoin-JS library and I don't think it has what I need.  Perhaps I am mistaken...?

The Javascript code from BrainWallet can be used to show how this can be done:
 - http://brainwallet.org/#tx