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

Method GetDerivedExtKey

src/script/descriptor.cpp:420–430  ·  view source on GitHub ↗

Derives the last xprv

Source from the content-addressed store, hash-verified

418
419 // Derives the last xprv
420 bool GetDerivedExtKey(const SigningProvider& arg, CExtKey& xprv, CExtKey& last_hardened) const
421 {
422 if (!GetExtKey(arg, xprv)) return false;
423 for (auto entry : m_path) {
424 if (!xprv.Derive(xprv, entry)) return false;
425 if (entry >> 31) {
426 last_hardened = xprv;
427 }
428 }
429 return true;
430 }
431
432 bool IsHardened() const
433 {

Callers

nothing calls this directly

Calls 1

DeriveMethod · 0.45

Tested by

no test coverage detected