5 #ifndef PIVX_SCRIPT_KEYORIGIN_H
6 #define PIVX_SCRIPT_KEYORIGIN_H
14 std::vector<uint32_t>
path;
31 std::string keypath_str =
"m";
32 for (uint32_t num :
path) {
34 bool hardened =
false;
35 if (num & 0x80000000) {
40 keypath_str += std::to_string(num);
friend bool operator==(const KeyOriginInfo &a, const KeyOriginInfo &b)
SERIALIZE_METHODS(KeyOriginInfo, obj)
unsigned char fingerprint[4]
First 32 bits of the Hash160 of the public key at the root of the path.
std::vector< uint32_t > path
std::string pathToString() const