void WalletSerializerV1::loadKeys(Common::IInputStream& source, CryptoContext& cryptoContext) { try { loadPublicKey(source, cryptoContext); loadSecretKey(source, cryptoContext); } catch (const std::runtime_error&) { throw std::system_error(make_error_code(CryptoNote::error::WRONG_PASSWORD)); } }
void WalletSerializer::loadKeys(Common::IInputStream& source, CryptoContext& cryptoContext) { loadPublicKey(source, cryptoContext); loadSecretKey(source, cryptoContext); }