Answer the question
In order to leave comments, you need to log in
How to generate a public key and a wallet in c# using a private hex key?
How to obtain the public key (C) and a purse (C) of the private key hex:
1. Private Key Hex
2. Public Key
3. Wallet
0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff => 0336074b50b9c9d54e613b096847420b486e4c8ff6c7b4e67b12f562da25615569 => 1HBQ45Ztv83msdZBEoTEmyTLQnTHbXKwPz
Answer the question
In order to leave comments, you need to log in
Through the NBitcoin library and HDWallet.Terra for terra like this
var privKeyStr = Encoders.Hex.DecodeData(privateKey);
Key key = new Key(privKeyStr);
IAddressGenerator addressGenerator = new AddressGenerator();
var actualAddress = addressGenerator.GenerateAddress(key.PubKey.ToBytes());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question