Skip to content

khaliliprf/crypto-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

address-generator

multi-currency wallet generator :

import wallet from "address-generator";
// generate legacy address
wallet.bitcoin.getP2pkhAddress(pubKey, testnet);
// generate native segwit address (bech32)
wallet.bitcoin.getBech32AddressFromPubKey(pubKey, testnet);
// generate taproot address
wallet.bitcoin.getTaprootAddress(pubKey, testnet);
// convert private key from Buffer to WIF format
wallet.bitcoin.getPrivateKeyInWifFormat(prvKey);
// get private key and return account address
wallet.bitcoin.retrieveAddressFromPvInWifFormat(wifPv);
// convert WIF private key to HEX
wallet.bitcoin.convertWifPvToHex(wifPv);
//generate ethereum address
wallet.ethereum.publicToAddress(pubKey);
// generate tron address
wallet.tron.publicToAddress(pubKey);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published