mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
9f1deb9fdc
In order to ensure that we can atomically generate_from_keys and then reload a wallet, we have to wrap the client of the monero wallet RPC inside a mutex. When introducing the Mutex I noticed that several inner RPC calls were leaking to the swap crate monero wallet. As this is a violation of boundaries I introduced the traits `GetAddress`, `WalletBlockHeight` and `Refresh`. Note that the monero wallet could potentially know its own public view key and public spend key. If we refactor the wallet to include this information upon wallet creation we can also generate addresses using `monero::Address::standard`. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |