Bitcoin Forum
September 27, 2018, 11:03:27 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: multi-signature transactions in javascript  (Read 721 times)
hahahafr
Hero Member
*****
Offline Offline

Activity: 643
Merit: 500



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?

        ▄▄█████████▄▄
     ▄███████ ░████████▄
   ▄█████ ░██  ██  ██████▄
 ░███████  ██  ██ ░████████
░████  ██  ██  █▌ ▐█████████
▐████  ██  ██  █▌ ▐█████████▌
█████░ ▐█  ██  █  ████  █████
█████▌ ▐█████████████  ██████
█████▌ ▐████████████▌ ▐██████
██████  ████████████ ░███████
▐█████  ███████████░ ▐██████▌
 ██████  ████████▀░ ▄███████
  ▀█████░  ▀███▀  ▄███████▀
    ▀█████▄░   ░▄███████▀
       ▀▀███████████▀▀

▄███▄                                                                  ▄███▄
█████░                                                                 █████
█████░                                                                 █████
█████░                                                                 █████
███████████▄▄       ▄███████▄    ▄███▄     ░▄███▄     ░▄██▄░   ▄▄███████████    ▄███████▄░      ▄▄██████▄▄
██████████████▌  ░▄███████████▄░ █████     ▒█████     ▒████▒ ▐██████████████ ░▄███████████▄░  ▄████████████▄
███████████████▌░█████▀  ▀██████ █████     ▒█████     ▒████▒▐█████▀  ▀██████░▐█████▀  ▀█████░▐█████▀  ▀█████▌░
█████▀░   ▀█████▒████      █████ █████     ▒█████     ▒████▒█████░   ░░█████░█████░     ████▒█████      █████
█████░    ░█████▒████      █████ █████░   ░▐█████▌    ▓████▒█████░    ░█████░█████      ████▒█████      █████
█████░    ░█████░█████▄  ▄██████ ██████▄░▄████████▄░▄██████░▐█████▄░░▄█████▌░▐█████▄  ▄█████░▐█████▄  ▄█████▌
█████░    ░█████ ░█████████████░ ░████████████████████████░  ▐████████████▒  ░▀████████████░  ▀████████████▀
▀███▀░    ░▀███▀   ▀▀███████▀▀     ▀▀████████▀ ▀███████▀▀     ░▀████████▀       ▀███████▀▀     ░▀████████▀
  First Decentralized Social Ecosystem
  A SOCIAL NETWORK BUILT FOR THE BLOCKCHAINWORLD






───    APPLY FOR WHITELIST    ───
WEBSITE    WHITEPAPER   TELEGRAM
FACEBOOK  TWITTER         ANN
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538089407
Hero Member
*
Offline Offline

Posts: 1538089407

View Profile Personal Message (Offline)

Ignore
1538089407
Reply with quote  #2

1538089407
Report to moderator
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1554
Merit: 1001


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: 1006


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
Hero Member
*****
Offline Offline

Activity: 643
Merit: 500



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.

        ▄▄█████████▄▄
     ▄███████ ░████████▄
   ▄█████ ░██  ██  ██████▄
 ░███████  ██  ██ ░████████
░████  ██  ██  █▌ ▐█████████
▐████  ██  ██  █▌ ▐█████████▌
█████░ ▐█  ██  █  ████  █████
█████▌ ▐█████████████  ██████
█████▌ ▐████████████▌ ▐██████
██████  ████████████ ░███████
▐█████  ███████████░ ▐██████▌
 ██████  ████████▀░ ▄███████
  ▀█████░  ▀███▀  ▄███████▀
    ▀█████▄░   ░▄███████▀
       ▀▀███████████▀▀

▄███▄                                                                  ▄███▄
█████░                                                                 █████
█████░                                                                 █████
█████░                                                                 █████
███████████▄▄       ▄███████▄    ▄███▄     ░▄███▄     ░▄██▄░   ▄▄███████████    ▄███████▄░      ▄▄██████▄▄
██████████████▌  ░▄███████████▄░ █████     ▒█████     ▒████▒ ▐██████████████ ░▄███████████▄░  ▄████████████▄
███████████████▌░█████▀  ▀██████ █████     ▒█████     ▒████▒▐█████▀  ▀██████░▐█████▀  ▀█████░▐█████▀  ▀█████▌░
█████▀░   ▀█████▒████      █████ █████     ▒█████     ▒████▒█████░   ░░█████░█████░     ████▒█████      █████
█████░    ░█████▒████      █████ █████░   ░▐█████▌    ▓████▒█████░    ░█████░█████      ████▒█████      █████
█████░    ░█████░█████▄  ▄██████ ██████▄░▄████████▄░▄██████░▐█████▄░░▄█████▌░▐█████▄  ▄█████░▐█████▄  ▄█████▌
█████░    ░█████ ░█████████████░ ░████████████████████████░  ▐████████████▒  ░▀████████████░  ▀████████████▀
▀███▀░    ░▀███▀   ▀▀███████▀▀     ▀▀████████▀ ▀███████▀▀     ░▀████████▀       ▀███████▀▀     ░▀████████▀
  First Decentralized Social Ecosystem
  A SOCIAL NETWORK BUILT FOR THE BLOCKCHAINWORLD






───    APPLY FOR WHITELIST    ───
WEBSITE    WHITEPAPER   TELEGRAM
FACEBOOK  TWITTER         ANN
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1006


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!