Skip to content

Fix word count of Algorand not existent word test vectors - #162

Merged
ebellocchia merged 1 commit into
ebellocchia:masterfrom
fametrano:algorand-vector-word-count
Oct 20, 2026
Merged

ebellocchia merged 1 commit into
ebellocchia:masterfrom
fametrano:algorand-vector-word-count

Conversation

@fametrano

Copy link
Copy Markdown
Contributor

The two "Not existent word" vectors in the Algorand mnemonic tests have 24 words, but an Algorand mnemonic has 25. The decoder rejects them on the word count before it looks up any word, so they never test an unknown word.

I added one valid word to each vector, so both now fail on the word lookup. To check, I changed GetWordIdx to return 0 instead of raising: the tests still pass on master, and fail with this change. I found this while writing #161; the two merge cleanly, and with both, the Algorand test also checks the unknown-word messages.

@ebellocchia
ebellocchia merged commit 9a95cfc into ebellocchia:master Oct 20, 2026
2 checks passed
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.

2 participants