-
br-m
<hbs:matrix.org> Has anyone experience monero-wallet-rpc deleting the key file unexpectedly?
-
br-m
<ofrnxmr> Nope
-
br-m
<hbs:matrix.org> @ofrnxmr: I have a MoneroSwap maker running in the background, it periodically opens or create the root wallet via JSON-RPC calls to monero-wallet-rpc and from time to time the .keys file is removed. monero-wallet-rpc is accessed by a single thread, so concurrency issues are ruled out.
-
br-m
<ofrnxmr> Basicswap creates new wallets for each swap jsing generate from keys, and runs open_wallet to switch between them - never had a wallet go missing
-
br-m
<ofrnxmr> 1-2 new wallets per successful swap*, the shared view wallet and, if receiving xmr, the spend version of that wallet
-
br-m
<hbs:matrix.org> @ofrnxmr: That's pretty much what MS is doing, as I am running the bot on a laptop which occasionally goes to sleep, I am starting to wonder if it may be linked to that
-
br-m
<ofrnxmr> Once the wallet is creates the keys file already exists, but the cache isng saved until you manually save vja store, open_wallet etc. Is the wallet fully gone? Or corrupted?
-
br-m
<hbs:matrix.org> Just the .keys file which disappears, the other file remains.
-
br-m
<rbrunner7> Sounds very strange, I think I cannot remember having lost a .keys file even once. Also did quite some things over RPC.
-
br-m
<rbrunner7> Do we even have any code that deletes .keys files, anywhere in the codebase? With no RPC command to delete a wallet as far as I can remember, with no CLI wallet command to to so.
-
moneromooo
Well, if you do something dumb like having a wallet called foo.keys.keys and one called foo.keys...
-
moneromooo
I think there's some code to delete/rename for atomic saving when changing settings.
-
moneromooo
But if it's gone, the rename file ought to be there still.
-
moneromooo
I suppose it's texhnically possible if the process is killed at just the right time. Check for a file named almost the same (with a suffix or something).
-
br-m
<kayabanerve:matrix.org> I already wrote a document about integrating FROSTLASS into wallet2
-
br-m
<kayabanerve:matrix.org> This is the PedPoP DKG associated with FROST, but any biased DKG suffices. Serai uses a one-round DKG. > <@jpk68:matrix.org> It always has two DKG rounds as well
-
br-m
<kayabanerve:matrix.org> The MuSig-esque impl in wallet2 uses the same technique. Whether or not it corresponds to a formally proven protocol is another question. > <@jpk68:matrix.org> It's also natively designed for signer-subset flexibility, and forgery-attack mitigation is proven to be secure in FROST due to it having blinding factors
-
br-m
<kayabanerve:matrix.org> If wallet2 is to include multisig, it should be via the Rust libs moving forward IMO.
-
br-m
<kayabanerve:matrix.org> I cannot load this hidden paste :/ > <@jpk68:matrix.org> Some notes I took regarding multisig (may not be 100% accurate):
-
br-m
<hbs:matrix.org> moneromooo: Nope, wallet name is quite unique
-
br-m
<hbs:matrix.org> @hbs:matrix.org: As the bot is structured, there may be extended periods of times when the bot will query a single wallet, this is done in a loop and relies on open_wallet being called at each iteration. Could it be an issue due to the fact that open_wallet is called on a wallet when that wallet is already open by monero-wallet-rpc?
-
br-m
<hbs:matrix.org> @hbs:matrix.org: Hmmmm I think I understood. The bot stores its files in a directory under /tmp, as the .keys file is not modified nor accessed when the same wallet is being open, its ctime therefore doesn't change and after some time the file is eligible for purge and is deleted by the OS.
-
br-m
<rbrunner7> Oh, wow, that's quite of dumb, isn't it :)
-
br-m
<hbs:matrix.org> @rbrunner7: Dumb AF yes...
-
br-m
<jpk68:matrix.org> Maybe related? > <@hbs:matrix.org> Has anyone experience monero-wallet-rpc deleting the key file unexpectedly?
-
br-m
-
br-m
<jpk68:matrix.org> Oh, awesome. Is there anywhere this can be viewed? :) > <@kayabanerve:matrix.org> I already wrote a document about integrating FROSTLASS into wallet2
-
br-m
-
br-m
<ofrnxmr> @hbs:matrix.org: Shouldnt be
-
br-m
<ofrnxmr> Basicswap used to spam open_wallet for everything
-
br-m
<kayabanerve:matrix.org> @jpk68:matrix.org: > Could not get document data: Document does not exist, has expired or has been deleted.
-
br-m
<jpk68:matrix.org> Sorry, looks like it expired after an hour
-
br-m
<jpk68:matrix.org> Does this one work?
-
br-m
-
br-m
<jpk68:matrix.org> I can guarantee the most recent link I sent is still valid; sometimes it will just reject your client/IP address
-
br-m
<hbs:matrix.org> @ofrnxmr: solved the issue, turns out the file cleaner was removing the .keys file after a few days because open wallet doesn't touch it when the same wallet is already open....
-
moneromooo
I believe a running wallet keeps an advisory lock on the keys file though. Not nice of the cleaner process.
-
br-m
-
br-m
<jpk68:matrix.org> Thank you :)
-
br-m
<kayabanerve:matrix.org> I again can't load your paste and will give up on it. Feel free to DM a copy directly
-
br-m
<jpk68:matrix.org> I'll just paste it here:
-
br-m
<jpk68:matrix.org> The UX benefits include the following:
-
br-m
<jpk68:matrix.org> * FROST always has 2 DKG rounds, compared to the existing scheme's N-M+2 (which is worse for low thresholds)[... more lines follow, see
mrelay.p2pool.observer/e/27zjhKsLYVFmOXdS ]
-
br-m
<jpk68:matrix.org> As stated earlier, some of the points might be wrong or not entirely accurate (I'm pretty bad at math)
-
br-m
<kayabanerve:matrix.org> FROST doesn't scale logarithmically. It has quadratic total communication, linear verifier in the local view, and a constant prover in the local view.