citadel-tech/coinswap

Password handler refactor

Open

#956 opened on Jul 27, 2026

 (0 comments) (0 reactions) (0 assignees)Rust (132 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (159 stars)
PR merge metrics
 (PR metrics pending)

Description

Description

In load_sensitive_struct, in the case of a None password, if parsing fails we ask the user to enter the password utill::prompt_password("Enter encryption passphrase: ".to_string())?, which is irrelevant to this API — it's a terminal I/O operation that doesn't belong in a decrypt helper and should be handled by the caller if the parse fails.

Contributor guide