Have you tried wallet-tool? Use it like this to output all the private
keys in WIF format too:

./wallet-tool dump --wallet=your.wallet --dump-privkeys


On 09/27/2016 07:13 PM, Yvon Fortier wrote:
> Hi Andreas, thanks for the reply.
> 
> The problem is that I had the great idea of sending an onmi token to an
> address at MultibitHD.
> 
> So now, to take it out, I need access to that address' private key.
> 
> I tried exporting the deterministic extended private key (master xprv)
> modifying the source for MultibitHD, can't get it working.
> Another option would be finding the correct derivation path for MBHD,
> but I've been through all the documentation I can find, tried several
> options and wasn't able to derive addresses I see on MBHD.
> 
> I used wallet-tool.jar to get dump the wallet. It gives me the MasterKey
> in hex, which I don't know how to import.
> Full paste here:
> *
> *http://pastebin.com/3aEDSV4q*
> *
> *    network_identifier: "org.bitcoin.production"*
> **
> *key {*
> **
> *  type: DETERMINISTIC_MNEMONIC*
> **
> *  secret_bytes: "unknown liberty blind legend online wing blush eternal
> develop category ski please"*
> **
> *  creation_timestamp: 1381276800000*
> **
> *  deterministic_seed: "\310
> &b\301\337PX\263\335\337\262@\204\021\333\366Z\315\033\3014jl\001Ub\030\312\357\271\353\267i\211\026\031\331\366\vA\255\025\321\033e\370(\352aa\f<\315\240!R7\252M\227:\372a"*
> **
> *}*
> **
> *key {*
> **
> *  type: DETERMINISTIC_KEY*
> **
> *  secret_bytes: "\267\344\v\335i\364d\360\'\267\265\361P\2121
> <\005\342\245\346F\272\302+\315\037o\240\244\2732"*
> **
> *  public_key:
> "\002\234Q\245\251-\2164~\202\2752a\v}\250k=\375\334\345H\244\230YY\365\'\024\317N\262\352"*
> **
> *  creation_timestamp: 1381276800000*
> **
> *  deterministic_key {*
> **
> *    chain_code:
> "\025\303\361ms\334[\340\004\236\350%\265\361\021;\240\337T4M\316mcc`\254pT\260t."*
> **
> *  }*
> *}
> 
> *I could try using those secret bytes to import into NBitcoin, which I
> know how to use, but I can't convert them to hex.
> 
> Thanks for any help.
> **
> On 09/27/2016 04:12 PM, Andreas Schildbach wrote:
>> Afaik MultiBit HD is using a modified version of bitcoinj, so maybe you
>> should ask there too.
>>
>> The topic of watching wallets is covered in the docs:
>>
>> https://bitcoinj.github.io/working-with-the-wallet#watching-wallets
>>
>> Most important, in order to monitor you don't need any private key. Just
>> use the public master key ("xpub") like explained in the link.
>>
>>
>> On 09/26/2016 02:05 PM, Yvon Fortier wrote:
>>> Hi people.
>>> I'm trying to dump the master private key from MultibitHD to monitor
>>> from other wallet, but I can't get it right.
>>> What I do is restore a wallet and then try to get the private key from
>>> the Wallet object:
>>>
>>> Code:
>>>
>>> *NetworkParameters PARAMS = MainNetParams.get();****DeterministicKeyChain 
>>> kc = wallet.getActiveKeychain();****DeterministicKey rk = 
>>> kc.getRootKey();****String key = rk.getPrivateKeyAsWiF(PARAMS);*
>>>
>>>
>>> I'm getting an exception saying *java.lang.IllegalStateException:
>>> Private key bytes not available *
>>>
>>> Any help would be greatly appreciated.
>>>
>>> Alternatively, if someone knows how to properly derive the master key
>>> from the seed using a third party tool, that'd help!
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "bitcoinj" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected]
>>> <mailto:[email protected]>.
>>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "bitcoinj" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to