public static KeyPair FromBIP39Seed(string seed, uint accountIndex) { BIP32 bip32 = new BIP32(); string path = $"m/44'/148'/{accountIndex}'"; return(FromSecretSeed(bip32.DerivePath(path, seed).Key)); }
private (byte[] Key, byte[] ChainCode) TestDerivePath(string path, string seed) { BIP32 bip32 = new BIP32(); var derivePath = bip32.DerivePath(path, seed); return(derivePath.Key, derivePath.ChainCode); }
public TWallet GetWalletFromPath <TWallet>(string path) where TWallet : Wallet, new() { var derivePath = bip32.DerivePath(path, this.BIP39Seed); return(new TWallet() { Path = path, PrivateKeyBytes = derivePath.Key }); }
public string Derive(string path) { var data = Bip32.DerivePath(path, _seedHex); return(data.Key.ToStringHex()); }