Updated on 2026-08-14
This commit is contained in:
parent
406cdbaeae
commit
d270021a08
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue