Skip to content

Normalize keystore seed phrases before deriving keys - #223

Draft
hippocampusSK wants to merge 2 commits into
developfrom
fix/canonical-mnemonic-phrase
Draft

hippocampusSK wants to merge 2 commits into
developfrom
fix/canonical-mnemonic-phrase

Conversation

@hippocampusSK

Copy link
Copy Markdown
Contributor

Seed phrases pasted with tabs, double spaces, non-breaking spaces or a trailing newline could fail to import or quietly open a different, empty wallet.
The keystore wallet now cleans up the phrase the same way the SDK does before deriving any key, so a messy paste opens the same wallet as the clean phrase.
Phrases with a wrong checksum are rejected up front, and phrase validation follows the same rules.
Needs the SDK release that includes swapkit/sdk#491.

Linear: API-4243


Generated by Claude Code

hippocampusSK and others added 2 commits November 9, 2026 10:37
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y7T5QKWXE2vQmr4U7aSQak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant