@@ -76,7 +76,7 @@ ustring Keys::dump() {
76
76
ustring Keys::make_dump () const {
77
77
oxenc::bt_dict_producer d;
78
78
{
79
- auto active = d.append_list (" active " );
79
+ auto active = d.append_list (" A " );
80
80
for (const auto & [gen, hashes] : active_msgs_) {
81
81
auto lst = active.append_list ();
82
82
lst.append (gen);
@@ -86,7 +86,7 @@ ustring Keys::make_dump() const {
86
86
}
87
87
88
88
{
89
- auto keys = d.append_list (" keys " );
89
+ auto keys = d.append_list (" L " );
90
90
for (auto & k : keys_) {
91
91
auto ki = keys.append_dict ();
92
92
// NB: Keys must be in sorted order
@@ -101,7 +101,7 @@ ustring Keys::make_dump() const {
101
101
}
102
102
103
103
if (!pending_key_config_.empty ()) {
104
- auto pending = d.append_dict (" pending " );
104
+ auto pending = d.append_dict (" P " );
105
105
// NB: Keys must be in sorted order
106
106
pending.append (" c" , from_unsigned_sv (pending_key_config_));
107
107
pending.append (" g" , pending_gen_);
@@ -114,7 +114,7 @@ ustring Keys::make_dump() const {
114
114
void Keys::load_dump (ustring_view dump) {
115
115
oxenc::bt_dict_consumer d{from_unsigned_sv (dump)};
116
116
117
- if (d.skip_until (" active " )) {
117
+ if (d.skip_until (" A " )) {
118
118
auto active = d.consume_list_consumer ();
119
119
while (!active.is_finished ()) {
120
120
auto lst = active.consume_list_consumer ();
@@ -126,7 +126,7 @@ void Keys::load_dump(ustring_view dump) {
126
126
throw config_value_error{" Invalid Keys dump: `active` not found" };
127
127
}
128
128
129
- if (d.skip_until (" keys " )) {
129
+ if (d.skip_until (" L " )) {
130
130
auto keys = d.consume_list_consumer ();
131
131
while (!keys.is_finished ()) {
132
132
auto kd = keys.consume_dict_consumer ();
@@ -156,7 +156,7 @@ void Keys::load_dump(ustring_view dump) {
156
156
throw config_value_error{" Invalid Keys dump: `keys` not found" };
157
157
}
158
158
159
- if (d.skip_until (" pending " )) {
159
+ if (d.skip_until (" P " )) {
160
160
auto pending = d.consume_dict_consumer ();
161
161
162
162
if (!pending.skip_until (" c" ))
0 commit comments