Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
MIN_ENTROPY_SIZE in bites instead of bytes #19
I'm trying to use this package with
But after looking at it, isn't the MIN_ENTROPY_SIZE supposed to be in bytes? Or perhaps the check should be multiplied by 8?
I wanted to implement exactly the same security like eth-lib which uses 4*32=128 bytes of entropy.
I was using this library
const bip39 = require('bip39') const mnemonic = bip39.generateMnemonic() // 'seed sock milk update focus rotate barely fade car face mechanic mercy' const entropy = bip39.menmonicToEntropy(menmonic) // c2f9c2327745a37844a28e224a3228c5 const byteLength = Buffer.byteLength(entropy, 'utf8') // 32
Basically I just wanted to use this mnemonic for recovery while still using the