getBitlength static method

int getBitlength(
  1. int wordsNum
)

Returns the bit length corresponding to the number of mnemonic words.

Implementation

static int getBitlength(int wordsNum) {
  validateWordsNum(wordsNum);
  return (wordsNum * Bip39MnemonicConst.wordBitLen);
}