| 3627 | } |
| 3628 | |
| 3629 | void 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 | |
| 3645 | void CWallet::SetupDescriptorScriptPubKeyMans() |
| 3646 | { |
nothing calls this directly
no test coverage detected