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