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

Do not overwrite existing keys when generating new ones. #1709

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

fnando
Copy link
Member

@fnando fnando commented Nov 6, 2024

What

stellar keys generate will no longer overwrite an identity if it already exists, unless --overwrite is specified.

Supersedes #1513. Close #1380.

It differs from #1513 in the sense that it doesn't make any additional checks other than requiring the identity to not exist.

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion inline, approved regardless and defer to you on it.

cmd/soroban-cli/src/commands/keys/generate.rs Outdated Show resolved Hide resolved
@fnando fnando enabled auto-merge (squash) November 6, 2024 23:44
@fnando fnando merged commit eb4c0de into main Nov 7, 2024
28 of 30 checks passed
@fnando fnando deleted the check-before-overwriting-existing-keys branch November 7, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

keys generate: don't overwrite existing account
2 participants