diff --git a/src/script/sign.h b/src/script/sign.h --- a/src/script/sign.h +++ b/src/script/sign.h @@ -22,6 +22,7 @@ class CTransaction; struct KeyOriginInfo { + //! First 32 bits of the Hash160 of the public key at the root of the path uint8_t fingerprint[4]; std::vector path; @@ -30,6 +31,18 @@ std::begin(b.fingerprint)) && a.path == b.path; } + + ADD_SERIALIZE_METHODS; + template + inline void SerializationOp(Stream &s, Operation ser_action) { + READWRITE(fingerprint); + READWRITE(path); + } + + void clear() { + memset(fingerprint, 0, 4); + path.clear(); + } }; /** An interface to be implemented by keystores that support signing. */ diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -14,6 +14,7 @@ #include