4

I'm looking to make a JavaScript brain wallet generator for Monero. Is there a JavaScript library to create Monero addresses?

1 Answer 1

7

There is Javascript code to generate Monero addresses from an arbitrary string, yes. See https://github.com/moneromooo-monero/monero-wallet-generator/tree/master. This page contains code originally from MyMonero (https://mymonero.com/).

The general idea is to hash the string (preferably using a KDF), and use the resulting hash as the spend key. The view key is obtained from the spend key.

3
  • Is there a sample code somewhere? Jul 12, 2017 at 13:56
  • Yes, I included a link in the post you're replying to. The repo contains a single HTML page, which has the code you're looking for.the genwallet function, from which you can look at what it calls (which is also in that same file).
    – user36303
    Jul 12, 2017 at 17:47
  • I found the line: github.com/moneromooo-monero/monero-wallet-generator/blob/… --- but is there an example code of how to use it? Aug 16, 2017 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.