mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
ECKey: Clearly mark a key as uncompressed in toString().
This commit is contained in:
parent
3403fc52c6
commit
4c60984e14
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue