Function bip85::derive[][src]

pub fn derive<C: Signing, P: AsRef<[ChildNumber]>>(
    secp: &Secp256k1<C>,
    root: &ExtendedPrivKey,
    path: &P
) -> Result<Vec<u8>, Error>

Derive raw bytes from the root key using provided derivation path.

Use this function only for custom applications, for standardized applications use application-specific functions - to_wif, to_hex, to_xprv and to_mnemonic[_in].

Derivation path should start after initial bip85 index (83696968') For example, to get entropy for WIF private key (app_no 2) with index 1 use DerivationPath::from_str("m/2'/0'").