Skip to content

Comments

Use Go-SSV key formats, convert legacy keys#404

Merged
mergify[bot] merged 9 commits intosigp:unstablefrom
dknopik:new-key-format
Jul 8, 2025
Merged

Use Go-SSV key formats, convert legacy keys#404
mergify[bot] merged 9 commits intosigp:unstablefrom
dknopik:new-key-format

Conversation

@dknopik
Copy link
Member

@dknopik dknopik commented Jul 1, 2025

Issue Addressed

Proposed Changes

  • Create new key format in keygen, removing support for writing legacy keys.
  • Add support for password file for both keygen and node.
  • If only a legacy key is found, convert it to the new format
  • Add support for explicitly specifying a key file location.

Additional Info

I got rid of the password read retry loop, as it made the logic too awkward for too little benefit.

@dknopik dknopik added ready-for-review This PR is ready to be reviewed cryptography cli v0.2.0 Second testnet release labels Jul 1, 2025
@dknopik dknopik linked an issue Jul 4, 2025 that may be closed by this pull request
@dknopik dknopik requested a review from jking-aus July 4, 2025 21:01
password_file: Option<&Path>,
) -> Result<Rsa<Private>, String> {
// First, we have to read a file and decide what to do.
// TODO: do not hardcode paths here: https://github.com/sigp/anchor/issues/403
Copy link
Member

Choose a reason for hiding this comment

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

yeah agree - let's get this in 0.3

jking-aus
jking-aus previously approved these changes Jul 7, 2025
Copy link
Member

@jking-aus jking-aus left a comment

Choose a reason for hiding this comment

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

nice, couple small nits to consider but I'm ok either way since a lot of this is transitory

Copy link
Member

@jking-aus jking-aus left a comment

Choose a reason for hiding this comment

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

lgtm -- nice

mergify bot added a commit that referenced this pull request Jul 8, 2025
@mergify mergify bot merged commit e6263ea into sigp:unstable Jul 8, 2025
16 checks passed
@dknopik dknopik deleted the new-key-format branch July 18, 2025 09:17
diegomrsantos pushed a commit to diegomrsantos/anchor that referenced this pull request Sep 17, 2025
- closes sigp#323


  - Create new key format in keygen, removing support for writing legacy keys.
- Add support for password file for both keygen and node.
- If only a legacy key is found, convert it to the new format
- Add support for explicitly specifying a key file location.
jking-aus pushed a commit to jking-aus/anchor that referenced this pull request Oct 8, 2025
- closes sigp#323


  - Create new key format in keygen, removing support for writing legacy keys.
- Add support for password file for both keygen and node.
- If only a legacy key is found, convert it to the new format
- Add support for explicitly specifying a key file location.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli cryptography ready-for-merge ready-for-review This PR is ready to be reviewed v0.2.0 Second testnet release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration Tooling

2 participants