1

I'm building a tool that uses ripple-lib on the client side and ripple-rest on the server side. For some features, I need the administrator to provide the account secret.

I could prompt the user for both the account ID and the secret. Instead, I want to prompt for only the secret and calculate the account ID automatically. That way, I'll always have a valid matching ID and secret.

I'm certain this can be done, as the client at https://ripple.com/client/#/register allows you to enter the secret and it does exactly what I'm talking about.

I can't find any documentation as to how it does this. Does ripple-lib provide an API for calculating the account ID, given the secret?

closed as off-topic by Andrew Chow Jul 17 at 21:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about cryptocurrencies or projects that are not Bitcoin, and are not applicable to Bitcoin, are off-topic. For more information, see this meta-discussion." – Andrew Chow
If this question can be reworded to fit the rules in the help center, please edit the question.

  • See my answer to a different question. It describes and links to the process of turning a secret into a key and a Ripple address. Make sure that Ripple secrets are not being sent over non-secure links or to third party servers (e.g. you shouldn't distribute your ripple-lib based tool and expect people to point it to a ripple-rest server you run). – dchapes May 29 '14 at 16:33
  • Thanks for links (although currently, they're all greek to me). I get that about the secrets. My finished product may generate new accounts to avoid the passing of any secrets. For my prototype, I'm simply prompting for both public id and secret. – Dave Cohen May 30 '14 at 18:09

Browse other questions tagged or ask your own question.