mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-14 13:52:36 -03:00
07f2c25d04
These files change infrequently, and not much header shuffling is required. We don't add everything in src/util/ yet, because IWYU makes some dubious suggestions, which I'm going to follow up with upstream.
19 lines
656 B
C++
19 lines
656 B
C++
// Copyright (c) 2019-2020 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_UTIL_BIP32_H
|
|
#define BITCOIN_UTIL_BIP32_H
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
/** Parse an HD keypaths like "m/7/0'/2000". */
|
|
[[nodiscard]] bool ParseHDKeypath(const std::string& keypath_str, std::vector<uint32_t>& keypath);
|
|
|
|
/** Write HD keypaths as strings */
|
|
std::string WriteHDKeypath(const std::vector<uint32_t>& keypath);
|
|
std::string FormatHDKeypath(const std::vector<uint32_t>& path);
|
|
|
|
#endif // BITCOIN_UTIL_BIP32_H
|