pub fn install_user_signing_key(
secrets_dir: &Path,
sk: &SigningKey,
) -> Result<Option<PathBuf>>Expand description
Install sk as the client’s user-signing-key (the file
load_or_generate_user_signing_key reads), backing up any existing key
first.
Used by hyprstream user create --ssh/--key (#439) to adopt an external
key as the actual signing key the CLI signs with — without this, an
imported-but-not-installed key leaves the client authenticating as
anonymous. The previous key, if any, is copied to user-signing-key.bak
(mode 0600) so the adopt is reversible; None is returned when no prior
key existed.