| 26 | typedef std::vector<uint32_t> KeyPath; |
| 27 | |
| 28 | std::string FormatKeyPath(const KeyPath& path) |
| 29 | { |
| 30 | std::string ret; |
| 31 | for (auto i : path) { |
| 32 | ret += strprintf("/%i", (i << 1) >> 1); |
| 33 | if (i >> 31) ret += '\''; |
| 34 | } |
| 35 | return ret; |
| 36 | } |
| 37 | |
| 38 | /** Interface for public key objects in descriptors. */ |
| 39 | struct PubkeyProvider |
no outgoing calls
no test coverage detected