minor ui changes to master private key import
What changed, and why it matters
This commit makes two small user-interface tweaks to the screen where a user imports a master private key: it changes a title to say 'Enter master private key', makes the Import button the default button that activates when the user presses Enter, and adds a period to a description sentence. There is no security-relevant code change.
No security action needed; this is a routine UI polish change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff only touches UI strings and button behavior in the master private key import flow. XprvKeystoreImportPane.java renames the pane title and sets importXprvButton.setDefaultButton(true). Bip32.java adds a trailing period to the import description string. No cryptographic, validation, parsing, or secret-handling logic is modified.
Changed components
src/main/java/com/sparrowwallet/sparrow/control/XprvKeystoreImportPane.javasrc/main/java/com/sparrowwallet/sparrow/io/Bip32.javaInspect captured patch +3 / −2
diff --git a/src/main/java/com/sparrowwallet/sparrow/control/XprvKeystoreImportPane.java b/src/main/java/com/sparrowwallet/sparrow/control/XprvKeystoreImportPane.java
index 0a6d2a6..e7c15ba 100644
--- a/src/main/java/com/sparrowwallet/sparrow/control/XprvKeystoreImportPane.java
+++ b/src/main/java/com/sparrowwallet/sparrow/control/XprvKeystoreImportPane.java
@@ -36,7 +36,7 @@ public class XprvKeystoreImportPane extends TitledDescriptionPane {
private ExtendedKey xprv;
public XprvKeystoreImportPane(Wallet wallet, KeystoreXprvImport importer, KeyDerivation defaultDerivation) {
- super(importer.getName(), "Extended key import", importer.getKeystoreImportDescription(), importer.getWalletModel());
+ super(importer.getName(), "Enter master private key", importer.getKeystoreImportDescription(), importer.getWalletModel());
this.wallet = wallet;
this.importer = importer;
this.defaultDerivation = defaultDerivation;
@@ -151,6 +151,7 @@ public class XprvKeystoreImportPane extends TitledDescriptionPane {
Button importXprvButton = new Button("Import");
importXprvButton.setMinWidth(80);
importXprvButton.setDisable(true);
+ importXprvButton.setDefaultButton(true);
importXprvButton.setOnAction(event -> {
enterXprvButton.setVisible(false);
importButton.setVisible(true);
diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Bip32.java b/src/main/java/com/sparrowwallet/sparrow/io/Bip32.java
index 3d9197d..f144c50 100644
--- a/src/main/java/com/sparrowwallet/sparrow/io/Bip32.java
+++ b/src/main/java/com/sparrowwallet/sparrow/io/Bip32.java
@@ -21,7 +21,7 @@ public class Bip32 implements KeystoreXprvImport {
@Override
public String getKeystoreImportDescription() {
- return "Import an extended master private key (BIP 32 xprv)";
+ return "Import an extended master private key (BIP 32 xprv).";
}
@Override
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.