A lightweight library for working with Zano mnemonic seed phrases. This library provides tools to convert mnemonic phrases into binary seeds, which can be used for wallet generation and other cryptographic operations.
- Convert mnemonic phrases into binary seeds.
- Simple and easy-to-use API.
- Built with TypeScript for type safety.
- No support for password-protected seed phrases: Currently, the library does not handle mnemonic phrases that are encrypted with a password.
- No audit flag support: The library does not yet support the audit flag feature.
Install the library via npm:
npm install zano-mnemonicimport type { MnemonicToSeedResult, SeedToMnemonicResult } from 'zano-mnemonic';
import { mnemonicToSeed, seedToMnemonic } from 'zano-mnemonic';
(async () => {
try {
// Convert a mnemonic phrase into a private key in hex format
const seed: MnemonicToSeedResult = await mnemonicToSeed('seedPhraseWithoutPassword');
// mnemonic without password
const mnemonic: SeedToMnemonicResult = await seedToMnemonic('seedKey');
// Log the result
console.log(seed);
console.log(mnemonic);
} catch (error) {
console.error('Error while processing seed:', error.message);
}
})();