18 while (std::getline(
ss,
item,
'/')) {
19 if (
item.compare(
"m") == 0) {
28 size_t pos =
item.find(
'\'');
29 if (pos != std::string::npos) {
31 if (pos !=
item.size() - 1) {
bool ParseHDKeypath(const std::string &keypath_str, std::vector< uint32_t > &keypath)
Parse an HD keypaths like "m/7/0'/2000".
std::string FormatHDKeypath(const std::vector< uint32_t > &path, bool apostrophe)
std::string WriteHDKeypath(const std::vector< uint32_t > &keypath, bool apostrophe)
Write HD keypaths as strings.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.