Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/ui/identities/keys/key_info_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,21 @@ impl ScreenLike for KeyInfoScreen {
.num_columns(2)
.spacing([10.0, 10.0])
.show(ui, |ui| {
if let Ok(secret_key) = SecretKey::from_slice(clear) {
let private_key =
PrivateKey::new(secret_key, self.app_context.network);
ui.label(
RichText::new("Private Key (WIF):")
.strong()
.color(ui.visuals().text_color()),
);
ui.label(
RichText::new(private_key.to_wif())
.color(ui.visuals().text_color()),
);
ui.end_row();
}

ui.label(
RichText::new("Private Key (Hex):")
.strong()
Expand Down
24 changes: 12 additions & 12 deletions src/ui/identities/withdraw_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,20 @@ impl WithdrawalScreen {
});

// In dev mode with OWNER key, show hint about auto-selected payout address
if self.app_context.is_developer_mode() && is_owner_key {
if let Some(payout_address) = self
if self.app_context.is_developer_mode()
&& is_owner_key
&& let Some(payout_address) = self
.identity
.masternode_payout_address(self.app_context.network)
{
ui.label(
RichText::new(format!(
"Leave empty to use masternode payout address: {}",
payout_address
))
.italics()
.color(Color32::GRAY),
);
}
{
ui.label(
RichText::new(format!(
"Leave empty to use masternode payout address: {}",
payout_address
))
.italics()
.color(Color32::GRAY),
);
}
} else {
ui.label(format!(
Expand Down
Loading