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.
Currently the API, e.g. of
Mnemonic::generateallows to specify a word count as ausizereturning 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 WordCountwith respective variants.