Skip to content

Commit

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

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

```python
from cryptofuzz import Tron
import os

trx = Tron()
# -- Seed Key Bytes --
seed = os.urandom(32)
# -- Priv Hex --
privatekey = seed.hex()
# -- Tron Address --
Address = trx.hex_addr(privatekey)
# output: TAHQbx0t4LopDY77GBmxnMaXrecdgBKxTq
```

Tron Hex Address Format

```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)
```

Tron Address From Decimal Number `int`

```python
# -- Tron Address From Decimal (Number - Integer) --
Address = trx.dec_to_addr(1234567890)
```

0 comments on commit 44f366c

Please sign in to comment.