Last active
July 29, 2017 12:01
-
-
Save amidvidy/5b12746c0ee34d11c4bb31a6dd6ef59b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case OperationMode::CreateWallet: { | |
KeyManager wallet(m_walletPath, m_secretsPath); | |
if (m_masterPassword.empty()) | |
m_masterPassword = createPassword( | |
"Please enter a MASTER passphrase to protect your key store (make it " | |
"strong!): "); | |
try { | |
wallet.create(m_masterPassword); | |
} catch (Exception const& _e) { | |
cerr << "unable to create wallet" << endl << boost::diagnostic_information(_e); | |
} | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment