Skip to content

Fix Mnemonic documentation for supported wordcounts - #30

Merged
stevenroose merged 2 commits into
rust-bitcoin:masterfrom
pezcore:docfix/num-words
Feb 23, 2023
Merged

Fix Mnemonic documentation for supported wordcounts#30
stevenroose merged 2 commits into
rust-bitcoin:masterfrom
pezcore:docfix/num-words

Conversation

@pezcore

@pezcore pezcore commented Oct 26, 2022

Copy link
Copy Markdown
Contributor

Support for additional word counts (specifically 15 and 21) was added in #18, but the documentation and the Display impl for Error::BadWordCount was not updated to reflect this. This PR updates these to reflect the recent support for 15- and 21-word mnemonics.

@tcharding tcharding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 03dbb97

@notmandatory notmandatory left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 03dbb97

This Display description of the BadWordCount variant incorrectly
complained stated that the word count is not a multiple of 6. The
correct criteria for valid word counts is now that it must be a multiple
of 3 between 12 and 24 inclusive, so the Display impl is fixed to be
more precise.
@stevenroose

Copy link
Copy Markdown
Collaborator

ACK

@stevenroose
stevenroose merged commit fed9a94 into rust-bitcoin:master Feb 23, 2023
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.

4 participants