citadel-tech/coinswap

Password handler remove I/O operation

已关闭

#956 创建于 2026年7月27日

 (0 条评论) (0 个反应) (0 位负责人)Rust (132 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (159 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南