MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetDerivedExtKey

Method GetDerivedExtKey

src/script/descriptor.cpp:312–322  ·  view source on GitHub ↗

Derives the last xprv

Source from the content-addressed store, hash-verified

310
311 // Derives the last xprv
312 bool GetDerivedExtKey(const SigningProvider& arg, CExtKey& xprv, CExtKey& last_hardened) const
313 {
314 if (!GetExtKey(arg, xprv)) return false;
315 for (auto entry : m_path) {
316 xprv.Derive(xprv, entry);
317 if (entry >> 31) {
318 last_hardened = xprv;
319 }
320 }
321 return true;
322 }
323
324 bool IsHardened() const
325 {

Callers

nothing calls this directly

Calls 1

DeriveMethod · 0.45

Tested by

no test coverage detected