| 205 | // Serialize an individual HD keypath to a stream |
| 206 | template<typename Stream> |
| 207 | void SerializeHDKeypath(Stream& s, KeyOriginInfo hd_keypath) |
| 208 | { |
| 209 | WriteCompactSize(s, (hd_keypath.path.size() + 1) * sizeof(uint32_t)); |
| 210 | s << hd_keypath.fingerprint; |
| 211 | for (const auto& path : hd_keypath.path) { |
| 212 | s << path; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // Serialize HD keypaths to a stream from a map |
| 217 | template<typename Stream> |
no test coverage detected