Beispiel #1
0
 public static TronECKey GenerateKey(TronNetwork network)
 {
     return(new TronECKey(network));
 }
Beispiel #2
0
        public static string GetPublicAddress(string privateKey, TronNetwork network = TronNetwork.MainNet)
        {
            var key = new TronECKey(privateKey.HexToByteArray(), true, network);

            return(key.GetPublicAddress());
        }
Beispiel #3
0
 internal TronECKey(TronNetwork network)
 {
     _ecKey   = new ECKey();
     _network = network;
 }
Beispiel #4
0
 internal TronECKey(ECKey ecKey, TronNetwork network)
 {
     _ecKey   = ecKey;
     _network = network;
 }
Beispiel #5
0
 public TronECKey(byte[] vch, bool isPrivate, TronNetwork network)
 {
     _ecKey   = new ECKey(vch, isPrivate);
     _network = network;
 }
Beispiel #6
0
 public TronECKey(string privateKey, TronNetwork network)
 {
     _ecKey   = new ECKey(privateKey.HexToByteArray(), true);
     _network = network;
 }
Beispiel #7
0
 public TronAccount(string privateKey, TronNetwork network)
 {
     Initialise(new TronECKey(privateKey, network));
 }