Bitcoin Forum
May 09, 2024, 07:31:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: sx sign-input Javascript equivalent  (Read 999 times)
antonimasso (OP)
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
August 23, 2014, 08:52:28 PM
 #1

Hello,

Does anyone know if there is something already made in Javascript that emulates this:

echo $private_key | sx sign-input xfile.tx 0 $(cat redeem.script)

Thanks
1715239878
Hero Member
*
Offline Offline

Posts: 1715239878

View Profile Personal Message (Offline)

Ignore
1715239878
Reply with quote  #2

1715239878
Report to moderator
1715239878
Hero Member
*
Offline Offline

Posts: 1715239878

View Profile Personal Message (Offline)

Ignore
1715239878
Reply with quote  #2

1715239878
Report to moderator
1715239878
Hero Member
*
Offline Offline

Posts: 1715239878

View Profile Personal Message (Offline)

Ignore
1715239878
Reply with quote  #2

1715239878
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715239878
Hero Member
*
Offline Offline

Posts: 1715239878

View Profile Personal Message (Offline)

Ignore
1715239878
Reply with quote  #2

1715239878
Report to moderator
antonimasso (OP)
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
August 24, 2014, 08:21:12 PM
 #2

I managed to do it using bitcoinjs-lib.
genjix
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1076


View Profile
August 26, 2014, 12:02:36 AM
 #3

great stuff, darkwallet uses that too. you can check its source to compare with your code.
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!