diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2023-10-22 17:56:01 +0000 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2023-10-22 17:56:01 +0000 |
| commit | 1388ce8c4c2215ed029414d71833eab4b9bc8dc2 (patch) | |
| tree | 93bbd822db9f7ddcf548f65e23fdbdf39db4d136 /src/hdk.rs | |
| parent | ca758736f76d9c32d7e5df44e270bf2879a1b86c (diff) | |
Add Support for Genereting Mnemonic for Vanity Address
Diffstat (limited to 'src/hdk.rs')
| -rw-r--r-- | src/hdk.rs | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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<PrivateKey> { - 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<PrivateKey> { derive_slice(seed.as_ref(), path) |
