Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/codex32/_cli_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ def allowed(candidate: CorrectionCandidate) -> bool:
if one:
return [artifact]
if isinstance(artifact, Secret) and not basis:
if accepted:
_stderr("Complete secret supplied; using it instead of the accepted shares.")
return [artifact]
if not accepted:
required = artifact.header.threshold
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ def answer(prompt: str) -> str:
assert "Rejected:" not in captured.err
assert "Share 1 of 3 accepted." in captured.err
assert "Share 2 of 3 accepted." in captured.err
assert "Complete secret supplied; using it instead of the accepted shares." in captured.err
first_prompt = (
"Enter a codex32 string:\n> " if command[0] == "secret" else "Enter a codex32 string:\n> MS1"
)
Expand Down
Loading