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 876c733 commit d282ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions urtypes/fuzz/fuzz_targets/hdkey_decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

#![no_main]

use foundation_urtypes::registry::HDKey;
use foundation_urtypes::registry::HDKeyRef;
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
minicbor::decode::<'_, HDKey>(data).ok();
minicbor::decode::<'_, HDKeyRef>(data).ok();
});
3 changes: 1 addition & 2 deletions urtypes/src/registry/hdkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ use minicbor::{
Encode, Encoder,
};

use crate::registry::{CoinInfo, KeypathRef};
#[cfg(feature = "alloc")]
use crate::registry::Keypath;
use crate::registry::{CoinInfo, KeypathRef};

/// HD Key (non owned, zero copy).
#[doc(alias("hd-key"))]
Expand Down Expand Up @@ -142,7 +142,6 @@ pub enum HDKey {
DerivedKey(DerivedKey),
}


#[cfg(feature = "alloc")]
impl<'a> From<HDKeyRef<'a>> for HDKey {
fn from(hdkey: HDKeyRef<'a>) -> Self {
Expand Down

0 comments on commit d282ea0

Please sign in to comment.