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. For more options, visit https://groups.google.com/d/optout.