If there is a suspicion that private keys were compromised, you need to lock the user account and recreate the account with new keys.
Before you refresh the user key, you need the user to re-register with the same user name and share the new public key with you.
The user can re-register with either the UI or API.
For more information, see:
- Ripple Custody API > Generate a key pair and share the public key
- Ripple Custody UI > Create a profile
These steps describe how to refresh a user key with the API.
To refresh a user key:
- Make a note of the login provider information in
LoginIds. For more information about how to retrieve the user information, see View user details. - Create an intent of type
v0_UpdateUserto set theLoginIdsto null.
For more information, see Propose an intent to update an entity. - Create an intent of type
v0_LockUserto lock the user. For more information, see Propose an intent to lock or unlock an entity. - Create a user with:
- The same user name, roles, and
LoginIds - The newly-generated public key
For more information, see Create a user.
- The same user name, roles, and