Skip to content

Instantly share code, notes, and snippets.

@amidvidy
Last active July 29, 2017 12:01
Show Gist options
  • Save amidvidy/5b12746c0ee34d11c4bb31a6dd6ef59b to your computer and use it in GitHub Desktop.
Save amidvidy/5b12746c0ee34d11c4bb31a6dd6ef59b to your computer and use it in GitHub Desktop.
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