validate method

void validate(
  1. Mnemonic mnemonic
)

Validates a given mnemonic phrase using the associated decoder.

Throws an exception if the mnemonic phrase is invalid or cannot be decoded.

Implementation

void validate(Mnemonic mnemonic) {
  final decode = decoder.decode(mnemonic);
  decode.zero();
}