CRYPTO NEWS

A library for convertng general cryptocurrency’s private key to address

Is there a library on npm to convert a given private key and cryptocurrency’s name to an address? E.g. Tron and Ethereum give different addresses when using the same private key:

let addrEthereum = '0x0835f0b852064b10a6b92aac13f323f07d524ee4' let addrTron = 'TAid2S2NiavsWVAvkqXAmQs14tbsM47qkG' 

and the separate address derivations are

function deriveTron(privk: string) {   return TronWeb.address.fromPrivateKey(privk); }  function deriveEth(privk: string) {   let bprivk = Buffer.from(privk, 'hex')   let bpubk = EthereumAddress.fromPrivateKey(bprivk)   return bpubk.toString() } 

A library for convertng general cryptocurrency’s private key to address

Shopping cart
There are no products in the cart!
Continue shopping
0