Make all trx one-time-keys derive from account key not wallet master key #769
Comments
|
The issue is: How to recover bitUSD from the market then? |
I can easily reproduce this issue simply by
How can I recover the funds in the main wallet? |
|
'wallet_regenerate_keys' also doesn't work with the above described scenario :( |
Actually see this post: https://bitsharestalk.org/index.php?topic=8935.msg119781#msg119781 I overlooked that market transactions are not TITAN and cannot be regenerated using the account private key alone. Keys generated for market transactions are derived from your account address and your wallet master private key. To successfully regenerate the keys for market transactions, you need to have a version of the same wallet that the transactions were originally created with. |
oh .. That changes alot for my work-flow .. Is there no way to use the account private key? |
My understanding of this ticket is as follows: Claiming the funds from a successfully executed market order requires the master private key of the wallet used to create the order. I'd suggest fixing this as follows: When executed, market orders should send their proceeds to the same key used to fund the market order, instead of the master private key. That way whoever controls the account or address used to fund the order. Before implementing my suggestion, we should consider: What was the reason for using the wallet master private key instead of the account key in the first place? |
The problem leftover in the originally linked thread is that kisa still cannot recover his/her funds using the same wallet. I am handling this separately as part of the greater #712 issue. The new focus of this issue is that we want to deterministically derive any new keys from the relevant account's active key. I've already made this change and will close this issue when the update gets merged into develop. |
It's not that the market orders are deposited to the master private key (the market engine doesn't know what that key is); it's that if you lose the private key to claim a market order, you need the master private key to regenerate it. The solution here is to make the market order keys derive solely from the active key, so given the active key, I can recover all market orders I made with it. |
I cannot completely follow your talk as I am not familiar with the code or the market transactions, but your proposals would still keep market participants private/anonymous, wouldn't it? I'd just like to ensure that market transactions cannot be linked to account names .. |
Yes, of course. Market transactions would lose no anonymity as a result of |
I had a very long support thread over at bitsharestalk.org and couldn't fix this ..
sth. wrong when recovering transactions from the market:
full thread:
https://bitsharestalk.org/index.php?topic=8371.0
errors:
The text was updated successfully, but these errors were encountered: