Derives the last xprv
| 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 | { |