Javascript library for genrate mnemonic words, seed, private key ... of Akachain platform which is compatible with Etherium and other blockchains using BIP39. This library's purpose is for web brower and depends only on crypto-js, unorm and buffer library.
This library can be obtained through npm:
npm install akachain-bip39
const bip39 = require('akachain-bip39');
const mnemonic = new bip39();
console.log(mnemonic.toString())
//convert to seed
const seed = mnemonic.toSeed().toString('hex');
console.log(seed);
//veteran direct elegant rookie cherry stage joy erode north kitchen amazing correct
//convert word to mnemonic
const phrase = 'veteran direct elegant rookie cherry stage joy erode north kitchen amazing correct'
const mnemonic1 = new bip39(phrase);
please email to contact@akachain.io or longnv1a@gmail.com to report for the bugs and security vulnerability