Post
Topic
Board Electrum
Re: How much entropy is lost by searching for a '01' prefix SHA512 output
by
bitsec731
on 10/02/2017, 13:03:19 UTC
I suggest raising the num_bits=128 to 132

Code:
    def make_seed(self, seed_type='standard', num_bits=132, custom_entropy=1):


https://github.com/spesmilo/electrum/blob/master/lib/mnemonic.py



So the bwp and num_bits line further increases it to 136,

Code:
        bpw = math.log(len(self.wordlist), 2)
        num_bits = int(math.ceil(num_bits/bpw)) * bpw



And by losing 8 bits entropy, we will have 128 bits as de facto entropy if that is the goal. Because currently the defaultly generated seed has only 124 bits of entropy instead of 128.