Skip to content

Commit

Permalink
add tron paper wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
technologiespro committed Feb 27, 2020
1 parent e7f8bb1 commit efd7ba9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -43,6 +43,7 @@ Designed to securely generate altcoins addresses offline
- SpectreCoin (XSPEC) https://spectreproject.io
- GuapCoin (GUAP) http://www.guapcoin.org/
- Ravencoin (RVN) https://ravencoin.org/ (prepare)
- Tron (TRX) https://tron.network/ (prepare)

# IMPORTANT NOTE

Expand Down
3 changes: 2 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "paper-wallet-generator",
"version": "1.0.19",
"version": "1.0.20",
"private": true,
"description": "Paper Wallet Generator for Bitcoin & Altcoins",
"author": "technologiespro <technologies.bro@gmail.com>",
Expand All @@ -25,6 +25,7 @@
},
"main": "background.js",
"dependencies": {
"@faast/tron-payments": "^0.19.10",
"@liskhq/lisk-cryptography": "^2.0.0",
"@waves/waves-crypto": "^3.0.11",
"bip39": "^3.0.2",
Expand Down
Binary file added public/static/coins/rvn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/coins/trx.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/components/Generator.vue
Expand Up @@ -643,6 +643,14 @@ export default {
generator: 'btcGenerator',
downloadWallet: 'https://ravencoin.org/',
},
"trx": {
title: "Tron",
logo: "static/coins/trx.png",
public: 0x41,
private: 0xc3,
generator: 'trxGenerator',
downloadWallet: 'https://tron.network/',
},
},
}
},
Expand Down Expand Up @@ -717,6 +725,14 @@ export default {
this.address.privateWif = mnemonic;
}
if (this.coins[this.currentCoin].generator === 'trxGenerator') {
const privateKeyHex = cryptoRandomString({length: 64})
let { privateKeyToAddress } = require('@faast/tron-payments')
this.address.publicAddress = privateKeyToAddress(privateKeyHex);
this.address.privateWif = privateKeyHex.toUpperCase();
}
if (this.coins[this.currentCoin].generator === 'liskGenerator') {
const privateKeyHex = cryptoRandomString({length: 32})
const mnemonic = entropyToMnemonic(privateKeyHex)
Expand Down

0 comments on commit efd7ba9

Please sign in to comment.