Post
Topic
Board Altcoin Discussion
Re: How to generate bnb beacon chain hd wallet from mnemonic 12 words wallet
by
satochi
on 03/02/2023, 06:58:17 UTC
There isn't much many difference between BNB Beacon Chain with other cryptocurrency address generation processes, in fact, it uses industry standards.

You should have known better that such kind of information is available on their own documentation page. Take a look over https://docs.bnbchain.org/docs/beaconchain/learn/accounts.

To cite it,

Quote
This default wallet would use a similar way to generate keys as Bitcoin, i.e. use 256 bits entropy to generate a 24-word mnemonic based on BIP39, and then use the mnemonic and an empty passphrase to generate a seed; finally use the seed to generate a master key, and derive the private key using BIP32/BIP44 with HD prefix as "44'/714'/", which is reserved at SLIP 44.

And for the address generation using:

Code:
Address_Bech32 = HRP + '1' + bech32.encode(convert8BitsTo5Bits(RIPEMD160(SHA256(compressed public key))))

There are many wallets that support Beacon Chain, so in case you need a code example, browser around over those(https://docs.bnbchain.org/docs/beaconchain/wallets) referred wallets.

This is so helpful. Thank you.

In addition do you think I can generate address using hdwallet lib:
https://hdwallet.readthedocs.io/en/v2.2.1/cryptocurrencies.html

Based on the link above this lib dosn't support bnb. Is there still some way to derive keys using this lib? For example based on the documentations key generation is quit like the BCH but I dont know how.