5#ifndef BITCOIN_SCRIPT_KEYORIGIN_H
6#define BITCOIN_SCRIPT_KEYORIGIN_H
14 std::vector<uint32_t>
path;
18 return std::equal(std::begin(
a.fingerprint), std::end(
a.fingerprint), std::begin(b.
fingerprint)) &&
a.path == b.
path;
31 if (
a.path.size() < b.
path.size()) {
33 }
else if (
a.path.size() > b.
path.size()) {
37 return a.path < b.
path;
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
friend bool operator<(const KeyOriginInfo &a, const KeyOriginInfo &b)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.