From 1388ce8c4c2215ed029414d71833eab4b9bc8dc2 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Sun, 22 Oct 2023 17:56:01 +0000 Subject: Add Support for Genereting Mnemonic for Vanity Address --- src/hdk.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/hdk.rs') diff --git a/src/hdk.rs b/src/hdk.rs index c058fba..b5d646e 100644 --- a/src/hdk.rs +++ b/src/hdk.rs @@ -12,12 +12,6 @@ use sha2::Sha512; /// A value indicating a path component is hardened. const HARDENED: u32 = 0x8000_0000; -/// Creates a new extended private key for an account index using the standard -/// Ethereum HD path. -pub fn derive_index(seed: impl AsRef<[u8]>, account_index: usize) -> Result { - derive(seed, &format!("m/44'/60'/0'/0/{account_index}").parse()?) -} - /// Creates a new extended private key from a seed. pub fn derive(seed: impl AsRef<[u8]>, path: &Path) -> Result { derive_slice(seed.as_ref(), path) -- cgit v1.2.3