stoway / TronNet

.net sdk of tron
MIT License
69 stars 43 forks source link

GenerateKey function #10

Closed masoudchangizi closed 3 years ago

masoudchangizi commented 3 years ago

There is a sample code like below in your github page but there not GenerateKey() function in the TronClient classs.

    public void GenerateAddress()
    {
        var key = _tronClient.GenerateKey();

        var address = key.GetPublicAddress();
    }
stoway commented 3 years ago

There is a sample code like below in your github page but there not GenerateKey() function in the TronClient classs.

    public void GenerateAddress()
    {
        var key = _tronClient.GenerateKey();

        var address = key.GetPublicAddress();
    }

Already modified, change code: var key = TronECKey.GenerateKey(TronNetwork.MainNet);