Which code part in bitcoin-core project generates new bitcoin addresses?

0

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.

AMB

Posted 2017-08-17T20:48:45.870

Reputation: 292

Answers

2

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

Nate Eldredge

Posted 2017-08-17T20:48:45.870

Reputation: 21 420