File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ impl Decode for SignRequest {
46
46
type Error = Error ;
47
47
48
48
fn decode ( reader : & mut impl Reader ) -> Result < Self > {
49
- let pubkey = KeyData :: decode ( reader ) ?;
49
+ let pubkey = reader . read_prefixed ( KeyData :: decode) ?;
50
50
let data = Vec :: decode ( reader) ?;
51
51
let flags = u32:: decode ( reader) ?;
52
52
@@ -280,6 +280,7 @@ impl Encode for Message {
280
280
281
281
lengths. checked_sum ( ) ?
282
282
}
283
+ Self :: SignResponse ( response) => response. encoded_len ( ) ? + 4 ,
283
284
_ => todo ! ( ) ,
284
285
} ;
285
286
@@ -292,6 +293,7 @@ impl Encode for Message {
292
293
Self :: Success => 6 ,
293
294
Self :: RequestIdentities => 11 ,
294
295
Self :: IdentitiesAnswer ( _) => 12 ,
296
+ Self :: SignResponse ( _) => 14 ,
295
297
_ => todo ! ( ) ,
296
298
} ;
297
299
@@ -306,6 +308,9 @@ impl Encode for Message {
306
308
id. encode ( writer) ?;
307
309
}
308
310
}
311
+ Self :: SignResponse ( response) => {
312
+ response. encode_prefixed ( writer) ?;
313
+ }
309
314
_ => todo ! ( ) ,
310
315
} ;
311
316
You can’t perform that action at this time.
0 commit comments