[][src]Function parity_wordlist::validate_phrase

pub fn validate_phrase(
    phrase: &str,
    expected_no_of_words: usize
) -> Result<(), Error>

Validates given phrase and checks if:

  1. All the words are coming from the dictionary.
  2. There are at least expected_no_of_words in the phrase.