Skip to content

Commit

Permalink
Update 2024-09-17
Browse files Browse the repository at this point in the history
  • Loading branch information
Pymmdrza committed Sep 17, 2024
1 parent 8c1feaf commit 333ea8a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/tron.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Cryptofuzz - Tron (trx)

In the following, you can see a collection of code fragments that can be implemented with the Cryptofuse package for the Tron currency, which is briefly included to introduce parts of this library.

```python
from cryptofuzz import Tron
import os
# -- Shortcut Class --
trx = Tron()
# -- Seed Key Bytes --
seed = os.urandom(32)
# -- Priv Hex --
privatekey = seed.hex()
# -- Tron Address --
Address = trx.hex_addr(privatekey)
# output: TAHQbx0t4LopDY77GBmxnMaXrecdgBKxTq
```
### Private Key (Hex) To Tron Hex Address

```python
# -- Tron Hex Address From Seed (bytes) --
Address_Hex = trx.bytes_to_hex_addr(seed)
# or
# -- Tron Hex Address From Private Key --
Address_Hex = trx.pvk_to_hex_addr(privatekey)
```

### Seed (bytes) Key To Tron Hex Address

```python
# -- Tron Hex Address From Seed (bytes) --
Address_Hex = trx.bytes_to_hex_addr(seed)
```

0 comments on commit 333ea8a

Please sign in to comment.