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 @@ -136,13 +136,15 @@ class CKeyMetadata
136
136
{
137
137
public:
138
138
static const int VERSION_BASIC=1 ;
139
+ static const int VERSION_WITH_FLAGS = 2 ; // not supported, but preserved
139
140
static const int VERSION_WITH_HDDATA=10 ;
140
141
static const int VERSION_WITH_KEY_ORIGIN = 12 ;
141
142
static const int CURRENT_VERSION=VERSION_WITH_KEY_ORIGIN;
142
143
int nVersion;
143
144
int64_t nCreateTime; // 0 means unknown
144
145
std::string hdKeypath; // optional HD/bip32 keypath. Still used to determine whether a key is a seed. Also kept for backwards compatibility
145
146
CKeyID hd_seed_id; // id of the HD seed used to derive this key
147
+ uint8_t unsupported_key_flags;
146
148
KeyOriginInfo key_origin; // Key origin info with path and fingerprint
147
149
bool has_key_origin = false ; // !< Whether the key_origin is useful
148
150
@@ -161,6 +163,8 @@ class CKeyMetadata
161
163
READWRITE (obj.nVersion , obj.nCreateTime );
162
164
if (obj.nVersion >= VERSION_WITH_HDDATA) {
163
165
READWRITE (obj.hdKeypath , obj.hd_seed_id );
166
+ } else if (obj.nVersion >= VERSION_WITH_FLAGS) {
167
+ READWRITE (obj.unsupported_key_flags );
164
168
}
165
169
if (obj.nVersion >= VERSION_WITH_KEY_ORIGIN)
166
170
{
You can’t perform that action at this time.
0 commit comments