We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd8205 commit a1c0bebCopy full SHA for a1c0beb
src/proto/message.rs
@@ -239,8 +239,7 @@ impl Decode for KeyConstraint {
239
2 => KeyConstraint::Confirm,
240
255 => {
241
let name = String::decode(reader)?;
242
- let mut details = vec![0; reader.remaining_len()];
243
- reader.read(&mut details)?;
+ let details: Vec<u8> = Vec::decode(reader)?;
244
KeyConstraint::Extension(name, details.into())
245
}
246
_ => return Err(Error::AlgorithmUnknown)?, // FIXME: it should be our own type
@@ -560,7 +559,6 @@ mod tests {
560
559
561
562
#[test]
563
- #[ignore = "temporarily disable until test vectors are updated"]
564
fn test_add_identity_constrained() {
565
let msg: &[u8] = &hex!(
566
"
0 commit comments