Bitcoin Forum
May 22, 2024, 02:35:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: multi-signature transactions in javascript  (Read 781 times)
hahahafr (OP)
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
July 24, 2013, 12:22:42 AM
 #1

Hello,
Does any example of generating (from inputs + privates keys) a multi-signature transactions exist in any language? What about Javascript?




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
July 24, 2013, 12:38:05 AM
 #2

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

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
July 24, 2013, 08:43:24 AM
 #3

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

https://code.google.com/p/bitcoinj/wiki/WorkingWithContracts
hahahafr (OP)
Hero Member
*****
Offline Offline

Activity: 938
Merit: 501



View Profile
July 24, 2013, 11:41:27 AM
 #4

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.




                                           ◢◣                      ◢◣
                                     ◢████◣           ◢████◣
                               ◢████████◣◢████████◣
                               █████████████████
                               █████████████████
                               █████████████████
                               █████████████◤██████
                               ███████████◤████████
                               █████████◤██████████
                               ███████◤████████████
                               █████◤██████████████
                               █████◣                       ◢█████
                               ███████◣            ◢███████
                               █████████◣◢█████████
                               ◥████████◤◥████████◤
                                    ◥████◤            ◥████◤
                                          ◥◤                      



HYDAX
       Secure  
   Efficient
   Simple  
   Medium 
    Twitter  
    Telegram 
[/center
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
July 24, 2013, 12:00:12 PM
 #5

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!