Open rachna-khatnawlia opened 1 year ago
solution for this issue:
npm install react-native-crypto import { randomBytes } from 'react-native-crypto';
const entropy = randomBytes(16); const mnemonic = bip39.entropyToMnemonic(entropy);
@rachna-khatnawlia I'm getting this error ` assert could not be found within the project or in these directories: node_modules 1 | var unorm = require('unorm')
2 | var assert = require('assert') ` did you get the same error ?
@Ekaanth you might be missing assert library as a dependency
I am getting error while using bip39.generateMnemonic() in react. Below is the error image. Please help.
enviromment doesn't have random bytes function while using bip39.generateMnemonic(128) in react native