paulmillr / scure-btc-signer

Audited & minimal library for creating, signing & decoding Bitcoin transactions.
https://paulmillr.com/noble/#scure
MIT License
151 stars 39 forks source link

How to use this in tandem with bip39? #68

Closed afeezaziz closed 8 months ago

afeezaziz commented 8 months ago

Referring to scure-bip39, how can I generate mnemonic using bip39 and then use btc signer to get private key, public key and then eventually addresses?

paulmillr commented 8 months ago

I think you need bip32 for that. Bip39 generates a bunch of bytes (master key) and then you can use it in bip32.

afeezaziz commented 8 months ago

@paulmillr

So the process is:

  1. bip39 generate mnemonic
  2. bip39 sync to seed
  3. bip32 get both public and private key

Is this process?

paulmillr commented 8 months ago

yes

afeezaziz commented 8 months ago

Thank you @paulmillr