validate method

void validate(
  1. String 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(String mnemonic) {
  decoder.decode(mnemonic);
}