| 51 | } |
| 52 | |
| 53 | std::string FormatHDKeypath(const std::vector<uint32_t>& path) |
| 54 | { |
| 55 | std::string ret; |
| 56 | for (auto i : path) { |
| 57 | ret += strprintf("/%i", (i << 1) >> 1); |
| 58 | if (i >> 31) ret += '\''; |
| 59 | } |
| 60 | return ret; |
| 61 | } |
| 62 | |
| 63 | std::string WriteHDKeypath(const std::vector<uint32_t>& keypath) |
| 64 | { |
no outgoing calls