Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: hahahafr on July 24, 2013, 12:22:42 AM



Title: multi-signature transactions in javascript
Post by: hahahafr on July 24, 2013, 12:22:42 AM
Hello,
Does any example of generating (from inputs + privates keys) a multi-signature transactions exist in any language? What about Javascript?


Title: Re: multi-signature transactions in javascript
Post by: jgarzik on July 24, 2013, 12:38:05 AM
Hello,
Does any example of generating (from inputs + privates keys) a multi-signature transactions exist in any language? What about Javascript?

txtool is a command line tool written in JavaScript, that helps you build and sign multi-sig transactions.

https://bitcointalk.org/index.php?topic=249205.0
https://github.com/jgarzik/txtool


Title: Re: multi-signature transactions in javascript
Post by: Mike Hearn on July 24, 2013, 08:43:24 AM
Sure, bitcoinj makes this straight forward (from java):

https://code.google.com/p/bitcoinj/wiki/WorkingWithContracts


Title: Re: multi-signature transactions in javascript
Post by: hahahafr on July 24, 2013, 11:41:27 AM
Hello,
Does any example of generating (from inputs + privates keys) a multi-signature transactions exist in any language? What about Javascript?

txtool is a command line tool written in JavaScript, that helps you build and sign multi-sig transactions.

https://bitcointalk.org/index.php?topic=249205.0
https://github.com/jgarzik/txtool


What if I don't have access to a bitcoind client? Do I have to reinvent the wheel?

Sure, bitcoinj makes this straight forward (from java):

https://code.google.com/p/bitcoinj/wiki/WorkingWithContracts

This looks like it's what I'm looking for, I have zero experience with java though.


Title: Re: multi-signature transactions in javascript
Post by: Mike Hearn on July 24, 2013, 12:00:12 PM
It's not a very complicated language. There is a tutorial on the Oracle website, if you need one. I recommend grabbing IntelliJ IDEA from jetbrains.com. The community edition is open source, free and it works very well. It checks your code in the background and highlights errors, of course.