29

I have an old Ethereum wallet keystore file that I created in 2017.

I can see that the address contains a tiny amount of eth, such a small amount that I'm wondering if it's worth my time, however I'm trying to recover it nonetheless, even if it's just as a programming exercise.

I found a post describing how to recover it if you know the password, however it uses node synchronous code, and I'm trying to convert it into asynchronous code, however I've run into some programming difficulties and I wanted to ask on Stack Overflow why my asynchronous code doesn't work properly.

Basically, I don't understand why the stack is processing all output before actually attempting each crack attempt, and I was going to paste some example code to illustrate what I misunderstand.

I've read several documents and YouTube videos about promises and event-driven programming, but I still don't seem to get it.

I've seen meta posts that ask about cracking files for forgotten passwords for Microsoft software saying that it's generally okay, but I'm unsure if this applies in my case.

It's a programming question, not a security question, so I figure that I shouldn't ask on Security.SE.

Is it ok to ask this question on Stack Overflow?

4
  • 2
    i have since found meta.stackoverflow.com/questions/256139/… and since i believe i'm not doing anything unethical, i figure it's ok, but would be good to get some feedback
    – loud_flash
    Commented Jan 5, 2022 at 16:35
  • 1
    Related, maybe even a possible duplicate: Should questions about programming viruses and malware be allowed?
    – Tom
    Commented Jan 5, 2022 at 16:57
  • 1
    Note: you asked two questions. You shouldn't do that as you start to ask too much of the answerers. Focus on your actual question, perhaps the other one isn't even relevant anymore when you learn where the goof is.
    – Gimby
    Commented Jan 7, 2022 at 14:10
  • 1
    If your issue is with converting synchronous to asynchronous code, then you can and should remove as many other details as possible from the code (construct a minimal, but complete, example, so it's easier to answer and more useful to others). This might even mean removing any mention of Ethereum or cracking passwords (neither of those things have anything to do with asynchronosity, but whether it's possible to have a question asking about your issue that makes sense without that is something you'll need to figure out). Commented Jan 7, 2022 at 22:03

1 Answer 1

50

The key here is the focus of your post

  • Asking how to access Ethereum accounts (i.e. "How do I get my account back?") is off-topic
  • Asking how to break into someone else's account is off-topic
  • Asking how to use NodeJS to access data in a local keystore file is on-topic
6
  • 2
    def using nodejs to access data in a local keystore file, so i figure i'm on topic; i'll accept this answer and ask my question vsoon
    – loud_flash
    Commented Jan 5, 2022 at 16:55
  • 5
    @loud_flash - You will likely want to provide both the synchronous code if you can (if you can reduce it to a minimal example), then provide the asynchronous code (again minimal example) that isn't working, just remember SO isn't a code writing service. Commented Jan 5, 2022 at 23:34
  • 13
    @loud_flash: I predict that this is actually a complete non-issue, because by the time you are finished creating a [mre], it is highly likely that anything related to cracking and Ethereum will be gone, since it is not actually relevant at all to the problem of asynchronous vs. synchronous programming. I also have a suspicion that, by the time you have created a MRE, your question will be a duplicate of a question that has already been answered. Commented Jan 6, 2022 at 8:55
  • 4
    well, i posted it, but it got buried with no answers or comments, probably because i didn't compact it enough: stackoverflow.com/questions/70596875/…
    – loud_flash
    Commented Jan 6, 2022 at 12:20
  • 6
    @loud_flash - So edit the question and improve it. Commented Jan 6, 2022 at 20:25
  • 3
    @loud_flash yes your question as written is more of a forum-question than a stackoverflow-question. A key skill to learn when posting SO questions is distilling your problem down to something specific, and removing irrelevant detail (which is also a great skill to have in general, often resulting in solving your own question). Try running some experiments with parts of your script, checking the outputs to see if they match what you expect, try running the synchronous code you found to see if it works before you convert it all, and convert it gradually to see when it stops working, etc.
    – Dave
    Commented Jan 7, 2022 at 16:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .