generateEnteropy static method

List<int> generateEnteropy(
  1. Mnemonic mnemonic, {
  2. String password = "",
})

Generates entropy from a given mnemonic and optional passphrase using HMAC-SHA512.

Implementation

static List<int> generateEnteropy(Mnemonic mnemonic, {String password = ""}) {
  return QuickCrypto.hmacSha512Hash(
      StringUtils.encode(mnemonic.toStr()), StringUtils.encode(password));
}