Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreate account issues with keys #395

Closed
PiVortex opened this issue Aug 16, 2024 · 1 comment · Fixed by #396
Closed

Recreate account issues with keys #395

PiVortex opened this issue Aug 16, 2024 · 1 comment · Fixed by #396
Assignees

Comments

@PiVortex
Copy link

Problem
A common use of the CLI could be to delete an account and create an account with the same accountId. If the file that stores your keys is not deleted then the new full access key will not be added to the file and you won't be able to access the account once created again.

To reproduce

  • I create an account and store my keys in legacy keychain
  • I delete the account
  • I create an account with the same name as before and store my keys in legacy keychain
  • I try to perform a transaction using my account but I don't have the keys to do so

It may not be suitable to just delete the file with the old keys if one were to delete the account another way.

@FroVolod FroVolod self-assigned this Aug 17, 2024
@FroVolod
Copy link
Collaborator

If the file that stores your keys is not deleted then the new full access key will not be added to the file and you won't be able to access the account once created again.

This is not so.
The key file will not be overwritten, but the key will be added to a directory called "your_account_id".
Right now you can find that key in that directory and sign the transaction.
I will solve this problem soon.
Thank you for your inquiry.

@frol frol closed this as completed in #396 Aug 20, 2024
@frol frol closed this as completed in 17bef89 Aug 20, 2024
FroVolod added a commit that referenced this issue Aug 23, 2024
…der (<credentials-dir>/<network>/<account-id>/*.json) in legacy keychain and then fallback to <credentials-dir>/<network>/<account-id>.json instead of the other way around (#396)

Resolves #395
FroVolod added a commit that referenced this issue Aug 23, 2024
…der (<credentials-dir>/<network>/<account-id>/*.json) in legacy keychain and then fallback to <credentials-dir>/<network>/<account-id>.json instead of the other way around (#396)

Resolves #395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants