3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 11:15:51 +00:00

ECKey: Clearly mark a key as uncompressed in toString().

This commit is contained in:
Andreas Schildbach 2019-02-04 11:53:57 +01:00
parent 3403fc52c6
commit 4c60984e14

View File

@ -1292,6 +1292,8 @@ public class ECKey implements EncryptableItem {
final Address address = LegacyAddress.fromKey(params, this);
builder.append(" addr:");
builder.append(address.toString());
if (!isCompressed())
builder.append(" UNCOMPRESSED");
builder.append(" hash160:");
builder.append(Utils.HEX.encode(getPubKeyHash()));
if (creationTimeSeconds > 0)