For your first question, it appears you have overwritten the private key to your address. I am afraid your funds are now lost. I would like someone else to chime in, but unless you are able to search the disk using a special tool to help find the overwritten file on disk (longshot btw), I don’t see any other solution. Hopefully someone smarter than myself might know of a solution.
Regarding the params.json missing, you will need to first generate the file:
I was afraid of such, It wasn’t a massive amount but it was some. I thought there may be a way the stake pool had its own keys and it was somehow linked to that.
I didn’t think i missed a step so I had no idea, Will try it out.
please do the following after you’re created new keys. run the following command: chmod 400 xxx.skey xxx.vkey
to protect your keys for beeing overwritten by accident!
We are uncertain if we overwrote the the corresponding stake.vkey and stake.skey as we were retracing our steps to reconfigure the node but it is worth trying your idea.
Is there a resource for the process to pledging your pool?
not yet, still working through it
i feel the actual keys i recovered, weren’t actually the correct ones as generating a payment.addr from them, was different to the address i transfer funds too
luckily it was only 1K. But ive taken it as a good learning experience …also as a warning to be vigilant with “deleting” keys from hot servers, as file recovery works quite well
Soo far my advice would be stop using that machine immediately (the more you use it, the more the risk of overwriting the desired file permanently)
Best option is to pull the HDD and connect it to a PC via HDD to USB cable… or you can leave it in the original PC just at a higher risk
Install photorec -> sudo apt-get install testdisk
run photorec -> sudo photorec
Run through the prompts. make sure when you select your save destination, it is a completely different HDD or else you risk overwriting the data permanently. To save time, you probably can also only choose to save only txt files. As this is what the program picks the key files up as, it could be different on other peoples computers soo you also can search for all default file types if you want to be thorough
This could take from hrs to days, depending on hardware and amount of data
Now you have a large amount of folders containing txt files with HOPEFULLY has your data
Now you want to search through the file contents for parameters, i used a windows PC to do this with the HDD connect via USB. I downloaded a program called “UltraFileSearch” https://www.ultrafilesearch.com/download.html which is free for 30days and has great search results
I used the search terms “cborHex” that gave me the best results
let it run and pray
This also can take hrs to days depending on hardware and data
At the end it’l’ hopefully give you enough keys so that you can create any that were missing