3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

HD Wallets: print seed birthday in wallet dump too

This commit is contained in:
Mike Hearn 2014-03-26 23:55:42 +01:00
parent a1fcca3883
commit 3f9791d86a

View File

@ -29,10 +29,7 @@ import org.spongycastle.crypto.params.KeyParameter;
import javax.annotation.Nullable;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.LinkedList;
import java.util.List;
import java.util.*;
import java.util.concurrent.Executor;
import static com.google.common.base.Preconditions.*;
@ -379,9 +376,15 @@ public class KeyChainGroup {
builder.append("Seed as hex: ");
builder.append(seed.toHexString());
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 {
builder.append("Seed is encrypted");
builder.append(newline);
builder.append(newline);
}
for (ECKey key : chain.getKeys())
formatKeyWithAddress(params, includePrivateKeys, key, builder);