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:
parent
d185dd55f1
commit
d09b69ebc5
@ -50,18 +50,18 @@ public class DeterministicSeed implements EncryptableItem {
|
|||||||
@Nullable private EncryptedData encryptedMnemonicCode;
|
@Nullable private EncryptedData encryptedMnemonicCode;
|
||||||
private final long creationTimeSeconds;
|
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);
|
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.seed = checkNotNull(seed);
|
||||||
this.mnemonicCode = checkNotNull(mnemonic);
|
this.mnemonicCode = checkNotNull(mnemonic);
|
||||||
this.encryptedMnemonicCode = null;
|
this.encryptedMnemonicCode = null;
|
||||||
this.creationTimeSeconds = creationTimeSeconds;
|
this.creationTimeSeconds = creationTimeSeconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
DeterministicSeed(EncryptedData encryptedMnemonic, long creationTimeSeconds) {
|
public DeterministicSeed(EncryptedData encryptedMnemonic, long creationTimeSeconds) {
|
||||||
this.seed = null;
|
this.seed = null;
|
||||||
this.mnemonicCode = null;
|
this.mnemonicCode = null;
|
||||||
this.encryptedMnemonicCode = checkNotNull(encryptedMnemonic);
|
this.encryptedMnemonicCode = checkNotNull(encryptedMnemonic);
|
||||||
|
Loading…
Reference in New Issue
Block a user