-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reactnative generate address error #2085
Comments
What version are you using? If not the latest, try using the latest. |
I'm using the latest version |
What does this mean: "I changed the encryption to crypto-browserify" |
crypto-browserify has nothing to do with address creation... we don't use it. We don't use the NodeJS crypto API for hashes. We use noble. |
You are using v6.1.5? |
yes,But in my vue project, the generated address is correct. But the address generated in Reactnative is wrong. The code is the same |
@jiegege10 |
const seed = await bip39.mnemonicToSeed(mnemonic)
const root = bip32.fromSeed(seed);
const path = "m/44'/0'/0'/0/0"
const child = root.derivePath(path)
const bean = await payments.p2pkh({pubkey: child.publicKey})
The address generated in the vue project is correct and the same code.
I changed the encryption to crypto-browserify. The address signature is correct, but the last six digits are wrong. How should I solve this problem?
The text was updated successfully, but these errors were encountered: