user-1: i am trying to find out which c++ code in https://github.com/bitcoin/bitcoin
is responsible for generating bitcoin address and private key.

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

-1: <p>i am trying to find out which <code>c++</code> code in <a href="https://github.com/bitcoin/bitcoin" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin</a></p>

<p>is responsible for generating <code>bitcoin address</code> and <code>private key</code>.</p>
 5757: <p>See <code>CWallet::GenerateNewKey</code> in <code>src/wallet.cpp</code>.  It calls either <code>DeriveNewChildKey</code> or <code>MakeNewKey</code> depending on whether HD wallets are in use.</p>
