bnb-chain / tss-lib

Threshold Signature Scheme, for ECDSA and EDDSA
MIT License
790 stars 271 forks source link

how to get btc and eth address? #169

Open kolvin2016 opened 2 years ago

kolvin2016 commented 2 years ago

how to get string address for btc and eth?

yycen commented 2 years ago

When you have pubkey, you can convert to address by base58 encoding of hash160(pubkey). The conversion process is detailed here. You can use PubkeyToAddress() function in btcec package.