i am trying to find out which c++ code in https://github.com/bitcoin/bitcoin

is responsible for generating bitcoin address and private key.


See CWallet::GenerateNewKey in src/wallet.cpp. It calls either DeriveNewChildKey or MakeNewKey depending on whether HD wallets are in use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy