You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingSystem;usingSystem.Numerics;usingNethereum.Web3;usingNethereum.Web3.Accounts;usingNethereum.Util;usingNethereum.Hex.HexConvertors.Extensions;usingNethereum.HdWallet;usingSystem.Threading.Tasks;usingNBitcoin;publicclassProgram{privatestaticasyncTaskMain(string[]args){// This samples shows how to derive or create accounts from a given word list seed in an hd wallet // This uses Hardhat default mnemonic https://hardhat.org/hardhat-network/// //Nethereum uses internally NBitcoin to derive the private and public keys, for more information on bip32 please check//https://programmingblockchain.gitbook.io/programmingblockchain/key_generation/bip_32//Initiating a HD Wallet requires a list of words and an optional password to add further entropy (randomness)varwords="test test test test test test test test test test test junk";//Note: do not confuse the password with your Metamask password, Metamask password is used to secure the storagevarpassword="";varwallet=newWallet(words,password);//Accounts are derived using indexes so the account at 0 will have always the same private key and address.for(vari=0;i<20;i++){varaccount=wallet.GetAccount(i);Console.WriteLine("Account index : "+i+" - Address : "+account.Address+" - Private key : "+account.PrivateKey);}}}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: