MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SetupOwnDescriptorScriptPubKeyMans

Method SetupOwnDescriptorScriptPubKeyMans

src/wallet/wallet.cpp:3629–3643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3627}
3628
3629void CWallet::SetupOwnDescriptorScriptPubKeyMans(WalletBatch& batch)
3630{
3631 AssertLockHeld(cs_wallet);
3632 assert(!IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER));
3633 // Make a seed
3634 CKey seed_key = GenerateRandomKey();
3635 CPubKey seed = seed_key.GetPubKey();
3636 assert(seed_key.VerifyPubKey(seed));
3637
3638 // Get the extended key
3639 CExtKey master_key;
3640 master_key.SetSeed(seed_key);
3641
3642 SetupDescriptorScriptPubKeyMans(batch, master_key);
3643}
3644
3645void CWallet::SetupDescriptorScriptPubKeyMans()
3646{

Callers

nothing calls this directly

Calls 4

GenerateRandomKeyFunction · 0.85
VerifyPubKeyMethod · 0.80
GetPubKeyMethod · 0.45
SetSeedMethod · 0.45

Tested by

no test coverage detected