dcrstakepool icon indicating copy to clipboard operation
dcrstakepool copied to clipboard

investigate methods to backup the redeem script

Open jolan opened this issue 8 years ago • 9 comments

If both a stake pool and a user lose the script, there really isn't a good way to reconstruct it at the moment.

This should at least be documented until a solution is implemented.

jolan avatar Dec 22 '17 21:12 jolan

I looked into this a bit. In the end you need the user's pubkey, that we don't store. So any attempt to recreate the script would require that information. If the user can provide that key, and the multisig address they gave voting rights too, which is the redeem script's public address, we can find the address we used to make the original redeem script by looping through our known addresses creating multisigs until we find a match. This is doable for address that have already voted, but for an address that hasn't voted even once yet we would need to probe unused addresses to some index number while searching. I'm sorry to butcher terms.

Edit: Actually I looks like we do save the pubkey address in the db. As long as the db data is intact we could produce the script. But we save the script too, so loosing one would probably mean we lost the other.

JoeGruffins avatar Jul 05 '19 09:07 JoeGruffins

I believe to fundamentally fix the problem something like https://github.com/decred/dcrwallet/issues/1217 is needed.

xaur avatar Aug 08 '19 00:08 xaur

I agree @xaur and that's where I will be spending my time.... When I have some.

JoeGruffins avatar Aug 08 '19 00:08 JoeGruffins

@JoeGruffins time is tricky indeed, but when you realize you want it, the allocation happens.

xaur avatar Aug 08 '19 12:08 xaur

I currently have an expired ticket where the vsp dropped out and I did not backup my redeem script.(yes stupid I know) My wallet shows the expired ticket, but I do not have access to the DCR used to purchase it. Is there a way for me to retrieve my lost DCR without have the redeem script? Any help would be appreciated

cball321 avatar Nov 28 '19 20:11 cball321

@cball321 please join support on matrix: https://matrix.to/#/!dhHYPTtCtvPSUfTepT:decred.org?via=decred.org&via=matrix.org&via=zettaport.com Let me know if that link doesn't work.

JoeGruffins avatar Nov 29 '19 04:11 JoeGruffins

@cball321 out of curiosity what was the VSP?

xaur avatar Nov 29 '19 20:11 xaur

Sorry, I do not remember. I didn't keep the records I should have.

cball321 avatar Nov 29 '19 21:11 cball321

I did get this resolved with the help of DCR support.

cball321 avatar Nov 29 '19 21:11 cball321