3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

make DeterministicSeed constructors public

This commit is contained in:
Michael Bumann 2014-09-02 12:49:38 +02:00 committed by Mike Hearn
parent d185dd55f1
commit d09b69ebc5

View File

@ -50,18 +50,18 @@ public class DeterministicSeed implements EncryptableItem {
@Nullable private EncryptedData encryptedMnemonicCode;
private final long creationTimeSeconds;
DeterministicSeed(String mnemonicCode, String passphrase, long creationTimeSeconds) throws UnreadableWalletException {
public DeterministicSeed(String mnemonicCode, String passphrase, long creationTimeSeconds) throws UnreadableWalletException {
this(decodeMnemonicCode(mnemonicCode), passphrase, creationTimeSeconds);
}
DeterministicSeed(byte[] seed, List<String> mnemonic, long creationTimeSeconds) {
public DeterministicSeed(byte[] seed, List<String> mnemonic, long creationTimeSeconds) {
this.seed = checkNotNull(seed);
this.mnemonicCode = checkNotNull(mnemonic);
this.encryptedMnemonicCode = null;
this.creationTimeSeconds = creationTimeSeconds;
}
DeterministicSeed(EncryptedData encryptedMnemonic, long creationTimeSeconds) {
public DeterministicSeed(EncryptedData encryptedMnemonic, long creationTimeSeconds) {
this.seed = null;
this.mnemonicCode = null;
this.encryptedMnemonicCode = checkNotNull(encryptedMnemonic);