import { mnemonicToLegacySeed } from "https://deno.land/x/polkadot@0.2.13/util-crypto/mnemonic/toLegacySeed.ts";
Examples
import { mnemonicGenerate, mnemonicToLegacySeed, mnemonicValidate } from 'https://deno.land/x/polkadot@0.2.13/util-crypto/mod.ts';
const mnemonic = mnemonicGenerate(); // => string
const isValidMnemonic = mnemonicValidate(mnemonic); // => boolean
if (isValidMnemonic) {
console.log(`Seed generated from mnemonic: ${mnemonicToLegacySeed(mnemonic)}`); => u8a
}