tron-api icon indicating copy to clipboard operation
tron-api copied to clipboard

[Feature] Implement account/address generation locally

Open gituser opened this issue 6 years ago • 7 comments

Hi @serderovsh

Currently tron-api uses wallet api to generate new address / account which might be insecure in certain cases.

Can you implement the account generation locally in the library?

E.g. similar to - https://github.com/mattvb91/tron-trx-php/blob/master/src/Wallet.php#L59

Would be also nice to implement deterministic address generation (this way the user will only need specific seed to generate subset of addresses).

Thanks.

gituser avatar May 20 '19 11:05 gituser

ok

serderovsh avatar May 20 '19 18:05 serderovsh

@serderovsh any update on this?

Thanks.

gituser avatar Jul 03 '19 14:07 gituser

serderovsh avatar Nov 15 '19 07:11 serderovsh

Hi @serderovsh .

It seems you've closed this feature request - did you implement this in the master branch ?

Is there any documentation available on how to generate a new account pair using the tron-api library ? Is there a support for HD (deterministic) address generation (e.g. BIP39 or BIP44) ?

Thanks.

gituser avatar Nov 16 '19 13:11 gituser

https://github.com/iexbase/tron-api/commit/63a3d8663a38e23e7a7c07f640b01567cc67a131

serderovsh avatar Nov 16 '19 14:11 serderovsh

BIP44

she is not there. So far, only a check

serderovsh avatar Nov 16 '19 14:11 serderovsh

hi i have made up an article about this issue, kindly refer to https://www.btcschools.net/tron/tron_address.php . however, an address is not activated, you need refer to other article to activate it :)

Atlas Chiew btcschools.net

atlaschiew avatar Jan 08 '21 04:01 atlaschiew