Bitcoin Forum
October 22, 2017, 01:28:21 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Signing offline transactions from BIP32 inputs?  (Read 920 times)
Envrin
Sr. Member
****
Offline Offline

Activity: 300


Flixxo - Watch, Share, Earn!


View Profile
September 02, 2014, 04:15:56 AM
 #1


Say I have some software that creates raw, unsigned transactions like this:

Quote
010000000123221673345457ba31af240fa9cd80286331161498311ce40a33041da9f5850701000 00000ffffffff0280df1710000000001976a914615ca8b67b06d6dad64c336bf280d08769ce6c32 88ac701b82060000000017a914e39fe814cbdcea9f6db7f9eed3850368fc446f0d8700000000

On top of that, I have my BIP32 master private key, and the key index(es) used to generate all input addresses.  Is there any open-source Github project or anything that will allow me to input this information is a specified format (ie. CSV / JSON file of raw txes, plus my BIP32 private key), and spit out the signed txes?

I looked around, but can't really find anything that's generic.  Just something that says, "install our app on your offline computer / tablet, format your raw txes like *this*, import them into our app, and it will return a file of signed transactions with *this* format".  Has to support BIP32 though, so I can define the keyindex being used for each input.

Does anything generic like this exist in the open-source community, or am I writing it?  If I'm writing it, any feature requests, suggestions, anything?

Thanks!

X       ▄▄█████████▄▄
    ▄██▀▀         ▀▀██▄
  ▄██▀              ▀██▄
 ▄██     ██▄▄          ██▄
▄██      █████▄▄        ██▄
██       ████████▄▄      ██
██       ███████████▄    ██
██       ██████████▀     ██
▀██      ███████▀       ██▀
 ▀██     ████▀         ██▀
  ▀██▄   █▀          ▄██▀
    ▀██▄▄         ▄▄██▀
       ▀▀█████████▀▀
.flixxo    X▄████████████████████▄
██████████████████████
██████████████████████
████████████▀▀███████
█████▀████░░░░░░▄████
█████░░░░░░░░░░▄█████
█████▄░░░░░░░░░░██████
██████░░░░░░░░░███████
███████░░░░░░▄████████
████▄▄░░░░▄▄██████████
██████████████████████
██████████████████████
▀████████████████████▀
▄████████████████████▄
██████████████████████
█████████▀█▀██████████
██████▀▀▀▀▀████████
██████▄▄░░▄▄▄░░███████
████████░░███░░███████
████████░░░░░░▀███████
████████░░███▄░░██████
██████▀▀░░▀▀▀░░░██████
██████▄▄▄▄▄▄███████
█████████▄█▄██████████
██████████████████████
▀████████████████████▀
X[[]]X
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508635701
Hero Member
*
Offline Offline

Posts: 1508635701

View Profile Personal Message (Offline)

Ignore
1508635701
Reply with quote  #2

1508635701
Report to moderator
1508635701
Hero Member
*
Offline Offline

Posts: 1508635701

View Profile Personal Message (Offline)

Ignore
1508635701
Reply with quote  #2

1508635701
Report to moderator
1508635701
Hero Member
*
Offline Offline

Posts: 1508635701

View Profile Personal Message (Offline)

Ignore
1508635701
Reply with quote  #2

1508635701
Report to moderator
keeshux
Newbie
*
Offline Offline

Activity: 26


View Profile WWW
September 02, 2014, 10:07:14 AM
 #2

If you already know how to sign the transaction given your input keys, you only need a library that can do BIP32 derivation from the master private key. Several exist, what's your programming language preference?

JavaScript: bitcoinjs, bip32.org
Java: bitcoinj
Objective-C: WaSPV, CoreBitcoin

16w2AWamiH2SS68NYSMDcrbh5MnZ1c5eju
stevenh512
Full Member
***
Offline Offline

Activity: 137



View Profile
September 02, 2014, 12:56:47 PM
 #3

Ruby: money-tree

This signature intentionally left blank.
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!