Updated on 2026-08-14

This commit is contained in:
Tangem 2018-12-17 13:57:13 +03:00
parent 406cdbaeae
commit d270021a08

View file

@ -320,10 +320,10 @@ public class BtcCashEngine extends CoinEngine {
}
@Override
public String calculateAddress(byte[] pkUncompressed) throws NoSuchProviderException, NoSuchAlgorithmException {
public String calculateAddress(byte[] pubKey) throws NoSuchProviderException, NoSuchAlgorithmException {
// CashAddr format
byte hash1[] = Util.calculateSHA256(pkUncompressed);
byte hash1[] = Util.calculateSHA256(pubKey);
byte hash2[] = Util.calculateRIPEMD160(hash1);
return CashAddr.toCashAddress(BitcoinCashAddressType.P2PKH, hash2);