From 33e043fd9afad385c7e5a2ae4eaed4393cffd1dc Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 24 Jun 2025 10:52:52 +0200 Subject: [PATCH] include child derivations in output descriptor for bip 129 wallet export --- src/main/java/com/sparrowwallet/sparrow/io/Bip129.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Bip129.java b/src/main/java/com/sparrowwallet/sparrow/io/Bip129.java index ce35e654..4e20427b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Bip129.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Bip129.java @@ -192,7 +192,7 @@ public class Bip129 implements KeystoreFileExport, KeystoreFileImport, WalletExp public void exportWallet(Wallet wallet, OutputStream outputStream, String password) throws ExportException { try { String record = "BSMS 1.0\n" + - OutputDescriptor.getOutputDescriptor(wallet) + + OutputDescriptor.getOutputDescriptor(wallet, KeyPurpose.DEFAULT_PURPOSES, null) + "\n/0/*,/1/*\n" + wallet.getNode(KeyPurpose.RECEIVE).getChildren().iterator().next().getAddress(); outputStream.write(record.getBytes(StandardCharsets.UTF_8));