Bitcoin Forum
May 30, 2024, 05:34:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Signing offline transactions from BIP32 inputs?  (Read 1024 times)
Envrin (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



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!
keeshux
Newbie
*
Offline Offline

Activity: 26
Merit: 6


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
stevenh512
Full Member
***
Offline Offline

Activity: 137
Merit: 100



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

Ruby: money-tree

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