Skip to content

Commit

Permalink
fixup! SFT-3839: Add HDKey owned version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandudey committed Jul 17, 2024
1 parent d282ea0 commit a56425c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions urtypes/src/registry/hdkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ impl<'a> From<HDKeyRef<'a>> for HDKey {
}
}

#[cfg(feature = "alloc")]
impl<'b, C> Decode<'b, C> for HDKey {
fn decode(d: &mut Decoder<'b>, ctx: &mut C) -> Result<Self, Error> {
HDKeyRef::decode(d, ctx).map(HDKey::from)
}
}

/// A master key.
#[doc(alias("master-key"))]
#[derive(Debug, Clone, Eq, PartialEq)]
Expand Down

0 comments on commit a56425c

Please sign in to comment.