diff --git a/internal/ui/ui.go b/internal/ui/ui.go index 4d97410..d59f946 100644 --- a/internal/ui/ui.go +++ b/internal/ui/ui.go @@ -27,7 +27,7 @@ func Banner() string { b := "\n" b += fmt.Sprintf("%s%s %s\n", AnsiCodes["invertOn"], AnsiCodes["bold"], AnsiCodes["reset"]) b += fmt.Sprintf("%s%s io.finnet Key Recovery Tool %s\n", AnsiCodes["invertOn"], AnsiCodes["bold"], AnsiCodes["reset"]) - b += fmt.Sprintf("%s%s v5.0.0 %s\n", AnsiCodes["invertOn"], AnsiCodes["bold"], AnsiCodes["reset"]) + b += fmt.Sprintf("%s%s v5.0.1 %s\n", AnsiCodes["invertOn"], AnsiCodes["bold"], AnsiCodes["reset"]) b += fmt.Sprintf("%s%s %s\n", AnsiCodes["invertOn"], AnsiCodes["bold"], AnsiCodes["reset"]) b += "\n" return b diff --git a/main.go b/main.go index a3a4a69..5097856 100644 --- a/main.go +++ b/main.go @@ -142,9 +142,13 @@ func main() { fmt.Printf("Recovered mainnet WIF (for BTC/Electrum Wallet): %s%s%s\n", ui.AnsiCodes["bold"], wif.ToBitcoinWIF(ecSK, false, true), ui.AnsiCodes["reset"]) - fmt.Printf("\nHere is your private key for EDDSA based assets. Keep safe and do not share.\n") - fmt.Printf("Recovered EdDSA/Ed25519 private key (for XRPL, SOL, TAO, etc): %s%s%s\n", - ui.AnsiCodes["bold"], hex.EncodeToString(edSK), ui.AnsiCodes["reset"]) + if edSK != nil { + fmt.Printf("\nHere is your private key for EDDSA based assets. Keep safe and do not share.\n") + fmt.Printf("Recovered EdDSA/Ed25519 private key (for XRPL, SOL, TAO, etc): %s%s%s\n", + ui.AnsiCodes["bold"], hex.EncodeToString(edSK), ui.AnsiCodes["reset"]) + } else { + fmt.Println("\nNo EdDSA/Ed25519 private key found for this older vault.") + } fmt.Printf("\nNote: Some wallet apps may require you to prefix hex strings with 0x to load the key.\n") }