12 changed files with 69 additions and 9 deletions
@ -1 +1 @@ |
|||||
Subproject commit 645be6a5a5a7b434ea9a3991ae85e0b8b6d4f50b |
Subproject commit c1f6a1245e4632deb19af64faaa6ffaaca475313 |
@ -0,0 +1,45 @@ |
|||||
|
package com.sparrowwallet.sparrow.io; |
||||
|
|
||||
|
import com.sparrowwallet.drongo.protocol.ScriptType; |
||||
|
import com.sparrowwallet.drongo.wallet.Keystore; |
||||
|
import com.sparrowwallet.drongo.wallet.WalletModel; |
||||
|
|
||||
|
import java.io.File; |
||||
|
import java.io.InputStream; |
||||
|
|
||||
|
public class SeedTool implements KeystoreFileImport { |
||||
|
@Override |
||||
|
public boolean isEncrypted(File file) { |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String getName() { |
||||
|
return "Seed Tool"; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public WalletModel getWalletModel() { |
||||
|
return WalletModel.SEED_TOOL; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public Keystore getKeystore(ScriptType scriptType, InputStream inputStream, String password) throws ImportException { |
||||
|
throw new ImportException("Only QR imports are supported."); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public boolean isKeystoreImportScannable() { |
||||
|
return true; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String getKeystoreImportDescription() { |
||||
|
return "Select your seed and scan the QR code created by Authenticate > Derive Key > Other Key Derivations > Account Descriptor. Click the share icon at the bottom to show the QR."; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public boolean isFileFormatAvailable() { |
||||
|
return false; |
||||
|
} |
||||
|
} |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 9.9 KiB |
Loading…
Reference in new issue