0

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

is responsible for generating bitcoin address and private key.

2

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.