Skip to main content

lookup_path

Function lookup_path 

Source
pub fn lookup_path(path: &DerivationPath) -> Option<u8>
Expand description

Look up DerivationPath → standard-table indicator. Returns None if the path is not in the dictionary (encoder falls through to explicit-path encoding). Comparison is structural (parses each table entry to a DerivationPath); this avoids the m/-prefix pitfall in bitcoin::bip32::DerivationPath’s Display.