I want to take a private key as input from the user and convert it to a wallet address using C#.
I have seen this in a tutorial to generate a random key:
Key privateKey = new Key();
PubKey publicKey = privateKey.PubKey;
Console.WriteLine(publicKey.GetAddress(ScriptPubKeyType.Legacy, Network.Main));
How do I convert a private key string from the user to a wallet address for main net?