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?