mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 23:32:16 +00:00
HD Wallets: print seed birthday in wallet dump too
This commit is contained in:
parent
a1fcca3883
commit
3f9791d86a
@ -29,10 +29,7 @@ import org.spongycastle.crypto.params.KeyParameter;
|
|||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.EnumMap;
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.*;
|
import static com.google.common.base.Preconditions.*;
|
||||||
@ -379,9 +376,15 @@ public class KeyChainGroup {
|
|||||||
builder.append("Seed as hex: ");
|
builder.append("Seed as hex: ");
|
||||||
builder.append(seed.toHexString());
|
builder.append(seed.toHexString());
|
||||||
builder.append(newline);
|
builder.append(newline);
|
||||||
|
builder.append("Seed birthday: ");
|
||||||
|
builder.append(seed.getCreationTimeSeconds());
|
||||||
|
builder.append(" [" + new Date(seed.getCreationTimeSeconds() * 1000) + "]");
|
||||||
|
builder.append(newline);
|
||||||
|
builder.append(newline);
|
||||||
} else {
|
} else {
|
||||||
builder.append("Seed is encrypted");
|
builder.append("Seed is encrypted");
|
||||||
builder.append(newline);
|
builder.append(newline);
|
||||||
|
builder.append(newline);
|
||||||
}
|
}
|
||||||
for (ECKey key : chain.getKeys())
|
for (ECKey key : chain.getKeys())
|
||||||
formatKeyWithAddress(params, includePrivateKeys, key, builder);
|
formatKeyWithAddress(params, includePrivateKeys, key, builder);
|
||||||
|
Loading…
Reference in New Issue
Block a user