I've tried with 0.14.7 version and also with the master branch on GitHub both yeilded the same result that is described above.
בתאריך יום ב׳, 1 באוק׳ 2018, 23:46, מאת Andreas Schildbach < andr...@schildbach.de>: > As always, what branch or commit of bitcoinj is this on? > > It's probably a bug. I suspect married wallets haven't been tested much. > > > On 2018-09-25 13:30, Matan Navon wrote: > > I have a problem encrypting a married wallet. > > Im trying to encrypt a married wallet that i generated, after the > > encryption is completed im getting non p2sh addresses. > > > > > > private static void createEncryptedMarriedWallet() { > > Wallet mainWallet = new Wallet(params); > > Wallet followingWallet1 = new Wallet(params); > > Wallet followingWallet2 = new Wallet(params); > > > > MarriedKeyChain marriedKeyChain = MarriedKeyChain.builder(). > > seed(mainWallet.getKeyChainSeed()). > > > > followingKeys(followingWallet1.getWatchingKey().dropParent().dropPrivateBytes(),followingWallet2.getWatchingKey().dropParent().dropPrivateBytes()). > > threshold(2).build(); > > > > Wallet marriedWallet = new Wallet(params); > > marriedWallet.addAndActivateHDChain(marriedKeyChain); > > Address currentAddress1 = marriedWallet.currentReceiveAddress(); > > System.out.println(marriedWallet); > > marriedWallet.encrypt("1234"); > > Address currentAddress2 = mainWallet.currentReceiveAddress(); > > } > > > > > > > > After examining the marriedWallet object i can see that before > > encryption it has two keychains one DeterministicKeyChain and one > > MarriedKeyChain and after encryption it has two DeterminiscticKeyChain > > which are both encrypted. > > how can i generate an encrypted wallet with married keychain? > > > > -- > > 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 bitcoinj+unsubscr...@googlegroups.com > > <mailto:bitcoinj+unsubscr...@googlegroups.com>. > > 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 bitcoinj+unsubscr...@googlegroups.com. > 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 bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.