Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: antonimasso on August 23, 2014, 08:52:28 PM



Title: sx sign-input Javascript equivalent
Post by: antonimasso on August 23, 2014, 08:52:28 PM
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


Title: Re: sx sign-input Javascript equivalent
Post by: antonimasso on August 24, 2014, 08:21:12 PM
I managed to do it using bitcoinjs-lib.


Title: Re: sx sign-input Javascript equivalent
Post by: genjix on August 26, 2014, 12:02:36 AM
great stuff, darkwallet uses that too. you can check its source to compare with your code.