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

Remove --seed flag from account sign command #3382

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

Meshiest
Copy link
Contributor

Motivation

The --seed flag in the leo account sign command is insecure as nonces in signatures are not intended to be seeded, reused, or shared. This PR removes that functionality to prevent anyone from accidentally using insecure functionality.

Related PRs

@damons
Copy link

damons commented Sep 4, 2024

This really should be merged for mainnet.

@aleojohn aleojohn self-requested a review September 10, 2024 01:01
aleojohn
aleojohn previously approved these changes Sep 10, 2024
Copy link
Contributor

@aleojohn aleojohn left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

Copy link
Contributor

@raychu86 raychu86 left a comment

Choose a reason for hiding this comment

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

@Meshiest To resolve cargo clippy, you'll need to delete the line - utilities::ToBytes, in cli/src/commands/account.rs on line 23, and then rerun cargo +nightly clippy.

@raychu86
Copy link
Contributor

@Meshiest Looks like clippy is still failing - https://app.circleci.com/pipelines/github/AleoNet/snarkOS/331/workflows/f77b15c2-96fc-4809-870b-8c8cfd34a98e/jobs/4208. You'll need to rerun cargo +nightly clippy or manually fix that issue

@aleojohn aleojohn self-requested a review September 10, 2024 14:33
Copy link
Contributor

@aleojohn aleojohn left a comment

Choose a reason for hiding this comment

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

Approved, pending CI

@zosorock zosorock merged commit 9da1bbc into ProvableHQ:mainnet-staging Sep 10, 2024
24 checks passed
@Meshiest Meshiest deleted the fix-account-sign-seed branch September 10, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants