iexbase / tron-api

A PHP API for interacting with Tron (TRX)
https://iexbase.github.io/tron-api/
MIT License
412 stars 296 forks source link

[Feature] Implement account/address generation locally #32

Open gituser opened 5 years ago

gituser commented 5 years ago

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.

serderovsh commented 5 years ago

ok

gituser commented 5 years ago

@serderovsh any update on this?

Thanks.

serderovsh commented 4 years ago

+

gituser commented 4 years ago

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.

serderovsh commented 4 years ago

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

serderovsh commented 4 years ago

BIP44

she is not there. So far, only a check

atlaschiew commented 3 years ago

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