Skip to content

Introduce enum WordCount #97

@tnull

Description

@tnull

Currently the API, e.g. of Mnemonic::generate allows to specify a word count as a usize returning an error if it isn't 12, 15, 18, 21, or 24.

The logic would likely be much simpler and the API safer if we simply took an enum WordCount with respective variants.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions