File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,15 @@ class CKeyMetadata
123
123
{
124
124
public:
125
125
static const int VERSION_BASIC=1 ;
126
+ static const int VERSION_WITH_FLAGS = 2 ; // not supported, but preserved
126
127
static const int VERSION_WITH_HDDATA=10 ;
127
128
static const int VERSION_WITH_KEY_ORIGIN = 12 ;
128
129
static const int CURRENT_VERSION=VERSION_WITH_KEY_ORIGIN;
129
130
int nVersion;
130
131
int64_t nCreateTime; // 0 means unknown
131
132
std::string hdKeypath; // optional HD/bip32 keypath. Still used to determine whether a key is a seed. Also kept for backwards compatibility
132
133
CKeyID hd_seed_id; // id of the HD seed used to derive this key
134
+ uint8_t unsupported_key_flags;
133
135
KeyOriginInfo key_origin; // Key origin info with path and fingerprint
134
136
bool has_key_origin = false ; // !< Whether the key_origin is useful
135
137
@@ -148,6 +150,8 @@ class CKeyMetadata
148
150
READWRITE (obj.nVersion , obj.nCreateTime );
149
151
if (obj.nVersion >= VERSION_WITH_HDDATA) {
150
152
READWRITE (obj.hdKeypath , obj.hd_seed_id );
153
+ } else if (obj.nVersion >= VERSION_WITH_FLAGS) {
154
+ READWRITE (obj.unsupported_key_flags );
151
155
}
152
156
if (obj.nVersion >= VERSION_WITH_KEY_ORIGIN)
153
157
{
You can’t perform that action at this time.
0 commit comments