bip39 icon indicating copy to clipboard operation
bip39 copied to clipboard

Can't get mnemonic

Open mobilewebguru opened this issue 7 years ago • 10 comments

I called this function btw I received

{“_40”:0,”_65”:0,”_55”:null,”_72”:null}
generateMnemonic = async () => {
  try {
    return await bip39.generateMnemonic(256) // default to 128
  } catch(e) {
    return false
  }
}

//=>  {“_40”:0,”_65”:0,”_55”:null,”_72”:null}

Could you help me? Looking forward to your reply. Thanks.

mobilewebguru avatar Sep 18 '18 03:09 mobilewebguru

What do you get if you call (normally) bip39.generateMnemonic()?

dcousens avatar Sep 18 '18 04:09 dcousens

{“_40”:0,”_65”:0,”_55”:null,”_72”:null}

mobilewebguru avatar Sep 20 '18 06:09 mobilewebguru

any update?

mobilewebguru avatar Sep 24 '18 02:09 mobilewebguru

@iosandroidwebtopdev need more information than that, at this stage, I have no idea.

dcousens avatar Sep 24 '18 02:09 dcousens

@dcousens , Same error in my side, too

liorbraginsky92 avatar Sep 25 '18 17:09 liorbraginsky92

What is your environment? Node version?

dcousens avatar Sep 25 '18 21:09 dcousens

anyone solved this issue, please reply. Thanks.

devsarosh avatar Nov 06 '18 14:11 devsarosh

@devsarosh how are you producing this error?

dcousens avatar Nov 06 '18 21:11 dcousens

Hi,

If your are implementing the fork for react native, you have to do something like this.

screen shot 2018-11-16 at 6 41 34 pm

McDreamy avatar Nov 16 '18 10:11 McDreamy

{“_40”:0,”_65”:0,”_55”:null,”_72”:null}

The above is a Promise and you should wait for its value via either await or .then(function(data) { /* use recieved value here */})

I suggest closing this issue. Separate issues could be created if someone want's to add a FAQ with things like the above, or if there is any code or documentation that should be updated.

sesam avatar Dec 17 '18 08:12 sesam