| 337 | } |
| 338 | |
| 339 | std::string WalletHDBase::export_viewonly_wallet_string( |
| 340 | const std::string &new_password, bool view_outgoing_addresses) const { |
| 341 | WalletStringFormat ws; |
| 342 | ws.address_type = AccountAddressAmethyst::type_tag; |
| 343 | ws.view_outgoing_addresses = view_outgoing_addresses && get_view_seed() != Hash{}; |
| 344 | ws.view_seed = get_view_seed(); |
| 345 | ws.view_secret_key = get_view_secret_key(); |
| 346 | ws.audit_secret_key = m_audit_key_base.secret_key; |
| 347 | ws.sH = m_sH; |
| 348 | ws.view_secrets_signature = m_view_secrets_signature; |
| 349 | |
| 350 | ws.address_count = m_used_address_count; |
| 351 | return base58::encode_addr(parameters::VIEWONLYWALLET_BASE58_PREFIX, seria::to_binary(ws)); |
| 352 | } |
| 353 | |
| 354 | WalletHDJson::WalletHDJson(const Currency ¤cy, logging::ILogger &log, const std::string &json_data) |
| 355 | : WalletHDBase(currency, log) { |
nothing calls this directly
no test coverage detected